winrt::get_abi (C++/WinRT)
Fungsi pembantu yang mengambil pointer ke antarmuka IUnknown yang mendasar objek C++/WinRT. Untuk informasi selengkapnya, dan contoh kode, lihat Interop antara C++/WinRT dan ABI.
Sintaks
template <typename T, typename = std::enable_if_t<!std::is_base_of_v<winrt::Windows::Foundation::IUnknown, T>>>
auto get_abi(T const& object) noexcept;
inline void* get_abi(winrt::Windows::Foundation::IUnknown const& object) noexcept;
inline void* get_abi(winrt::hstring const& object) noexcept;
template <typename T>
static auto get_abi(winrt::array_view<T> object) noexcept;
template <typename T>
auto get_abi(winrt::param::async_iterable<T> const& object) noexcept;
template <typename K, typename V>
auto get_abi(winrt::param::async_map_view<K, V> const& object) noexcept;
template <typename T>
auto get_abi(winrt::param::async_vector_view<T> const& object) noexcept;
template <typename T>
auto get_abi(winrt::com_ptr<T> const& object) noexcept;
template <typename T>
auto get_abi(winrt::param::iterable<T> const& object) noexcept;
template <typename K, typename V>
auto get_abi(winrt::param::map<K, V> const& object) noexcept;
template <typename K, typename V>
auto get_abi(winrt::param::map_view<K, V> const& object) noexcept;
template <typename T>
auto get_abi(winrt::param::vector<T> const& object) noexcept;
template <typename T>
auto get_abi(winrt::param::vector_view<T> const& object) noexcept;
Parameter
object
Objek C++/WinRT yang pointer antarmuka IUnknown-nya akan diambil.
Mengembalikan nilai
Penunjuk ke antarmuka IUnknown dari objek C++/WinRT.
Persyaratan
SDK minimum yang didukung: Windows SDK versi 10.0.17134.0 (Windows 10, versi 1803)
Namespace: winrt
Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (disertakan secara default)