20 references to LsaNtStatusToWinError
System.DirectoryServices (20)
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (3)
596
else if ((result == 0) && (global::Interop.Advapi32.
LsaNtStatusToWinError
(protocolStatus) == Interop.Errors.ERROR_NO_SUCH_LOGON_SESSION))
610
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
((result != 0) ? result : protocolStatus));
628
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
(result));
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (2)
259
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
(error), serverName);
356
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (12)
56
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
151
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
227
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
(result), serverName);
277
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
303
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
520
result = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
589
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
654
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
(result), serverName);
718
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
795
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
(result), serverName);
835
uint win32Error = global::Interop.Advapi32.
LsaNtStatusToWinError
(result);
1005
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
(result), serverName);
System\DirectoryServices\ActiveDirectory\Utils.cs (3)
1078
throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.
LsaNtStatusToWinError
(result), serverName);
2154
throw new InvalidOperationException(SR.Format(SR.UnableToRetrievePolicy, global::Interop.Advapi32.
LsaNtStatusToWinError
(err)));
2165
throw new InvalidOperationException(SR.Format(SR.UnableToRetrievePolicy, global::Interop.Advapi32.
LsaNtStatusToWinError
(err)));