ReactOS  0.4.15-dev-3299-gbe8e5fc
cunknown.cpp File Reference
#include <stdunk.h>
Include dependency graph for cunknown.cpp:

Go to the source code of this file.

Functions

PVOID KCOM_New (size_t size, POOL_TYPE pool_type, ULONG tag)
 
PVOID __cdecl operator new (size_t size, POOL_TYPE pool_type)
 
PVOID __cdecl operator new (size_t size, POOL_TYPE pool_type, ULONG tag)
 
void __cdecl operator delete (PVOID ptr)
 
void __cdecl operator delete (PVOID ptr, UINT_PTR)
 

Function Documentation

◆ KCOM_New()

PVOID KCOM_New ( size_t  size,
POOL_TYPE  pool_type,
ULONG  tag 
)
inline

Definition at line 16 of file cunknown.cpp.

20 {
21  PVOID result;
22 
23  result = ExAllocatePoolWithTag(pool_type, size, tag);
24 
25  if (result)
27 
28  return result;
29 }
GLuint64EXT * result
Definition: glext.h:11304
Definition: ecma_167.h:138
GLsizeiptr size
Definition: glext.h:5919
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Referenced by operator new().

◆ operator delete() [1/2]

Definition at line 52 of file cunknown.cpp.

54 {
55  ExFreePool(ptr);
56 }
static PVOID ptr
Definition: dispmode.c:27
#define ExFreePool(addr)
Definition: env_spec_w32.h:352

◆ operator delete() [2/2]

Definition at line 60 of file cunknown.cpp.

62 {
63  ExFreePool(ptr);
64 }
static PVOID ptr
Definition: dispmode.c:27
#define ExFreePool(addr)
Definition: env_spec_w32.h:352

◆ operator new() [1/2]

PVOID __cdecl operator new ( size_t  size,
POOL_TYPE  pool_type 
)

Definition at line 33 of file cunknown.cpp.

36 {
37  return KCOM_New(size, pool_type, 'wNcP');
38 }
PVOID KCOM_New(size_t size, POOL_TYPE pool_type, ULONG tag)
Definition: cunknown.cpp:16
GLsizeiptr size
Definition: glext.h:5919

◆ operator new() [2/2]

PVOID __cdecl operator new ( size_t  size,
POOL_TYPE  pool_type,
ULONG  tag 
)

Definition at line 42 of file cunknown.cpp.

46 {
47  return KCOM_New(size, pool_type, tag);
48 }
PVOID KCOM_New(size_t size, POOL_TYPE pool_type, ULONG tag)
Definition: cunknown.cpp:16
Definition: ecma_167.h:138
GLsizeiptr size
Definition: glext.h:5919