ipc_pe.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef __IPC_PE_H
  2. #define __IPC_PE_H
  3. #define IPC_PE_GETCURINDEX 100 // returns current idx
  4. #define IPC_PE_GETINDEXTOTAL 101 // returns number of items
  5. #define IPC_PE_GETINDEXINFO 102 // (copydata) lpData is of type callbackinfo, callback is called with copydata/fileinfo structure and msg IPC_PE_GETINDEXINFORESULT
  6. #define IPC_PE_GETINDEXINFORESULT 103 // callback message for IPC_PE_GETINDEXINFO
  7. #define IPC_PE_DELETEINDEX 104 // lParam = index
  8. #define IPC_PE_SWAPINDEX 105 // (lParam & 0xFFFF0000) >> 16 = from, (lParam & 0xFFFF) = to
  9. #define IPC_PE_INSERTFILENAME 106 // (copydata) lpData is of type fileinfo
  10. #define IPC_PE_GETDIRTY 107 // returns 1 if the playlist changed since the last IPC_PE_SETCLEAN
  11. #define IPC_PE_SETCLEAN 108 // resets the dirty flag until next modification
  12. #define IPC_PE_GETIDXFROMPOINT 109 // pass a point parm, return a playlist index
  13. #define IPC_PE_SAVEEND 110 // pass index to save from
  14. #define IPC_PE_RESTOREEND 111 // no parm
  15. #define IPC_PE_GETNEXTSELECTED 112 // same as IPC_PLAYLIST_GET_NEXT_SELECTED for the main window
  16. #define IPC_PE_GETSELECTEDCOUNT 113
  17. #define IPC_PE_INSERTFILENAMEW 114 // (copydata) lpData is of type fileinfoW
  18. #define IPC_PE_GETINDEXINFO_TITLE 115 // like IPC_PE_GETINDEXINFO, but writes the title to char file[MAX_PATH] instead of filename
  19. #define IPC_PE_GETINDEXINFORESULT_TITLE 116 // callback message for IPC_PE_GETINDEXINFO
  20. typedef struct {
  21. char file[MAX_PATH];
  22. int index;
  23. } fileinfo;
  24. typedef struct {
  25. wchar_t file[MAX_PATH];
  26. int index;
  27. } fileinfoW;
  28. typedef struct {
  29. HWND callback;
  30. int index;
  31. } callbackinfo;
  32. // the following messages are in_process ONLY
  33. #define IPC_PE_GETINDEXTITLE 200 // lParam = pointer to fileinfo2 struct
  34. #define IPC_PE_GETINDEXTITLEW 201 // lParam = pointer to fileinfo2W struct
  35. #define IPC_PE_GETINDEXINFO_INPROC 202 // lParam = pointer to fileinfo struct
  36. #define IPC_PE_GETINDEXINFOW_INPROC 203 // lParam = pointer to fileinfoW struct
  37. typedef struct {
  38. int fileindex;
  39. char filetitle[256];
  40. char filelength[16];
  41. } fileinfo2;
  42. typedef struct
  43. {
  44. int fileindex;
  45. wchar_t filetitle[256];
  46. wchar_t filelength[16];
  47. } fileinfo2W;
  48. #endif