foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
format_win32_error

#include <win-objects.h>

Public Member Functions

 format_win32_error (DWORD p_code)
 
const char * get_ptr () const
 
 operator const char * () const
 

Private Attributes

pfc::string8 m_buffer
 

Detailed Description

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

Constructor & Destructor Documentation

format_win32_error::format_win32_error ( DWORD  p_code)

Definition at line 81 of file win-objects.cpp.

81  {
82  LastErrorRevertScope revert;
83  if (p_code == 0) m_buffer = "Undefined error";
84  else if (!pfc::winFormatSystemErrorMessage(m_buffer,p_code)) m_buffer << "Unknown error code (" << (unsigned)p_code << ")";
85 }
BOOL winFormatSystemErrorMessage(pfc::string_base &p_out, DWORD p_code)
Definition: win-objects.cpp:7
pfc::string8 m_buffer
Definition: win-objects.h:27

Member Function Documentation

const char* format_win32_error::get_ptr ( ) const
inline

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

24 {return m_buffer.get_ptr();}
const char * get_ptr() const
Definition: string_base.h:382
pfc::string8 m_buffer
Definition: win-objects.h:27
format_win32_error::operator const char * ( ) const
inline

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

25 {return m_buffer.get_ptr();}
const char * get_ptr() const
Definition: string_base.h:382
pfc::string8 m_buffer
Definition: win-objects.h:27

Field Documentation

pfc::string8 format_win32_error::m_buffer
private

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


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