Could someone help me with OnEndSession() problem?
Hi all,
I'm doing program for school which will serve as logger: after kid logs on, it will be asked by this program for its name and he will have to confirm, whether the PC was ok when he started the lesson. The program logs this into HTML file. The program keeps running (only the dialog disappears) and when kid logs off, it will automatically write next record into HTML file.
The problem is, on Win2000 machines at school, when logging off, I get the message "Program is not responding", you know what I'm talking about.
I attach the program (in ZIP there are sources) so if somebody could take a look at this, I would be very grateful.
Just one note: to keep program running in the background I use hidden notify dialog, because if the program didn't have any main window, it would be terminated automatically after InitInstance() finishes. This notify dialog is there just to catch OnQueryEndSession() and OnEndSession() messages. The problem is, on the problematic Win2000 machines in the school, OnEndSession() gets never called.
Thanks to anyone who will bother and take a look.
The sun is the same in the relative way, but you're older
Shorter of breath and one day closer to death
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.