|
|
ストリーム(IStream)の読み込み
IStream_Read APIの互換関数
|
(2004.11.29) |
// shlwapi.dll version 5.0 or later 互換
static HRESULT Emulete_IStream_Read(
IStream *pstm,
VOID *pv,
ULONG cb)
{
if (pstm == NULL)
{
return E_FAIL;
}
HRESULT hr = S_OK;
try
{
ULONG cbRead = 0;
hr = pstm->Read(pv, cb, &cbRead);
if (FAILED(hr))
{
return hr;
}
}
catch (...)
{
return E_FAIL;
}
return hr;
}
|
|
 |
| © 2003 WAC.com All Right Reserved. |
 |
|