Lines Matching refs:ppropvar
592 HRESULT WINAPI InitPropVariantFromGUIDAsString(REFGUID guid, PROPVARIANT *ppropvar) in InitPropVariantFromGUIDAsString() argument
594 TRACE("(%p %p)\n", guid, ppropvar); in InitPropVariantFromGUIDAsString()
599 ppropvar->vt = VT_LPWSTR; in InitPropVariantFromGUIDAsString()
600 ppropvar->u.pwszVal = CoTaskMemAlloc(39*sizeof(WCHAR)); in InitPropVariantFromGUIDAsString()
601 if(!ppropvar->u.pwszVal) in InitPropVariantFromGUIDAsString()
604 PROPVAR_GUIDToWSTR(guid, ppropvar->u.pwszVal); in InitPropVariantFromGUIDAsString()
626 HRESULT WINAPI InitPropVariantFromBuffer(const VOID *pv, UINT cb, PROPVARIANT *ppropvar) in InitPropVariantFromBuffer() argument
628 TRACE("(%p %u %p)\n", pv, cb, ppropvar); in InitPropVariantFromBuffer()
630 ppropvar->u.caub.pElems = CoTaskMemAlloc(cb); in InitPropVariantFromBuffer()
631 if(!ppropvar->u.caub.pElems) in InitPropVariantFromBuffer()
634 ppropvar->vt = VT_VECTOR|VT_UI1; in InitPropVariantFromBuffer()
635 ppropvar->u.caub.cElems = cb; in InitPropVariantFromBuffer()
636 memcpy(ppropvar->u.caub.pElems, pv, cb); in InitPropVariantFromBuffer()
640 HRESULT WINAPI InitPropVariantFromCLSID(REFCLSID clsid, PROPVARIANT *ppropvar) in InitPropVariantFromCLSID() argument
642 TRACE("(%s %p)\n", debugstr_guid(clsid), ppropvar); in InitPropVariantFromCLSID()
644 ppropvar->u.puuid = CoTaskMemAlloc(sizeof(*ppropvar->u.puuid)); in InitPropVariantFromCLSID()
645 if(!ppropvar->u.puuid) in InitPropVariantFromCLSID()
648 ppropvar->vt = VT_CLSID; in InitPropVariantFromCLSID()
649 memcpy(ppropvar->u.puuid, clsid, sizeof(*ppropvar->u.puuid)); in InitPropVariantFromCLSID()
756 HRESULT WINAPI PropVariantToGUID(const PROPVARIANT *ppropvar, GUID *guid) in PropVariantToGUID() argument
758 TRACE("%p %p)\n", ppropvar, guid); in PropVariantToGUID()
760 switch(ppropvar->vt) { in PropVariantToGUID()
762 return PROPVAR_WCHARToGUID(ppropvar->u.bstrVal, SysStringLen(ppropvar->u.bstrVal), guid); in PropVariantToGUID()
764 return PROPVAR_WCHARToGUID(ppropvar->u.pwszVal, lstrlenW(ppropvar->u.pwszVal), guid); in PropVariantToGUID()
766 memcpy(guid, ppropvar->u.puuid, sizeof(*ppropvar->u.puuid)); in PropVariantToGUID()
770 FIXME("unsupported vt: %d\n", ppropvar->vt); in PropVariantToGUID()