Main.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef NULLSOFT_MAINH
  2. #define NULLSOFT_MAINH
  3. #define WMDRM_VERSION L"3.95"
  4. #include "WinampInterface.h"
  5. #include "../Winamp/in2.h"
  6. #include <windows.h>
  7. #include "WMDRMModule.h"
  8. #include <shlwapi.h>
  9. #include <wmsdk.h>
  10. #include "config.h"
  11. #include "WMHandler.h"
  12. #include "util.h"
  13. #include "FileTypes.h"
  14. #include "TagAlias.h"
  15. #include "WMInformation.h"
  16. #include "../nu/AutoWide.h"
  17. #include "../nu/AutoChar.h"
  18. #include "vidutils.h"
  19. #include "api.h"
  20. extern WMInformation *setFileInfo;
  21. struct IDispatch;
  22. extern IDispatch *winampExternal;
  23. extern WinampInterface winamp;
  24. extern In_Module plugin;
  25. extern WMDRM mod;
  26. #ifdef _DEBUG
  27. #define SHOW_CALLBACKS
  28. #endif
  29. //#define SHOW_CALLBACKS
  30. #ifdef SHOW_CALLBACKS
  31. #include <iostream>
  32. #define WMTCASE(sw) case sw: std::cerr << #sw << std::endl;
  33. #define WMT_SHOW_HR_CODE(hr) std::cerr << HRErrorCode(hr) << std::endl;
  34. #else
  35. #define WMTCASE(sw) case sw:
  36. #define WMT_SHOW_HR_CODE(hr)
  37. #endif
  38. // {B6CB4A7C-A8D0-4c55-8E60-9F7A7A23DA0F}
  39. static const GUID playbackConfigGroupGUID =
  40. { 0xb6cb4a7c, 0xa8d0, 0x4c55, { 0x8e, 0x60, 0x9f, 0x7a, 0x7a, 0x23, 0xda, 0xf } };
  41. #endif