ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

memory.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  * PROJECT:     ReactOS system libraries
00004  * FILE:        lib/dnsapi/dnsapi/memory.c
00005  * PURPOSE:     DNSAPI functions built on the ADNS library.
00006  * PROGRAMER:   Art Yerkes
00007  * UPDATE HISTORY:
00008  *              12/15/03 -- Created
00009  */
00010 
00011 #include "precomp.h"
00012 
00013 #define NDEBUG
00014 #include <debug.h>
00015 
00016 VOID
00017 WINAPI
00018 DnsApiFree(IN PVOID Data)
00019 {
00020     RtlFreeHeap(RtlGetProcessHeap(), 0, Data);
00021 }
00022 
00023 PVOID
00024 WINAPI
00025 DnsApiAlloc(IN DWORD Size)
00026 {
00027     return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
00028 }
00029 
00030 PVOID
00031 WINAPI
00032 DnsQueryConfigAllocEx(IN DNS_CONFIG_TYPE Config,
00033                       OUT PVOID pBuffer,
00034                       IN OUT PDWORD pBufferLength)
00035 {
00036     return NULL;
00037 }
00038 
00039 VOID WINAPI
00040 DnsFree(PVOID Data,
00041         DNS_FREE_TYPE FreeType)
00042 {
00043     switch(FreeType)
00044     {
00045         case DnsFreeFlat:
00046             RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
00047             break;
00048 
00049         case DnsFreeRecordList:
00050             DnsIntFreeRecordList( (PDNS_RECORD)Data );
00051             break;
00052 
00053         case DnsFreeParsedMessageFields:
00054             /* assert( FALSE ); XXX arty not yet implemented. */
00055             break;
00056     }
00057 }

Generated on Sat May 26 2012 04:17:04 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.