将当前 HString 对象复制到 HSTRING 对象。
HRESULT CopyTo(
_Out_ HSTRING *str
) const throw();
参数
- str
接收副本的 HSTRING。
备注
此方法调用 WindowsDuplicateString 函数。
要求
**头文件:**corewrappers.h
**命名空间:**Microsoft::WRL::Wrappers
将当前 HString 对象复制到 HSTRING 对象。
HRESULT CopyTo(
_Out_ HSTRING *str
) const throw();
此方法调用 WindowsDuplicateString 函数。
**头文件:**corewrappers.h
**命名空间:**Microsoft::WRL::Wrappers