Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPortableDeviceValues::CopyValuesFromPropertyStore method

The CopyValuesFromPropertyStore method copies the contents of an IPropertyStore into the collection.

Syntax


HRESULT CopyValuesFromPropertyStore(
  [in] IPropertyStore *pStore
);

Parameters

pStore [in]

Pointer to an IPropertyStore to copy into the collection.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Remarks

This method automatically converts all VT_BSTR values to VT_LPWSTR values.

Many external applications or components that communicate with your application, such as some shell applications, use the IPropertyStore interface. This method provides a quick and easy way to exchange data with these programs.

This method is supported in Windows Vista and later versions of Windows.

Requirements

Header

PortableDeviceTypes.h

Library

PortableDeviceGUIDs.lib

See also

IPortableDeviceValues Interface
IPortableDeviceValues::CopyValuesToPropertyStore

 

 

Community Additions

Show:
© 2017 Microsoft