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