Share via


HString::CopyTo Method

Copies the current HString object to an HSTRING object.

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

See Also

Reference

HString Class