You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
800 B
59 lines
800 B
/*++
|
|
|
|
Copyright (c) 2002 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Patrol.cpp
|
|
|
|
Abstract:
|
|
|
|
Kill USER32!PostQuitMessage to prevent the control panel applet from taking
|
|
out explorer.
|
|
|
|
Notes:
|
|
|
|
This is an app specific shim.
|
|
|
|
History:
|
|
|
|
20/06/2002 linstev Created
|
|
|
|
--*/
|
|
|
|
#include "precomp.h"
|
|
|
|
IMPLEMENT_SHIM_BEGIN(Patrol)
|
|
#include "ShimHookMacro.h"
|
|
|
|
APIHOOK_ENUM_BEGIN
|
|
APIHOOK_ENUM_ENTRY(PostQuitMessage)
|
|
APIHOOK_ENUM_END
|
|
|
|
/*++
|
|
|
|
Kill this API
|
|
|
|
--*/
|
|
|
|
VOID
|
|
APIHOOK(PostQuitMessage)(
|
|
int nExitCode
|
|
)
|
|
{
|
|
LOGN(eDbgLevelError, "[PostQuitMessage] Ignoring quit message");
|
|
return;
|
|
}
|
|
|
|
/*++
|
|
|
|
Register hooked functions
|
|
|
|
--*/
|
|
|
|
HOOK_BEGIN
|
|
APIHOOK_ENTRY(USER32.DLL, PostQuitMessage)
|
|
HOOK_END
|
|
|
|
IMPLEMENT_SHIM_END
|
|
|