libusbk-sys 0.2.0

Rust Windows library for accessing USB devices via libusbK
Documentation
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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
/*!********************************************************************
libusbK - Multi-driver USB library.
Copyright (C) 2012 Travis Lee Robinson. All Rights Reserved.
libusb-win32.sourceforge.net

Development : Travis Lee Robinson  (libusbdotnet@gmail.com)
Testing     : Xiaofan Chen         (xiaofanc@gmail.com)

At the discretion of the user of this library, this software may be
licensed under the terms of the GNU Public License v3 or a BSD-Style
license as outlined in the following files:
* LICENSE-gpl3.txt
* LICENSE-bsd.txt

License files are located in a license folder at the root of source and
binary distributions.
********************************************************************!*/

#include "lusbk_bknd_unsupported.h"

KUSB_EXP BOOL KUSB_API Unsupported_Initialize(
    _in HANDLE DeviceHandle,
    _out KUSB_HANDLE* InterfaceHandle)
{
	UNREFERENCED_PARAMETER(DeviceHandle);
	UNREFERENCED_PARAMETER(InterfaceHandle);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetDescriptor(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR DescriptorType,
    _in UCHAR Index,
    _in USHORT LanguageID,
    _out PUCHAR Buffer,
    _in UINT BufferLength,
    _outopt PUINT LengthTransferred)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(DescriptorType);
	UNREFERENCED_PARAMETER(Index);
	UNREFERENCED_PARAMETER(LanguageID);
	UNREFERENCED_PARAMETER(Buffer);
	UNREFERENCED_PARAMETER(BufferLength);
	UNREFERENCED_PARAMETER(LengthTransferred);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_QueryDeviceInformation(
    _in KUSB_HANDLE InterfaceHandle,
    _in UINT InformationType,
    _ref PUINT BufferLength,
    _ref PUCHAR Buffer)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(InformationType);
	UNREFERENCED_PARAMETER(BufferLength);
	UNREFERENCED_PARAMETER(Buffer);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_SetCurrentAlternateSetting(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR AltSettingNumber)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(AltSettingNumber);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetCurrentAlternateSetting(
    _in KUSB_HANDLE InterfaceHandle,
    _out PUCHAR AltSettingNumber)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(AltSettingNumber);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_SetPipePolicy(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID,
    _in UINT PolicyType,
    _in UINT ValueLength,
    _in PVOID Value)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);
	UNREFERENCED_PARAMETER(PolicyType);
	UNREFERENCED_PARAMETER(ValueLength);
	UNREFERENCED_PARAMETER(Value);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetPipePolicy(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID,
    _in UINT PolicyType,
    _ref PUINT ValueLength,
    _out PVOID Value)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);
	UNREFERENCED_PARAMETER(PolicyType);
	UNREFERENCED_PARAMETER(ValueLength);
	UNREFERENCED_PARAMETER(Value);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_ReadPipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID,
    _out PUCHAR Buffer,
    _in UINT BufferLength,
    _outopt PUINT LengthTransferred,
    _inopt LPOVERLAPPED Overlapped)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);
	UNREFERENCED_PARAMETER(Buffer);
	UNREFERENCED_PARAMETER(BufferLength);
	UNREFERENCED_PARAMETER(LengthTransferred);
	UNREFERENCED_PARAMETER(Overlapped);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_WritePipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID,
    _in PUCHAR Buffer,
    _in UINT BufferLength,
    _outopt PUINT LengthTransferred,
    _inopt LPOVERLAPPED Overlapped)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);
	UNREFERENCED_PARAMETER(Buffer);
	UNREFERENCED_PARAMETER(BufferLength);
	UNREFERENCED_PARAMETER(LengthTransferred);
	UNREFERENCED_PARAMETER(Overlapped);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_ControlTransfer(
    _in KUSB_HANDLE InterfaceHandle,
    _in WINUSB_SETUP_PACKET SetupPacket,
    _refopt PUCHAR Buffer,
    _in UINT BufferLength,
    _outopt PUINT LengthTransferred,
    _inopt LPOVERLAPPED Overlapped)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(SetupPacket);
	UNREFERENCED_PARAMETER(Buffer);
	UNREFERENCED_PARAMETER(BufferLength);
	UNREFERENCED_PARAMETER(LengthTransferred);
	UNREFERENCED_PARAMETER(Overlapped);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_ResetPipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_AbortPipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_FlushPipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_SetPowerPolicy(
    _in KUSB_HANDLE InterfaceHandle,
    _in UINT PolicyType,
    _in UINT ValueLength,
    _in PVOID Value)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PolicyType);
	UNREFERENCED_PARAMETER(ValueLength);
	UNREFERENCED_PARAMETER(Value);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetPowerPolicy(
    _in KUSB_HANDLE InterfaceHandle,
    _in UINT PolicyType,
    _ref PUINT ValueLength,
    _out PVOID Value)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PolicyType);
	UNREFERENCED_PARAMETER(ValueLength);
	UNREFERENCED_PARAMETER(Value);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetOverlappedResult(
    _in KUSB_HANDLE InterfaceHandle,
    _in LPOVERLAPPED Overlapped,
    _out PUINT lpNumberOfBytesTransferred,
    _in BOOL bWait)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(Overlapped);
	UNREFERENCED_PARAMETER(lpNumberOfBytesTransferred);
	UNREFERENCED_PARAMETER(bWait);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_ResetDevice(
    _in KUSB_HANDLE InterfaceHandle)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_Init(
    _out KUSB_HANDLE* InterfaceHandle,
    _in KLST_DEVINFO_HANDLE DevInfo)
{
	UNREFERENCED_PARAMETER(DevInfo);
	UNREFERENCED_PARAMETER(InterfaceHandle);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_SetConfiguration(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR ConfigurationNumber)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(ConfigurationNumber);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetConfiguration(
    _in KUSB_HANDLE InterfaceHandle,
    _out PUCHAR ConfigurationNumber)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(ConfigurationNumber);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_ClaimInterface(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR NumberOrIndex,
    _in BOOL IsIndex)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(NumberOrIndex);
	UNREFERENCED_PARAMETER(IsIndex);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_ReleaseInterface(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR NumberOrIndex,
    _in BOOL IsIndex)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(NumberOrIndex);
	UNREFERENCED_PARAMETER(IsIndex);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_SetAltInterface(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR NumberOrIndex,
    _in BOOL IsIndex,
    _in UCHAR AltSettingNumber)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(NumberOrIndex);
	UNREFERENCED_PARAMETER(IsIndex);
	UNREFERENCED_PARAMETER(AltSettingNumber);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetAltInterface(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR NumberOrIndex,
    _in BOOL IsIndex,
    _out PUCHAR AltSettingNumber)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(NumberOrIndex);
	UNREFERENCED_PARAMETER(IsIndex);
	UNREFERENCED_PARAMETER(AltSettingNumber);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_IsoReadPipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID,
    _out PUCHAR Buffer,
    _in UINT BufferLength,
    _in LPOVERLAPPED Overlapped,
    _refopt PKISO_CONTEXT IsoContext)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);
	UNREFERENCED_PARAMETER(IsoContext);
	UNREFERENCED_PARAMETER(Buffer);
	UNREFERENCED_PARAMETER(BufferLength);
	UNREFERENCED_PARAMETER(Overlapped);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_IsoWritePipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR PipeID,
    _in PUCHAR Buffer,
    _in UINT BufferLength,
    _in LPOVERLAPPED Overlapped,
    _refopt PKISO_CONTEXT IsoContext)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(PipeID);
	UNREFERENCED_PARAMETER(IsoContext);
	UNREFERENCED_PARAMETER(Buffer);
	UNREFERENCED_PARAMETER(BufferLength);
	UNREFERENCED_PARAMETER(Overlapped);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetCurrentFrameNumber(
    _in KUSB_HANDLE InterfaceHandle,
    _out PUINT FrameNumber)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(FrameNumber);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_IsochReadPipe(
	_in KISOCH_HANDLE IsochHandle,
	_inopt UINT DataLength,
	_refopt PUINT FrameNumber,
	_inopt UINT NumberOfPackets,
	_in LPOVERLAPPED Overlapped)
{
	UNREFERENCED_PARAMETER(IsochHandle);
	UNREFERENCED_PARAMETER(DataLength);
	UNREFERENCED_PARAMETER(FrameNumber);
	UNREFERENCED_PARAMETER(NumberOfPackets);
	UNREFERENCED_PARAMETER(Overlapped);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;

}

KUSB_EXP BOOL KUSB_API Unsupported_IsochWritePipe(
	_in KISOCH_HANDLE IsochHandle,
	_inopt UINT DataLength,
	_ref PUINT FrameNumber,
	_inopt UINT NumberOfPackets,
	_in LPOVERLAPPED Overlapped)
{
	UNREFERENCED_PARAMETER(IsochHandle);
	UNREFERENCED_PARAMETER(DataLength);
	UNREFERENCED_PARAMETER(FrameNumber);
	UNREFERENCED_PARAMETER(NumberOfPackets);
	UNREFERENCED_PARAMETER(Overlapped);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}


KUSB_EXP BOOL KUSB_API Unsupported_Free(
    _in KUSB_HANDLE InterfaceHandle)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_GetAssociatedInterface(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR AssociatedInterfaceIndex,
    _out KUSB_HANDLE* AssociatedInterfaceHandle)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(AssociatedInterfaceIndex);
	UNREFERENCED_PARAMETER(AssociatedInterfaceHandle);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_Clone(
    _in KUSB_HANDLE InterfaceHandle,
    _out KUSB_HANDLE* DstInterfaceHandle)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(DstInterfaceHandle);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_QueryPipe(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR AltSettingNumber,
    _in UCHAR PipeIndex,
    _out PWINUSB_PIPE_INFORMATION PipeInformation)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(AltSettingNumber);
	UNREFERENCED_PARAMETER(PipeIndex);
	UNREFERENCED_PARAMETER(PipeInformation);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}

KUSB_EXP BOOL KUSB_API Unsupported_QueryInterfaceSettings(
    _in KUSB_HANDLE InterfaceHandle,
    _in UCHAR AltSettingIndex,
    _out PUSB_INTERFACE_DESCRIPTOR UsbAltInterfaceDescriptor)
{
	UNREFERENCED_PARAMETER(InterfaceHandle);
	UNREFERENCED_PARAMETER(AltSettingIndex);
	UNREFERENCED_PARAMETER(UsbAltInterfaceDescriptor);

	SetLastError(ERROR_NOT_SUPPORTED);
	return FALSE;
}


BOOL GetProcAddress_Unsupported(__out KPROC* ProcAddress, __in LONG FunctionID)
{
	switch(FunctionID)
	{
	case KUSB_FNID_Initialize:
		*ProcAddress = (KPROC)Unsupported_Initialize;
		break;
	case KUSB_FNID_GetDescriptor:
		*ProcAddress = (KPROC)Unsupported_GetDescriptor;
		break;
	case KUSB_FNID_QueryDeviceInformation:
		*ProcAddress = (KPROC)Unsupported_QueryDeviceInformation;
		break;
	case KUSB_FNID_SetCurrentAlternateSetting:
		*ProcAddress = (KPROC)Unsupported_SetCurrentAlternateSetting;
		break;
	case KUSB_FNID_GetCurrentAlternateSetting:
		*ProcAddress = (KPROC)Unsupported_GetCurrentAlternateSetting;
		break;
	case KUSB_FNID_SetPipePolicy:
		*ProcAddress = (KPROC)Unsupported_SetPipePolicy;
		break;
	case KUSB_FNID_GetPipePolicy:
		*ProcAddress = (KPROC)Unsupported_GetPipePolicy;
		break;
	case KUSB_FNID_ReadPipe:
		*ProcAddress = (KPROC)Unsupported_ReadPipe;
		break;
	case KUSB_FNID_WritePipe:
		*ProcAddress = (KPROC)Unsupported_WritePipe;
		break;
	case KUSB_FNID_ControlTransfer:
		*ProcAddress = (KPROC)Unsupported_ControlTransfer;
		break;
	case KUSB_FNID_ResetPipe:
		*ProcAddress = (KPROC)Unsupported_ResetPipe;
		break;
	case KUSB_FNID_AbortPipe:
		*ProcAddress = (KPROC)Unsupported_AbortPipe;
		break;
	case KUSB_FNID_FlushPipe:
		*ProcAddress = (KPROC)Unsupported_FlushPipe;
		break;
	case KUSB_FNID_SetPowerPolicy:
		*ProcAddress = (KPROC)Unsupported_SetPowerPolicy;
		break;
	case KUSB_FNID_GetPowerPolicy:
		*ProcAddress = (KPROC)Unsupported_GetPowerPolicy;
		break;
	case KUSB_FNID_GetOverlappedResult:
		*ProcAddress = (KPROC)Unsupported_GetOverlappedResult;
		break;
	case KUSB_FNID_ResetDevice:
		*ProcAddress = (KPROC)Unsupported_ResetDevice;
		break;
	case KUSB_FNID_Init:
		*ProcAddress = (KPROC)Unsupported_Init;
		break;
	case KUSB_FNID_SetConfiguration:
		*ProcAddress = (KPROC)Unsupported_SetConfiguration;
		break;
	case KUSB_FNID_GetConfiguration:
		*ProcAddress = (KPROC)Unsupported_GetConfiguration;
		break;
	case KUSB_FNID_ClaimInterface:
		*ProcAddress = (KPROC)Unsupported_ClaimInterface;
		break;
	case KUSB_FNID_ReleaseInterface:
		*ProcAddress = (KPROC)Unsupported_ReleaseInterface;
		break;
	case KUSB_FNID_SetAltInterface:
		*ProcAddress = (KPROC)Unsupported_SetAltInterface;
		break;
	case KUSB_FNID_GetAltInterface:
		*ProcAddress = (KPROC)Unsupported_GetAltInterface;
		break;
	case KUSB_FNID_IsoReadPipe:
		*ProcAddress = (KPROC)Unsupported_IsoReadPipe;
		break;
	case KUSB_FNID_IsoWritePipe:
		*ProcAddress = (KPROC)Unsupported_IsoWritePipe;
		break;
	case KUSB_FNID_GetCurrentFrameNumber:
		*ProcAddress = (KPROC)Unsupported_GetCurrentFrameNumber;
		break;
	case KUSB_FNID_IsochReadPipe:
		*ProcAddress = (KPROC)Unsupported_IsochReadPipe;
		break;
	case KUSB_FNID_IsochWritePipe:
		*ProcAddress = (KPROC)Unsupported_IsochWritePipe;
		break;

	default:
		*ProcAddress = (KPROC)NULL;
		USBERRN("Unrecognized function id! FunctionID=%u", FunctionID);
		break;

	}
	return LusbwError(ERROR_NOT_SUPPORTED);
}