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.

58 lines
700 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. BackOffice45Suite.cpp
  5. Abstract:
  6. Ignore msvcrt!exit. No idea why it worked just fine in NT4.
  7. Notes:
  8. This is an app specific shim.
  9. History:
  10. 02/16/2000 clupu Created
  11. --*/
  12. #include "precomp.h"
  13. IMPLEMENT_SHIM_BEGIN(BackOffice45Suite)
  14. #include "ShimHookMacro.h"
  15. APIHOOK_ENUM_BEGIN
  16. APIHOOK_ENUM_ENTRY(exit)
  17. APIHOOK_ENUM_END
  18. /*++
  19. Ignore msvcrt!exit
  20. --*/
  21. void
  22. APIHOOK(exit)(
  23. int status
  24. )
  25. {
  26. DPFN( eDbgLevelInfo, "BackOffice45Suite.dll, Ignoring msvcrt!exit...");
  27. return;
  28. }
  29. /*++
  30. Register hooked functions
  31. --*/
  32. HOOK_BEGIN
  33. APIHOOK_ENTRY(MSVCRT.DLL, exit)
  34. HOOK_END
  35. IMPLEMENT_SHIM_END