LsaNtStatusToWinError function

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

Syntax

ULONG LsaNtStatusToWinError(
  NTSTATUS Status
);

Parameters

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

   
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