csutil/win32/wintools.h File Reference
Win32 tool functions. More...
#include "csextern.h"
#include "csutil/csunicode.h"
#include "csutil/util.h"
#include <winnls.h>
#include "sanity.inc"
Go to the source code of this file.
Classes | |
struct | cswinCtoA |
Small helper to convert an UTF-8 to an ANSI string, useful when passing arguments to a function. More... | |
struct | cswinWtoA |
Small helper to convert a wide to an ANSI string, useful when passing arguments to a function. More... | |
Enumerations | |
enum | cswinWindowsVersion { cswinWin9x = 30, cswinWinNT = 40, cswinWin2K = 50, cswinWinXP = 51 } |
Windows versions cswinIsWinNT() can identify. More... | |
Functions | |
static wchar_t * | cswinAnsiToWide (const char *ansi, UINT codePage=CP_ACP) |
Convert an ANSI string to a wide string. | |
char * | cswinGetErrorMessage (HRESULT code) |
Retrieve the system's description for an error code. | |
wchar_t * | cswinGetErrorMessageW (HRESULT code) |
Retrieve the system's description for an error code. | |
bool | cswinIsWinNT (cswinWindowsVersion *version=0) |
Returns 'true' if the current Windows is from the NT strain, 'false' if from the 9x strain. | |
static char * | cswinWideToAnsi (const wchar_t *wide, UINT codePage=CP_ACP) |
Convert a wide string to an ANSI string. |
Detailed Description
Win32 tool functions.
Definition in file wintools.h.
Enumeration Type Documentation
|
Windows versions cswinIsWinNT() can identify.
Definition at line 161 of file wintools.h. |
Function Documentation
|
Convert an ANSI string to a wide string.
Definition at line 41 of file wintools.h. |
|
Retrieve the system's description for an error code.
|
|
Retrieve the system's description for an error code.
|
|
Returns 'true' if the current Windows is from the NT strain, 'false' if from the 9x strain.
|
|
Convert a wide string to an ANSI string.
Definition at line 65 of file wintools.h. Referenced by cswinCtoA::cswinCtoA(), and cswinWtoA::cswinWtoA(). |
Generated for Crystal Space by doxygen 1.4.6