uLib  User mode C/C++ extended API library for Win32 programmers.
MemFunc.h File Reference
#include <uLib/Common.h>

Go to the source code of this file.

Classes

class  SharedMem
 Interprocess shared memory. More...
 

Macros

#define PHYSICAL_PTR(hmem)   (*(PVOID*)hmem)
 

Typedefs

typedef HANDLE HPHYSICAL
 

Functions

void * mem_Alloc (size_t Bytes)
 
void * mem_Realloc (void *pBlk, size_t Bytes)
 
void * mem_Free (void *pBlk)
 
bool mem_Compact ()
 
PVOID AllocMemoryPages (WORD nPages, DWORD Access=PAGE_READWRITE)
 
PVOID FreeMemoryPages (PVOID pBlk)
 
DWORD GetMemoryPageSize ()
 
UINT GetPageRegionSize (PVOID pBlk)
 
PVOID GetPageBaseAddress (PVOID pBlk)
 
PVOID GetPageAllocationBase (PVOID pBlk)
 
HPHYSICAL PhysicalAlloc (UINT64 nBytes)
 
HPHYSICAL PhysicalFree (HPHYSICAL hMem)
 
PVOID PhysicalPtr (HPHYSICAL hMem)
 
UINT64 PhysicalSize (HPHYSICAL hMem)
 
ULONG_PTR PhysicalPageCount (HPHYSICAL hMem)
 

Variables

HANDLE app_Heap