ReactOS  0.4.13-dev-650-g34bf247
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 202 of file shellext.h.

Constructor & Destructor Documentation

◆ win_handle() [1/2]

win_handle::win_handle ( )
inline

Definition at line 204 of file shellext.h.

204  {
205 #ifdef __REACTOS__
207 #endif
208  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ win_handle() [2/2]

win_handle::win_handle ( HANDLE  nh)
inline

Definition at line 210 of file shellext.h.

210  {
211  h = nh;
212  }
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ ~win_handle()

win_handle::~win_handle ( )
inline

Definition at line 214 of file shellext.h.

214  {
215  if (h != INVALID_HANDLE_VALUE)
216  CloseHandle(h);
217  }
#define CloseHandle
Definition: compat.h:398
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

Member Function Documentation

◆ operator &()

Definition at line 232 of file shellext.h.

232  {
233  return &h;
234  }
HANDLE h
Definition: shellext.h:238

◆ operator HANDLE()

win_handle::operator HANDLE ( ) const
inline

Definition at line 219 of file shellext.h.

219  {
220  return h;
221  }
HANDLE h
Definition: shellext.h:238

◆ operator=()

Definition at line 223 of file shellext.h.

223  {
224  if (h != INVALID_HANDLE_VALUE)
225  CloseHandle(h);
226 
227  h = nh;
228 
229  return *this;
230  }
#define CloseHandle
Definition: compat.h:398
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

Member Data Documentation

◆ h

HANDLE win_handle::h = INVALID_HANDLE_VALUE
private

Definition at line 238 of file shellext.h.

Referenced by operator &(), and operator HANDLE().


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