Last change
on this file since 1163 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1046] | 1 | #ifndef _CPL_H
|
---|
| 2 | #define _CPL_H
|
---|
| 3 | #if __GNUC__ >=3
|
---|
| 4 | #pragma GCC system_header
|
---|
| 5 | #endif
|
---|
| 6 |
|
---|
| 7 | #ifdef __cplusplus
|
---|
| 8 | extern "C" {
|
---|
| 9 | #endif
|
---|
| 10 | #define WM_CPL_LAUNCH (WM_USER+1000)
|
---|
| 11 | #define WM_CPL_LAUNCHED (WM_USER+1001)
|
---|
| 12 | #define CPL_DYNAMIC_RES 0
|
---|
| 13 | #define CPL_INIT 1
|
---|
| 14 | #define CPL_GETCOUNT 2
|
---|
| 15 | #define CPL_INQUIRE 3
|
---|
| 16 | #define CPL_SELECT 4
|
---|
| 17 | #define CPL_DBLCLK 5
|
---|
| 18 | #define CPL_STOP 6
|
---|
| 19 | #define CPL_EXIT 7
|
---|
| 20 | #define CPL_NEWINQUIRE 8
|
---|
| 21 | #define CPL_STARTWPARMSA 9
|
---|
| 22 | #define CPL_STARTWPARMSW 10
|
---|
| 23 | #define CPL_SETUP 200
|
---|
| 24 | typedef LONG(APIENTRY *APPLET_PROC)(HWND,UINT,LONG,LONG);
|
---|
| 25 | typedef struct tagCPLINFO {
|
---|
| 26 | int idIcon;
|
---|
| 27 | int idName;
|
---|
| 28 | int idInfo;
|
---|
| 29 | LONG lData;
|
---|
| 30 | } CPLINFO,*LPCPLINFO;
|
---|
| 31 | typedef struct tagNEWCPLINFOA {
|
---|
| 32 | DWORD dwSize;
|
---|
| 33 | DWORD dwFlags;
|
---|
| 34 | DWORD dwHelpContext;
|
---|
| 35 | LONG lData;
|
---|
| 36 | HICON hIcon;
|
---|
| 37 | CHAR szName[32];
|
---|
| 38 | CHAR szInfo[64];
|
---|
| 39 | CHAR szHelpFile[128];
|
---|
| 40 | } NEWCPLINFOA,*LPNEWCPLINFOA;
|
---|
| 41 | typedef struct tagNEWCPLINFOW {
|
---|
| 42 | DWORD dwSize;
|
---|
| 43 | DWORD dwFlags;
|
---|
| 44 | DWORD dwHelpContext;
|
---|
| 45 | LONG lData;
|
---|
| 46 | HICON hIcon;
|
---|
| 47 | WCHAR szName[32];
|
---|
| 48 | WCHAR szInfo[64];
|
---|
| 49 | WCHAR szHelpFile[128];
|
---|
| 50 | } NEWCPLINFOW,*LPNEWCPLINFOW;
|
---|
| 51 | #ifdef UNICODE
|
---|
| 52 | #define CPL_STARTWPARMS CPL_STARTWPARMSW
|
---|
| 53 | typedef NEWCPLINFOW NEWCPLINFO,*LPNEWCPLINFO;
|
---|
| 54 | #else
|
---|
| 55 | #define CPL_STARTWPARMS CPL_STARTWPARMSA
|
---|
| 56 | typedef NEWCPLINFOA NEWCPLINFO,*LPNEWCPLINFO;
|
---|
| 57 | #endif
|
---|
| 58 | #ifdef __cplusplus
|
---|
| 59 | }
|
---|
| 60 | #endif
|
---|
| 61 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.