STDMETHODIMP vmsBindStatusCallback::GetBindInfoEx (DWORD *grfBINDF, BINDINFO *pbindinfo, DWORD *grfBINDF2, DWORD *pdwReserved)
{
	HRESULT hr = GetBindInfo (grfBINDF, pbindinfo);
	if (FAILED (hr))
		return hr;

	*grfBINDF2 = BINDF2_READ_DATA_GREATER_THAN_4GB;	

	return S_OK;
}
Exemple #2
0
/**
 *      test case for GetBindInfo() functions 
 */
void
TestEthernet::tcGetBindInfo(void)
{
	cout << "获取绑定信息 :" << endl; 

	BindInfo strBindInfo[MAX_PATH];
	setBindInfo(strBindInfo);
	if (0 != GetBindInfo(strBindInfo,0)) 
	{
		cout << "绑定成功!" << endl; 
		printBindInfo(strBindInfo);
	}
	else
	{
		cout << "绑定失败!" << endl; 
	}
}