LsaNtStatusToWinError function

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

Syntax


ULONG LsaNtStatusToWinError(
  _In_  NTSTATUS Status
);

Parameters

Status [in]

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]

Header

Ntsecapi.h

Library

Advapi32.lib

DLL

Advapi32.dll

See also

LSA Policy Function Return Values

 

 

Community Additions

ADD
Show:
© 2014 Microsoft