ReactOS 0.4.15-dev-7942-gd23573b
test.c File Reference
#include <stdio.h>
#include <windows.h>
#include <usbdi.h>
Include dependency graph for test.c:

Go to the source code of this file.

Typedefs

typedef ULONG NTAPI(* USBD_GetInterfaceLengthTYPE) (PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)
 

Functions

int main ()
 

Typedef Documentation

◆ USBD_GetInterfaceLengthTYPE

typedef ULONG NTAPI(* USBD_GetInterfaceLengthTYPE) (PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)

Definition at line 5 of file test.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 11 of file test.c.

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}
#define NULL
Definition: types.h:112
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
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
unsigned char * PUCHAR
Definition: typedefs.h:53
ULONG NTAPI USBD_GetInterfaceLength(PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)
Definition: usbd.c:414
_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