ReactOS 0.4.16-dev-87-g3dfbe52
memory.c File Reference
#include "precomp.h"
#include <debug.h>
Include dependency graph for memory.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID WINAPI DnsApiFree (IN PVOID Data)
 
PVOID WINAPI DnsApiAlloc (IN DWORD Size)
 
PVOID WINAPI DnsQueryConfigAllocEx (IN DNS_CONFIG_TYPE Config, OUT PVOID pBuffer, IN OUT PDWORD pBufferLength)
 
VOID WINAPI DnsFree (PVOID Data, DNS_FREE_TYPE FreeType)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file memory.c.

Function Documentation

◆ DnsApiAlloc()

PVOID WINAPI DnsApiAlloc ( IN DWORD  Size)

Definition at line 25 of file memory.c.

26{
27 return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
28}
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
Definition: heap.c:590
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533

◆ DnsApiFree()

VOID WINAPI DnsApiFree ( IN PVOID  Data)

Definition at line 18 of file memory.c.

19{
20 RtlFreeHeap(RtlGetProcessHeap(), 0, Data);
21}
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
Definition: heap.c:608

Referenced by SaBlob_Query().

◆ DnsFree()

VOID WINAPI DnsFree ( PVOID  Data,
DNS_FREE_TYPE  FreeType 
)

Definition at line 40 of file memory.c.

42{
43 switch(FreeType)
44 {
45 case DnsFreeFlat:
46 RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
47 break;
48
51 break;
52
54 /* assert( FALSE ); XXX arty not yet implemented. */
55 break;
56 }
57}
void DnsIntFreeRecordList(PDNS_RECORD ToFree)
Definition: query.c:889
__kernel_entry _Inout_ _Inout_ PSIZE_T _In_ ULONG FreeType
Definition: mmfuncs.h:174
@ DnsFreeFlat
Definition: windns.h:138
@ DnsFreeRecordList
Definition: windns.h:139
@ DnsFreeParsedMessageFields
Definition: windns.h:140
#define PDNS_RECORD
Definition: windns.h:636

◆ DnsQueryConfigAllocEx()

PVOID WINAPI DnsQueryConfigAllocEx ( IN DNS_CONFIG_TYPE  Config,
OUT PVOID  pBuffer,
IN OUT PDWORD  pBufferLength 
)

Definition at line 32 of file memory.c.

35{
36 return NULL;
37}
#define NULL
Definition: types.h:112

Referenced by SaBlob_Query().