Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
688 B

/*++
Copyright (c) 2000 Microsoft Corporation
All rights reserved
Module Name:
memory.hxx
Abstract:
Allocator class.
Author:
Felix Maxa (amaxa) 31-Oct-2000
--*/
#ifndef _TALLOCATOR_HXX_
#define _TALLOCATOR_HXX_
class TAllocator
{
public:
TAllocator(
IN DWORD Options = HEAP_NO_SERIALIZE,
IN SIZE_T InitialSize = 0x1000
);
~TAllocator(
VOID
);
PVOID
AllocMem(
SIZE_T const cbSize
);
VOID
FreeMem(
VOID *CONST pMem
);
private:
HANDLE m_hHeap;
DWORD m_Options;
SIZE_T m_InitialSize;
};
#endif