ReactOS  0.4.14-dev-608-gd495a4f
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 310 of file shellext.h.

Constructor & Destructor Documentation

◆ nt_handle() [1/2]

nt_handle::nt_handle ( )
inline

Definition at line 312 of file shellext.h.

312  {
313 #ifdef __REACTOS__
315 #endif
316  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ nt_handle() [2/2]

nt_handle::nt_handle ( HANDLE  nh)
inline

Definition at line 318 of file shellext.h.

318  {
319  h = nh;
320  }
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723

◆ ~nt_handle()

nt_handle::~nt_handle ( )
inline

Definition at line 322 of file shellext.h.

322  {
323  if (h != INVALID_HANDLE_VALUE)
324  NtClose(h);
325  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
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 340 of file shellext.h.

340  {
341  return &h;
342  }
HANDLE h
Definition: shellext.h:346

◆ operator HANDLE()

nt_handle::operator HANDLE ( ) const
inline

Definition at line 327 of file shellext.h.

327  {
328  return h;
329  }
HANDLE h
Definition: shellext.h:346

◆ operator=()

Definition at line 331 of file shellext.h.

331  {
332  if (h != INVALID_HANDLE_VALUE)
333  NtClose(h);
334 
335  h = nh;
336 
337  return *this;
338  }
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
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 346 of file shellext.h.


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