📄 apiscomctl32.cs
字号:
using System;
using System.Runtime.InteropServices;
namespace System.Runtime.InteropServices.APIs
{
public class APIsComctl32
{
#region GetMajorVersion
public static int GetMajorVersion()
{
APIsStructs.DLLVERSIONINFO2 pdvi = new APIsStructs.DLLVERSIONINFO2();
pdvi.info1.cbSize = Marshal.SizeOf(typeof(APIsStructs.DLLVERSIONINFO2));
DllGetVersion(ref pdvi);
return pdvi.info1.dwMajorVersion;
}
#endregion
#region DllGetVersion
[DllImport("Comctl32.dll", CharSet=CharSet.Auto)]
static private extern int DllGetVersion(
ref APIsStructs.DLLVERSIONINFO2 pdvi);
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -