AudRecordLib
|
Implements exceptions and error related functions. More...
Namespaces | |
namespace | AudRecordCLI |
Functions | |
void | ThrowExceptionIfRequired (HRESULT hr) |
BOOL | GetModuleMessage (HMODULE hMod, DWORD messageId, String^ &errorText) |
String^ | GetModuleString (DWORD stringId) |
String^ | FindErrorString (HRESULT hr) |
Implements exceptions and error related functions.
String ^ FindErrorString | ( | HRESULT | hr | ) |
Searches the system message table for an error string that corresponds to a certain HRESULT. If that fails it searches the Windows Media error string dll wmerror.dll
hr | The hresult to message-ise |
BOOL GetModuleMessage | ( | HMODULE | hMod, |
DWORD | messageId, | ||
String^ & | errorText | ||
) |
Searches a module's message table for a string matching a certain id
hMod | The module whose message table is to be searched | |
messageId | The message id to find | |
[out] | errorText | The message contents if the message is found |
String ^ GetModuleString | ( | DWORD | stringId | ) |
Finds a string in AudRecordCLI's message resources and creates a managed version of it.
stringId | The identifier of the message |
void ThrowExceptionIfRequired | ( | HRESULT | hr | ) |
Maps a hresult to the closest managed exception class or to a AudRecordException if no mapping is found
hr | The hresult to map |