Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
memmgr.h
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:
Windows Kernel
Development Platform:
Visual C++
- /*
- * memmgr.h - Memory manager module description.
- */
- /* Macros
- *********/
- #ifdef DEBUG
- #define AllocateMemory(size, ppv) (GpcszElemHdrSize = TEXT(#size), GpcszElemHdrFile = TEXT(__FILE__), GulElemHdrLine = __LINE__, MyAllocateMemory(size, ppv))
- #else
- #define AllocateMemory(size, ppv) MyAllocateMemory(size, ppv)
- #endif /* DEBUG */
- /* Types
- ********/
- #ifdef DEBUG
- /* SpewHeapSummary() flags */
- typedef enum _spewheapsummaryflags
- {
- /* Spew description of each remaining used element. */
- SHS_FL_SPEW_USED_INFO = 0x0001,
- /* flag combinations */
- ALL_SHS_FLAGS = SHS_FL_SPEW_USED_INFO
- }
- SPEWHEAPSUMMARYFLAGS;
- #endif
- /* Prototypes
- *************/
- /* memmgr.c */
- extern BOOL InitMemoryManagerModule(void);
- extern void ExitMemoryManagerModule(void);
- extern COMPARISONRESULT MyMemComp(PCVOID, PCVOID, DWORD);
- extern BOOL MyAllocateMemory(DWORD, PVOID *);
- extern void FreeMemory(PVOID);
- extern BOOL ReallocateMemory(PVOID, DWORD, PVOID *);
- extern DWORD GetMemorySize(PVOID);
- #ifdef DEBUG
- extern BOOL SetMemoryManagerModuleIniSwitches(void);
- extern void SpewHeapSummary(DWORD);
- #endif
- /* Global Variables
- *******************/
- #ifdef DEBUG
- /* parameters used by debug version of AllocateMemory() */
- extern LPCTSTR GpcszElemHdrSize;
- extern LPCTSTR GpcszElemHdrFile;
- extern ULONG GulElemHdrLine;
- #endif