Hi,
I make an small exe file without window
i want to know which message my EXE receive before it has to close (eg When user Shutdown or Restart)
The code is like this
stream = fopen( "c:\\Windows\\bootlog.txt", "a+" );
MSG msg;
while (GetMessage(&msg, NULL,0,0))
{
fprintf( stream, "MSG %i\n",msg.message);
TranslateMessage(&msg); /* translate keyboard message*/
DispatchMessage(&msg); /* return contro, to window 98*/
}
fclose( stream );
return 0;
i run this EXE, and restart windows, but my log file is nothing (just)
Note: My EXE create no window
Thank
Jimmy Le
nhan_tiags@yahoo.com
I make an small exe file without window
i want to know which message my EXE receive before it has to close (eg When user Shutdown or Restart)
The code is like this
stream = fopen( "c:\\Windows\\bootlog.txt", "a+" );
MSG msg;
while (GetMessage(&msg, NULL,0,0))
{
fprintf( stream, "MSG %i\n",msg.message);
TranslateMessage(&msg); /* translate keyboard message*/
DispatchMessage(&msg); /* return contro, to window 98*/
}
fclose( stream );
return 0;
i run this EXE, and restart windows, but my log file is nothing (just)
Note: My EXE create no window
Thank
Jimmy Le
nhan_tiags@yahoo.com