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
669 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. TwinssensOdyssey.cpp
  5. Abstract:
  6. Return 0x347 when GetProcessorSpeed is called.
  7. Notes:
  8. This is an app specific shim.
  9. History:
  10. 12/30/1999 a-vales Created
  11. --*/
  12. #include "precomp.h"
  13. IMPLEMENT_SHIM_BEGIN(TwinssensOdyssey)
  14. #include "ShimHookMacro.h"
  15. APIHOOK_ENUM_BEGIN
  16. APIHOOK_ENUM_ENTRY(GetProcessorSpeed)
  17. APIHOOK_ENUM_END
  18. /*++
  19. Return 0x347 when GetProcessorSpeed is called.
  20. --*/
  21. int
  22. APIHOOK(GetProcessorSpeed)()
  23. {
  24. return 0x347;
  25. }
  26. /*++
  27. Register hooked functions
  28. --*/
  29. HOOK_BEGIN
  30. APIHOOK_ENTRY(GETINFO.DLL, GetProcessorSpeed)
  31. HOOK_END
  32. IMPLEMENT_SHIM_END