Lines Matching refs:hr
96 HRESULT hr = VariantChangeType(&varDest, &varSource, 0, VT_BSTR); in inDouble() local
108 HRESULT hr = S_OK; in inArray() local
109 if (FAILED(hr = SafeArrayDestroy(m_safearray))) in inArray()
110 return hr; in inArray()
111 if (FAILED(hr = SafeArrayCopy(val, &m_safearray))) in inArray()
112 return hr; in inArray()
158 HRESULT hr = S_OK; in inoutString() local
159 if (FAILED( hr = m_bstr.CopyTo(val))) in inoutString()
160 return hr; in inoutString()
184 HRESULT hr = S_OK; in inoutVariant() local
185 if (FAILED(hr = VariantCopy(val, &m_var1))) in inoutVariant()
186 return hr; in inoutVariant()
197 HRESULT hr = S_OK; in inoutArray() local
198 if (FAILED(hr = SafeArrayCopy(*val, &aAr))) in inoutArray()
199 return hr; in inoutArray()
200 if (FAILED(hr = SafeArrayCopy(m_safearray, val))) in inoutArray()
201 return hr; in inoutArray()
202 if (FAILED(hr = SafeArrayCopy(aAr, & m_safearray))) in inoutArray()
203 return hr; in inoutArray()
264 HRESULT hr = S_OK; in outVariant() local
265 if (FAILED(hr = VariantCopy(val, &m_var1))) in outVariant()
266 return hr; in outVariant()
272 HRESULT hr = S_OK; in outArray() local
273 if (FAILED(hr = SafeArrayCopy(m_safearray, val))) in outArray()
390 HRESULT hr = S_OK; in get_prpVariant() local
391 if (FAILED(hr = VariantCopy( pVal, &m_PropVariant))) in get_prpVariant()
392 return hr; in get_prpVariant()
393 return hr; in get_prpVariant()
406 HRESULT hr = S_OK; in get_prpArray() local
407 if (FAILED(hr = SafeArrayCopy( m_PrpArray, pVal))) in get_prpArray()
408 return hr; in get_prpArray()
409 return hr; in get_prpArray()
414 HRESULT hr = S_OK; in put_prpArray() local
415 if (FAILED(hr = SafeArrayDestroy( m_PrpArray))) in put_prpArray()
416 return hr; in put_prpArray()
417 if (FAILED(hr = SafeArrayCopy( newVal, &m_PrpArray))) in put_prpArray()
418 return hr; in put_prpArray()
419 return hr; in put_prpArray()
444 HRESULT hr= S_OK; in mixed1() local
448 return hr; in mixed1()
458 HRESULT hr = S_OK; in inSequenceLong() local
459 if (FAILED(hr = SafeArrayDestroy(m_arLong))) in inSequenceLong()
460 return hr; in inSequenceLong()
461 if (FAILED(hr = SafeArrayCopy(val, & m_arLong))) in inSequenceLong()
462 return hr; in inSequenceLong()
463 return hr; in inSequenceLong()
468 HRESULT hr = S_OK; in inSequenceByte() local
469 if (FAILED(hr = SafeArrayDestroy(m_arByte))) in inSequenceByte()
470 return hr; in inSequenceByte()
471 if (FAILED(hr = SafeArrayCopy(val, & m_arByte))) in inSequenceByte()
472 return hr; in inSequenceByte()
473 return hr; in inSequenceByte()
478 HRESULT hr = S_OK; in inSequenceShort() local
479 if (FAILED(hr = SafeArrayDestroy(m_arShort))) in inSequenceShort()
480 return hr; in inSequenceShort()
481 if (FAILED(hr = SafeArrayCopy(val, & m_arShort))) in inSequenceShort()
482 return hr; in inSequenceShort()
483 return hr; in inSequenceShort()
488 HRESULT hr = S_OK; in inSequenceString() local
489 if (FAILED(hr = SafeArrayDestroy(m_arString))) in inSequenceString()
490 return hr; in inSequenceString()
491 if (FAILED(hr = SafeArrayCopy(val, & m_arString))) in inSequenceString()
492 return hr; in inSequenceString()
493 return hr; in inSequenceString()
498 HRESULT hr = S_OK; in inSequenceFloat() local
499 if (FAILED(hr = SafeArrayDestroy(m_arFloat))) in inSequenceFloat()
500 return hr; in inSequenceFloat()
501 if (FAILED(hr = SafeArrayCopy(val, & m_arFloat))) in inSequenceFloat()
502 return hr; in inSequenceFloat()
503 return hr; in inSequenceFloat()
508 HRESULT hr = S_OK; in inSequenceDouble() local
509 if (FAILED(hr = SafeArrayDestroy(m_arDouble))) in inSequenceDouble()
510 return hr; in inSequenceDouble()
511 if (FAILED(hr = SafeArrayCopy(val, & m_arDouble))) in inSequenceDouble()
512 return hr; in inSequenceDouble()
513 return hr; in inSequenceDouble()
518 HRESULT hr = S_OK; in inSequenceObject() local
519 if (FAILED(hr = SafeArrayDestroy(m_arObject))) in inSequenceObject()
520 return hr; in inSequenceObject()
521 if (FAILED(hr = SafeArrayCopy(val, & m_arObject))) in inSequenceObject()
522 return hr; in inSequenceObject()
523 return hr; in inSequenceObject()
529 HRESULT hr= S_OK; in printArray() local
533 hr= SafeArrayGetLBound( val, 1, &lbound); in printArray()
534 hr= SafeArrayGetUBound( val, 1, &ubound); in printArray()
552 hr= SafeArrayGetElement( val, &i, (void*)&data); in printArray()
556 hr= SafeArrayGetElement( val, &i, (void*)&data); in printArray()
560 hr= SafeArrayGetElement( val, &i, &var); in printArray()
564 hr= SafeArrayGetElement( val, &i, (void*)&data); in printArray()
568 hr= SafeArrayGetElement( val, &i, (void*)&data); in printArray()
574 hr= SafeArrayGetElement( val, &i, (void*)&data); in printArray()
596 HRESULT hr= S_OK; in outSequenceByte() local
597 hr = SafeArrayCopy(m_arByte, val); in outSequenceByte()
598 return hr; in outSequenceByte()
603 HRESULT hr= S_OK; in outSequenceShort() local
604 hr = SafeArrayCopy(m_arShort, val); in outSequenceShort()
605 return hr; in outSequenceShort()
610 HRESULT hr= S_OK; in outSequenceLong() local
611 hr = SafeArrayCopy(m_arLong, val); in outSequenceLong()
612 return hr; in outSequenceLong()
617 HRESULT hr= S_OK; in outSequenceString() local
618 hr = SafeArrayCopy(m_arString, val); in outSequenceString()
619 return hr; in outSequenceString()
624 HRESULT hr= S_OK; in outSequenceFloat() local
625 hr = SafeArrayCopy(m_arFloat, val); in outSequenceFloat()
626 return hr; in outSequenceFloat()
631 HRESULT hr= S_OK; in outSequenceDouble() local
632 hr = SafeArrayCopy(m_arDouble, val); in outSequenceDouble()
633 return hr; in outSequenceDouble()
638 HRESULT hr = S_OK; in outSequenceObject() local
639 hr = SafeArrayCopy(m_arObject, val); in outSequenceObject()
645 HRESULT hr = S_OK; in inoutSequenceByte() local
647 if (FAILED(hr = SafeArrayCopy(*val, &arTemp))) in inoutSequenceByte()
648 return hr; in inoutSequenceByte()
649 if (FAILED(hr = SafeArrayCopy(m_arByte, val))) in inoutSequenceByte()
650 return hr; in inoutSequenceByte()
652 return hr; in inoutSequenceByte()
657 HRESULT hr = S_OK; in inoutSequenceShort() local
659 if (FAILED(hr = SafeArrayCopy(*val, &arTemp))) in inoutSequenceShort()
660 return hr; in inoutSequenceShort()
661 if (FAILED(hr = SafeArrayCopy(m_arShort, val))) in inoutSequenceShort()
662 return hr; in inoutSequenceShort()
664 return hr; in inoutSequenceShort()
669 HRESULT hr = S_OK; in inoutSequenceLong() local
671 if (FAILED(hr = SafeArrayCopy(*val, &arTemp))) in inoutSequenceLong()
672 return hr; in inoutSequenceLong()
673 if (FAILED(hr = SafeArrayCopy(m_arLong, val))) in inoutSequenceLong()
674 return hr; in inoutSequenceLong()
676 return hr; in inoutSequenceLong()
681 HRESULT hr = S_OK; in inoutSequenceString() local
683 if (FAILED(hr = SafeArrayCopy(*val, &arTemp))) in inoutSequenceString()
684 return hr; in inoutSequenceString()
685 if (FAILED(hr = SafeArrayCopy(m_arString, val))) in inoutSequenceString()
686 return hr; in inoutSequenceString()
688 return hr; in inoutSequenceString()
693 HRESULT hr = S_OK; in inoutSequenceFloat() local
695 if (FAILED(hr = SafeArrayCopy(*val, &arTemp))) in inoutSequenceFloat()
696 return hr; in inoutSequenceFloat()
697 if (FAILED(hr = SafeArrayCopy(m_arFloat, val))) in inoutSequenceFloat()
698 return hr; in inoutSequenceFloat()
700 return hr; in inoutSequenceFloat()
705 HRESULT hr = S_OK; in inoutSequenceDouble() local
707 if (FAILED(hr = SafeArrayCopy(*val, &arTemp))) in inoutSequenceDouble()
708 return hr; in inoutSequenceDouble()
709 if (FAILED(hr = SafeArrayCopy(m_arDouble, val))) in inoutSequenceDouble()
710 return hr; in inoutSequenceDouble()
712 return hr; in inoutSequenceDouble()
717 HRESULT hr = S_OK; in inoutSequenceObject() local
719 if (FAILED(hr = SafeArrayCopy(*val, &arTemp))) in inoutSequenceObject()
720 return hr; in inoutSequenceObject()
721 if (FAILED(hr = SafeArrayCopy(m_arObject, val))) in inoutSequenceObject()
722 return hr; in inoutSequenceObject()
724 return hr; in inoutSequenceObject()
754 HRESULT hr = S_OK; in inMulDimArrayByte() local
755 if (FAILED(hr = SafeArrayDestroy(m_arByteDim2))) in inMulDimArrayByte()
756 return hr; in inMulDimArrayByte()
757 if (FAILED(hr = SafeArrayCopy(val, & m_arByteDim2))) in inMulDimArrayByte()
758 return hr; in inMulDimArrayByte()
759 return hr; in inMulDimArrayByte()
773 HRESULT hr= S_OK; in printMulArray() local
790 hr= SafeArrayGetLBound( val, 1, &lbound1); in printMulArray()
791 hr= SafeArrayGetUBound( val, 1, &ubound1); in printMulArray()
794 hr= SafeArrayGetLBound( val, 2, &lbound2); in printMulArray()
795 hr= SafeArrayGetUBound( val, 2, &ubound2); in printMulArray()
811 hr= SafeArrayGetElement( val, index, &longVal); in printMulArray()
815 hr= SafeArrayGetElement( val, index, &longVal); in printMulArray()
819 hr= SafeArrayGetElement( val, index, &var ); in printMulArray()
832 hr= SafeArrayGetLBound( val, 1, &lbound1); in printMulArray()
833 hr= SafeArrayGetUBound( val, 1, &ubound1); in printMulArray()
836 hr= SafeArrayGetLBound( val, 2, &lbound2); in printMulArray()
837 hr= SafeArrayGetUBound( val, 2, &ubound2); in printMulArray()
840 hr= SafeArrayGetLBound( val, 3, &lbound3); in printMulArray()
841 hr= SafeArrayGetUBound( val, 3, &ubound3); in printMulArray()
860 hr= SafeArrayGetElement( val, index, &longVal); in printMulArray()
864 hr= SafeArrayGetElement( val, index, &longVal); in printMulArray()
869 hr= SafeArrayGetElement( val, index, &var ); in printMulArray()
908 HRESULT hr = S_OK; in optional2() local
912 hr = VariantCopy(val2, & m_var1); in optional2()
913 return hr; in optional2()
929 HRESULT hr = S_OK; in optional4() local
934 if (FAILED(hr = VariantCopy(val1, & m_var1))) in optional4()
935 return hr; in optional4()
941 if (FAILED(hr = VariantCopy(val2, & m_var2))) in optional4()
942 return hr; in optional4()
945 return hr; in optional4()
951 HRESULT hr = S_OK; in optional5() local
952 if (FAILED(hr = VariantCopy(val1, &m_var1))) in optional5()
953 return hr; in optional5()
954 if (FAILED(hr = VariantCopy(val2, &m_var2))) in optional5()
955 return hr; in optional5()
956 return hr; in optional5()
975 HRESULT hr = S_OK; in defaultvalue2() local
984 if (FAILED(hr = VariantCopy(val4, &m_var2))) in defaultvalue2()
985 return hr; in defaultvalue2()
990 return hr; in defaultvalue2()
999 HRESULT hr = S_OK; in varargfunc1() local
1000 if (FAILED(hr = SafeArrayDestroy(m_safearray))) in varargfunc1()
1001 return hr; in varargfunc1()
1002 if (FAILED(hr = SafeArrayCopy(val2, & m_safearray))) in varargfunc1()
1004 if (hr != E_INVALIDARG) in varargfunc1()
1005 return hr; in varargfunc1()
1013 HRESULT hr = SafeArrayCopy(m_safearray, val2); in varargfunc2() local
1014 return hr; in varargfunc2()
1019 HRESULT hr = S_OK; in inSequenceByteDim2() local
1020 if (FAILED(hr = SafeArrayDestroy(m_arByteDim2))) in inSequenceByteDim2()
1021 return hr; in inSequenceByteDim2()
1022 if (FAILED(hr = SafeArrayCopy(val, & m_arByteDim2))) in inSequenceByteDim2()
1023 return hr; in inSequenceByteDim2()
1024 return hr; in inSequenceByteDim2()
1166 HRESULT hr = S_OK; in inrefVariant() local
1167 if (FAILED(hr = VariantCopy( & m_var1, val))) in inrefVariant()
1168 return hr; in inrefVariant()
1192 HRESULT hr = S_OK; in get_prprefVariant() local
1193 hr = VariantCopy(pVal, & m_var1); in get_prprefVariant()
1194 return hr; in get_prprefVariant()
1218 HRESULT hr = S_OK; in optional6() local
1219 if (FAILED(hr = m_var1.Copy(val1))) in optional6()
1220 return hr; in optional6()
1221 if (FAILED(hr = m_var2.Copy(val2))) in optional6()
1222 return hr; in optional6()
1223 if (FAILED(hr = m_var3.Copy(val3))) in optional6()
1224 return hr; in optional6()
1225 if (FAILED(hr = m_var4.Copy(val4))) in optional6()
1226 return hr; in optional6()
1232 HRESULT hr = S_OK; in optional7() local
1233 if (FAILED(hr = VariantCopy(val1, & m_var1))) in optional7()
1234 return hr; in optional7()
1235 if (FAILED(hr = VariantCopy(val2, & m_var2))) in optional7()
1236 return hr; in optional7()
1237 if (FAILED(hr = VariantCopy(val3, & m_var3))) in optional7()
1238 return hr; in optional7()
1239 if (FAILED(hr = VariantCopy(val4, & m_var4))) in optional7()
1240 return hr; in optional7()
1247 HRESULT hr = S_OK; in get_prpMultiArg1() local
1251 if (FAILED(hr = VariantCopy(val1, & m_var1))) in get_prpMultiArg1()
1252 return hr; in get_prpMultiArg1()
1253 if (FAILED(hr = VariantCopy(val2, & m_var2))) in get_prpMultiArg1()
1254 return hr; in get_prpMultiArg1()
1257 if (FAILED(hr = VariantCopy(pVal, & m_var3))) in get_prpMultiArg1()
1258 return hr; in get_prpMultiArg1()
1264 HRESULT hr = S_OK; in put_prpMultiArg1() local
1268 if (FAILED(hr = VariantCopy(val1, & m_var1))) in put_prpMultiArg1()
1269 return hr; in put_prpMultiArg1()
1270 if (FAILED(hr = VariantCopy(val2, & m_var2))) in put_prpMultiArg1()
1271 return hr; in put_prpMultiArg1()
1283 HRESULT hr = S_OK; in get_prpMultiArg2() local
1286 if (FAILED(hr = VariantCopy(pVal, & m_var2))) in get_prpMultiArg2()
1287 return hr; in get_prpMultiArg2()
1301 HRESULT hr = S_OK; in prpMultiArg2GetValues() local
1303 return hr; in prpMultiArg2GetValues()
1305 return hr; in prpMultiArg2GetValues()