chsvlib
chsv helper source code

◆ Win32ErrorToChsvError()

chsverror_t Chusov::Win32ErrorToChsvError ( unsigned long  nError)
noexcept

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

Parameters
[in]nErrorA Windows error code to be translated.
Returns
The function returns a value of the chsvlib error code, which corresponds to the specified Windows 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.

Remarks
The function is only defined if the source is compiled with defined _WIN32.