WindowsUtils.errorMessage

Translate a Win32 error code (as returned by GetLastError()) into the corresponding message. The message is either language neutral, or in the thread's language, or the user's language, the system's language, or US English (see docs for FormatMessage()). The returned string is in UTF-8. It should be deallocated with g_free().

class WindowsUtils
static
string
errorMessage
(
int error
)

Parameters

error int

error code.

Return Value

Type: string

newly-allocated error message

Meta