12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127 |
- #ifndef _WA_IPC_H_
- #define _WA_IPC_H_
- #define WM_WA_IPC WM_USER
- #define IPC_GETVERSION 0
- #define IPC_GETREGISTEREDVERSION 770
- typedef struct {
- char *filename;
- char *title;
- int length;
- } enqueueFileWithMetaStruct;
- #define IPC_PLAYFILE 100
- #define IPC_ENQUEUEFILE 100
- #define IPC_DELETE 101
- #define IPC_DELETE_INT 1101
-
- #define IPC_STARTPLAY 102
- #define IPC_STARTPLAY_INT 1102
- #define IPC_CHDIR 103
- #define IPC_ISPLAYING 104
- #define IPC_GETOUTPUTTIME 105
- #define IPC_JUMPTOTIME 106
- #define IPC_GETMODULENAME 109
- #define IPC_EX_ISRIGHTEXE 666
- #define IPC_WRITEPLAYLIST 120
- #define IPC_SETPLAYLISTPOS 121
- #define IPC_SETVOLUME 122
- #define IPC_SETPANNING 123
- #define IPC_GETLISTLENGTH 124
- #define IPC_GETLISTPOS 125
- #define IPC_GETINFO 126
- #define IPC_GETEQDATA 127
- #define IPC_SETEQDATA 128
- #define IPC_ADDBOOKMARK 129
- #define IPC_INSTALLPLUGIN 130
- #define IPC_RESTARTWINAMP 135
- #define IPC_ISFULLSTOP 400
- #define IPC_INETAVAILABLE 242
- #define IPC_UPDTITLE 243
- #define IPC_REFRESHPLCACHE 247
- #define IPC_GET_SHUFFLE 250
- #define IPC_GET_REPEAT 251
- #define IPC_SET_SHUFFLE 252
- #define IPC_SET_REPEAT 253
- #define IPC_ENABLEDISABLE_ALL_WINDOWS 259
- #define IPC_GETWND 260
- #define IPC_GETWND_EQ 0
- #define IPC_GETWND_PE 1
- #define IPC_GETWND_MB 2
- #define IPC_GETWND_VIDEO 3
- #define IPC_ISWNDVISIBLE 261
- #define IPC_SETSKIN 200
- #define IPC_GETSKIN 201
- #define IPC_EXECPLUG 202
- #define IPC_GETPLAYLISTFILE 211
- #define IPC_GETPLAYLISTTITLE 212
- #define IPC_GETHTTPGETTER 240
- #define IPC_MBOPEN 241
- #define IPC_CHANGECURRENTFILE 245
- #define IPC_GETMBURL 246
- #define IPC_MBBLOCK 248
- #define IPC_MBOPENREAL 249
- #define IPC_ADJUST_OPTIONSMENUPOS 280
- #define IPC_GET_HMENU 281
- #define IPC_GET_EXTENDED_FILE_INFO 290
- #define IPC_GET_EXTENDED_FILE_INFO_HOOKABLE 296
- typedef struct {
- char *filename;
- char *metadata;
- char *ret;
- int retlen;
- } extendedFileInfoStruct;
- #define IPC_GET_BASIC_FILE_INFO 291
- typedef struct {
- char *filename;
- int quickCheck;
-
- int length;
- char *title;
- int titlelen;
- } basicFileInfoStruct;
- #define IPC_GET_EXTLIST 292
- #define IPC_INFOBOX 293
- typedef struct {
- HWND parent;
- char *filename;
- } infoBoxParam;
- #define IPC_SET_EXTENDED_FILE_INFO 294
- #define IPC_WRITE_EXTENDED_FILE_INFO 295
- #define IPC_FORMAT_TITLE 297
- typedef struct
- {
- char *spec;
- void *p;
- char *out;
- int out_len;
- char * (*TAGFUNC)(char * tag, void * p);
- void (*TAGFREEFUNC)(char * tag,void * p);
- } waFormatTitle;
- #define IPC_GETUNCOMPRESSINTERFACE 331
- typedef struct {
- int (*inflateReset)(void *strm);
- int (*inflateInit_)(void *strm,const char *version, int stream_size);
- int (*inflate)(void *strm, int flush);
- int (*inflateEnd)(void *strm);
- unsigned long (*crc32)(unsigned long crc, const unsigned char *buf, unsigned int len);
- } wa_inflate_struct;
- #define IPC_ADD_PREFS_DLG 332
- #define IPC_REMOVE_PREFS_DLG 333
- #define IPC_OPENPREFSTOPAGE 380
- typedef struct _prefsDlgRec {
- HINSTANCE hInst;
- int dlgID;
- void *proc;
- char *name;
- int where;
- int _id;
- struct _prefsDlgRec *next;
- } prefsDlgRec;
- #define IPC_GETINIFILE 334
- #define IPC_GETINIDIRECTORY 335
- #define IPC_SPAWNBUTTONPOPUP 361
- #define IPC_OPENURLBOX 360
- #define IPC_OPENFILEBOX 362
- #define IPC_OPENDIRBOX 363
- #define IPC_SETDIALOGBOXPARENT 364
- #define IPC_GET_GENSKINBITMAP 503
- #define IPC_GET_EMBEDIF 505
- typedef struct
- {
- HWND me;
- int flags;
- RECT r;
- void *user_ptr;
- int extra_data[64];
- } embedWindowState;
- #define EMBED_FLAGS_NORESIZE 1
- #define EMBED_FLAGS_NOTRANSPARENCY 2
- #define IPC_EMBED_ENUM 532
- typedef struct embedEnumStruct
- {
- int (*enumProc)(embedWindowState *ws, struct embedEnumStruct *param);
- int user_data;
- } embedEnumStruct;
-
- #define IPC_EMBED_ISVALID 533
- #define IPC_CONVERTFILE 506
- typedef struct
- {
- char *sourcefile;
- char *destfile;
- int destformat[8];
- HWND callbackhwnd;
-
-
- char *error;
- int bytes_done;
- int bytes_total;
- int bytes_out;
- int killswitch;
- int extra_data[64];
- } convertFileStruct;
- #define IPC_CONVERTFILE_END 507
- typedef struct {
- HWND hwndParent;
- int format;
-
- HWND hwndConfig;
- int extra_data[8];
- } convertConfigStruct;
- #define IPC_CONVERT_CONFIG 508
- #define IPC_CONVERT_CONFIG_END 509
- typedef struct
- {
- void (*enumProc)(int user_data, const char *desc, int fourcc);
- int user_data;
- } converterEnumFmtStruct;
- #define IPC_CONVERT_CONFIG_ENUMFMTS 510
- typedef struct
- {
- char cdletter;
- char *playlist_file;
- HWND callback_hwnd;
-
- char *error;
- } burnCDStruct;
- #define IPC_BURN_CD 511
- typedef struct
- {
- convertFileStruct *cfs;
- int priority;
- } convertSetPriority;
- #define IPC_CONVERT_SET_PRIORITY 512
- typedef struct
- {
- char *filename;
- char *title;
- int length;
- int force_useformatting;
- } waHookTitleStruct;
- #define IPC_HOOK_TITLES 850
- #define IPC_GETSADATAFUNC 800
- #define IPC_ISMAINWNDVISIBLE 900
- #define IPC_SETPLEDITCOLORS 920
- typedef struct
- {
- int numElems;
- int *elems;
- HBITMAP bm;
- } waSetPlColorsStruct;
- #define IPC_SPAWNEQPRESETMENU 933
- #define IPC_SPAWNFILEMENU 934
- #define IPC_SPAWNOPTIONSMENU 935
- #define IPC_SPAWNWINDOWSMENU 936
- #define IPC_SPAWNHELPMENU 937
- #define IPC_SPAWNPLAYMENU 938
- #define IPC_SPAWNPEFILEMENU 939
- #define IPC_SPAWNPEPLAYLISTMENU 940
- #define IPC_SPAWNPESORTMENU 941
- #define IPC_SPAWNPEHELPMENU 942
- #define IPC_SPAWNMLFILEMENU 943
- #define IPC_SPAWNMLVIEWMENU 944
- #define IPC_SPAWNMLHELPMENU 945
- #define IPC_SPAWNPELISTOFPLAYLISTS 946
- typedef struct
- {
- HWND wnd;
- int xpos;
- int ypos;
- } waSpawnMenuParms;
- typedef struct
- {
- HWND wnd;
- int xpos;
- int ypos;
- int width;
- int height;
- } waSpawnMenuParms2;
- #define WM_WA_SYSTRAY WM_USER+1
- #define WM_WA_MPEG_EOF WM_USER+2
- #define IPC_IS_PLAYING_VIDEO 501
- #define IPC_GET_IVIDEOOUTPUT 500
- #define VIDEO_MAKETYPE(A,B,C,D) ((A) | ((B)<<8) | ((C)<<16) | ((D)<<24))
- #define VIDUSER_SET_INFOSTRING 0x1000
- #define VIDUSER_GET_VIDEOHWND 0x1001
- #define VIDUSER_SET_VFLIP 0x1002
- #define VIDUSER_SET_TRACKSELINTERFACE 0x1003
- #ifndef NO_IVIDEO_DECLARE
- #ifdef __cplusplus
- class VideoOutput;
- class SubsItem;
- typedef struct {
- unsigned char* baseAddr;
- long rowBytes;
- } YV12_PLANE;
- typedef struct {
- YV12_PLANE y;
- YV12_PLANE u;
- YV12_PLANE v;
- } YV12_PLANES;
- class IVideoOutput
- {
- public:
- virtual ~IVideoOutput() { }
- virtual int open(int w, int h, int vflip, double aspectratio, unsigned int fmt)=0;
- virtual void setcallback(LRESULT (*msgcallback)(void *token, HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam), void *token) { }
- virtual void close()=0;
- virtual void draw(void *frame)=0;
- virtual void drawSubtitle(SubsItem *item) { }
- virtual void showStatusMsg(const char *text) { }
- virtual int get_latency() { return 0; }
- virtual void notifyBufferState(int bufferstate) { }
- virtual int extended(int param1, int param2, int param3) { return 0; }
- };
- class ITrackSelector
- {
- public:
- virtual int getNumAudioTracks()=0;
- virtual void enumAudioTrackName(int n, const char *buf, int size)=0;
- virtual int getCurAudioTrack()=0;
- virtual int getNumVideoTracks()=0;
- virtual void enumVideoTrackName(int n, const char *buf, int size)=0;
- virtual int getCurVideoTrack()=0;
- virtual void setAudioTrack(int n)=0;
- virtual void setVideoTrack(int n)=0;
- };
- #endif
- #endif
- #define IPC_CB_WND_EQ 0
- #define IPC_CB_WND_PE 1
- #define IPC_CB_WND_MB 2
- #define IPC_CB_WND_VIDEO 3
- #define IPC_CB_WND_MAIN 4
- #define IPC_CB_ONSHOWWND 600
- #define IPC_CB_ONHIDEWND 601
- #define IPC_CB_GETTOOLTIP 602
- #define IPC_CB_MISC 603
- #define IPC_CB_MISC_TITLE 0
- #define IPC_CB_MISC_VOLUME 1
- #define IPC_CB_MISC_STATUS 2
- #define IPC_CB_MISC_EQ 3
- #define IPC_CB_MISC_INFO 4
- #define IPC_CB_MISC_VIDEOINFO 5
- #define IPC_CB_CONVERT_STATUS 604
- #define IPC_CB_CONVERT_DONE 605
- #define IPC_ADJUST_FFWINDOWSMENUPOS 606
- #define IPC_ISDOUBLESIZE 608
- #define IPC_ADJUST_FFOPTIONSMENUPOS 609
- #define IPC_GETTIMEDISPLAYMODE 610
- #define IPC_SETVISWND 611
- #define ID_VIS_NEXT 40382
- #define ID_VIS_PREV 40383
- #define ID_VIS_RANDOM 40384
- #define ID_VIS_FS 40389
- #define ID_VIS_CFG 40390
- #define ID_VIS_MENU 40391
- #define IPC_GETVISWND 612
- #define IPC_ISVISRUNNING 613
- #define IPC_CB_VISRANDOM 628
- #define IPC_SETIDEALVIDEOSIZE 614
- #define IPC_GETSTOPONVIDEOCLOSE 615
- #define IPC_SETSTOPONVIDEOCLOSE 616
- typedef struct {
- HWND hwnd;
- int uMsg;
- int wParam;
- int lParam;
- } transAccelStruct;
- #define IPC_TRANSLATEACCELERATOR 617
- typedef struct {
- int cmd;
- int x;
- int y;
- int align;
- } windowCommand;
- #define IPC_CB_ONTOGGLEAOT 618
- #define IPC_GETPREFSWND 619
- #define IPC_SET_PE_WIDTHHEIGHT 620
- #define IPC_GETLANGUAGEPACKINSTANCE 621
- #define IPC_CB_PEINFOTEXT 622
- #define IPC_CB_OUTPUTCHANGED 623
- #define IPC_GETOUTPUTPLUGIN 625
- #define IPC_SETDRAWBORDERS 626
- #define IPC_DISABLESKINCURSORS 627
- #define IPC_CB_RESETFONT 629
- #define IPC_IS_FULLSCREEN 630
- #define IPC_SET_VIS_FS_FLAG 631
- #define IPC_SHOW_NOTIFICATION 632
- #define IPC_GETSKININFO 633
- #define IPC_GET_MANUALPLADVANCE 634
- #define IPC_SET_MANUALPLADVANCE 635
- #define IPC_GET_NEXT_PLITEM 636
- #define IPC_GET_PREVIOUS_PLITEM 637
- #define IPC_IS_WNDSHADE 638
- #define IPC_SETRATING 639
- #define IPC_GETRATING 640
- #define IPC_GETNUMAUDIOTRACKS 641
- #define IPC_GETNUMVIDEOTRACKS 642
- #define IPC_GETAUDIOTRACK 643
- #define IPC_GETVIDEOTRACK 644
- #define IPC_SETAUDIOTRACK 645
- #define IPC_SETVIDEOTRACK 646
- #define IPC_PUSH_DISABLE_EXIT 647
- #define IPC_POP_DISABLE_EXIT 648
- #define IPC_IS_EXIT_ENABLED 649
- #define IPC_IS_AOT 650
- #define IPC_USES_RECYCLEBIN 651
- #define IPC_PLCMD 1000
- #define PLCMD_ADD 0
- #define PLCMD_REM 1
- #define PLCMD_SEL 2
- #define PLCMD_MISC 3
- #define PLCMD_LIST 4
- #define IPC_MBCMD 1001
- #define MBCMD_BACK 0
- #define MBCMD_FORWARD 1
- #define MBCMD_STOP 2
- #define MBCMD_RELOAD 3
- #define MBCMD_MISC 4
- #define IPC_VIDCMD 1002
- #define VIDCMD_FULLSCREEN 0
- #define VIDCMD_1X 1
- #define VIDCMD_2X 2
- #define VIDCMD_LIB 3
- #define VIDPOPUP_MISC 4
- #define IPC_MBURL 1003
- #define IPC_MBGETCURURL 1004
- #define IPC_MBGETDESC 1005
- #define IPC_MBCHECKLOCFILE 1006
- #define IPC_MBREFRESH 1007
- #define IPC_MBGETDEFURL 1008
- #define IPC_STATS_LIBRARY_ITEMCNT 1300
- #define IPC_FF_FIRST 2000
- #define IPC_FF_LAST 3000
- #define IPC_GETDROPTARGET 3001
- #define IPC_PLAYLIST_MODIFIED 3002
- #define IPC_PLAYING_FILE 3003
- #define IPC_FILE_TAG_MAY_HAVE_UPDATED 3004
- #define IPC_ALLOW_PLAYTRACKING 3007
- #define IPC_HOOK_OKTOQUIT 3010
- #define IPC_WRITECONFIG 3011
- #define IPC_TOGGLE_RESIZE 3012
- #define IPC_SHOW_AD_URL 3013
- #define IPC_SHOW_HWND 3014
- #define IPC_REGISTER_WINAMP_IPCMESSAGE 65536
- #endif
|