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.

66 lines
914 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. MahjonggMadness.cpp
  5. Abstract:
  6. Prevent the app from task switching - it messes with it's synchronization
  7. logic.
  8. Notes:
  9. This is an app specific shim.
  10. History:
  11. 11/10/2000 linstev Created
  12. --*/
  13. #include "precomp.h"
  14. IMPLEMENT_SHIM_BEGIN(MahjonggMadness)
  15. #include "ShimHookMacro.h"
  16. APIHOOK_ENUM_BEGIN
  17. APIHOOK_ENUM_ENTRY(ShellExecuteA)
  18. APIHOOK_ENUM_END
  19. /*++
  20. Ignore this call.
  21. --*/
  22. HINSTANCE
  23. APIHOOK(ShellExecuteA)(
  24. HWND hwnd,
  25. LPCTSTR lpOperation,
  26. LPCTSTR lpFile,
  27. LPCTSTR lpParameters,
  28. LPCTSTR lpDirectory,
  29. INT nShowCmd
  30. )
  31. {
  32. // Return minimum error code
  33. return (HINSTANCE)32;
  34. }
  35. /*++
  36. Register hooked functions
  37. --*/
  38. HOOK_BEGIN
  39. APIHOOK_ENTRY(SHELL32.DLL, ShellExecuteA)
  40. HOOK_END
  41. IMPLEMENT_SHIM_END