Force Window to Stay in Front

I know this is probably on the forum somewhere but I just can’t find it. I have a windows app and I need to keep the main window in front of all other application windows. Can someone point me in the right direction to achieve this. Thanks.

you can use winapi SetWindowPos.

Use a global floating window

Thanks