ReactOS 0.4.15-dev-8227-g32d615f
usbstubum.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 UsbStubUm.cpp
8
9Abstract:
10
11Author:
12
13Environment:
14
15
16Revision History:
17
18--*/
19
20extern "C" {
21#define INITGUID
22#include <initguid.h>
23
24// {B1A96A13-3DE0-4574-9B01-C08FEAB318D6}
25DEFINE_GUID(USB_BUS_INTERFACE_USBDI_GUID,
260xb1a96a13, 0x3de0, 0x4574, 0x9b, 0x1, 0xc0, 0x8f, 0xea, 0xb3, 0x18, 0xd6);
27
28}
29
30#include "fxusbpch.hpp"
31
32VOID
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,
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
79VOID
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
112 _In_ USBD_HANDLE USBDHandle,
113 _In_ const GUID* CapabilityType,
122)
123{
124 UNREFERENCED_PARAMETER(USBDHandle);
129
130 ASSERTMSG("Not implemented for UMDF\n", FALSE);
131
132 return STATUS_SUCCESS;
133}
134
135VOID
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}
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
IN OUT PVCB IN PDEVICE_OBJECT TargetDeviceObject
Definition: fatprocs.h:1674
_Must_inspect_result_ __in FxDeviceBase __in ULONG USBDClientContractVersion
#define _Outptr_result_bytebuffer_(size)
Definition: ms_sal.h:472
#define _Out_opt_
Definition: ms_sal.h:346
#define _Out_writes_bytes_(size)
Definition: ms_sal.h:350
#define _Deref_out_range_(lb, ub)
Definition: ms_sal.h:575
#define _Pre_null_
Definition: ms_sal.h:682
#define _Out_
Definition: ms_sal.h:345
#define _When_(expr, annos)
Definition: ms_sal.h:254
#define _Out_writes_bytes_to_opt_(size, count)
Definition: ms_sal.h:361
#define _In_
Definition: ms_sal.h:308
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define STATUS_SUCCESS
Definition: shellext.h:65
Definition: usb.h:529
uint32_t * PULONG
Definition: typedefs.h:59
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
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
NTSTATUS USBD_UrbAllocate(_In_ USBD_HANDLE USBDHandle, _Outptr_result_bytebuffer_(sizeof(URB)) PURB *Urb)
Definition: usbstubum.cpp:46
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
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
VOID USBD_CloseHandle(_In_ USBD_HANDLE USBDHandle)
Definition: usbstubum.cpp:80
VOID USBD_AssignUrbToIoStackLocation(_In_ USBD_HANDLE USBDHandle, _In_ PIO_STACK_LOCATION IoStackLocation, _In_ PURB Urb)
Definition: usbstubum.cpp:136
VOID USBD_UrbFree(_In_ USBD_HANDLE USBDHandle, _In_ PURB Urb)
Definition: usbstubum.cpp:33
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdfdevice.h:3776
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:320
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG PoolTag
Definition: wdfmemory.h:164
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ ULONG NumberOfIsochPackets
Definition: wdfusb.h:1703
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_ CONST GUID * CapabilityType
Definition: wdfusb.h:1613