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?