ReactOS 0.4.16-dev-338-g34e76ad
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
#define NonPagedPool
Definition: env_spec_w32.h:307
#define HIDPARSE_TAG
Definition: hidparse.h:10
static UCHAR ItemSize[4]
Definition: parser.c:16
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_In_ WDFCOLLECTION _In_ WDFOBJECT Item

◆ 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_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3169
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
_In_ WDFIOTARGET Target
Definition: wdfrequest.h:306

◆ DebugFunction()

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

Definition at line 75 of file hidparse.c.

77{
78#if HID_DBG
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}
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define DbgPrint
Definition: hal.h:12
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define args
Definition: format.c:66
Definition: match.c:390

◆ 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}
#define STATUS_SUCCESS
Definition: shellext.h:65
#define DPRINT
Definition: sndvol32.h:73

◆ FreeFunction()

VOID NTAPI FreeFunction ( IN PVOID  Item)

Definition at line 39 of file hidparse.c.

41{
42 //
43 // free item
44 //
46}
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1109

◆ 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}