ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Win32 Namespace Reference

Classes

struct  CodePageDescription

Functions

int getCodePageId (Common::String codePageName)
bool confirmWindowsVersion (int majorVersion, int minorVersion)
 Checks if the current running Windows version is greater or equal to the specified version.
wchar_t * ansiToUnicode (const char *s, uint codePage=CP_ACP)
 Converts a C string into a Windows wide-character string.
char * unicodeToAnsi (const wchar_t *s, uint codePage=CP_ACP)
 Converts a Windows wide-character string into a C string.
uint getCurrentCharset ()

Variables

const CodePageDescription g_cpDescriptions []

Function Documentation

wchar_t * Win32::ansiToUnicode ( const char *  s,
uint  codePage = CP_ACP 
)

Converts a C string into a Windows wide-character string.

Used to interact with Win32 Unicode APIs with no ANSI fallback.

Parameters:
s Source string
Returns:
Converted string
Note:
Return value must be freed by the caller.
bool Win32::confirmWindowsVersion ( int  majorVersion,
int  minorVersion 
)

Checks if the current running Windows version is greater or equal to the specified version.

See: https://docs.microsoft.com/en-us/windows/desktop/sysinfo/operating-system-version

Parameters:
majorVersion The major version number (x.0)
minorVersion The minor version number (0.x)
int Win32::getCodePageId ( Common::String  codePageName  ) 

Definition at line 195 of file codepage.h.

uint Win32::getCurrentCharset (  ) 
char * Win32::unicodeToAnsi ( const wchar_t *  s,
uint  codePage = CP_ACP 
)

Converts a Windows wide-character string into a C string.

Used to interact with Win32 Unicode APIs with no ANSI fallback.

Parameters:
s Source string
Returns:
Converted string
Note:
Return value must be freed by the caller.

Variable Documentation

Definition at line 36 of file codepage.h.



Generated on Sat Aug 1 2020 05:04:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge