ReactOS  0.4.13-dev-698-g77671f0
nt_handle Class Reference

#include <shellext.h>

Collaboration diagram for nt_handle:

Public Member Functions

 nt_handle ()
 
 nt_handle (HANDLE nh)
 
 ~nt_handle ()
 
 operator HANDLE () const
 
nt_handleoperator= (const HANDLE nh)
 
HANDLEoperator & ()
 

Private Attributes

HANDLE h = INVALID_HANDLE_VALUE
 

Detailed Description

Definition at line 286 of file shellext.h.

Constructor & Destructor Documentation

◆ nt_handle() [1/2]

nt_handle::nt_handle ( )
inline

Definition at line 288 of file shellext.h.

288  {
289 #ifdef __REACTOS__
291 #endif
292  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ nt_handle() [2/2]

nt_handle::nt_handle ( HANDLE  nh)
inline

Definition at line 294 of file shellext.h.

294  {
295  h = nh;
296  }
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ ~nt_handle()

nt_handle::~nt_handle ( )
inline

Definition at line 298 of file shellext.h.

298  {
299  if (h != INVALID_HANDLE_VALUE)
300  NtClose(h);
301  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399

Member Function Documentation

◆ operator &()

HANDLE* nt_handle::operator & ( )
inline

Definition at line 316 of file shellext.h.

316  {
317  return &h;
318  }
HANDLE h
Definition: shellext.h:322

◆ operator HANDLE()

nt_handle::operator HANDLE ( ) const
inline

Definition at line 303 of file shellext.h.

303  {
304  return h;
305  }
HANDLE h
Definition: shellext.h:322

◆ operator=()

Definition at line 307 of file shellext.h.

307  {
308  if (h != INVALID_HANDLE_VALUE)
309  NtClose(h);
310 
311  h = nh;
312 
313  return *this;
314  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:391
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399

Member Data Documentation

◆ h

HANDLE nt_handle::h = INVALID_HANDLE_VALUE
private

Definition at line 322 of file shellext.h.

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


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