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.

63 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. DongFangYingDu.cpp
  5. Abstract:
  6. The app installs its own wmpui.dll (which I believe it is from Windows
  7. Media Play's 6.0) and then register it during installation and un-register
  8. it during un-installation. This makes WMP AV since this old DLL got loaded
  9. (through CoCreateInstance) the fix is make the app not bother to register /
  10. unregister during the installation process.
  11. Notes:
  12. This is an app specific shim.
  13. History:
  14. 06/02/2001 xiaoz Created
  15. --*/
  16. #include "precomp.h"
  17. IMPLEMENT_SHIM_BEGIN(DongFangYingDu)
  18. #include "ShimHookMacro.h"
  19. APIHOOK_ENUM_BEGIN
  20. APIHOOK_ENUM_ENTRY(DllRegisterServer)
  21. APIHOOK_ENUM_ENTRY(DllUnregisterServer)
  22. APIHOOK_ENUM_END
  23. STDAPI
  24. APIHOOK(DllRegisterServer)(
  25. void
  26. )
  27. {
  28. return S_OK;
  29. }
  30. STDAPI
  31. APIHOOK(DllUnregisterServer)(
  32. void
  33. )
  34. {
  35. return S_OK;
  36. }
  37. /*++
  38. Register hooked functions
  39. --*/
  40. HOOK_BEGIN
  41. APIHOOK_ENTRY(WMPUI.DLL, DllRegisterServer)
  42. APIHOOK_ENTRY(WMPUI.DLL, DllUnregisterServer)
  43. HOOK_END
  44. IMPLEMENT_SHIM_END