plugin.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _NULLSOFT_WINAMP_ML_DEVICES_PLUGIN_HEADER
  2. #define _NULLSOFT_WINAMP_ML_DEVICES_PLUGIN_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include "../Plugins/General/gen_ml/ml.h"
  8. #include "./imageCache.h"
  9. #include "./deviceManagerHandler.h"
  10. #include "./deviceHandler.h"
  11. #define PLUGIN_VERSION_MAJOR 1
  12. #define PLUGIN_VERSION_MINOR 35
  13. typedef void (CALLBACK *PluginUnloadCallback)(void);
  14. HINSTANCE Plugin_GetInstance(void);
  15. HWND Plugin_GetWinampWindow(void);
  16. HWND Plugin_GetLibraryWindow(void);
  17. BOOL Plugin_RegisterUnloadCallback(PluginUnloadCallback callback);
  18. DeviceImageCache *Plugin_GetImageCache();
  19. HWND Plugin_GetEventRelayWindow();
  20. const wchar_t *Plugin_GetDefaultDeviceImage(unsigned int width, unsigned int height);
  21. HRESULT Plugin_EnsurePathExist(const wchar_t *path);
  22. BOOL Plugin_GetResourceString(const wchar_t *resourceName, const wchar_t *resourceType, wchar_t *buffer, size_t bufferMax);
  23. HMENU Plugin_LoadMenu();
  24. BOOL Plugin_ShowHelp();
  25. BOOL Plugin_BeginDiscovery();
  26. BOOL Plugin_OpenUrl(HWND ownerWindow, const wchar_t *url, BOOL forceExternal);
  27. #endif //_NULLSOFT_WINAMP_ML_DEVICES_PLUGIN_HEADER