Computing.Net > Forums > Programming > Windows message 59

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Windows message 59

Reply to Message Icon

Name: Mo22
Date: September 6, 2002 at 01:19:09 Pacific
OS: W2K
CPU/Ram: ? + 256M
Comment:

Hello all.
Does anyone know what the name is for message that is sent by windows prior to shutdown or user-logoff. It's not WM_QUERYENDSESSION nor WM_ENDSESSION. This message has value decimal 59 and comes by before these two.
I coded Msg.Msg = 59 but would like to use the constant name in stead of hardcoding value 59. I'm using Delphi3.
Thanks in advance for any help.



Sponsored Link
Ads by Google

Response Number 1
Name: Madman
Date: September 6, 2002 at 06:04:21 Pacific
Reply:

Here are some sites that relate to your question"

http://ourworld.compuserve.com/homepages/NIFTY_TOOLS/NTSP6BUG.HTM

http://www.delphicorner.f9.co.uk/t

http://www.gnomehome.demon.nl/uddf/pages/api.htmips.htm

There a numerous others sites that you can see by entering "DELPHI WM_QUERYENDSESSION" in the search box at google.com.

good luck.

There are



0

Response Number 2
Name: Jeff J
Date: September 6, 2002 at 09:37:32 Pacific
Reply:

My hat is off to you for making your code more readable. Windows WM_* definitions are mostly clustered together into a single text file. In C/C++ they are located in winuser.h. I don't have a copy of Delphi in front of me at the moment, but you can just do a quick search for the .pas file. Look in your Delphi dir for a file with the text WM_COMPAREITEM or some other message in it. Open the file and search for the number you want (they're in order, and typically in hex). That should work for all your future needs too.

Cheers


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Windows message 59

Windows Message when ip changes www.computing.net/answers/programming/windows-message-when-ip-changes/8371.html

Holding Window Message www.computing.net/answers/programming/holding-window-message/17325.html

doubt in windows prog www.computing.net/answers/programming/doubt-in-windows-prog/12208.html