ReactOS  0.4.14-dev-828-g8dc90a4
win_handle Class Reference

#include <shellext.h>

Collaboration diagram for win_handle:

Public Member Functions

 win_handle ()
 
 win_handle (HANDLE nh)
 
 ~win_handle ()
 
 operator HANDLE () const
 
win_handleoperator= (const HANDLE nh)
 
HANDLEoperator & ()
 

Private Attributes

HANDLE h = INVALID_HANDLE_VALUE
 

Detailed Description

Definition at line 226 of file shellext.h.

Constructor & Destructor Documentation

◆ win_handle() [1/2]

win_handle::win_handle ( )
inline

Definition at line 228 of file shellext.h.

228  {
229 #ifdef __REACTOS__
231 #endif
232  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ win_handle() [2/2]

win_handle::win_handle ( HANDLE  nh)
inline

Definition at line 234 of file shellext.h.

234  {
235  h = nh;
236  }
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ ~win_handle()

win_handle::~win_handle ( )
inline

Definition at line 238 of file shellext.h.

238  {
239  if (h != INVALID_HANDLE_VALUE)
240  CloseHandle(h);
241  }
#define CloseHandle
Definition: compat.h:406
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

Member Function Documentation

◆ operator &()

Definition at line 256 of file shellext.h.

256  {
257  return &h;
258  }
HANDLE h
Definition: shellext.h:262

◆ operator HANDLE()

win_handle::operator HANDLE ( ) const
inline

Definition at line 243 of file shellext.h.

243  {
244  return h;
245  }
HANDLE h
Definition: shellext.h:262

◆ operator=()

Definition at line 247 of file shellext.h.

247  {
248  if (h != INVALID_HANDLE_VALUE)
249  CloseHandle(h);
250 
251  h = nh;
252 
253  return *this;
254  }
#define CloseHandle
Definition: compat.h:406
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

Member Data Documentation

◆ h

HANDLE win_handle::h = INVALID_HANDLE_VALUE
private

Definition at line 262 of file shellext.h.


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