C# 클래스 System.IO.Win32Marshal

Provides static methods for converting from Win32 errors codes to exceptions, HRESULTS and error messages.
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

비공개 메소드들

메소드 설명
GetExceptionForLastWin32Error ( ) : Exception

Converts, resetting it, the last Win32 error into a corresponding Exception object.

GetExceptionForLastWin32Error ( string path ) : Exception

Converts, resetting it, the last Win32 error into a corresponding Exception object, optionally including the specified path in the error message.

GetExceptionForWin32Error ( int errorCode ) : Exception

Converts the specified Win32 error into a corresponding Exception object.

GetExceptionForWin32Error ( int errorCode, string path ) : Exception

Converts the specified Win32 error into a corresponding Exception object, optionally including the specified path in the error message.

GetMessage ( int errorCode ) : string

Returns a string message for the specified Win32 error code.

MakeHRFromErrorCode ( int errorCode ) : int

Returns a HRESULT for the specified Win32 error code.

TryMakeWin32ErrorCodeFromHR ( int hr ) : int

Returns a Win32 error code for the specified HRESULT if it came from FACILITY_WIN32 If not, returns the HRESULT unchanged