ReactOS  0.4.14-dev-49-gfb4591c
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:588
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359

◆ 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:606

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 
49  case DnsFreeRecordList:
51  break;
52 
54  /* assert( FALSE ); XXX arty not yet implemented. */
55  break;
56  }
57 }
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
Definition: heap.c:606
void DnsIntFreeRecordList(PDNS_RECORD ToDelete)
Definition: query.c:1034
#define PDNS_RECORD
Definition: windns.h:636
__kernel_entry _Inout_ _Inout_ PSIZE_T _In_ ULONG FreeType
Definition: mmfuncs.h:172

◆ 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 }
smooth NULL
Definition: ftsmooth.c:416

Referenced by SaBlob_Query().