메소드 | 설명 | |
---|---|---|
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 |
public static GetErrorText ( int hr ) : string | ||
hr | int | HRESULT for which to get description |
리턴 | string |
public static ThrowExceptionForHR ( int hr ) : void | ||
hr | int | The HRESULT to check |
리턴 | void |