Explorer extension dll - WM_SHUTDOWN
-
Hi, I have a dll that runs in the address space of Explorer. (Shell extension) So i do not have a main app, just a dll. I could use either MFC or ATL. My problem is i need to know when a Windows Shutdown event is being fired. I've never had this problem before because all my apps have a main window and receive this notification. However the dll just keeps working and terminates in an undetermined state. I can't have the dll called from an app. I have no alternative but to use what i've got. how can i register to receive a WM_SHUTDOWN event from my dll? Please don't suggest i change the design of the solution. I'm confined to what i have. thanks in advance Carl
-
Hi, I have a dll that runs in the address space of Explorer. (Shell extension) So i do not have a main app, just a dll. I could use either MFC or ATL. My problem is i need to know when a Windows Shutdown event is being fired. I've never had this problem before because all my apps have a main window and receive this notification. However the dll just keeps working and terminates in an undetermined state. I can't have the dll called from an app. I have no alternative but to use what i've got. how can i register to receive a WM_SHUTDOWN event from my dll? Please don't suggest i change the design of the solution. I'm confined to what i have. thanks in advance Carl
You may try to use a Windows hook - WH_GETMESSAGE or WH_CALLWNDPROC and monitor WM_ENDSESSION message. Just a thought...
-
You may try to use a Windows hook - WH_GETMESSAGE or WH_CALLWNDPROC and monitor WM_ENDSESSION message. Just a thought...
Igor, where were you yesterday? That's exactly what i did and it gives me the desired notification. - thanks. I would be interested in another method though if you have any thoughts. Kind Regards Carl