-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhwman.idl
198 lines (181 loc) · 8.04 KB
/
hwman.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
#ifndef hwman_idl
#define hwman_idl
#include <wphwmgr.idl>
#include <datacls.idl>
typedef somToken PFN_GETUNIQUEID;
typedef somToken PFN_GETPARENTID;
typedef somToken PFN_GETNODETYPE;
typedef somToken PFN_GETNODEBASETYPE;
typedef somToken PFN_GETNODESUBTYPE;
typedef somToken PFN_SETUNIQUEID;
typedef somToken PFN_SETPARENTID;
typedef somToken PFN_SETNODETYPE;
typedef somToken PFN_SETNODEBASETYPE;
typedef somToken PFN_SETNODESUBTYPE;
typedef somToken PFN_SETDDDATE;
typedef somToken PFN_SETDEVICEDRIVER;
typedef somToken PFN_SETDDNAME;
typedef somToken PFN_SETDDVENDOR;
typedef somToken PFN_SETDDVERSION;
typedef somToken PFN_ADDIRQRESOURCE;
typedef somToken PFN_ADDDMARESOURCE;
typedef somToken PFN_ADDIORESOURCE;
typedef somToken PFN_ADDMEMORYRESOURCE;
typedef somToken PFN_WPREQUESTFOLDERMUTEXSEM;
typedef somToken PFN_WPRELEASEFOLDERMUTEXSEM;
typedef somToken PFN_WPREQUESTFINDMUTEXSEM;
typedef somToken PFN_WPRELEASEFINDMUTEXSEM;
typedef somToken TID;
typedef somToken HMQ;
interface M_WPHwManagerEx;
interface WPHwManagerEx : WPHwManager
{
#ifdef __SOMIDL__
implementation
{
local;
majorversion = 1;
minorversion = 1;
metaclass = M_WPHwManagerEx;
callstyle = oidl;
filestem = hwman;
dllname = "hwman.dll";
somDefaultInit :init,override;
somDestruct :override;
wpPopulate :override;
wpInitData :override;
wpAddToObjUseList :override;
wpDeleteFromObjUseList :override;
passthru C_xh_before = ""
"#define INCL_PM"
"#define INCL_BASE"
"#include <os2.h>"
"";
passthru C_xih_after = ""
"#include <wpaudio.xh>"
"#include <wpbus.xh>"
"#include <wpcdrom.xh>"
"#include <wpcpu.xh>"
"#include <wpdskett.xh>"
"#include <wpdisply.xh>"
"#include <wphrddrv.xh>"
"#include <wpkeybdd.xh>"
"#include <wpmem.xh>"
"#include <wpmoused.xh>"
"#include <wpparal.xh>"
"#include <wpperiph.xh>"
"#include <wpserial.xh>"
"#include <wptape.xh>"
"#include <wptimer.xh>"
"#include <stdio.h>"
"#include <rmcalls.h>"
"typedef RMHANDLE (SOMLINK FN_GETUNIQUEID)(WPDevice *somSelf);"
"typedef FN_GETUNIQUEID *PFN_GETUNIQUEID;"
"typedef RMHANDLE (SOMLINK FN_GETPARENTID)(WPDevice *somSelf);"
"typedef FN_GETPARENTID *PFN_GETPARENTID;"
"typedef ULONG (SOMLINK FN_GETNODETYPE)(WPDevice *somSelf);"
"typedef FN_GETNODETYPE *PFN_GETNODETYPE;"
"typedef USHORT (SOMLINK FN_GETNODEBASETYPE)(WPDevice *somSelf);"
"typedef FN_GETNODEBASETYPE *PFN_GETNODEBASETYPE;"
"typedef USHORT (SOMLINK FN_GETNODESUBTYPE)(WPDevice *somSelf);"
"typedef FN_GETNODESUBTYPE *PFN_GETNODESUBTYPE;"
"typedef VOID (SOMLINK FN_SETUNIQUEID)(WPDevice *somSelf,RMHANDLE rmHandle);"
"typedef FN_SETUNIQUEID *PFN_SETUNIQUEID;"
"typedef VOID (SOMLINK FN_SETPARENTID)(WPDevice *somSelf,RMHANDLE rmHandle);"
"typedef FN_SETPARENTID *PFN_SETPARENTID;"
"typedef VOID (SOMLINK FN_SETNODETYPE)(WPDevice *somSelf,ULONG nodeType);"
"typedef FN_SETNODETYPE *PFN_SETNODETYPE;"
"typedef VOID (SOMLINK FN_SETNODEBASETYPE)(WPDevice *somSelf,USHORT nodeBaseType);"
"typedef FN_SETNODEBASETYPE *PFN_SETNODEBASETYPE;"
"typedef VOID (SOMLINK FN_SETNODESUBTYPE)(WPDevice *somSelf,USHORT nodeSubType);"
"typedef FN_SETNODESUBTYPE *PFN_SETNODESUBTYPE;"
"typedef VOID (SOMLINK FN_SETDDDATE)(WPDevice *somSelf,PFDATE pDate);"
"typedef FN_SETDDDATE *PFN_SETDDDATE;"
"typedef VOID (SOMLINK FN_SETDEVICEDRIVER)(WPDevice *somSelf,PSZ pString);"
"typedef FN_SETDEVICEDRIVER *PFN_SETDEVICEDRIVER;"
"typedef VOID (SOMLINK FN_SETDDNAME)(WPDevice *somSelf,PSZ pString);"
"typedef FN_SETDDNAME *PFN_SETDDNAME;"
"typedef VOID (SOMLINK FN_SETDDVENDOR)(WPDevice *somSelf,PSZ pString);"
"typedef FN_SETDDVENDOR *PFN_SETDDVENDOR;"
"typedef VOID (SOMLINK FN_SETDDVERSION)(WPDevice *somSelf,PSZ pString);"
"typedef FN_SETDDVERSION *PFN_SETDDVERSION;"
"typedef VOID (SOMLINK FN_ADDIRQRESOURCE)(WPDevice *somSelf,PIRQRESOURCE pIRQResource);"
"typedef FN_ADDIRQRESOURCE *PFN_ADDIRQRESOURCE;"
"typedef VOID (SOMLINK FN_ADDDMARESOURCE)(WPDevice *somSelf,PDMARESOURCE pDMAResource);"
"typedef FN_ADDDMARESOURCE *PFN_ADDDMARESOURCE;"
"typedef VOID (SOMLINK FN_ADDIORESOURCE)(WPDevice *somSelf,PIORESOURCE pIOResource);"
"typedef FN_ADDIORESOURCE *PFN_ADDIORESOURCE;"
"typedef VOID (SOMLINK FN_ADDMEMORYRESOURCE)(WPDevice *somSelf,PMEMRESOURCE pMemResource);"
"typedef FN_ADDMEMORYRESOURCE *PFN_ADDMEMORYRESOURCE;"
"typedef VOID (SOMLINK FN_SETIOPORTS)(WPDevice *somSelf,PSZ pszResource);"
"typedef FN_SETIOPORTS *PFN_SETIOPORTS;"
"typedef BOOL (SOMLINK FN_WPASSERTFOLDERMUTEXSEM)(WPHwManagerEx *somSelf);"
"typedef FN_WPASSERTFOLDERMUTEXSEM *PFN_WPASSERTFOLDERMUTEXSEM;"
"typedef ULONG (SOMLINK FN_WPREQUESTFOLDERMUTEXSEM)(WPHwManagerEx *somSelf,ULONG ulTimeOut);"
"typedef FN_WPREQUESTFOLDERMUTEXSEM *PFN_WPREQUESTFOLDERMUTEXSEM;"
"typedef ULONG (SOMLINK FN_WPRELEASEFOLDERMUTEXSEM)(WPHwManagerEx *somSelf);"
"typedef FN_WPRELEASEFOLDERMUTEXSEM *PFN_WPRELEASEFOLDERMUTEXSEM;"
"typedef ULONG (SOMLINK FN_WPREQUESTFINDMUTEXSEM)(WPHwManagerEx *somSelf,ULONG ulTimeOut);"
"typedef FN_WPREQUESTFINDMUTEXSEM *PFN_WPREQUESTFINDMUTEXSEM;"
"typedef ULONG (SOMLINK FN_WPRELEASEFINDMUTEXSEM)(WPHwManagerEx *somSelf);"
"typedef FN_WPRELEASEFINDMUTEXSEM *PFN_WPRELEASEFINDMUTEXSEM;"
"//add missing definition for RMEnumNodes: it was determined experimentally ..."
"APIRET CDECL FAR RMEnumNodes(PRM_ENUMNODES_PARM parm,PRM_ENUMNODES_DATA data,ULONG dLen);"
""
"#ifdef __cplusplus"
"extern \"C\" {"
"#endif"
"ULONG APIENTRY _DLL_InitTerm(ULONG modhandle,ULONG flag);"
"int _CRT_init(void);"
"void _CRT_term(void);"
"void __ctordtorInit(void);"
"void __ctordtorTerm(void);"
"#ifdef __cplusplus"
"}"
"#endif"
"";
HMQ hmqRefreshThread;
};
#endif
};
interface M_WPHwManagerEx : M_WPHwManager
{
#ifdef __SOMIDL__
implementation
{
local;
majorversion = 1;
minorversion = 1;
callstyle = oidl;
filestem = hwman;
dllname = "hwman.dll";
wpclsInitData :override;
wpclsUnInitData :override;
wpclsQueryDefaultView :override;
passthru C_xh_before = ""
"#include <datacls.xh>"
"";
PFN_SETUNIQUEID wpSetUniqueID;
PFN_SETPARENTID wpSetParentID;
PFN_SETNODETYPE wpSetNodeType;
PFN_SETNODEBASETYPE wpSetNodeBaseType;
PFN_SETNODESUBTYPE wpSetNodeSubType;
PFN_SETDDDATE wpSetDDDate;
PFN_SETDEVICEDRIVER wpSetDeviceDriver;
PFN_SETDDNAME wpSetDDName;
PFN_SETDDVENDOR wpSetDDVendor;
PFN_SETDDVERSION wpSetDDVersion;
PFN_ADDIRQRESOURCE wpAddIRQResource;
PFN_ADDDMARESOURCE wpAddDMAResource;
PFN_ADDIORESOURCE wpAddIOResource;
PFN_ADDMEMORYRESOURCE wpAddMemoryResource;
PFN_GETUNIQUEID wpGetUniqueID;
PFN_WPREQUESTFOLDERMUTEXSEM wpRequestFolderMutexSem;
PFN_WPRELEASEFOLDERMUTEXSEM wpReleaseFolderMutexSem;
PFN_WPREQUESTFINDMUTEXSEM wpRequestFindMutexSem;
PFN_WPRELEASEFINDMUTEXSEM wpReleaseFindMutexSem;
USBDeviceCollection pUSBColl;
};
#endif
};
#endif