1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef ___WINAMP_COMMANDS___H___
- #define ___WINAMP_COMMANDS___H___
- #include "../winamp/wa_ipc.h"
- #include "wa_hotkeys.h"
- #define HKF_BRING_TO_FRONT 0x1
- #define HKF_WPARAM_HWND 0x2
- #define HKF_COPY_RET 0x4
- #define HKF_WPARAM_PLPOS 0x8
- #define HKF_WPARAM_ISPLAYING_WL 0x10
- #define HKF_SHOWHIDE 0x20
- #define HKF_CUSTOM_FUNC 0x40
- #define HKF_COPYW_RET 0x80
- #define HKF_UNICODE_NAME 0x100
- typedef void (*pfnWAC)();
- struct WACommand
- {
- wchar_t *id;
- char *name;
- DWORD dwFlags;
- UINT uMsg;
- WPARAM wParam;
- LPARAM lParam;
- BOOL bEnabled;
- HWND wnd;
- };
- extern WACommand *WACommands;
- extern inline unsigned int GetCommandsNum();
- void InitCommands();
- int AddCommand(genHotkeysAddStruct *ghas);
- extern inline char *GetCommandName(unsigned int i, bool *unicode);
- extern inline wchar_t *GetCommandId(unsigned int i);
- int GetCommandIdx(wchar_t *id);
- int DoCommand(unsigned int i);
- #endif
|