Method | Description | |
---|---|---|
MmException ( MMSYSERROR result, string function ) : System | ||
MmException ( int result, string function ) : System |
Creates a new MmException
|
|
Try ( MMSYSERROR result, string function ) : void | ||
Try ( int result, string function ) : void |
Helper function to automatically raise an exception on failure
|
Method | Description | |
---|---|---|
ErrorMessage ( MMSYSERROR result, string function ) : string | ||
ErrorMessage ( int result, string function ) : string |
public MmException ( MMSYSERROR result, string function ) : System | ||
result | MMSYSERROR | |
function | string | |
return | System |
public MmException ( int result, string function ) : System | ||
result | int | The result returned by the Windows API call |
function | string | The name of the Windows API that failed |
return | System |
public static Try ( MMSYSERROR result, string function ) : void | ||
result | MMSYSERROR | |
function | string | |
return | void |
public static Try ( int result, string function ) : void | ||
result | int | The result of the API call |
function | string | The API function name |
return | void |