ReactOS 0.4.15-dev-8344-g0574987
test.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <windows.h>
3#include <usbdi.h>
4
5typedef ULONG NTAPI
9 );
10
11int main()
12{
13 HMODULE Lib;
16
17 InterfaceDescriptor.bLength = 10;
18 InterfaceDescriptor.bNumEndpoints = 2;
19 InterfaceDescriptor.bDescriptorType = /*USB_INTERFACE_DESCRIPTOR_TYPE*/2;
20 InterfaceDescriptor.iInterface = 0x1;
21
25 FreeLibrary(Lib);
26
30 FreeLibrary(Lib);
31 return 0;
32}
33
#define NULL
Definition: types.h:112
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
int main()
Definition: test.c:6
ULONG NTAPI(* USBD_GetInterfaceLengthTYPE)(PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)
Definition: test.c:6
unsigned long DWORD
Definition: ntddk_ex.h:95
#define printf
Definition: freeldr.h:97
#define NTAPI
Definition: typedefs.h:36
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
ULONG NTAPI USBD_GetInterfaceLength(PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)
Definition: usbd.c:414
_In_ PUCHAR BufferEnd
Definition: usbdlib.h:189
_In_ WDFUSBINTERFACE _In_ UCHAR _Out_ PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor
Definition: wdfusb.h:2334
#define LoadLibraryEx
Definition: winbase.h:3863
#define DONT_RESOLVE_DLL_REFERENCES
Definition: winbase.h:341