Hi everyone,

How can i receive messages from windows in my windowless application? My app is a single process that runs in the backgorund and has no window. I need to receive a WTSRegisterSessionNotification with WM_WTSSESSION_CHANGE and also the WM_ENDSESSION message but I have no window (so no handle). How can it be achieved? There MUST be a way to do that without creating an unvisible window.

Thanks in advance!