更新时间:2023-12-01 08:59:46
一个选择是试图获得来自该URL的数据,方法是使用 URLOpenBlockingStream函数
One option is to try to get data from that URL by using the URLOpenBlockingStream function.
示例:
IStream* pStream = NULL;
if (SUCCEEDED(URLOpenBlockingStream(0, "URL string", &pStream, 0, 0))) {
// Release the stream immediately since we don't use the data.
pStream->Release();
return TRUE;
}
else {
return FALSE;
}