mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
18 lines
669 B
C#
18 lines
669 B
C#
|
|
// Copyright (c) Microsoft Corporation
|
|||
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|||
|
|
// See the LICENSE file in the project root for more information.
|
|||
|
|
|
|||
|
|
using System.Runtime.InteropServices;
|
|||
|
|
|
|||
|
|
namespace Microsoft.PowerToys.Settings.UI.Helpers
|
|||
|
|
{
|
|||
|
|
internal static class NativeMethods
|
|||
|
|
{
|
|||
|
|
[DllImport("user32.dll")]
|
|||
|
|
internal static extern uint SendInput(uint nInputs, NativeKeyboardHelper.INPUT[] pInputs, int cbSize);
|
|||
|
|
|
|||
|
|
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
|
|||
|
|
internal static extern short GetAsyncKeyState(int vKey);
|
|||
|
|
}
|
|||
|
|
}
|