ReactOS  0.4.15-dev-4936-gc06ccce
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 6 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 
23  USBD_GetInterfaceLength = (USBD_GetInterfaceLengthTYPE)GetProcAddress(Lib, "USBD_GetInterfaceLength");
25  FreeLibrary(Lib);
26 
28  USBD_GetInterfaceLength = (USBD_GetInterfaceLengthTYPE)GetProcAddress(Lib, "USBD_GetInterfaceLength");
30  FreeLibrary(Lib);
31  return 0;
32 }
unsigned char * PUCHAR
Definition: retypes.h:3
_In_ WDFUSBINTERFACE _In_ UCHAR _Out_ PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor
Definition: wdfusb.h:2329
ULONG NTAPI USBD_GetInterfaceLength(PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)
Definition: usbd.c:414
#define FreeLibrary(x)
Definition: compat.h:607
#define printf
Definition: freeldr.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DONT_RESOLVE_DLL_REFERENCES
Definition: winbase.h:338
ULONG NTAPI(* USBD_GetInterfaceLengthTYPE)(PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)
Definition: test.c:6
#define NULL
Definition: types.h:112
#define LoadLibraryEx
Definition: winbase.h:3724
#define GetProcAddress(x, y)
Definition: compat.h:612