chsvlib
chsv helper source code

◆ Win32DlgErrorToChsvError()

chsverror_t Chusov::Win32DlgErrorToChsvError ( DWORD  dwCommDlgExtendedError)
noexcept

Translates a Windows dialogue error code to the corresponding chsvlib 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 chsvlib error code.
Returns
The function returns a value of the chsvlib error code, which corresponds to the specified dialogue box error code. If the correspondence is not established, the returned value is CHSVERROR_PLATFORM_ERROR.

Possible chsvlib error codes to be returned are defined in the Error handling group.