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.

72 lines
763 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. TermServLayer.cpp
  5. Abstract:
  6. Notes:
  7. This is a general purpose shim for Quake engine based games.
  8. History:
  9. 12/12/2000 clupu Created
  10. --*/
  11. #include "precomp.h"
  12. IMPLEMENT_SHIM_BEGIN(TermServLayer)
  13. #include "ShimHookMacro.h"
  14. APIHOOK_ENUM_BEGIN
  15. APIHOOK_ENUM_ENTRY(GetVersion)
  16. APIHOOK_ENUM_END
  17. /*++
  18. This stub function returns Windows 95 credentials.
  19. --*/
  20. DWORD
  21. APIHOOK(GetVersion)(
  22. void
  23. )
  24. {
  25. return ORIGINAL_API(GetVersion)();
  26. }
  27. /*++
  28. Register hooked functions
  29. --*/
  30. BOOL
  31. NOTIFY_FUNCTION(
  32. DWORD fdwReason
  33. )
  34. {
  35. return TRUE;
  36. }
  37. HOOK_BEGIN
  38. APIHOOK_ENTRY(KERNEL32.DLL, GetVersion)
  39. CALL_NOTIFY_FUNCTION
  40. HOOK_END
  41. IMPLEMENT_SHIM_END