ReactOS  0.4.14-dev-604-gcfdd483
CommonShellMalloc Struct Reference

We use a common IMalloc object for all shell memory allocations. More...

#include <shellclasses.h>

Collaboration diagram for CommonShellMalloc:

Public Member Functions

 CommonShellMalloc ()
 
void init ()
 
 ~CommonShellMalloc ()
 
 operator IMalloc * ()
 

Public Attributes

IMalloc_p
 

Detailed Description

We use a common IMalloc object for all shell memory allocations.

Definition at line 222 of file shellclasses.h.

Constructor & Destructor Documentation

◆ CommonShellMalloc()

CommonShellMalloc::CommonShellMalloc ( )
inline

Definition at line 224 of file shellclasses.h.

225  {
226  _p = NULL;
227  }
smooth NULL
Definition: ftsmooth.c:416

◆ ~CommonShellMalloc()

CommonShellMalloc::~CommonShellMalloc ( )
inline

Definition at line 235 of file shellclasses.h.

236  {
237  if (_p)
238  _p->Release();
239  }
ULONG Release()

Member Function Documentation

◆ init()

void CommonShellMalloc::init ( void  )
inline

Definition at line 229 of file shellclasses.h.

230  {
231  if (!_p)
233  }
HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal)
Definition: shellole.c:290
#define CHECKERROR(hr)
Definition: shellclasses.h:162

Referenced by ShellMalloc::ShellMalloc().

◆ operator IMalloc *()

Definition at line 241 of file shellclasses.h.

242  {
243  return _p;
244  }

Member Data Documentation

◆ _p

IMalloc* CommonShellMalloc::_p

Definition at line 246 of file shellclasses.h.

Referenced by CommonShellMalloc(), init(), operator IMalloc *(), and ~CommonShellMalloc().


The documentation for this struct was generated from the following file: