LsaNtStatusToWinError function (ntsecapi.h)

The LsaNtStatusToWinError function converts an NTSTATUS code returned by an LSA function to a Windows error code.

Syntax

ULONG LsaNtStatusToWinError(
  [in] NTSTATUS Status
);

Parameters

[in] Status

An NTSTATUS code returned by an LSA function call. This value will be converted to a System error code.

Return value

The return value is the Windows error code that corresponds to the Status parameter. If there is no corresponding Windows error code, the return value is ERROR_MR_MID_NOT_FOUND.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header ntsecapi.h
Library Advapi32.lib
DLL Advapi32.dll

See also

LSA Policy Function Return Values