Unfortunately, the only way I know of is to catch the
WM_QUERYENDSESSION event, where the extra parameter is the
reason of the end session (logoff or shutdown).
I said unfortunately because VB does not expose that event.
The closest is QueryUnload, but does not tell you if unloading
is caused by log off or shut down; this is a job for a
subclassing component.
m.
-----Original Message-----
From: Kim, Cardyin [mailto:CKim@s...]
Sent: Wednesday, December 19, 2001 1:08 PM
To: professional vb
Subject: [pro_vb] RE: Reboot Status Question
OK, if no one knows of an API call, does anyone know
of any other way a VB program can query to see if
the OS is shutting down?
Cardyin
Information Services
San Antonio Community Hospital
ckim@s... (xxx)xxx-xxxx
---------------------------------------