gdi32/tests: Add some more tests for GetCharABCWidthsA.
[wine] / include / cfgmgr32.h
1 /*
2  * Copyright (C) 2005 Mike McCormack
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 #ifndef _CFGMGR32_H_
20 #define _CFGMGR32_H_
21
22 /* FIXME: #include <cfg.h> */
23
24 /* cfgmgr32 doesn't use the normal convention, it adds an underscore before A/W */
25 #ifdef WINE_NO_UNICODE_MACROS
26 # define DECL_WINELIB_CFGMGR32_TYPE_AW(type)  /* nothing */
27 #else
28 # define DECL_WINELIB_CFGMGR32_TYPE_AW(type)  typedef WINELIB_NAME_AW(type##_) type;
29 #endif
30
31 #define CMAPI
32 typedef DWORD CONFIGRET;
33
34 #define CR_SUCCESS                      0x00
35 #define CR_DEFAULT                      0x01
36 #define CR_OUT_OF_MEMORY                0x02
37 #define CR_INVALID_POINTER              0x03
38 #define CR_INVALID_FLAG                 0x04
39 #define CR_INVALID_DEVNODE              0x05
40 #define CR_INVALID_DEVINST              CR_INVALID_DEVNODE
41 #define CR_INVALID_RES_DES              0x06
42 #define CR_INVALID_LOG_CONF             0x07
43 #define CR_INVALID_ARBITRATOR           0x08
44 #define CR_INVALID_NODELIST             0x09
45 #define CR_DEVNODE_HAS_REQS             0x0a
46 #define CR_DEVINST_HAS_REQS             CR_DEVNODE_HAS_REQS
47 #define CR_INVALID_RESOURCEID           0x0b
48 #define CR_DLVXD_NOT_FOUND              0x0c
49 #define CR_NO_SUCH_DEVNODE              0x0d
50 #define CR_NO_SUCH_DEVINST              CR_NO_SUCH_DEVNODE
51 #define CR_NO_MORE_LOG_CONF             0x0e
52 #define CR_NO_MORE_RES_DES              0x0f
53 #define CR_ALREADY_SUCH_DEVNODE         0x10
54 #define CR_ALREADY_SUCH_DEVINST         CR_ALREADY_SUCH_DEVNODE
55 #define CR_INVALID_RANGE_LIST           0x11
56 #define CR_INVALID_RANGE                0x12
57 #define CR_FAILURE                      0x13
58 #define CR_NO_SUCH_LOGICAL_DEV          0x14
59 #define CR_CREATE_BLOCKED               0x15
60 #define CR_NOT_SYSTEM_VM                0x16
61 #define CR_REMOVE_VETOED                0x17
62 #define CR_APM_VETOED                   0x18
63 #define CR_INVALID_LOAD_TYPE            0x19
64 #define CR_BUFFER_SMALL                 0x1a
65 #define CR_NO_ARBITRATOR                0x1b
66 #define CR_NO_REGISTRY_HANDLE           0x1c
67 #define CR_REGISTRY_ERROR               0x1d
68 #define CR_INVALID_DEVICE_ID            0x1e
69 #define CR_INVALID_DATA                 0x1f
70 #define CR_INVALID_API                  0x20
71 #define CR_DEVLOADER_NOT_READY          0x21
72 #define CR_NEED_RESTART                 0x22
73 #define CR_NO_MORE_HW_PROFILES          0x23
74 #define CR_DEVICE_NOT_THERE             0x24
75 #define CR_NO_SUCH_VALUE                0x25
76 #define CR_WRONG_TYPE                   0x26
77 #define CR_INVALID_PRIORITY             0x27
78 #define CR_NOT_DISABLEABLE              0x28
79 #define CR_FREE_RESOURCES               0x29
80 #define CR_QUERY_VETOED                 0x2a
81 #define CR_CANT_SHARE_IRQ               0x2b
82 #define CR_NO_DEPENDENT                 0x2c
83 #define CR_SAME_RESOURCES               0x2d
84 #define CR_NO_SUCH_REGISTRY_KEY         0x2e
85 #define CR_INVALID_MACHINENAME          0x2f
86 #define CR_REMOTE_COMM_FAILURE          0x30
87 #define CR_MACHINE_UNAVAILABLE          0x31
88 #define CR_NO_CM_SERVICES               0x32
89 #define CR_ACCESS_DENIED                0x33
90 #define CR_CALL_NOT_IMPLEMENTED         0x34
91 #define CR_INVALID_PROPERTY             0x35
92 #define CR_DEVICE_INTERFACE_ACTIVE      0x36
93 #define CR_NO_SUCH_DEVICE_INTERFACE     0x37
94 #define CR_INVALID_REFERENCE_STRING     0x38
95 #define CR_INVALID_CONFLICT_LIST        0x39
96 #define CR_INVALID_INDEX                0x3a
97 #define CR_INVALID_STRUCTURE_SIZE       0x3b
98 #define NUM_CR_RESULTS                  0x3c
99
100 #define MAX_DEVICE_ID_LEN               200
101 #define MAX_DEVNODE_ID_LEN              MAX_DEVICE_ID_LEN
102
103 #define MAX_CLASS_NAME_LEN              32
104 #define MAX_GUID_STRING_LEN             39
105 #define MAX_PROFILE_LEN                 80
106
107 typedef DWORD DEVINST, *PDEVINST;
108 typedef DWORD DEVNODE, *PDEVNODE;
109 typedef HANDLE HMACHINE, *PHMACHINE;
110 typedef CHAR *DEVNODEID_A, *DEVINSTID_A;
111 typedef WCHAR *DEVNODEID_W, *DEVINSTID_W;
112
113 DECL_WINELIB_CFGMGR32_TYPE_AW(DEVNODEID)
114 DECL_WINELIB_CFGMGR32_TYPE_AW(DEVINSTID)
115
116 #ifdef __cplusplus
117 extern "C" {
118 #endif
119
120 CMAPI CONFIGRET WINAPI CM_Connect_MachineA(PCSTR,PHMACHINE);
121 CMAPI CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR,PHMACHINE);
122 #define     CM_Connect_Machine WINELIB_NAME_AW(CM_Connect_Machine)
123 CMAPI CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST,DEVINSTID_A,DEVINST,ULONG);
124 CMAPI CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST,DEVINSTID_W,DEVINST,ULONG);
125 #define     CM_Create_DevNode WINELIB_NAME_AW(CM_Create_DevNode)
126 CMAPI CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE);
127 CMAPI CONFIGRET WINAPI CM_Get_Device_IDA(DEVINST,PSTR,ULONG,ULONG);
128 CMAPI CONFIGRET WINAPI CM_Get_Device_IDW(DEVINST,PWSTR,ULONG,ULONG);
129 #define     CM_Get_Device_ID WINELIB_NAME_AW(CM_Get_Device_ID)
130 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExA(DEVINST,PSTR,ULONG,ULONG,HMACHINE);
131 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExW(DEVINST,PWSTR,ULONG,ULONG,HMACHINE);
132 #define     CM_Get_Device_ID_Ex WINELIB_NAME_AW(CM_Get_Device_ID_Ex)
133 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListA(PCSTR,PCHAR,ULONG,ULONG);
134 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListW(PCWSTR,PWCHAR,ULONG,ULONG);
135 #define     CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List)
136 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExA(PCSTR,PCHAR,ULONG,ULONG,HMACHINE);
137 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW(PCWSTR,PWCHAR,ULONG,ULONG,HMACHINE);
138 #define     CM_Get_Device_ID_List_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Ex)
139 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size(PULONG,DEVINST,ULONG);
140 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE);
141 CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST,DEVINSTID_A,ULONG);
142 CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST,DEVINSTID_W,ULONG);
143 #define     CM_Locate_DevNode WINELIB_NAME_AW(CM_Locate_DevNode)
144
145 #ifdef __cplusplus
146 }
147 #endif
148
149 #undef DECL_WINELIB_CFGMGR32_TYPE_AW
150
151 #endif /* _CFGMGR32_H_ */