OSDN Git Service

Timeval struct bitness issue [#2059]
[mingw/mingw-org-wsl.git] / include / cpl.h
1 /**
2  * @file cpl.h
3  * Copyright 2012, 2013 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _CPL_H
25 #define _CPL_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #define WM_CPL_LAUNCH (WM_USER+1000)
34 #define WM_CPL_LAUNCHED (WM_USER+1001)
35 #define CPL_DYNAMIC_RES 0
36 #define CPL_INIT 1
37 #define CPL_GETCOUNT 2
38 #define CPL_INQUIRE 3
39 #define CPL_SELECT 4
40 #define CPL_DBLCLK 5
41 #define CPL_STOP 6
42 #define CPL_EXIT 7
43 #define CPL_NEWINQUIRE 8
44 #define CPL_STARTWPARMSA 9
45 #define CPL_STARTWPARMSW 10
46 #define CPL_SETUP 200
47 typedef LONG(APIENTRY *APPLET_PROC)(HWND,UINT,LONG,LONG);
48 typedef struct tagCPLINFO {
49         int idIcon;
50         int idName;
51         int idInfo;
52         LONG lData;
53 } CPLINFO,*LPCPLINFO;
54 typedef struct tagNEWCPLINFOA {
55         DWORD dwSize;
56         DWORD dwFlags;
57         DWORD dwHelpContext;
58         LONG lData;
59         HICON hIcon;
60         CHAR szName[32];
61         CHAR szInfo[64];
62         CHAR szHelpFile[128];
63 } NEWCPLINFOA,*LPNEWCPLINFOA;
64 typedef struct tagNEWCPLINFOW {
65         DWORD dwSize;
66         DWORD dwFlags;
67         DWORD dwHelpContext;
68         LONG lData;
69         HICON hIcon;
70         WCHAR szName[32];
71         WCHAR szInfo[64];
72         WCHAR szHelpFile[128];
73 } NEWCPLINFOW,*LPNEWCPLINFOW;
74 #define CPL_STARTWPARMS __AW(CPL_STARTWPARMS)
75 typedef __AW(NEWCPLINFO) NEWCPLINFO,*LPNEWCPLINFO;
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif