ReactOS  0.4.15-dev-3303-g1ade494
usbstubum.cpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  UsbStubUm.cpp
8 
9 Abstract:
10 
11 Author:
12 
13 Environment:
14 
15 
16 Revision History:
17 
18 --*/
19 
20 extern "C" {
21 #define INITGUID
22 #include <initguid.h>
23 
24 // {B1A96A13-3DE0-4574-9B01-C08FEAB318D6}
25 DEFINE_GUID(USB_BUS_INTERFACE_USBDI_GUID,
26 0xb1a96a13, 0x3de0, 0x4574, 0x9b, 0x1, 0xc0, 0x8f, 0xea, 0xb3, 0x18, 0xd6);
27 
28 }
29 
30 #include "fxusbpch.hpp"
31 
32 VOID
34  _In_ USBD_HANDLE USBDHandle,
35  _In_ PURB Urb
36 )
37 {
38  UNREFERENCED_PARAMETER(USBDHandle);
40 
41  ASSERTMSG("Not implemented for UMDF\n", FALSE);
42 }
43 
44 
47  _In_ USBD_HANDLE USBDHandle,
48  _Outptr_result_bytebuffer_(sizeof(URB)) PURB *Urb
49 )
50 {
51  UNREFERENCED_PARAMETER(USBDHandle);
53 
54  ASSERTMSG("Not implemented for UMDF\n", FALSE);
55 
56  return STATUS_SUCCESS;
57 }
58 
61  _In_ USBD_HANDLE USBDHandle,
62  _In_ ULONG NumberOfIsochPacket,
66  PURB *Urb
67 )
68 {
69  UNREFERENCED_PARAMETER(USBDHandle);
70  UNREFERENCED_PARAMETER(NumberOfIsochPacket);
72 
73  ASSERTMSG("Not implemented for UMDF\n", FALSE);
74 
75  return STATUS_SUCCESS;
76 }
77 
78 
79 VOID
81  _In_ USBD_HANDLE USBDHandle
82 )
83 {
84  UNREFERENCED_PARAMETER(USBDHandle);
85 
86  ASSERTMSG("Not implemented for UMDF\n", FALSE);
87 }
88 
95  _Out_ USBD_HANDLE *USBDHandle
96 )
97 {
102  UNREFERENCED_PARAMETER(USBDHandle);
103 
104  ASSERTMSG("Not implemented for UMDF\n", FALSE);
105 
106  return STATUS_SUCCESS;
107 
108 }
109 
110 NTSTATUS
112  _In_ USBD_HANDLE USBDHandle,
113  _In_ const GUID* CapabilityType,
119  _Out_opt_
122 )
123 {
124  UNREFERENCED_PARAMETER(USBDHandle);
129 
130  ASSERTMSG("Not implemented for UMDF\n", FALSE);
131 
132  return STATUS_SUCCESS;
133 }
134 
135 VOID
137  _In_ USBD_HANDLE USBDHandle,
138  _In_ PIO_STACK_LOCATION IoStackLocation,
139  _In_ PURB Urb
140 )
141 {
142  UNREFERENCED_PARAMETER(USBDHandle);
143  UNREFERENCED_PARAMETER(IoStackLocation);
145 
146  ASSERTMSG("Not implemented for UMDF\n", FALSE);
147 }
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_ CONST GUID * CapabilityType
Definition: wdfusb.h:1611
DEFINE_GUID(USB_BUS_INTERFACE_USBDI_GUID, 0xb1a96a13, 0x3de0, 0x4574, 0x9b, 0x1, 0xc0, 0x8f, 0xea, 0xb3, 0x18, 0xd6)
#define _Out_
Definition: ms_sal.h:345
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define _Deref_out_range_(lb, ub)
Definition: ms_sal.h:575
unsigned char * PUCHAR
Definition: retypes.h:3
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ __in FxDeviceBase __in ULONG USBDClientContractVersion
#define _When_(expr, annos)
Definition: ms_sal.h:254
#define _Pre_null_
Definition: ms_sal.h:682
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:318
NTSTATUS USBD_IsochUrbAllocate(_In_ USBD_HANDLE USBDHandle, _In_ ULONG NumberOfIsochPacket, _Outptr_result_bytebuffer_(sizeof(struct _URB_ISOCH_TRANSFER)+(NumberOfIsochPackets *sizeof(USBD_ISO_PACKET_DESCRIPTOR)) - sizeof(USBD_ISO_PACKET_DESCRIPTOR)) PURB *Urb)
Definition: usbstubum.cpp:60
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
#define FALSE
Definition: types.h:117
#define _Outptr_result_bytebuffer_(size)
Definition: ms_sal.h:472
VOID USBD_AssignUrbToIoStackLocation(_In_ USBD_HANDLE USBDHandle, _In_ PIO_STACK_LOCATION IoStackLocation, _In_ PURB Urb)
Definition: usbstubum.cpp:136
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
VOID USBD_CloseHandle(_In_ USBD_HANDLE USBDHandle)
Definition: usbstubum.cpp:80
#define _In_
Definition: ms_sal.h:308
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:859
NTSTATUS USBD_QueryUsbCapability(_In_ USBD_HANDLE USBDHandle, _In_ const GUID *CapabilityType, _In_ ULONG OutputBufferLength, _When_(OutputBufferLength==0, _Pre_null_) _When_(OutputBufferLength !=0 &&ResultLength==NULL, _Out_writes_bytes_(OutputBufferLength)) _When_(OutputBufferLength !=0 &&ResultLength !=NULL, _Out_writes_bytes_to_opt_(OutputBufferLength, *ResultLength)) PUCHAR OutputBuffer, _Out_opt_ _When_(ResultLength !=NULL, _Deref_out_range_(<=, OutputBufferLength)) PULONG ResultLength)
Definition: usbstubum.cpp:111
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG PoolTag
Definition: wdfmemory.h:159
VOID USBD_UrbFree(_In_ USBD_HANDLE USBDHandle, _In_ PURB Urb)
Definition: usbstubum.cpp:33
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ ULONG NumberOfIsochPackets
Definition: wdfusb.h:1699
#define _Out_writes_bytes_to_opt_(size, count)
Definition: ms_sal.h:361
Definition: usb.h:529
#define _Out_opt_
Definition: ms_sal.h:346
unsigned int * PULONG
Definition: retypes.h:1
#define NULL
Definition: types.h:112
unsigned int ULONG
Definition: retypes.h:1
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdfdevice.h:3776
#define STATUS_SUCCESS
Definition: shellext.h:65
NTSTATUS USBD_UrbAllocate(_In_ USBD_HANDLE USBDHandle, _Outptr_result_bytebuffer_(sizeof(URB)) PURB *Urb)
Definition: usbstubum.cpp:46
IN OUT PVCB IN PDEVICE_OBJECT TargetDeviceObject
Definition: fatprocs.h:1673
#define _Out_writes_bytes_(size)
Definition: ms_sal.h:350
NTSTATUS USBD_CreateHandle(_In_ PDEVICE_OBJECT DeviceObject, _In_ PDEVICE_OBJECT TargetDeviceObject, _In_ ULONG USBDClientContractVersion, _In_ ULONG PoolTag, _Out_ USBD_HANDLE *USBDHandle)
Definition: usbstubum.cpp:90