< prev index next >
src/jdk.jpackage/windows/native/libjpackage/WinErrorHandling.h
Print this page
*** 36,46 ****
SysError(const tstrings::any& msg, const void* caller,
DWORD errorCode=GetLastError(), const char* label="System error");
// returns string "system error <errCode> (error_description)"
// in UNICODE is not defined, the string returned is utf8-encoded
! static std::wstring getSysErrorMessage(DWORD errCode = GetLastError(), HMODULE moduleHandle = NULL);
// returns string "COM error 0x<hr> (error_description)"
// in UNICODE is not defined, the string returned is utf8-encoded
static std::wstring getComErrorMessage(HRESULT hr);
};
--- 36,47 ----
SysError(const tstrings::any& msg, const void* caller,
DWORD errorCode=GetLastError(), const char* label="System error");
// returns string "system error <errCode> (error_description)"
// in UNICODE is not defined, the string returned is utf8-encoded
! static std::wstring getSysErrorMessage(DWORD errCode = GetLastError(),
! HMODULE moduleHandle = NULL);
// returns string "COM error 0x<hr> (error_description)"
// in UNICODE is not defined, the string returned is utf8-encoded
static std::wstring getComErrorMessage(HRESULT hr);
};
< prev index next >