Leaked source code of windows server 2003
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.
|
|
/*++
Copyright (c) 2002 Microsoft Corporation
Module Name:
MyPhotoCenter2.cpp
Abstract:
Ignore Exception caused by the application "My Photo Center 2".
Notes:
This is an app specific shim.
History:
04/25/2002 v-bvella Created
--*/
#include "precomp.h"
IMPLEMENT_SHIM_BEGIN(MyPhotoCenter2) #include "ShimHookMacro.h"
APIHOOK_ENUM_BEGIN APIHOOK_ENUM_ENTRY(ReleaseStgMedium) APIHOOK_ENUM_END
/*++
This function intercepts ReleaseStgMedium call. It will ignore exception cased by ReleaseStgMedium.
--*/
void APIHOOK(ReleaseStgMedium)( STGMEDIUM *pmedium //Pointer to storage medium to be freed
) { __try { ORIGINAL_API(ReleaseStgMedium)(pmedium); } __except (1) { return; } return; }
/*++
Register hooked functions
--*/
HOOK_BEGIN APIHOOK_ENTRY(OLE32.DLL, ReleaseStgMedium) HOOK_END
IMPLEMENT_SHIM_END
|