HString::CopyTo Method
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at HString::CopyTo Method.
Copies the current HString object to an HSTRING object.
Syntax
HRESULT CopyTo(
_Out_ HSTRING *str
) const throw();
Parameters
str
The HSTRING that receives the copy.
Remarks
This method calls the WindowsDuplicateString function.
Requirements
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers