ReactOS 0.4.16-dev-336-gb667d82
baseheap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _BASE_HEAP_HANDLE_ENTRY
 

Macros

#define BH_PRINT   DPRINT
 
#define BASE_TRACE_ALLOC(x, y)
 
#define BASE_TRACE_ALLOC2(x)
 
#define BASE_TRACE_PTR(x, y)
 
#define BASE_TRACE_HANDLE(x, y)
 
#define BASE_TRACE_DEALLOC(x)
 
#define BASE_TRACE_FAILURE()
 
#define BASE_HEAP_ENTRY_FLAG_MOVABLE   0x0002
 
#define BASE_HEAP_ENTRY_FLAG_REUSABLE   0x0004
 
#define BASE_HEAP_ENTRY_FLAG_REUSE   0x0008
 
#define BASE_HEAP_ENTRY_FLAG_DDESHARE   0x0010
 
#define BASE_HEAP_IS_HANDLE_ENTRY    (ULONG_PTR)FIELD_OFFSET(BASE_HEAP_HANDLE_ENTRY, Object)
 
#define BASE_HEAP_FLAG_MOVABLE   HEAP_SETTABLE_USER_FLAG1
 
#define BASE_HEAP_FLAG_DDESHARE   HEAP_SETTABLE_USER_FLAG2
 
#define BaseHeapAllocEntry()    (PBASE_HEAP_HANDLE_ENTRY)RtlAllocateHandle(&BaseHeapHandleTable, NULL)
 
#define BaseHeapGetEntry(h)
 
#define BaseHeapValidateEntry(he)    RtlIsValidHandle(&BaseHeapHandleTable, (PRTL_HANDLE_TABLE_ENTRY)he)
 
#define BaseHeapFreeEntry(he)    RtlFreeHandle(&BaseHeapHandleTable, (PRTL_HANDLE_TABLE_ENTRY)he);
 

Typedefs

typedef struct _BASE_HEAP_HANDLE_ENTRY BASE_HEAP_HANDLE_ENTRY
 
typedef struct _BASE_HEAP_HANDLE_ENTRYPBASE_HEAP_HANDLE_ENTRY
 

Macro Definition Documentation

◆ BASE_HEAP_ENTRY_FLAG_DDESHARE

#define BASE_HEAP_ENTRY_FLAG_DDESHARE   0x0010

Definition at line 86 of file baseheap.h.

◆ BASE_HEAP_ENTRY_FLAG_MOVABLE

#define BASE_HEAP_ENTRY_FLAG_MOVABLE   0x0002

Definition at line 83 of file baseheap.h.

◆ BASE_HEAP_ENTRY_FLAG_REUSABLE

#define BASE_HEAP_ENTRY_FLAG_REUSABLE   0x0004

Definition at line 84 of file baseheap.h.

◆ BASE_HEAP_ENTRY_FLAG_REUSE

#define BASE_HEAP_ENTRY_FLAG_REUSE   0x0008

Definition at line 85 of file baseheap.h.

◆ BASE_HEAP_FLAG_DDESHARE

#define BASE_HEAP_FLAG_DDESHARE   HEAP_SETTABLE_USER_FLAG2

Definition at line 99 of file baseheap.h.

◆ BASE_HEAP_FLAG_MOVABLE

#define BASE_HEAP_FLAG_MOVABLE   HEAP_SETTABLE_USER_FLAG1

Definition at line 98 of file baseheap.h.

◆ BASE_HEAP_IS_HANDLE_ENTRY

#define BASE_HEAP_IS_HANDLE_ENTRY    (ULONG_PTR)FIELD_OFFSET(BASE_HEAP_HANDLE_ENTRY, Object)

Definition at line 91 of file baseheap.h.

◆ BASE_TRACE_ALLOC

#define BASE_TRACE_ALLOC (   x,
  y 
)
Value:
BH_PRINT("[BASE_HEAP] %s : Allocating %lx bytes with flags: %lx\n", \
#define BH_PRINT
Definition: baseheap.h:42
#define __FUNCTION__
Definition: types.h:116
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Definition at line 44 of file baseheap.h.

◆ BASE_TRACE_ALLOC2

#define BASE_TRACE_ALLOC2 (   x)
Value:
BH_PRINT("[BASE_HEAP] %s : Allocated %p\n", \

Definition at line 47 of file baseheap.h.

◆ BASE_TRACE_DEALLOC

#define BASE_TRACE_DEALLOC (   x)
Value:
BH_PRINT("[BASE_HEAP] %s : Freeing %p\n", \

Definition at line 56 of file baseheap.h.

◆ BASE_TRACE_FAILURE

#define BASE_TRACE_FAILURE ( )
Value:
BH_PRINT("[BASE_HEAP] %s : Failing %d\n", \
__FUNCTION__, __LINE__)

Definition at line 59 of file baseheap.h.

◆ BASE_TRACE_HANDLE

#define BASE_TRACE_HANDLE (   x,
  y 
)
Value:
BH_PRINT("[BASE_HEAP] %s : Using handle: %lx for block: %p\n", \

Definition at line 53 of file baseheap.h.

◆ BASE_TRACE_PTR

#define BASE_TRACE_PTR (   x,
  y 
)
Value:
BH_PRINT("[BASE_HEAP] %s : Using handle: %p for pointer: %p\n", \

Definition at line 50 of file baseheap.h.

◆ BaseHeapAllocEntry

Definition at line 104 of file baseheap.h.

◆ BaseHeapFreeEntry

#define BaseHeapFreeEntry (   he)     RtlFreeHandle(&BaseHeapHandleTable, (PRTL_HANDLE_TABLE_ENTRY)he);

Definition at line 116 of file baseheap.h.

◆ BaseHeapGetEntry

#define BaseHeapGetEntry (   h)
Value:
struct _BASE_HEAP_HANDLE_ENTRY * PBASE_HEAP_HANDLE_ENTRY
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
Definition: baseheap.h:69
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object

Definition at line 107 of file baseheap.h.

◆ BaseHeapValidateEntry

#define BaseHeapValidateEntry (   he)     RtlIsValidHandle(&BaseHeapHandleTable, (PRTL_HANDLE_TABLE_ENTRY)he)

Definition at line 113 of file baseheap.h.

◆ BH_PRINT

#define BH_PRINT   DPRINT

Definition at line 42 of file baseheap.h.

Typedef Documentation

◆ BASE_HEAP_HANDLE_ENTRY

◆ PBASE_HEAP_HANDLE_ENTRY