Source code of Windows XP (NT5)
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
861 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. IgnoreOleUninitialize.cpp
  5. Abstract:
  6. HTML Editor 8.7 calls ole32!OleUnitialize after the ExitProcess
  7. in the DllMain of hhctrl.ocx. This worked on Windows 2000
  8. but does not any more on Whistler.
  9. This is an general purpose shim.
  10. History:
  11. 01/25/2001 prashkud Created
  12. --*/
  13. #include "precomp.h"
  14. IMPLEMENT_SHIM_BEGIN(IgnoreOleUninitialize)
  15. #include "ShimHookMacro.h"
  16. APIHOOK_ENUM_BEGIN
  17. APIHOOK_ENUM_ENTRY(OleUninitialize)
  18. APIHOOK_ENUM_END
  19. /*++
  20. This hooks Ole32!OleUninitialize and returns
  21. immediately as this is being called from
  22. DllMain in hhctrl.ocx
  23. --*/
  24. void
  25. APIHOOK(OleUninitialize)()
  26. {
  27. return;
  28. }
  29. /*++
  30. Register hooked functions
  31. --*/
  32. HOOK_BEGIN
  33. APIHOOK_ENTRY(OLE32.DLL, OleUninitialize)
  34. HOOK_END
  35. IMPLEMENT_SHIM_END