// ishung.cpp (Windows 95/98/NT/2000) // // This example will show you how you can obtain the current status // of the application. // // // (c)1999 Ashot Oganesyan K, SmartLine, Inc // mailto:[email protected], http://www.protect-me.com, http://www.codepile.com
#include #include
// User32!IsHungAppWindow (NT specific!) // // The function retrieves the status (running or not responding) of the // specified application // // BOOL IsHungAppWindow( // HWND hWnd, // handle to main app's window // ); typedefBOOL (WINAPI *PROCISHUNGAPPWINDOW)(HWND);
// User32!IsHungThread (95/98 specific!) // // The function retrieves the status (running or not responding) of the // specified thread // // BOOL IsHungThread( // DWORD dwThreadId, // The identifier of the main app's window thread // ); typedefBOOL(WINAPI *PROCISHUNGTHREAD)(DWORD);