ReactOS  0.4.15-dev-1397-g19779b3
test.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <windows.h>
3 #include <usbdi.h>
4 
5 typedef ULONG NTAPI
9  );
10 
11 int 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 
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 }
33 
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
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
int main()
Definition: test.c:6
#define FreeLibrary(x)
Definition: compat.h:607
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DONT_RESOLVE_DLL_REFERENCES
Definition: winbase.h:337
ULONG NTAPI(* USBD_GetInterfaceLengthTYPE)(PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor, PUCHAR BufferEnd)
Definition: test.c:6
_In_ PUCHAR BufferEnd
Definition: usbdlib.h:189
#define NULL
Definition: types.h:112
#define LoadLibraryEx
Definition: winbase.h:3703
unsigned int ULONG
Definition: retypes.h:1
#define GetProcAddress(x, y)
Definition: compat.h:612
#define printf
Definition: config.h:203