I'm writing a small programme for Win 98 using VC++ 6, all it is meant to do is start when Windows starts, logging the time & date, then wait until shutdown to log the time & date again. I've got it to do the first bit easily enough, but I'm not sure how to get it to wait for shutdown. Presumably I must put it into a loop waiting to receive WM_ENDSESSION or something, so I need to know it if I can receive / handle messsages if my programme doesn't have a window. Will I need to create an invisible window just so I can get messages?
0 · ·