winrt::from_abi function template (C++/WinRT)
Important
As of version 10.0.17763.0 (Windows 10, version 1809) of the Windows SDK, winrt::from_abi is obsolete. Use winrt::get_self instead.
A helper function which, given an object of a projected type, retrieves a pointer to the implementation. For more details, and code examples, see Instantiating and returning implementation types and interfaces.
Syntax
template <typename D, typename I>
D* from_abi(I const& from) noexcept;
Template parameters
typename D
An implementation type.
typename I
A projected type.
Parameters
from
An object of a projected type, a pointer to whose implementation to retrieve.
Return value
A pointer to the implementation object that implements the interface object.
Requirements
Minimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)
Namespace: winrt
Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro