ReactOS 0.4.15-dev-8058-ga7cbb60
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:731
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 }

◆ ~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 }
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3402

Member Function Documentation

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

HANDLE * nt_handle::operator& ( )
inline

Definition at line 340 of file shellext.h.

340 {
341 return &h;
342 }

◆ operator=()

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

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 }

Member Data Documentation

◆ h

HANDLE nt_handle::h = INVALID_HANDLE_VALUE
private

Definition at line 346 of file shellext.h.

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


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