PVOID
NTAPI
AllocFunction
(
IN
ULONG
ItemSize
)
VOID
NTAPI
FreeFunction
(
IN
PVOID
Item
)
VOID
NTAPI
ZeroFunction
(
IN
PVOID
Item
,
IN
ULONG
ItemSize
)
VOID
NTAPI
CopyFunction
(
IN
PVOID
Target
,
IN
PVOID
Source
,
IN
ULONG
Length
)
VOID
__cdecl
DebugFunction
(
IN
LPCSTR
FormatStr,...)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL,
DWORD
dwReason
,
LPVOID
lpvReserved
)
HIDAPI
BOOLEAN
WINAPI
HidD_FlushQueue
(
IN
HANDLE
HidDeviceObject)
HIDAPI
BOOLEAN
WINAPI
HidD_FreePreparsedData
(
IN
PHIDP_PREPARSED_DATA
PreparsedData
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetAttributes
(
IN
HANDLE
HidDeviceObject,
OUT
PHIDD_ATTRIBUTES
Attributes
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetFeature
(
IN
HANDLE
HidDeviceObject,
OUT
PVOID
ReportBuffer,
IN
ULONG
ReportBufferLength)
HIDAPI
VOID
WINAPI
HidD_GetHidGuid
(
OUT
LPGUID
HidGuid)
HIDAPI
BOOLEAN
WINAPI
HidD_GetInputReport
(
IN
HANDLE
HidDeviceObject,
IN
OUT
PVOID
ReportBuffer,
IN
ULONG
ReportBufferLength)
HIDAPI
BOOLEAN
WINAPI
HidD_GetManufacturerString
(
IN
HANDLE
HidDeviceObject,
OUT
PVOID
Buffer
,
IN
ULONG
BufferLength
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetNumInputBuffers
(
IN
HANDLE
HidDeviceObject,
OUT
PULONG
NumberBuffers)
HIDAPI
BOOLEAN
WINAPI
HidD_GetPhysicalDescriptor
(
IN
HANDLE
HidDeviceObject,
OUT
PVOID
Buffer
,
IN
ULONG
BufferLength
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetPreparsedData
(
IN
HANDLE
HidDeviceObject,
OUT
PHIDP_PREPARSED_DATA
*
PreparsedData
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetProductString
(
IN
HANDLE
HidDeviceObject,
OUT
PVOID
Buffer
,
IN
ULONG
BufferLength
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetSerialNumberString
(
IN
HANDLE
HidDeviceObject,
OUT
PVOID
Buffer
,
IN
ULONG
BufferLength
)
HIDAPI
ULONG
WINAPI
HidD_Hello
(
OUT
PCHAR
Buffer
,
IN
ULONG
BufferLength
)
HIDAPI
BOOLEAN
WINAPI
HidD_SetFeature
(
IN
HANDLE
HidDeviceObject,
IN
PVOID
ReportBuffer,
IN
ULONG
ReportBufferLength)
HIDAPI
BOOLEAN
WINAPI
HidD_SetNumInputBuffers
(
IN
HANDLE
HidDeviceObject,
IN
ULONG
NumberBuffers)
HIDAPI
BOOLEAN
WINAPI
HidD_SetOutputReport
(
IN
HANDLE
HidDeviceObject,
IN
PVOID
ReportBuffer,
IN
ULONG
ReportBufferLength)
HIDAPI
BOOLEAN
WINAPI
HidD_GetIndexedString
(
IN
HANDLE
HidDeviceObject,
IN
ULONG
StringIndex
,
OUT
PVOID
Buffer
,
IN
ULONG
BufferLength
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetMsGenreDescriptor
(
IN
HANDLE
HidDeviceObject,
OUT
PVOID
Buffer
,
IN
ULONG
BufferLength
)
HIDAPI
BOOLEAN
WINAPI
HidD_GetConfiguration
(
IN
HANDLE
HidDeviceObject,
OUT
PHIDD_CONFIGURATION
Configuration
,
IN
ULONG
ConfigurationLength)
HIDAPI
BOOLEAN
WINAPI
HidD_SetConfiguration
(
IN
HANDLE
HidDeviceObject,
IN
PHIDD_CONFIGURATION
Configuration
,
IN
ULONG
ConfigurationLength)
Variables
HINSTANCE
hDllInstance
const
GUID
HidClassGuid
= {0x4D1E55B2, 0xF16F, 0x11CF, {0x88,0xCB,0x00,0x11,0x11,0x00,0x00,0x30}}
◆
NDEBUG
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Referenced by
BuildUSBAudioFilterTopology()
,
FilterAudioVolumeHandler()
,
HidParser_AddCollection()
,
HidParser_AddReportToCollection()
,
HidParser_AllocateCollection()
,
HidParser_AllocateReport()
,
HidParser_BuildContext()
,
HidParser_GetCollectionDescription()
,
HidParser_ParseReportDescriptor()
,
HidParser_ReserveReportItems()
,
InitCapturePin()
,
InitStreamPin()
,
RenderInitializeUrbAndIrp()
,
UsbAudioAllocCaptureUrbIso()
,
USBAudioCreateFilterContext()
,
USBAudioFilterCreate()
,
UsbAudioGetDataRanges()
,
USBAudioGetDescriptor()
,
UsbAudioGetSetProperty()
,
USBAudioPinBuildDescriptors()
,
USBAudioPinCreate()
,
USBAudioPnPStart()
,
USBAudioSelectAudioStreamingInterface()
,
USBAudioSelectConfiguration()
,
UsbAudioSetFormat()
, and
USBAudioStartDevice()
.
#define memcpy(s1, s2, n)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSYSAPI ULONG NTAPI vDbgPrintEx(_In_ ULONG ComponentId, _In_ ULONG Level, _In_z_ PCCH Format, _In_ va_list ap)
Referenced by
HidParser_AllocateCollection()
,
HidParser_GetCollection()
,
HidParser_GetCollectionDescription()
, and
HidParser_ParseReportDescriptor()
.
112
}
#define DLL_THREAD_DETACH
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
#define DLL_THREAD_ATTACH
HLOCAL NTAPI LocalFree(HLOCAL hMem)
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
Referenced by
FilterAudioVolumeHandler()
,
HidParser_AddCollection()
,
HidParser_AddReportToCollection()
,
HidParser_FreeCollectionDescription()
,
HidParser_GetCollectionDescription()
,
HidParser_GetReport()
,
HidParser_ParseReportDescriptor()
,
USBAudioCreateFilterContext()
,
USBAudioGetDescriptor()
,
UsbAudioGetSetProperty()
,
USBAudioInitComponentId()
,
UsbAudioRenderComplete()
,
USBAudioSelectAudioStreamingInterface()
,
USBAudioSelectConfiguration()
,
UsbAudioSetFormat()
, and
USBAudioStartDevice()
.
123
{
128
&RetLen,
NULL
) != 0;
129
}
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
#define IOCTL_HID_FLUSH_QUEUE
Definition at line
139
of file
hid.c
.
140
{
142
}
_Must_inspect_result_ _Out_writes_to_ DataLength PHIDP_DATA _Inout_ PULONG _In_ PHIDP_PREPARSED_DATA PreparsedData
Referenced by
get_device()
,
test_device_info()
,
test_get_input_report()
, and
test_read_device()
.
162
{
164
}
166
173
}
#define IOCTL_HID_GET_COLLECTION_INFORMATION
struct _HIDD_ATTRIBUTES HIDD_ATTRIBUTES
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
Referenced by
test_device_info()
.
511
0, 0,
514
}
HIDAPI BOOLEAN WINAPI HidD_GetConfiguration(IN HANDLE HidDeviceObject, OUT PHIDD_CONFIGURATION Configuration, IN ULONG ConfigurationLength)
#define IOCTL_HID_GET_DRIVER_CONFIG
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_INTERRUPT_CONFIG Configuration
Referenced by
HidD_GetConfiguration()
, and
HidD_SetConfiguration()
.
186
{
190
ReportBuffer, ReportBufferLength,
191
&RetLen,
NULL
) != 0;
192
}
#define IOCTL_HID_GET_FEATURE
205
}
Referenced by
get_device()
, and
run_for_each_device()
.
469
{
474
&RetLen,
NULL
) != 0;
475
}
#define IOCTL_HID_GET_INDEXED_STRING
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_writes_opt_ NumCharacters PUSHORT _Inout_ PUSHORT _In_ UCHAR StringIndex
218
{
222
ReportBuffer, ReportBufferLength,
223
&RetLen,
NULL
) != 0;
224
}
#define IOCTL_HID_GET_INPUT_REPORT
Referenced by
test_get_input_report()
.
237
{
242
&RetLen,
NULL
) != 0;
243
}
#define IOCTL_HID_GET_MANUFACTURER_STRING
487
{
490
0, 0,
492
&RetLen,
NULL
) != 0;
493
}
#define IOCTL_HID_GET_MS_GENRE_DESCRIPTOR
255
{
259
NumberBuffers,
sizeof
(
ULONG
),
260
&RetLen,
NULL
) != 0;
261
}
#define IOCTL_GET_NUM_DEVICE_INPUT_BUFFERS
274
{
279
&RetLen,
NULL
) != 0;
280
}
#define IOCTL_GET_PHYSICAL_DESCRIPTOR
300
}
306
{
308
}
312
{
315
}
320
&RetLen,
NULL
) != 0;
322
if
(!Ret)
323
{
324
326
}
327
#if 0
328
else
329
{
330
331
}
332
#endif
334
return
Ret;
335
}
#define ERROR_NOT_ENOUGH_MEMORY
#define IOCTL_HID_GET_COLLECTION_DESCRIPTOR
Referenced by
get_device()
,
test_device_info()
,
test_get_input_report()
, and
test_read_device()
.
348
{
353
&RetLen,
NULL
) != 0;
354
}
#define IOCTL_HID_GET_PRODUCT_STRING
Referenced by
test_device_info()
,
test_get_input_report()
, and
test_read_device()
.
367
{
372
&RetLen,
NULL
) != 0;
373
}
#define IOCTL_HID_GET_SERIALNUMBER_STRING
395
{
397
}
399
return
sizeof
(HelloString);
400
}
530
{
532
0, 0,
535
}
536
else
537
{
539
}
541
return
Ret;
542
}
#define ERROR_INVALID_PARAMETER
#define IOCTL_HID_SET_DRIVER_CONFIG
413
{
416
ReportBuffer, ReportBufferLength,
418
&RetLen,
NULL
) != 0;
419
}
#define IOCTL_HID_SET_FEATURE
431
{
434
&NumberBuffers,
sizeof
(
ULONG
),
436
&RetLen,
NULL
) != 0;
437
}
#define IOCTL_SET_NUM_DEVICE_INPUT_BUFFERS