/************************************************************************* * ShellHookProc [SHELL.103] * System-wide WH_SHELL hook. */ LRESULT WINAPI ShellHookProc16(INT16 code, WPARAM16 wParam, LPARAM lParam) { TRACE("%i, %04x, %08x\n", code, wParam, (unsigned)lParam ); if( SHELL_hHook && SHELL_hWnd ) { UINT16 uMsg = 0; switch( code ) { case HSHELL_WINDOWCREATED: uMsg = uMsgWndCreated; break; case HSHELL_WINDOWDESTROYED: uMsg = uMsgWndDestroyed; break; case HSHELL_ACTIVATESHELLWINDOW: uMsg = uMsgShellActivate; } PostMessageA( SHELL_hWnd, uMsg, wParam, 0 ); } return CallNextHookEx16( SHELL_hHook, code, wParam, lParam ); }
/*********************************************************************** * DefHookProc (USER.235) */ LRESULT WINAPI DefHookProc16( INT16 code, WPARAM16 wparam, LPARAM lparam, HHOOK *hhook ) { return CallNextHookEx16( *hhook, code, wparam, lparam ); }