ReactOS  0.4.15-dev-1638-gc0caa5c
hidparse.c File Reference
#include "hidparse.h"
#include "hidp.h"
#include <debug.h>
Include dependency graph for hidparse.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

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,...)
 
NTSTATUS NTAPI DriverEntry (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 14 of file hidparse.c.

Function Documentation

◆ AllocFunction()

PVOID NTAPI AllocFunction ( IN ULONG  ItemSize)

Definition at line 19 of file hidparse.c.

21 {
23  if (Item)
24  {
25  //
26  // zero item
27  //
29  }
30 
31  //
32  // done
33  //
34  return Item;
35 }
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
static UCHAR ItemSize[4]
Definition: parser.c:16
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
#define HIDPARSE_TAG
Definition: hidparse.h:10

◆ CopyFunction()

VOID NTAPI CopyFunction ( IN PVOID  Target,
IN PVOID  Source,
IN ULONG  Length 
)

Definition at line 62 of file hidparse.c.

66 {
67  //
68  // copy item
69  //
71 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
_In_ WDFIOTARGET Target
Definition: wdfrequest.h:306
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167

◆ DebugFunction()

VOID __cdecl DebugFunction ( IN LPCSTR  FormatStr,
  ... 
)

Definition at line 75 of file hidparse.c.

77 {
78 #if HID_DBG
79  va_list args;
80  char printbuffer[1024];
81 
82  va_start(args, FormatStr);
83  vsprintf(printbuffer, FormatStr, args);
84  va_end(args);
85 
86  DbgPrint(printbuffer);
87 #endif
88 }
#define args
Definition: format.c:66
#define DbgPrint
Definition: loader.c:25
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
va_start(ap, x)
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733

◆ DriverEntry()

NTSTATUS NTAPI DriverEntry ( IN PDRIVER_OBJECT  DriverObject,
IN PUNICODE_STRING  RegPath 
)

Definition at line 92 of file hidparse.c.

95 {
96  DPRINT("********* HID PARSE *********\n");
97  return STATUS_SUCCESS;
98 }
void DPRINT(...)
Definition: polytest.cpp:61
#define STATUS_SUCCESS
Definition: shellext.h:65

◆ FreeFunction()

VOID NTAPI FreeFunction ( IN PVOID  Item)

Definition at line 39 of file hidparse.c.

41 {
42  //
43  // free item
44  //
46 }
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099
#define HIDPARSE_TAG
Definition: hidparse.h:10

◆ ZeroFunction()

VOID NTAPI ZeroFunction ( IN PVOID  Item,
IN ULONG  ItemSize 
)

Definition at line 50 of file hidparse.c.

53 {
54  //
55  // zero item
56  //
58 }
static UCHAR ItemSize[4]
Definition: parser.c:16
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262