1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172 |
- #ifndef _WA_IPC_H_
- #define _WA_IPC_H_
- #include <windows.h>
- #include <stddef.h>
- #if (_MSC_VER <= 1200)
- typedef int intptr_t;
- #endif
- #define WM_WA_IPC WM_USER
- #define WINAMP_VERSION_MAJOR(winampVersion) ((winampVersion & 0x0000FF00) >> 12)
- #define WINAMP_VERSION_MINOR(winampVersion) (winampVersion & 0x000000FF)
- #define IPC_GETVERSION 0
- #define IPC_GETVERSIONSTRING 1
- #define IPC_GETREGISTEREDVERSION 770
- #define IPC_IS_SAFEMODE 999
- typedef struct {
- const char *filename;
- const char *title;
- const char *ext;
- int length;
- } enqueueFileWithMetaStruct;
- typedef struct {
- const wchar_t *filename;
- const wchar_t *title;
- const wchar_t *ext;
- int length;
- } enqueueFileWithMetaStructW;
- #define IPC_PLAYFILE 100
- #define IPC_ENQUEUEFILE 100
- #define IPC_PLAYFILEW 1100
- #define IPC_ENQUEUEFILEW 1100
- #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_GETVOLUME(hwnd_winamp) SendMessageW(hwnd_winamp,WM_WA_IPC,-666,IPC_SETVOLUME)
- #define IPC_SETPANNING 123
- #define IPC_SETBALANCE 123
- #define IPC_GETPANNING(hwnd_winamp) SendMessageW(hwnd_winamp,WM_WA_IPC,-666,IPC_SETPANNING)
- #define IPC_GETBALANCE(hwnd_winamp) SendMessageW(hwnd_winamp,WM_WA_IPC,-666,IPC_SETBALANCE)
- #define IPC_GETLISTLENGTH 124
- #define IPC_GETLISTPOS 125
- #define IPC_GETNEXTLISTPOS 136
- #define IPC_GETINFO 126
- #define IPC_GETEQDATA 127
- #define IPC_SETEQDATA 128
- #define IPC_ADDBOOKMARK 129
- #define IPC_ADDBOOKMARKW 131
- #define IPC_INSTALLPLUGIN 130
- #define IPC_RESTARTWINAMP 135
- #define IPC_RESTARTSAFEWINAMP 1135
- #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_SETSKINW 199
- #define IPC_SETSKIN 200
- #define IPC_GETSKIN 201
- #define IPC_GETSKINW 1201
- #define IPC_EXECPLUG 202
- #define IPC_GETPLAYLISTFILE 211
- #define IPC_GETPLAYLISTFILEW 214
- #define IPC_GETPLAYLISTTITLE 212
- #define IPC_GETPLAYLISTTITLEW 213
- #define IPC_GETHTTPGETTER 240
- #define IPC_GETHTTPGETTERW 1240
- #define IPC_MBOPEN 241
- #define IPC_CHANGECURRENTFILE 245
- #define IPC_CHANGECURRENTFILEW 1245
- #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 {
- const char *filename;
- const char *metadata;
- char *ret;
- size_t retlen;
- } extendedFileInfoStruct;
- #define IPC_GET_BASIC_FILE_INFO 291
- typedef struct {
- const char *filename;
- int quickCheck;
-
- int length;
- char *title;
- int titlelen;
- } basicFileInfoStruct;
- #define IPC_GET_BASIC_FILE_INFOW 1291
- typedef struct {
- const wchar_t *filename;
- int quickCheck;
-
- int length;
- wchar_t *title;
- int titlelen;
- } basicFileInfoStructW;
- #define IPC_GET_EXTLIST 292
- #define IPC_GET_EXTLISTW 1292
- #define IPC_GET_PLAYLIST_EXTLISTW 282
- typedef struct {
- HWND parent;
- char *filename;
- } infoBoxParam;
- #define IPC_INFOBOX 293
- typedef struct {
- HWND parent;
- const wchar_t *filename;
- } infoBoxParamW;
- #define IPC_INFOBOXW 1293
- #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)(const char * tag, void * p);
- void (*TAGFREEFUNC)(char * tag,void * p);
- } waFormatTitle;
- #define IPC_FORMAT_TITLE_EXTENDED 298
- typedef struct
- {
- const wchar_t *filename;
- int useExtendedInfo;
- const wchar_t *spec;
- void *p;
- wchar_t *out;
- int out_len;
- wchar_t * (*TAGFUNC)(const wchar_t * tag, void * p);
- void (*TAGFREEFUNC)(wchar_t *tag, void *p);
- } waFormatTitleExtended;
- #define IPC_COPY_EXTENDED_FILE_INFO 299
- typedef struct
- {
- const char *source;
- const char *dest;
- } copyFileInfoStruct;
- #define IPC_COPY_EXTENDED_FILE_INFOW 1299
- typedef struct
- {
- const wchar_t *source;
- const wchar_t *dest;
- } copyFileInfoStructW;
- 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_GETUNCOMPRESSINTERFACE 331
- typedef struct _prefsDlgRec {
- HINSTANCE hInst;
- int dlgID;
- void *proc;
-
- char *name;
- intptr_t where;
-
-
-
-
-
-
- intptr_t _id;
- struct _prefsDlgRec *next;
- } prefsDlgRec;
- typedef struct _prefsDlgRecW {
- HINSTANCE hInst;
- int dlgID;
- void *proc;
-
- wchar_t *name;
- intptr_t where;
-
-
-
-
-
-
- intptr_t _id;
- struct _prefsDlgRec *next;
- } prefsDlgRecW;
- #define IPC_ADD_PREFS_DLG 332
- #define IPC_ADD_PREFS_DLGW 1332
- #define IPC_REMOVE_PREFS_DLG 333
- #define IPC_UPDATE_PREFS_DLG 342
- #define IPC_UPDATE_PREFS_DLGW 1342
- #define IPC_OPENPREFSTOPAGE 380
- #define IPC_GETINIFILE 334
- #define IPC_GETINIFILEW 1334
- #define IPC_GETINIDIRECTORY 335
- #define IPC_GETINIDIRECTORYW 1335
- #define IPC_GETPLUGINDIRECTORY 336
- #define IPC_GETPLUGINDIRECTORYW 1336
- #define IPC_GETM3UDIRECTORY 337
- #define IPC_GETM3UDIRECTORYW 338
- #define IPC_GETVISDIRECTORYW 339
- #define IPC_GETSKINDIRECTORYW 340
- #define IPC_GETDSPDIRECTORYW 341
- #define IPC_GETMLINIFILE 343
- #define IPC_GETMLINIFILEW 1343
- #define IPC_GETSHAREDDLLDIRECTORYW 1344
- #define IPC_SPAWNBUTTONPOPUP 361
- #define IPC_OPENURLBOX 360
- #define IPC_OPENFILEBOX 362
- #define IPC_OPENDIRBOX 363
- #define IPC_SETDIALOGBOXPARENT 364
- #define IPC_GETDIALOGBOXPARENT 365
- #define IPC_UPDATEDIALOGBOXPARENT 366
-
- #define IPC_DRO_MIN 401
- #define IPC_SET_JTF_COMPARATOR 409
- #define IPC_SET_JTF_COMPARATOR_W 410
- #define IPC_SET_JTF_DRAWTEXT 416
- #define IPC_SET_JTF_LOAD_MODE 426
- #define IPC_GET_JTF_LOAD_MODE(hwnd_winamp) SendMessageW(hwnd_winamp,WM_WA_IPC,-666,IPC_SET_JTF_LOAD_MODE)
- #define IPC_DRO_MAX 499
- #define IPC_GET_GENSKINBITMAP 503
- #ifdef __cplusplus
- class ifc_window;
- #endif
- typedef struct embedWindowState embedWindowState;
- #define FFC_CREATEEMBED 0
- #define FFC_DESTROYEMBED 1
- typedef int (CALLBACK *FFCALLBACK)(embedWindowState* , INT , LPARAM );
- typedef struct embedWindowState
- {
- HWND me;
- #define EMBED_FLAGS_NORESIZE 0x1
-
- #define EMBED_FLAGS_NOTRANSPARENCY 0x2
-
- #define EMBED_FLAGS_NOWINDOWMENU 0x4
-
- #define EMBED_FLAGS_GUID 0x8
-
- #define EMBED_FLAGS_FFCALLBACK 0x10
-
- #define EMBED_FLAGS_LEGACY_WND 0x20
-
-
- #define SET_EMBED_GUID(windowState, windowGUID) { windowState->flags |= EMBED_FLAGS_GUID; *((GUID *)&windowState->extra_data[4])=windowGUID; }
- #define GET_EMBED_GUID(windowState) (*((GUID *)&windowState->extra_data[4]))
- int flags;
- RECT r;
- void *user_ptr;
- union
- {
- #pragma warning(push)
- #pragma warning(disable:4201)
- #pragma pack(push, 1)
- struct
- {
- struct embedWindowState *link;
- intptr_t attached;
- intptr_t padding1[2];
- GUID guid;
- #ifdef _WIN64
- intptr_t guidpadding;
- #endif
- FFCALLBACK callback;
- intptr_t padding2[52];
- intptr_t hostcount;
- intptr_t reparenting;
- #ifdef __cplusplus
- ifc_window *wasabi_window;
- #else
- void *wasabi_window;
- #endif
- };
- #pragma warning(pop)
- #pragma pack(pop)
- intptr_t extra_data[64];
- };
- } embedWindowState;
- #define IPC_GET_EMBEDIF 505
- #define EWN_FIRST (0)
- typedef struct __EMBEDSHOW
- {
- NMHDR hdr;
- BOOL fShow;
- UINT nStatus;
- } EMBEDSHOW;
- #define EWN_SHOWWINDOW (EWN_FIRST + 0)
- #define IPC_SKINWINDOW 534
- #define SWF_NORESIZE EMBED_FLAGS_NORESIZE
- #define SWF_NOTRANSPARENCY EMBED_FLAGS_NOTRANSPARENCY
- #define SWF_NOWINDOWMENU EMBED_FLAGS_NOWINDOWMENU
- typedef struct __SKINWINDOWPARAM
- {
- INT cbSize;
- HWND hwndToSkin;
- GUID windowGuid;
- UINT flagsEx;
- FFCALLBACK callbackFF;
- } SKINWINDOWPARAM;
- typedef struct embedEnumStruct
- {
- int (*enumProc)(embedWindowState *ws, struct embedEnumStruct *param);
- int user_data;
- } embedEnumStruct;
- #define IPC_EMBED_ENUM 532
- #define IPC_EMBED_ISVALID 533
- #define IPC_EMBED_ADD_LEGACY 535
- #define IPC_EMBED_REMOVE_LEGACY 536
- #define IPC_EMBED_UPDATE_LEGACY_POS 537
- #define IPC_GET_EMBED_SNAPFUNC 538
- #define IPC_CONVERTFILE 506
- #ifdef __cplusplus
- class ifc_audiostream;
- class AudioCoder;
- #else
- typedef void *ifc_audiostream;
- typedef void *AudioCoder;
- #endif
- typedef struct
- {
- char *sourcefile;
- char *destfile;
- intptr_t destformat[8];
-
- HWND callbackhwnd;
-
-
- char *error;
- int bytes_done;
- int bytes_total;
- int bytes_out;
- int killswitch;
-
- ifc_audiostream *decoder;
- HANDLE convert_thread;
- HANDLE file_handle;
- AudioCoder *audio_coder;
- HMODULE encoder_mod;
- int bps;
- int channels;
- int sample_rate;
- intptr_t extra_data[56];
- } convertFileStruct;
- #define IPC_CONVERTFILEW 515
- typedef struct
- {
- wchar_t *sourcefile;
- wchar_t *destfile;
- intptr_t destformat[8];
-
- HWND callbackhwnd;
-
-
- wchar_t *error;
- int bytes_done;
- int bytes_total;
- int bytes_out;
- int killswitch;
-
- ifc_audiostream *decoder;
- HANDLE convert_thread;
- HANDLE file_handle;
- AudioCoder *audio_coder;
- HMODULE encoder_mod;
- int bps;
- int channels;
- int sample_rate;
- intptr_t extra_data[56];
- } convertFileStructW;
- #define IPC_CONVERTFILE_END 507
- #define IPC_CONVERTFILEW_END 516
- 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)(intptr_t user_data, const char *desc, int fourcc);
- intptr_t 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
- {
- convertFileStructW *cfs;
- int priority;
- } convertSetPriorityW;
- #define IPC_CONVERT_SET_PRIORITYW 517
- #define IPC_CONVERT_TEST 518
- typedef struct
- {
- unsigned int format;
- char *item;
- char *data;
- int len;
- char *configfile;
- } convertConfigItem;
- #define IPC_CONVERT_CONFIG_SET_ITEM 513
- #define IPC_CONVERT_CONFIG_GET_ITEM 514
- typedef struct
- {
- const char *filename;
- char *title;
- int length;
- int force_useformatting;
- } waHookTitleStruct;
- #define IPC_HOOK_TITLES 850
- typedef struct
- {
- const wchar_t *filename;
- wchar_t *title;
- int length;
- int force_useformatting;
- } waHookTitleStructW;
- #define IPC_HOOK_TITLESW 851
- #define IPC_GETSADATAFUNC 800
- #define IPC_GETVUDATAFUNC 801
- #define IPC_ISMAINWNDVISIBLE 900
- typedef struct
- {
- int numElems;
- int *elems;
- HBITMAP bm;
- } waSetPlColorsStruct;
- #define IPC_SETPLEDITCOLORS 920
- typedef struct
- {
- HWND wnd;
- int xpos;
- int ypos;
- } waSpawnMenuParms;
- typedef struct
- {
- HWND wnd;
- int xpos;
- int ypos;
- int width;
- int height;
- } waSpawnMenuParms2;
- #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
- #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
- #define VIDUSER_OPENVIDEORENDERER 0x1004
- #define VIDUSER_CLOSEVIDEORENDERER 0x1005
- #define VIDUSER_GETPOPUPMENU 0x1006
- #define VIDUSER_SET_INFOSTRINGW 0x1007
- #define VIDUSER_SET_THREAD_SAFE 0x1008
- #define VIDUSER_SET_PALETTE 0x1010
- #define IPC_HAS_VIDEO_SUPPORT 502
- typedef struct
- {
- int w;
- int h;
- int vflip;
- double aspectratio;
- unsigned int fmt;
- } VideoOpenStruct;
- #ifndef NO_IVIDEO_DECLARE
- #ifdef __cplusplus
- class VideoOutput;
- class SubsItem;
- #ifndef _NSV_DEC_IF_H_
- struct YV12_PLANE {
- unsigned char* baseAddr;
- long rowBytes;
- } ;
- struct YV12_PLANES {
- YV12_PLANE y;
- YV12_PLANE u;
- YV12_PLANE v;
- };
- #endif
- 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) { (void)token; (void)msgcallback; }
- virtual void close()=0;
- virtual void draw(void *frame)=0;
- virtual void drawSubtitle(SubsItem *item) {UNREFERENCED_PARAMETER(item); }
- virtual void showStatusMsg(const char *text) {UNREFERENCED_PARAMETER(text); }
- virtual int get_latency() { return 0; }
- virtual void notifyBufferState(int bufferstate) { UNREFERENCED_PARAMETER(bufferstate); }
- virtual INT_PTR extended(INT_PTR param1, INT_PTR param2, INT_PTR param3) { UNREFERENCED_PARAMETER(param1); UNREFERENCED_PARAMETER(param2); UNREFERENCED_PARAMETER(param3); return 0; }
- };
- class ITrackSelector
- {
- public:
- virtual int getNumAudioTracks()=0;
- virtual void enumAudioTrackName(int n, char *buf, int size)=0;
- virtual int getCurAudioTrack()=0;
- virtual int getNumVideoTracks()=0;
- virtual void enumVideoTrackName(int n, 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_GETTOOLTIPW 1602
- #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_MISC_TITLE_RATING 6
- #define IPC_CB_MISC_PAUSE 7
- #define IPC_CB_MISC_UNPAUSE 8
- #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;
- WPARAM wParam;
- LPARAM 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 LANG_IDENT_STR 0
- #define LANG_LANG_CODE 1
- #define LANG_COUNTRY_CODE 2
- #define IPC_CB_PEINFOTEXT 622
- #define IPC_CB_OUTPUTCHANGED 623
- #define IPC_GETOUTPUTPLUGIN 625
- #define IPC_SETDRAWBORDERS 626
- #define IPC_DISABLESKINCURSORS 627
- #define IPC_GETSKINCURSORS 628
- #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_GETSKININFOW 1633
- #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_GETPLAYITEM_START 653
- #define IPC_GETPLAYITEM_END 654
- #define IPC_GETVIDEORESIZE 655
- #define IPC_SETVIDEORESIZE 656
- #define IPC_INITIAL_SHOW_STATE 657
- #define IPC_GET_STOP_AFTER_CURRENT 658
- #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 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 VIDCMD_EXIT_FS 5
- #define IPC_STATS_LIBRARY_ITEMCNT 1300
- #define IPC_FF_FIRST 2000
- #define IPC_FF_COLOURTHEME_CHANGE IPC_FF_ONCOLORTHEMECHANGED
- #define IPC_FF_ONCOLORTHEMECHANGED IPC_FF_FIRST + 3
- #define IPC_FF_ISMAINWND IPC_FF_FIRST + 4
- #define IPC_FF_GETCONTENTWND IPC_FF_FIRST + 5
- #define IPC_FF_NOTIFYHOTKEY IPC_FF_FIRST + 6
- #define IPC_FF_LAST 3000
- #define IPC_GETDROPTARGET 3001
- #define IPC_PLAYLIST_MODIFIED 3002
- #define IPC_PLAYING_FILE 3003
- #define IPC_PLAYING_FILEW 13003
- #define IPC_FILE_TAG_MAY_UPDATEW 3046
- #define IPC_FILE_TAG_MAY_HAVE_UPDATED 3004
- #define IPC_FILE_TAG_MAY_HAVE_UPDATEDW 3005
- #define IPC_ALLOW_PLAYTRACKING 3007
- #define IPC_HOOK_OKTOQUIT 3010
- #define IPC_WRITECONFIG 3011
- #define IPC_UPDATE_URL 3012
- #define IPC_GET_RANDFUNC 3015
- #define IPC_METADATA_CHANGED 3017
- #define IPC_SKIN_CHANGED 3018
- #define IPC_REGISTER_LOWORD_COMMAND 3019
- typedef struct
- {
- wchar_t *name;
- struct IDispatch *dispatch;
- DWORD id;
- } DispatchInfo;
- #define IPC_GET_DISPATCH_OBJECT 3020
- #define IPC_GET_UNIQUE_DISPATCH_ID 3021
- #define IPC_ADD_DISPATCH_OBJECT 3022
- #define IPC_REMOVE_DISPATCH_OBJECT 3038
- #define IPC_GET_PROXY_STRING 3023
- #define IPC_USE_REGISTRY 3024
- #define IPC_GET_API_SERVICE 3025
- typedef struct {
- const wchar_t *filename;
- const wchar_t *metadata;
- wchar_t *ret;
- size_t retlen;
- } extendedFileInfoStructW;
- #define IPC_GET_EXTENDED_FILE_INFOW 3026
- #define IPC_GET_EXTENDED_FILE_INFOW_HOOKABLE 3027
- #define IPC_SET_EXTENDED_FILE_INFOW 3028
- #define IPC_PLAYLIST_GET_NEXT_SELECTED 3029
- #define IPC_PLAYLIST_GET_SELECTED_COUNT 3030
- #define IPC_GET_PLAYING_FILENAME 3031
- #define IPC_OPEN_URL 3032
- #define IPC_USE_UXTHEME_FUNC 3033
- #define IPC_ISWINTHEMEPRESENT 0
- #define IPC_ISAEROCOMPOSITIONACTIVE 1
- #define IPC_GET_PLAYING_TITLE 3034
- #define IPC_CANPLAY 3035
- typedef struct {
-
- size_t size;
- HWND parent;
-
- const wchar_t *artist;
- const wchar_t *album;
- int year, amgArtistId, amgAlbumId;
- int showCancelAll;
-
- void* imgData;
- int imgDataLen;
- wchar_t type[10];
- const wchar_t *gracenoteFileId;
- } artFetchData;
- #define IPC_FETCH_ALBUMART 3036
- #define IPC_JSAPI2_GET_DISPATCH_OBJECT 3037
- #define IPC_HANDLE_URI 3039
- #define IPC_PLAYFILEW_NDE 3040
- #define IPC_PLAYFILEW_NDE_TITLE 3041
- #define IPC_OUTPUT_STARTED 3042
- typedef struct {
- int last_time;
- int g_fullstop;
- } stopPlayingInfoStruct;
- #define IPC_STOPPLAYING 3043
- #define IPC_GET_D3DX9 3044
- #define IPC_GET_FILEREGISTRAR_OBJECT 3045
- #define IPC_SHELL_ACTION_START 3047
- #define IPC_SHELL_ACTION_END 3048
- #define IPC_REGISTER_WINAMP_IPCMESSAGE 65536
- #ifndef _WA_IPC_LEAN_H_
- #define WINAMP_OPTIONS_EQ 40036
- #define WINAMP_OPTIONS_PLEDIT 40040
- #define WINAMP_VOLUMEUP 40058
- #define WINAMP_VOLUMEDOWN 40059
- #define WINAMP_FFWD5S 40060
- #define WINAMP_REW5S 40061
- #define WINAMP_BUTTON1 40044
- #define WINAMP_BUTTON2 40045
- #define WINAMP_BUTTON3 40046
- #define WINAMP_BUTTON4 40047
- #define WINAMP_BUTTON5 40048
- #define WINAMP_BUTTON1_SHIFT 40144
- #define WINAMP_BUTTON2_SHIFT 40145
- #define WINAMP_BUTTON3_SHIFT 40146
- #define WINAMP_BUTTON4_SHIFT 40147
- #define WINAMP_BUTTON5_SHIFT 40148
- #define WINAMP_BUTTON1_CTRL 40154
- #define WINAMP_BUTTON2_CTRL 40155
- #define WINAMP_BUTTON3_CTRL 40156
- #define WINAMP_BUTTON4_CTRL 40157
- #define WINAMP_BUTTON5_CTRL 40158
- #define WINAMP_FILE_PLAY 40029
- #define WINAMP_FILE_DIR 40187
- #define WINAMP_OPTIONS_PREFS 40012
- #define WINAMP_OPTIONS_AOT 40019
- #define WINAMP_HELP_ABOUT 40041
- #define ID_MAIN_PLAY_AUDIOCD1 40323
- #define ID_MAIN_PLAY_AUDIOCD2 40324
- #define ID_MAIN_PLAY_AUDIOCD3 40325
- #define ID_MAIN_PLAY_AUDIOCD4 40326
- #define ID_MAIN_PLAY_AUDIOCD_SEP 40327
- #endif
- #endif
|