Lines Matching refs:cfObj
97 static bool ConvertCFTypeToVariant(VARIANT* pVar, void* cfObj) in ConvertCFTypeToVariant() argument
99 if (!cfObj) { in ConvertCFTypeToVariant()
106 V_BSTR(pVar) = MarshallingHelpers::CFStringRefToBSTR((CFStringRef) cfObj); in ConvertCFTypeToVariant()
109 V_I4(pVar) = MarshallingHelpers::CFNumberRefToInt((CFNumberRef) cfObj); in ConvertCFTypeToVariant()
113 V_ARRAY(pVar) = MarshallingHelpers::stringArrayToSafeArray((CFArrayRef) cfObj); in ConvertCFTypeToVariant()
116 V_ARRAY(pVar) = MarshallingHelpers::intArrayToSafeArray((CFArrayRef) cfObj); in ConvertCFTypeToVariant()
119 V_ARRAY(pVar) = MarshallingHelpers::iunknownArrayToSafeArray((CFArrayRef) cfObj); in ConvertCFTypeToVariant()
127 static bool ConvertVariantToCFType(VARIANT* pVar, void** cfObj) in ConvertVariantToCFType() argument
130 *cfObj = 0; in ConvertVariantToCFType()
136 *cfObj = (void*) MarshallingHelpers::BSTRToCFStringRef(V_BSTR(pVar)); in ConvertVariantToCFType()
139 *cfObj = (void*) MarshallingHelpers::intToCFNumberRef(V_I4(pVar)); in ConvertVariantToCFType()
143 *cfObj = (void*) MarshallingHelpers::safeArrayToStringArray(V_ARRAY(pVar)); in ConvertVariantToCFType()
146 *cfObj = (void*) MarshallingHelpers::safeArrayToIntArray(V_ARRAY(pVar)); in ConvertVariantToCFType()
149 *cfObj = (void*) MarshallingHelpers::safeArrayToIUnknownArray(V_ARRAY(pVar)); in ConvertVariantToCFType()
183 void* cfObj; in Write() local
184 if (ConvertVariantToCFType(pVar, &cfObj)) { in Write()
186 CFDictionaryAddValue(m_dictionary.get(), key, cfObj); in Write()
189 CFRelease(cfObj); in Write()