mciGetErrorString()関数


BOOL mciGetErrorString(
 DWORD fdwError,
 LPTSTR lpszErrorText,
 UINT cchErrorText
);

指定されたMCIエラーコードについて説明するストリングを検索します。

fdwErrorError code returned by the mciSendCommand or mciSendString function.
lpszErrorTextPointer to a buffer that receives a null-terminated string describing the specified error.
cchErrorTextLength of the buffer, in characters, pointed to by the lpszErrorText parameter.

エラーコードに対応した文字列の文字数はエラーの内容によって異なりますが
最大で128文字になる可能性があると定められています。
Unicodeへの対応も考えれば256バイト以上のバッファを確保すれば十分でしょう。
Windows > マルチメディア | comments (0) | trackbacks (0)

Comments

Comment Form

icons:

Trackbacks