Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899/* * PROJECT: ReactOS Universal Serial Bus Bulk Enhanced Host Controller Interface * LICENSE: GPL - See COPYING in the top level directory * FILE: drivers/usb/hidparse/hidparse.c * PURPOSE: HID Parser * PROGRAMMERS: * Michael Martin (michael.martin@reactos.org) * Johannes Anderwald (johannes.anderwald@reactos.org) */
#include "hidparse.h"#include "hidp.h"
#define NDEBUG#include <debug.h>
PVOIDNTAPIAllocFunction( IN ULONG ItemSize){ PVOID Item = ExAllocatePoolWithTag(NonPagedPool, ItemSize, HIDPARSE_TAG); if (Item) { // // zero item // RtlZeroMemory(Item, ItemSize); }
// // done // return Item;}
VOIDNTAPIFreeFunction( IN PVOID Item){ // // free item // ExFreePoolWithTag(Item, HIDPARSE_TAG);}
VOIDNTAPIZeroFunction( IN PVOID Item, IN ULONG ItemSize){ // // zero item // RtlZeroMemory(Item, ItemSize);}
VOIDNTAPICopyFunction( IN PVOID Target, IN PVOID Source, IN ULONG Length){ // // copy item // RtlCopyMemory(Target, Source, Length);}
VOID__cdeclDebugFunction( IN LPCSTR FormatStr, ...){#if HID_DBG va_list args; char printbuffer[1024];
va_start(args, FormatStr); vsprintf(printbuffer, FormatStr, args); va_end(args);
DbgPrint(printbuffer);#endif}
NTSTATUSNTAPIDriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath){ DPRINT("********* HID PARSE *********\n"); return STATUS_SUCCESS;}