ReactOS 0.4.16-dev-320-g3bd9ddc
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:731
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 }

◆ ~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:739

Member Function Documentation

◆ 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&()

HANDLE * win_handle::operator& ( )
inline

Definition at line 256 of file shellext.h.

256 {
257 return &h;
258 }

◆ operator=()

win_handle & win_handle::operator= ( const HANDLE  nh)
inline

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 }

Member Data Documentation

◆ h

HANDLE win_handle::h = INVALID_HANDLE_VALUE
private

Definition at line 262 of file shellext.h.

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


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