summaryrefslogtreecommitdiff
path: root/librpc/idl/ntsvcs.idl
blob: cfafbead6c18e7f867575aa35941e15907f6dba0 (plain)
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/*
  plug and play services
*/

[
  uuid("8d9f4e40-a03d-11ce-8f69-08003e30051b"),
  version(1.0),
  helpstring("Plug and Play services")
]
interface ntsvcs
{
	/******************/
	/* Function: 0x00 */

	[todo] WERROR PNP_Disconnect();

	/******************/
	/* Function: 0x01 */

	[todo] WERROR PNP_Connect();

	/******************/
	/* Function: 0x02 */

	WERROR PNP_GetVersion(
		[out,ref] uint16 *version
		);

	/******************/
	/* Function: 0x03 */

	[todo] WERROR PNP_GetGlobalState();

	/******************/
	/* Function: 0x04 */

	[todo] WERROR PNP_InitDetection();

	/******************/
	/* Function: 0x05 */

	[todo] WERROR PNP_ReportLogOn();

	/******************/
	/* Function: 0x06 */

	WERROR PNP_ValidateDeviceInstance(
		[in,ref] [string,charset(UTF16)] uint16 *devicepath,
		[in] uint32 flags
		);

	/******************/
	/* Function: 0x07 */

	[todo] WERROR PNP_GetRootDeviceInstance();

	/******************/
	/* Function: 0x08 */

	[todo] WERROR PNP_GetRelatedDeviceInstance();

	/******************/
	/* Function: 0x09 */

	[todo] WERROR PNP_EnumerateSubKeys();

	/******************/
	/* Function: 0x0a */

	[todo] WERROR PNP_GetDeviceList();

	/******************/
	/* Function: 0x0b */

	WERROR PNP_GetDeviceListSize(
		[in,unique] [string,charset(UTF16)] uint16 *devicename,
		[out,ref] uint32 *size,
		[in] uint32 flags
		);

	/******************/
	/* Function: 0x0c */

	[todo] WERROR PNP_GetDepth();

	/******************/
	/* Function: 0x0d */

	const int DEV_REGPROP_DESC = 1;

	WERROR PNP_GetDeviceRegProp(
		[in,ref] [string,charset(UTF16)] uint16 *devicepath,
		[in] uint32 property,
		[in,out,ref] uint32 *unknown1,
		[out,ref] [size_is(*buffer_size)] [length_is(*buffer_size)] uint8 *buffer,
		[in,out,ref] uint32 *buffer_size,
		[in,out,ref] uint32 *needed,
		[in] uint32 unknown3
		);

	/******************/
	/* Function: 0x0e */

	[todo] WERROR PNP_SetDeviceRegProp();

	/******************/
	/* Function: 0x0f */

	[todo] WERROR PNP_GetClassInstance();

	/******************/
	/* Function: 0x10 */

	[todo] WERROR PNP_CreateKey();

	/******************/
	/* Function: 0x11 */

	[todo] WERROR PNP_DeleteRegistryKey();

	/******************/
	/* Function: 0x12 */

	[todo] WERROR PNP_GetClassCount();

	/******************/
	/* Function: 0x13 */

	[todo] WERROR PNP_GetClassName();

	/******************/
	/* Function: 0x14 */

	[todo] WERROR PNP_DeleteClassKey();

	/******************/
	/* Function: 0x15 */

	[todo] WERROR PNP_GetInterfaceDeviceAlias();

	/******************/
	/* Function: 0x16 */

	[todo] WERROR PNP_GetInterfaceDeviceList();

	/******************/
	/* Function: 0x17 */

	[todo] WERROR PNP_GetInterfaceDeviceListSize();

	/******************/
	/* Function: 0x18 */

	[todo] WERROR PNP_RegisterDeviceClassAssociation();

	/******************/
	/* Function: 0x19 */

	[todo] WERROR PNP_UnregisterDeviceClassAssociation();

	/******************/
	/* Function: 0x1a */

	[todo] WERROR PNP_GetClassRegProp();

	/******************/
	/* Function: 0x1b */

	[todo] WERROR PNP_SetClassRegProp();

	/******************/
	/* Function: 0x1c */

	[todo] WERROR PNP_CreateDevInst();

	/******************/
	/* Function: 0x1d */

	[todo] WERROR PNP_DeviceInstanceAction();

	/******************/
	/* Function: 0x1e */

	[todo] WERROR PNP_GetDeviceStatus();

	/******************/
	/* Function: 0x1f */

	[todo] WERROR PNP_SetDeviceProblem();

	/******************/
	/* Function: 0x20 */

	[todo] WERROR PNP_DisableDevInst();

	/******************/
	/* Function: 0x21 */

	[todo] WERROR PNP_UninstallDevInst();

	/******************/
	/* Function: 0x22 */

	[todo] WERROR PNP_AddID();

	/******************/
	/* Function: 0x23 */

	[todo] WERROR PNP_RegisterDriver();

	/******************/
	/* Function: 0x24 */

	[todo] WERROR PNP_QueryRemove();

	/******************/
	/* Function: 0x25 */

	[todo] WERROR PNP_RequestDeviceEject();

	/******************/
	/* Function: 0x26 */

	[todo] WERROR PNP_IsDockStationPresent();

	/******************/
	/* Function: 0x27 */

	[todo] WERROR PNP_RequestEjectPC();

	/******************/
	/* Function: 0x28 */

	WERROR PNP_HwProfFlags(
		[in] uint32 unknown1,
		[in,ref] [string,charset(UTF16)] uint16 *devicepath,
		[in] uint32 unknown2,
		[in,out,ref] uint32 *unknown3,
		[in,out,unique] uint16 *unknown4,
		[in,unique] [string,charset(UTF16)] uint16 *unknown5,
		[out,unique] [string,charset(UTF16)] uint16 **unknown5a,
		[in] uint32 unknown6,
		[in] uint32 unknown7
		);

	/******************/
	/* Function: 0x29 */

	typedef struct {
		uint32 unknown1;
		uint16 unknown2[160];
		uint32 unknown3;
	} PNP_HwProfInfo;

	WERROR PNP_GetHwProfInfo(
		[in] uint32 idx,
		[in,out,ref] PNP_HwProfInfo *info,
		[in] uint32 unknown1,
		[in] uint32 unknown2
		);

	/******************/
	/* Function: 0x2a */

	[todo] WERROR PNP_AddEmptyLogConf();

	/******************/
	/* Function: 0x2b */

	[todo] WERROR PNP_FreeLogConf();

	/******************/
	/* Function: 0x2c */

	[todo] WERROR PNP_GetFirstLogConf();

	/******************/
	/* Function: 0x2d */

	[todo] WERROR PNP_GetNextLogConf();

	/******************/
	/* Function: 0x2e */

	[todo] WERROR PNP_GetLogConfPriority();

	/******************/
	/* Function: 0x2f */

	[todo] WERROR PNP_AddResDes();

	/******************/
	/* Function: 0x30 */

	[todo] WERROR PNP_FreeResDes();

	/******************/
	/* Function: 0x31 */

	[todo] WERROR PNP_GetNextResDes();

	/******************/
	/* Function: 0x32 */

	[todo] WERROR PNP_GetResDesData();

	/******************/
	/* Function: 0x33 */

	[todo] WERROR PNP_GetResDesDataSize();

	/******************/
	/* Function: 0x34 */

	[todo] WERROR PNP_ModifyResDes();

	/******************/
	/* Function: 0x35 */

	[todo] WERROR PNP_DetectResourceLimit();

	/******************/
	/* Function: 0x36 */

	[todo] WERROR PNP_QueryResConfList();

	/******************/
	/* Function: 0x37 */

	[todo] WERROR PNP_SetHwProf();

	/******************/
	/* Function: 0x38 */

	[todo] WERROR PNP_QueryArbitratorFreeData();

	/******************/
	/* Function: 0x39 */

	[todo] WERROR PNP_QueryArbitratorFreeSize();

	/******************/
	/* Function: 0x3a */

	[todo] WERROR PNP_RunDetection();

	/******************/
	/* Function: 0x3b */

	[todo] WERROR PNP_RegisterNotification();

	/******************/
	/* Function: 0x3c */

	[todo] WERROR PNP_UnregisterNotification();

	/******************/
	/* Function: 0x3d */

	[todo] WERROR PNP_GetCustomDevProp();

	/******************/
	/* Function: 0x3e */

	[todo] WERROR PNP_GetVersionInternal();

	/******************/
	/* Function: 0x3f */

	[todo] WERROR PNP_GetBlockedDriverInfo();

	/******************/
	/* Function: 0x40 */

	[todo] WERROR PNP_GetServerSideDeviceInstallFlags();
}