ReactOS  0.4.14-dev-98-gb0d4763
memory.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS system libraries
4  * FILE: lib/dnsapi/dnsapi/memory.c
5  * PURPOSE: DNSAPI functions built on the ADNS library.
6  * PROGRAMER: Art Yerkes
7  * UPDATE HISTORY:
8  * 12/15/03 -- Created
9  */
10 
11 #include "precomp.h"
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 VOID
17 WINAPI
19 {
20  RtlFreeHeap(RtlGetProcessHeap(), 0, Data);
21 }
22 
23 PVOID
24 WINAPI
26 {
27  return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
28 }
29 
30 PVOID
31 WINAPI
34  IN OUT PDWORD pBufferLength)
35 {
36  return NULL;
37 }
38 
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 }
#define IN
Definition: typedefs.h:38
static int Config(const char **args)
Definition: vfdcmd.c:778
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
smooth NULL
Definition: ftsmooth.c:416
PVOID pBuffer
#define PDNS_RECORD
Definition: windns.h:636
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
Definition: heap.c:588
VOID WINAPI DnsFree(PVOID Data, DNS_FREE_TYPE FreeType)
Definition: memory.c:40
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
DNS_CONFIG_TYPE
Definition: windns.h:116
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
PVOID WINAPI DnsQueryConfigAllocEx(IN DNS_CONFIG_TYPE Config, OUT PVOID pBuffer, IN OUT PDWORD pBufferLength)
Definition: memory.c:32
__kernel_entry _Inout_ _Inout_ PSIZE_T _In_ ULONG FreeType
Definition: mmfuncs.h:172
VOID WINAPI DnsApiFree(IN PVOID Data)
Definition: memory.c:18
DWORD * PDWORD
Definition: pedump.c:68
#define OUT
Definition: typedefs.h:39
DNS_FREE_TYPE
Definition: windns.h:137
PVOID WINAPI DnsApiAlloc(IN DWORD Size)
Definition: memory.c:25