jnativemethods.cs

来自「破解的飞信源代码」· CS 代码 · 共 22 行

CS
22
字号
namespace Imps.Utils
{
    using System;
    using System.Runtime.InteropServices;

    public sealed class JNativeMethods
    {
        private JNativeMethods()
        {
        }

        [return: MarshalAs(UnmanagedType.Bool)]
        [DllImport("kernel32.dll", CharSet=CharSet.Unicode, SetLastError=true)]
        internal static extern bool GetVersionEx(ref NativeStructs.OSVERSIONINFOEX lpVersionInfo);
        [DllImport("wtsapi32.dll", CharSet=CharSet.Auto)]
        public static extern bool WTSRegisterSessionNotification(HandleRef hWnd, int dwFlags);
        [DllImport("wtsapi32.dll", CharSet=CharSet.Auto)]
        public static extern bool WTSUnRegisterSessionNotification(HandleRef hWnd);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?