C# 클래스 NewTOAPIA.DirectShow.DsError

파일 보기 프로젝트 열기: Wiladams/NewTOAPIA

공개 메소드들

메소드 설명
GetErrorText ( int hr ) : string

Returns a string describing a DS error. Works for both error codes (values < 0) and Status codes (values >= 0)

ThrowExceptionForHR ( int hr ) : void

If hr has a "failed" status code (E_*), throw an exception. Note that status messages (S_*) are not considered failure codes. If DirectShow error text is available, it is used to build the exception, otherwise a generic com error is thrown.

비공개 메소드들

메소드 설명
AMGetErrorText ( int hr, StringBuilder buf, int max ) : int
DsError ( ) : System

메소드 상세

GetErrorText() 공개 정적인 메소드

Returns a string describing a DS error. Works for both error codes (values < 0) and Status codes (values >= 0)
public static GetErrorText ( int hr ) : string
hr int HRESULT for which to get description
리턴 string

ThrowExceptionForHR() 공개 정적인 메소드

If hr has a "failed" status code (E_*), throw an exception. Note that status messages (S_*) are not considered failure codes. If DirectShow error text is available, it is used to build the exception, otherwise a generic com error is thrown.
public static ThrowExceptionForHR ( int hr ) : void
hr int The HRESULT to check
리턴 void