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.

61 lines
866 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. FailCloseProfileUserMapping.cpp
  5. Abstract:
  6. Fifa 2000 makes a bad assumption that CloseProfileUserMapping always
  7. returns 0
  8. Fix is of course trivial.
  9. Notes:
  10. This is an app specific shim.
  11. History:
  12. 04/07/2000 linstev Created
  13. --*/
  14. #include "precomp.h"
  15. IMPLEMENT_SHIM_BEGIN(FailCloseProfileUserMapping)
  16. #include "ShimHookMacro.h"
  17. APIHOOK_ENUM_BEGIN
  18. APIHOOK_ENUM_ENTRY(CloseProfileUserMapping)
  19. APIHOOK_ENUM_END
  20. /*++
  21. Stub always returns 0.
  22. --*/
  23. BOOL
  24. APIHOOK(CloseProfileUserMapping)(VOID)
  25. {
  26. ORIGINAL_API(CloseProfileUserMapping)();
  27. return FALSE;
  28. }
  29. /*++
  30. Register hooked functions
  31. --*/
  32. HOOK_BEGIN
  33. APIHOOK_ENTRY(KERNEL32.DLL, CloseProfileUserMapping)
  34. HOOK_END
  35. IMPLEMENT_SHIM_END