chrome/browser/system_monitor/portable_device_watcher_win.cc
// Wrapper function to get content property string value.
Wrapper function to get content property string value.
Wrapper function to get content property string value .
bool GetStringPropertyValue(IPortableDeviceValues* properties_values,
                            REFPROPERTYKEY key,
                            string16* value) {
  DCHECK(properties_values);
  DCHECK(value);
  base::win::ScopedCoMem<char16> buffer;
  HRESULT hr = properties_values->GetStringValue(key, &buffer);
  if (FAILED(hr))
    return false;
  *value = static_cast<const char16*>(buffer);
  return true;
}
bool GetStringPropertyValue ( IPortableDeviceValues * properties_values , REFPROPERTYKEY key , string16 * value ) { DCHECK ( properties_values ) ; DCHECK ( value ) ; base :: win :: ScopedCoMem < char16 > buffer ; HRESULT hr = properties_values -> GetStringValue ( key , & buffer ) ; if ( FAILED ( hr ) ) return false ; * value = static_cast < const char16 * > ( buffer ) ; return true ; }
Wrapper function to get content property string value.
Wrapper function to get content property string value .