File: _generated\196\Windows.Win32.PInvokeCore.api-ms-win-core-winrt-l1-1-0.dll.g.cs
Web Access
Project: src\winforms\src\System.Private.Windows.Core\src\System.Private.Windows.Core.csproj (System.Private.Windows.Core)
// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

#pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981,SYSLIB1092,CS3021,CS3019
using global::System;
using global::System.Diagnostics;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.CompilerServices;
using global::System.Runtime.InteropServices;
using global::System.Runtime.Versioning;
using winmdroot = global::Windows.Win32;
namespace Windows.Win32
{

	/// <content>
	/// Contains extern methods from "api-ms-win-core-winrt-l1-1-0.dll".
	/// </content>
	internal static partial class PInvokeCore
	{
		/// <summary>Activates the specified Windows Runtime class.</summary>
		/// <param name="activatableClassId">
		/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinRT/hstring">HSTRING</a></b> The class identifier that is associated with the activatable runtime class.</para>
		/// <para><see href="https://learn.microsoft.com/windows/win32/api/roapi/nf-roapi-roactivateinstance#parameters">Read more on learn.microsoft.com</see>.</para>
		/// </param>
		/// <param name="instance">
		/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/inspectable/nn-inspectable-iinspectable">IInspectable</a>**</b> A pointer to the activated instance of the runtime class.</para>
		/// <para><see href="https://learn.microsoft.com/windows/win32/api/roapi/nf-roapi-roactivateinstance#parameters">Read more on learn.microsoft.com</see>.</para>
		/// </param>
		/// <returns>
		/// <para>Type: <b>HRESULT</b> This function can return one of these values. </para>
		/// <para>This doc was truncated.</para>
		/// </returns>
		/// <remarks>Use the <b>RoActivateInstance</b> function to activate a Windows Runtime class. The <b>RoActivateInstance</b> function connects to the activation factory that is associated with the specified activatable class identifier, creates an instance by calling the zero-argument constructor on the class, and releases the activation factory.</remarks>
		[DllImport("api-ms-win-core-winrt-l1-1-0.dll", ExactSpelling = true),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
		[SupportedOSPlatform("windows8.0")]
		internal static extern unsafe winmdroot.Foundation.HRESULT RoActivateInstance(winmdroot.System.WinRT.HSTRING activatableClassId, winmdroot.System.WinRT.IInspectable** instance);
	}
}