LsaNtStatusToWinError Function

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

Syntax

C++
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 clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderNtsecapi.h
LibraryAdvapi32.lib
DLLAdvapi32.dll

See Also

LSA Policy Function Return Values

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags :


Community Content

dmex
vb.net syntax
<DllImport("advapi32.dll", CharSet:=CharSet.Unicode, SetLastError:=True)> _
Public Shared Function LsaNtStatusToWinError(<[In]> ByVal status As Integer) As Integer
End Function
Tags : vb.net syntax

dmex
C# syntax
[DllImport("advapi32.dll", CharSet=CharSet.Unicode, SetLastError=true)]
public static extern int LsaNtStatusToWinError([In] int status);
Tags : c# syntax

Page view tracker