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.

59 lines
809 B

  1. /*++
  2. Copyright (c) 2000-2002 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. 03/07/2002 robkenny Security changes
  12. --*/
  13. #include "precomp.h"
  14. IMPLEMENT_SHIM_BEGIN(BackOffice45Suite)
  15. #include "ShimHookMacro.h"
  16. APIHOOK_ENUM_BEGIN
  17. APIHOOK_ENUM_ENTRY(exit)
  18. APIHOOK_ENUM_END
  19. /*++
  20. Ignore msvcrt!exit
  21. --*/
  22. void
  23. APIHOOK(exit)(
  24. int /*status*/
  25. )
  26. {
  27. DPFN( eDbgLevelInfo, "BackOffice45Suite.dll, Ignoring msvcrt!exit...");
  28. return;
  29. }
  30. /*++
  31. Register hooked functions
  32. --*/
  33. HOOK_BEGIN
  34. APIHOOK_ENTRY(MSVCRT.DLL, exit)
  35. HOOK_END
  36. IMPLEMENT_SHIM_END