Sync with trunk (r48545)
[reactos.git] / include / psdk / cpl.h
1 #ifndef _CPL_H
2 #define _CPL_H
3
4 #include <pshpack1.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 #define WM_CPL_LAUNCH (WM_USER+1000)
10 #define WM_CPL_LAUNCHED (WM_USER+1001)
11 #define CPL_DYNAMIC_RES 0
12 #define CPL_INIT 1
13 #define CPL_GETCOUNT 2
14 #define CPL_INQUIRE 3
15 #define CPL_SELECT 4
16 #define CPL_DBLCLK 5
17 #define CPL_STOP 6
18 #define CPL_EXIT 7
19 #define CPL_NEWINQUIRE 8
20 #define CPL_STARTWPARMSA 9
21 #define CPL_STARTWPARMSW 10
22 #define CPL_SETUP 200
23 typedef LONG(APIENTRY *APPLET_PROC)(HWND,UINT,LPARAM,LPARAM);
24 typedef struct tagCPLINFO {
25 int idIcon;
26 int idName;
27 int idInfo;
28 LONG_PTR lData;
29 } CPLINFO,*LPCPLINFO;
30 typedef struct tagNEWCPLINFOA {
31 DWORD dwSize;
32 DWORD dwFlags;
33 DWORD dwHelpContext;
34 LONG_PTR lData;
35 HICON hIcon;
36 CHAR szName[32];
37 CHAR szInfo[64];
38 CHAR szHelpFile[128];
39 } NEWCPLINFOA,*LPNEWCPLINFOA;
40 typedef struct tagNEWCPLINFOW {
41 DWORD dwSize;
42 DWORD dwFlags;
43 DWORD dwHelpContext;
44 LONG_PTR lData;
45 HICON hIcon;
46 WCHAR szName[32];
47 WCHAR szInfo[64];
48 WCHAR szHelpFile[128];
49 } NEWCPLINFOW,*LPNEWCPLINFOW;
50 #ifdef UNICODE
51 #define CPL_STARTWPARMS CPL_STARTWPARMSW
52 typedef NEWCPLINFOW NEWCPLINFO,*LPNEWCPLINFO;
53 #else
54 #define CPL_STARTWPARMS CPL_STARTWPARMSA
55 typedef NEWCPLINFOA NEWCPLINFO,*LPNEWCPLINFO;
56 #endif
57 #ifdef __cplusplus
58 }
59 #endif
60 #include <poppack.h>
61 #endif
62