cpl.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_CPL
  7. #define _INC_CPL
  8. #include <_mingw_unicode.h>
  9. #include <pshpack1.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #define WM_CPL_LAUNCH (WM_USER+1000)
  14. #define WM_CPL_LAUNCHED (WM_USER+1001)
  15. #define CPL_DYNAMIC_RES 0
  16. #define CPL_INIT 1
  17. #define CPL_GETCOUNT 2
  18. #define CPL_INQUIRE 3
  19. #define CPL_SELECT 4
  20. #define CPL_DBLCLK 5
  21. #define CPL_STOP 6
  22. #define CPL_EXIT 7
  23. #define CPL_NEWINQUIRE 8
  24. #define CPL_STARTWPARMSA 9
  25. #define CPL_STARTWPARMSW 10
  26. typedef LONG (WINAPI *APPLET_PROC)(HWND hwndCpl,UINT msg,LPARAM lParam1,LPARAM lParam2);
  27. typedef struct tagCPLINFO {
  28. int idIcon;
  29. int idName;
  30. int idInfo;
  31. LONG_PTR lData;
  32. } CPLINFO,*LPCPLINFO;
  33. typedef struct tagNEWCPLINFOA {
  34. DWORD dwSize;
  35. DWORD dwFlags;
  36. DWORD dwHelpContext;
  37. LONG_PTR lData;
  38. HICON hIcon;
  39. CHAR szName[32];
  40. CHAR szInfo[64];
  41. CHAR szHelpFile[128];
  42. } NEWCPLINFOA,*LPNEWCPLINFOA;
  43. typedef struct tagNEWCPLINFOW {
  44. DWORD dwSize;
  45. DWORD dwFlags;
  46. DWORD dwHelpContext;
  47. LONG_PTR lData;
  48. HICON hIcon;
  49. WCHAR szName[32];
  50. WCHAR szInfo[64];
  51. WCHAR szHelpFile[128];
  52. } NEWCPLINFOW,*LPNEWCPLINFOW;
  53. __MINGW_TYPEDEF_AW(NEWCPLINFO)
  54. __MINGW_TYPEDEF_AW(LPNEWCPLINFO)
  55. #define CPL_STARTWPARMS __MINGW_NAME_AW(CPL_STARTWPARMS)
  56. #define CPL_SETUP 200
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #include <poppack.h>
  61. #endif