|
-
Jan 16th, 2003, 08:10 PM
#1
Thread Starter
Hyperactive Member
Is windows shutting down.
For a program with no handles because there are no forms, how would I be able to determine if the system is shutting down to close the program?
-
Jan 16th, 2003, 10:47 PM
#2
PowerPoster
is the program have a unique window class?
-
Jan 16th, 2003, 11:55 PM
#3
Thread Starter
Hyperactive Member
Um... it shouldn't, seeing as there aren't any loaded handles?
-
Jan 17th, 2003, 12:52 AM
#4
PowerPoster
then you got to find out it process id
-
Jan 17th, 2003, 01:47 PM
#5
Thread Starter
Hyperactive Member
the program has a process id, I have that, is that the same as a window class? How does that help me determine if windows is shutting down?
-
Jan 17th, 2003, 10:23 PM
#6
PowerPoster
Process ID is different from the WindowClass
-
Jan 18th, 2003, 01:57 PM
#7
Thread Starter
Hyperactive Member
Okay, I think there is some element of miscommunication here. From what I understand, a class is the name describing a certain object, such as a "Button" or a "Static" class. The process is the ID given to a program when run. This program therefor has a process, but because it has no objects, it has no handles or therefor any classes to the nonexistent handles. Now, supposing this is right, and that I only have the process to a program, how can it know that windows is shutting down?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|