Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CM_MapCrToWin32Err function

Converts a specified CONFIGRET code to its equivalent system error code.

Syntax


DWORD CM_MapCrToWin32Err(
  _In_ CONFIGRET CmReturnCode,
  _In_ DWORD     DefaultErr
);

Parameters

CmReturnCode [in]

The CONFIGRET code to be converted. CONFIGRET error codes are defined in CfgMgr32.h.

DefaultErr [in]

A default system error code to be returned when no system error code is mapped to the specified CONFIGRET code.

Return value

The system error code that corresponds to the CONFIGRET code. System error codes are defined in Winerror.h.

When there is no mapping from the specified CONFIGRET code to a system error code, CM_MapCrToWin32Err returns the value specified in the DefaultErr parameter.

Requirements

Target platform

Universal

Version

Available in Windows 7 and later versions of Windows.

Header

CfgMgr32.h

Library

CfgMgr32.lib;
OneCoreUAP.lib on Windows 10

DLL

CfgMgr32.dll

 

 

Send comments about this topic to Microsoft

Show: