| File: MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\NativeMethods.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\PresentationCore.csproj (PresentationCore) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // using System.Runtime.InteropServices; namespace MS.Internal.WindowsRuntime { namespace Windows.UI.ViewManagement { /// <summary> /// Contains internal RCWs for invoking the InputPane (tiptsf touch keyboard) /// </summary> internal static class NativeMethods { [DllImport(DllImport.ApiSetWinRTString, CallingConvention = CallingConvention.StdCall)] internal static extern unsafe int WindowsCreateString([MarshalAs(UnmanagedType.LPWStr)] string sourceString, int length, out IntPtr hstring); [DllImport(DllImport.ApiSetWinRTString, CallingConvention = CallingConvention.StdCall)] internal static extern int WindowsDeleteString(IntPtr hstring); [DllImport(DllImport.ApiSetWinRT, CallingConvention = CallingConvention.StdCall)] internal static extern unsafe int RoGetActivationFactory(IntPtr runtimeClassId, ref Guid iid, [MarshalAs(UnmanagedType.Interface)] out object factory); [DllImport(DllImport.ApiSetWinRT, CallingConvention = CallingConvention.StdCall)] internal static extern unsafe int RoActivateInstance(IntPtr runtimeClassId, [MarshalAs(UnmanagedType.Interface)] out object instance); internal const int E_NOINTERFACE = unchecked((int)0x80004002); internal const int REGDB_E_CLASSNOTREG = unchecked((int)0x80040154); } } }