Results 1 to 7 of 7

Thread: Is windows shutting down.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    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?

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    is the program have a unique window class?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    Um... it shouldn't, seeing as there aren't any loaded handles?

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    then you got to find out it process id

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    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?

  6. #6
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Process ID is different from the WindowClass

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    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
  •  



Click Here to Expand Forum to Full Width