chsvlib
chsv helper source code

◆ Win32DlgErrorToWin32Error()

HRESULT Chusov::Win32DlgErrorToWin32Error ( DWORD  dwCommDlgExtendedError)
noexcept

Translates a Windows dialogue error code to the corresponding Windows system error code.

Parameters
[in]dwCommDlgExtendedErroris a Windows error code, originated from a call to one of the common dialogue box functions, which is to be translated to the corresponding Windows system error code.
Returns
The function returns a value of the Windows system error code, which corresponds to the specified dialogue box error code. If the correspondence is not established, the returned value is E_FAIL.