foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields | Private Member Functions
pfc::winHandle

#include <win-objects.h>

Public Member Functions

 winHandle (HANDLE h_=INVALID_HANDLE_VALUE)
 
 ~winHandle ()
 
void Attach (HANDLE h_)
 
void Close ()
 
HANDLE Detach ()
 
HANDLE Get () const
 
 operator HANDLE () const
 

Data Fields

HANDLE h
 

Private Member Functions

 winHandle (const winHandle &)
 
void operator= (const winHandle &)
 

Detailed Description

Definition at line 289 of file win-objects.h.

Constructor & Destructor Documentation

pfc::winHandle::winHandle ( HANDLE  h_ = INVALID_HANDLE_VALUE)
inline

Definition at line 291 of file win-objects.h.

291 : h(h_) {}
pfc::winHandle::~winHandle ( )
inline

Definition at line 292 of file win-objects.h.

292 { Close(); }
pfc::winHandle::winHandle ( const winHandle )
private

Member Function Documentation

void pfc::winHandle::Attach ( HANDLE  h_)
inline

Definition at line 297 of file win-objects.h.

297 { Close(); h = h_; }
void pfc::winHandle::Close ( )
inline

Definition at line 293 of file win-objects.h.

293  {
294  if (h != INVALID_HANDLE_VALUE) { CloseHandle(h); h = INVALID_HANDLE_VALUE; }
295  }
HANDLE pfc::winHandle::Detach ( )
inline

Definition at line 298 of file win-objects.h.

298 { HANDLE t = h; h = INVALID_HANDLE_VALUE; return t; }
typedef HANDLE(WINAPI *pPowerCreateRequest_t)(__in void *Context)
HANDLE pfc::winHandle::Get ( ) const
inline

Definition at line 300 of file win-objects.h.

300 { return h; }
pfc::winHandle::operator HANDLE ( ) const
inline

Definition at line 301 of file win-objects.h.

301 { return h; }
void pfc::winHandle::operator= ( const winHandle )
private

Field Documentation

HANDLE pfc::winHandle::h

Definition at line 303 of file win-objects.h.


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