mciGetErrorString()関数
BOOL mciGetErrorString(
DWORD fdwError,
LPTSTR lpszErrorText,
UINT cchErrorText
);
指定されたMCIエラーコードについて説明するストリングを検索します。
fdwError | Error code returned by the mciSendCommand or mciSendString function. |
lpszErrorText | Pointer to a buffer that receives a null-terminated string describing the specified error. |
cchErrorText | Length of the buffer, in characters, pointed to by the lpszErrorText parameter. |
エラーコードに対応した文字列の文字数はエラーの内容によって異なりますが
最大で128文字になる可能性があると定められています。
Unicodeへの対応も考えれば256バイト以上のバッファを確保すれば十分でしょう。
Comments