admin
base
com
developer
drivers
ds
enduser
inetcore
inetsrv
loc
mergedcomponents
multimedia
net
printscan
ddk
dload
fax
faxsrv
inc
lib
print
drivers
embedded
spooler
dbglib
exts
idl
inc
inetpp2
inetsrv
localspl
monitors
oleprn
perflib
prtprocs
scripts
splexts
spllib
splsetup
spoolss
bidispl
client
daytona
hydra
bind.c
change.c
client.h
clusspl.c
cstrings.c
cstrings.h
data.c
defprn.c
defprn.h
devmode.c
dirs
drvsetup.c
drvsetup.h
dsutil.cxx
dsutil.hxx
handle.c
init.c
memory.cxx
memory.hxx
midluser.c
pfdlg.c
pfdlg.h
precomp.h
prnprst.cxx
prnprst.hxx
prnstrm.cxx
prnstrm.hxx
prop.c
property.cxx
property.hxx
pubprn.cxx
pubprn.hxx
resource.h
sources.inc
splinit.c
splperst.cxx
splwow64c.c
stream.cxx
stream.hxx
util.c
varconv.cxx
varconv.hxx
winspla.c
winsplc.c
winspool.c
winspool.def
winspool.prf
winspool.rc
wlkprn.cxx
wlkprn.hxx
dll
idl
perf
server
splwow64
win32
dirs
wpnpinst
dirs
makefil0
dirs
publish
scan
ui
wia
dirs
project.mk
public
published
sdktools
shell
termsrv
tools
windows
dirs
makefil0
54 lines
688 B
C++
54 lines
688 B
C++
/*++
|
|
|
|
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
|