ReactOS 0.4.16-dev-306-g647d351
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
16VOID
19{
20 RtlFreeHeap(RtlGetProcessHeap(), 0, Data);
21}
22
26{
27 return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
28}
29
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
51 break;
52
54 /* assert( FALSE ); XXX arty not yet implemented. */
55 break;
56 }
57}
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
Definition: heap.c:590
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
Definition: heap.c:608
#define NULL
Definition: types.h:112
VOID WINAPI DnsFree(PVOID Data, DNS_FREE_TYPE FreeType)
Definition: memory.c:40
PVOID WINAPI DnsQueryConfigAllocEx(IN DNS_CONFIG_TYPE Config, OUT PVOID pBuffer, IN OUT PDWORD pBufferLength)
Definition: memory.c:32
VOID WINAPI DnsApiFree(IN PVOID Data)
Definition: memory.c:18
PVOID WINAPI DnsApiAlloc(IN DWORD Size)
Definition: memory.c:25
void DnsIntFreeRecordList(PDNS_RECORD ToFree)
Definition: query.c:889
unsigned long DWORD
Definition: ntddk_ex.h:95
__kernel_entry _Inout_ _Inout_ PSIZE_T _In_ ULONG FreeType
Definition: mmfuncs.h:174
DWORD * PDWORD
Definition: pedump.c:68
PVOID pBuffer
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdfchildlist.h:476
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
DNS_CONFIG_TYPE
Definition: windns.h:116
DNS_FREE_TYPE
Definition: windns.h:137
@ DnsFreeFlat
Definition: windns.h:138
@ DnsFreeRecordList
Definition: windns.h:139
@ DnsFreeParsedMessageFields
Definition: windns.h:140
#define PDNS_RECORD
Definition: windns.h:636
#define WINAPI
Definition: msvc.h:6