A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/uwp/cpp-ref-for-winrt/guid-of below:

winrt::guid_of function template (C++/WinRT) - Windows UWP applications

A helper function template that retrieves the GUID of a runtime class, coclass, or interface; that is, the identifier of the WinRT type. For COM and WinRT interfaces, that's the identifier of the interface. For WinRT classes, it's the identifier of the default interface of the class.

It's only if and when guid_v (see the function's implementation) isn't specialized that the function falls back to using __uuidof, where applicable.

Syntax
template <typename T>
constexpr winrt::guid const& guid_of() noexcept;
Template parameters

typename T The type of the runtime class, coclass, or interface whose GUID you wish to retrieve.

Return value

A winrt::guid value containing the globally unique identifier of T.

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4