2019-12-12 14:34:25 -08:00
|
|
|
|
// 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;
|
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
|
|
namespace FancyZonesEditor
|
|
|
|
|
|
{
|
|
|
|
|
|
// PInvokes to handshake with fancyzones backend
|
|
|
|
|
|
internal static class Native
|
|
|
|
|
|
{
|
|
|
|
|
|
[DllImport("kernel32", SetLastError = true, CharSet = CharSet.Ansi)]
|
2020-07-22 13:27:17 -07:00
|
|
|
|
public static extern IntPtr LoadLibrary([MarshalAs(UnmanagedType.LPStr)] string lpFileName);
|
2019-12-12 14:34:25 -08:00
|
|
|
|
|
|
|
|
|
|
[DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
|
|
|
|
|
|
public static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|