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

Win32 Namespace Reference

Functions

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

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)
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.


Generated on Sat Jul 13 2019 05:05:21 for ResidualVM by doxygen 1.7.1
curved edge   curved edge