39 references to GetMessage
mscorlib (39)
microsoft\win32\registrykey.cs (3)
937
throw new IOException(Win32Native.
GetMessage
(ret), ret);
1697
throw new IOException(Win32Native.
GetMessage
(errorCode), errorCode);
1711
throw new IOException(Win32Native.
GetMessage
(errorCode), errorCode);
system\diagnostics\eventing\eventprovider.cs (1)
158
throw new ArgumentException(Win32Native.
GetMessage
(unchecked((int)status)));
system\environment.cs (2)
927
throw new ArgumentException(Win32Native.
GetMessage
(errorCode));
1584
throw new InvalidOperationException(Win32Native.
GetMessage
(errorCode));
system\io\__error.cs (2)
171
throw new IOException(Win32Native.
GetMessage
(errorCode), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);
188
throw new IOException(Win32Native.
GetMessage
(errorCode), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);
system\runtime\interopservices\comexception.cs (1)
53
: base(Win32Native.
GetMessage
(hresult))
system\security\cryptography\crypto.cs (1)
113
Win32Native.
GetMessage
(hr)) {
system\security\principal\ntaccount.cs (1)
351
throw new SystemException(Win32Native.
GetMessage
(win32ErrorCode));
system\security\principal\sid.cs (6)
425
throw new SystemException(Win32Native.
GetMessage
(Error));
527
throw new SystemException(Win32Native.
GetMessage
(ErrorCode));
545
throw new ArgumentException( Win32Native.
GetMessage
(Error), "sidType/domainSid" );
550
throw new SystemException( Win32Native.
GetMessage
( Error ));
758
throw new SystemException(Win32Native.
GetMessage
(Error));
999
throw new SystemException(Win32Native.
GetMessage
(win32ErrorCode));
system\security\principal\win32.cs (1)
153
throw new SystemException(Win32Native.
GetMessage
(win32ErrorCode));
system\security\principal\windowsidentity.cs (11)
188
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
415
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
423
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
732
throw new SecurityException(Win32Native.
GetMessage
(hr));
748
Environment.FailFast(Win32Native.
GetMessage
(hr));
755
Environment.FailFast(Win32Native.
GetMessage
(hr));
810
throw new SecurityException(Win32Native.
GetMessage
(hr));
843
return new SecurityException(Win32Native.
GetMessage
(win32ErrorCode));
965
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
970
throw new SecurityException(Win32Native.
GetMessage
(dwErrorCode));
1054
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
system\security\principal\windowsimpersonationcontext.cs (6)
55
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
70
Environment.FailFast(Win32Native.
GetMessage
(hr));
74
Environment.FailFast(Win32Native.
GetMessage
(hr));
77
throw new SecurityException(Win32Native.
GetMessage
(hr));
103
Environment.FailFast(Win32Native.
GetMessage
(hr));
114
Environment.FailFast(Win32Native.
GetMessage
(hr));
system\security\principal\windowsprincipal.cs (2)
247
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
255
throw new SecurityException(Win32Native.
GetMessage
(Marshal.GetLastWin32Error()));
system\security\securitycontext.cs (2)
679
Environment.FailFast(Win32Native.
GetMessage
(hr));
688
Environment.FailFast(Win32Native.
GetMessage
(hr));