Main.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef NULLSOFT_MAINH
  2. #define NULLSOFT_MAINH
  3. #include <windows.h>
  4. #include <windowsx.h>
  5. #include <shlwapi.h>
  6. #include "..\..\General\gen_ml/ml.h"
  7. #include "../nu/MediaLibraryInterface.h"
  8. #include "../nu/DialogSkinner.h"
  9. #include "../winamp/wa_ipc.h"
  10. #include "ml_local.h"
  11. #include <shlobj.h>
  12. #include "../nde/nde.h"
  13. #include "../nde/nde_c.h"
  14. #include <time.h>
  15. #include "../Agave/Language/api_language.h"
  16. #include "..\..\General\gen_ml/config.h"
  17. #include "api__ml_local.h"
  18. #include "../replicant/nu/AutoWide.h"
  19. #include "../replicant/nu/AutoChar.h"
  20. #include "AlbumArtCache.h"
  21. #include "./local_menu.h"
  22. #include "../playlist/ifc_playlistloadercallback.h"
  23. #define WM_QUERYFILEINFO (WM_USER + 65)
  24. #define WM_SHOWFILEINFO (WM_USER + 64) // wParam - bForceUpdate, lParam - pszFileName
  25. extern winampMediaLibraryPlugin plugin;
  26. extern int winampVersion;
  27. extern int substantives;
  28. extern int play_enq_rnd_alt;
  29. extern bool nde_error;
  30. extern HMENU wa_playlists_cmdmenu;
  31. extern prefsDlgRecW preferences;
  32. extern HWND hwndSearchGlobal;
  33. void EatKeyboard();
  34. void HookPlaylistEditor();
  35. void UnhookPlaylistEditor();
  36. extern bool skipTitleInfo;
  37. extern wchar_t *recent_fn;
  38. extern int IPC_GET_CLOUD_HINST, IPC_GET_CLOUD_ACTIVE, IPC_CLOUD_ENABLED;
  39. extern LRESULT ML_IPC_MENUFUCKER_BUILD;
  40. extern LRESULT ML_IPC_MENUFUCKER_RESULT;
  41. extern int groupBtn, enqueuedef;
  42. extern LARGE_INTEGER freq;
  43. class PLCallBackW : public ifc_playlistloadercallback
  44. {
  45. public:
  46. PLCallBackW(void){};
  47. ~PLCallBackW(void){};
  48. public:
  49. void OnFile(const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info)
  50. {
  51. mediaLibrary.AddToMediaLibrary(filename);
  52. }
  53. RECVS_DISPATCH;
  54. };
  55. extern "C" void qsort_itemRecord(void *base, size_t num, const void *context,
  56. int (__fastcall *comp)(const void *, const void *, const void *));
  57. void MigrateArtCache();
  58. void setCloudValue(itemRecordW *item, const wchar_t* value);
  59. void onStartPlayFileTrack(const wchar_t *filename, bool resume);
  60. #endif