Home | History | Annotate | Download | only in win

Lines Matching refs:cfObj

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