GEN.H 1006 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef NULLSOFT_WINAMP_GEN_H
  2. #define NULLSOFT_WINAMP_GEN_H
  3. #include <windows.h>
  4. #define GEN_INIT_SUCCESS 0
  5. // return values from the winampUninstallPlugin(HINSTANCE hdll, HWND parent, int param)
  6. // which determine if we can uninstall the plugin immediately or on winamp restart
  7. //
  8. // uninstall support was added from 5.0+ and uninstall now support from 5.5+
  9. // it is down to you to ensure that if uninstall now is returned that it will not cause a crash
  10. // (ie don't use if you've been subclassing the main window)
  11. #define GEN_PLUGIN_UNINSTALL_NOW 0x1
  12. #define GEN_PLUGIN_UNINSTALL_REBOOT 0x0
  13. typedef struct {
  14. int version;
  15. char *description;
  16. int (*init)();
  17. void (*config)();
  18. void (*quit)();
  19. HWND hwndParent;
  20. HINSTANCE hDllInstance;
  21. } winampGeneralPurposePlugin;
  22. #define GPPHDR_VER 0x10
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. //extern winampGeneralPurposePlugin *gen_plugins[256];
  27. typedef winampGeneralPurposePlugin * (*winampGeneralPurposePluginGetter)();
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif