MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / ConvertGenericVariantToString

Function ConvertGenericVariantToString

Explorer++/Helper/ShellHelper.cpp:803–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803HRESULT ConvertGenericVariantToString(const VARIANT *vt, TCHAR *szDetail, size_t cchMax)
804{
805 VARIANT vtDest;
806 VariantInit(&vtDest);
807 HRESULT hr = VariantChangeType(&vtDest, vt, 0, VT_BSTR);
808
809 if (SUCCEEDED(hr))
810 {
811 hr = StringCchCopy(szDetail, cchMax, V_BSTR(&vtDest));
812 VariantClear(&vtDest);
813 }
814
815 return hr;
816}
817
818// Returns either the parsing path for the specified item, or its in
819// folder name. The in folder name will be returned when the parsing

Callers 1

ConvertVariantToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected