Lines Matching refs:hr
72 HRESULT hr; in _tmain() local
73 if( FAILED( hr=CoInitialize(NULL))) in _tmain()
82 if( FAILED(hr=doTest())) in _tmain()
84 _com_error err( hr); in _tmain()
119 HRESULT hr; in doTest() local
162 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodByte"), &varParam1, &varRet); in doTest()
163 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodByte"), &varParam1, &varRet); in doTest()
165 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"Testinout_methodByte"), &varParam1, &varRet); in doTest()
166 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"Testinout_methodByte"), &varParam1, &varRet); in doTest()
168 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"Testinout"), &varParam1, &varRet); in doTest()
169 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"Testinout"), &varParam1, &varRet); in doTest()
174 hr= oletest.PutPropertyByName( static_cast<LPCOLESTR>(L"AttrByte"), &varParam1); in doTest()
175 hr= oletest.PutPropertyByName( static_cast<LPCOLESTR>(L"AttrByte"), &varParam1); in doTest()
177 hr= oletest.PutPropertyByName( static_cast<LPCOLESTR>(L"attrByte"), &varParam1); in doTest()
178 hr= oletest.PutPropertyByName( static_cast<LPCOLESTR>(L"attrByte"), &varParam1); in doTest()
180 hr= oletest.PutPropertyByName( static_cast<LPCOLESTR>(L"attr"), &varParam1); in doTest()
181 hr= oletest.PutPropertyByName( static_cast<LPCOLESTR>(L"attr"), &varParam1); in doTest()
184 hr= oletest.GetPropertyByName( static_cast<LPCOLESTR>(L"AttrByte"), &varRet); in doTest()
186 hr= oletest.GetPropertyByName( static_cast<LPCOLESTR>(L"attrByte"), &varRet); in doTest()
187 hr= oletest.GetPropertyByName( static_cast<LPCOLESTR>(L"attrByte"), &varRet); in doTest()
189 hr= oletest.GetPropertyByName( static_cast<LPCOLESTR>(L"attrBy"), &varRet); in doTest()
190 hr= oletest.GetPropertyByName( static_cast<LPCOLESTR>(L"attrBy"), &varRet); in doTest()
194 hr = oletest.p->GetIDsOfNames(IID_NULL, &method, 1, LOCALE_USER_DEFAULT, &dispid); in doTest()
202 hr = oletest.p->Invoke(dispid, IID_NULL, LOCALE_USER_DEFAULT, in doTest()
205 hr = oletest.p->Invoke(dispid, IID_NULL, LOCALE_USER_DEFAULT, in doTest()
210 hr = oletest.p->GetIDsOfNames(IID_NULL, &method2, 1, LOCALE_USER_DEFAULT, &dispid); in doTest()
212 hr = oletest.p->Invoke(dispid, IID_NULL, LOCALE_USER_DEFAULT, in doTest()
215 hr = oletest.p->Invoke(dispid, IID_NULL, LOCALE_USER_DEFAULT, in doTest()
219 hr = oletest.p->GetIDsOfNames(IID_NULL, &attrib, 1, LOCALE_USER_DEFAULT, &dispid); in doTest()
221 hr = oletest.p->Invoke( dispid, IID_NULL, LOCALE_USER_DEFAULT, in doTest()
224 hr = oletest.p->Invoke( dispid, IID_NULL, LOCALE_USER_DEFAULT, in doTest()
256 hr= OleCreateFontIndirect( &fd, __uuidof( IUnknown), (void**)&unk1.p); in doTest()
257 hr= OleCreateFontIndirect( &fd, __uuidof( IUnknown), (void**)&unk2.p); in doTest()
258 hr= OleCreateFontIndirect( &fd, __uuidof( IUnknown), (void**)&unk3.p); in doTest()
305 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"methodByte"), &varByteArray, &varRet); in doTest()
311 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"methodShort"), &varShortArray, &varRet); in doTest()
317 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"methodLong"), &varLongArray, &varRet); in doTest()
323 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"methodDouble"), &varDoubleArray, &varRet); in doTest()
329 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"methodString"), &varStringArray, &varRet); in doTest()
335 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"methodAny"), &varArray, &varRet); in doTest()
341 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"methodXInterface"), &varUnkArray, &varRet); in doTest()
349 hr= oletest.InvokeN(static_cast<LPCOLESTR>(L"testout_methodByte"), &varOutByte, 1, &varRet); in doTest()
354 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testout_methodShort"), &varOutShort, &varRet); in doTest()
359 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testout_methodLong"), &varOutLong, &varRet); in doTest()
364 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testout_methodDouble"), &varOutDouble, &varRet); in doTest()
369 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testout_methodString"), &varOutString, &varRet); in doTest()
374 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testout_methodAny"), &varOutAny, &varRet); in doTest()
379 …hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testout_methodXInterface"), &varOutXInterface, &varRe… in doTest()
394 hr= oletest.InvokeN( static_cast<LPCOLESTR>(L"testout_methodMulParams1"), (VARIANT*)&_params, 2); in doTest()
405 hr= oletest.InvokeN( static_cast<LPCOLESTR>( L"testout_methodMulParams2"), (VARIANT*)&_params2, 3); in doTest()
415 hr= oletest.InvokeN( static_cast<LPCOLESTR>( L"testout_methodMulParams3"), (VARIANT*)&_params3, 2); in doTest()
425 hr= oletest.InvokeN(static_cast<LPCOLESTR>(L"testinout_methodByte"), &varOutByte, 1, &varRet); in doTest()
431 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodShort"), &varOutShort, &varRet); in doTest()
437 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodLong"), &varOutLong, &varRet); in doTest()
443 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodDouble"), &varOutDouble, &varRet); in doTest()
450 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodString"), &varOutString, &varRet); in doTest()
459 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodAny"), &varOutAny, &varRet); in doTest()
470 hr= oletest.Invoke1(static_cast<LPCOLESTR>(L"testinout_methodXInterface"), &varOutIFace, &varRet); in doTest()
482 hr= oletest.PutPropertyByName( static_cast<LPCOLESTR>(L"AttrByte"), &varParam1); in doTest()
485 hr= oletest.GetPropertyByName( static_cast<LPCOLESTR>(L"AttrByte"), &varRet); in doTest()
497 HRESULT hr; in printVariant() local
500 hr= VariantCopyInd( &var, &_var); in printVariant()
507 hr= SafeArrayGetLBound( sarray, 1, &lbound); in printVariant()
508 hr= SafeArrayGetUBound( sarray, 1, &ubound); in printVariant()
531 hr= SafeArrayGetElement( sarray, &i, &byteValue); in printVariant()
537 hr= SafeArrayGetElement( sarray, &i, &charValue); in printVariant()
543 hr= SafeArrayGetElement( sarray, &i, &shortValue); in printVariant()
551 hr= SafeArrayGetElement( sarray, &i, &longValue); in printVariant()
557 hr= SafeArrayGetElement( sarray, &i, &doubleValue); in printVariant()
563 hr= SafeArrayGetElement( sarray, &i, &bstrValue); in printVariant()
569 hr= SafeArrayGetElement( sarray, &i, &varTemp); in printVariant()
574 hr= SafeArrayGetElement( sarray, &i, &unkValue); in printVariant()
617 hr= disp.GetPropertyByName( static_cast<LPCOLESTR>(L"Name"), &ret); in printVariant()
626 if( SUCCEEDED( hr= disp.GetPropertyByName( static_cast<LPCOLESTR>(L"Name"), &ret))) in printVariant()