nativestructs.cs
来自「破解的飞信源代码」· CS 代码 · 共 34 行
CS
34 行
namespace Imps.Utils
{
using System;
using System.Runtime.InteropServices;
internal sealed class NativeStructs
{
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
internal struct OSVERSIONINFOEX
{
public uint dwOSVersionInfoSize;
public uint dwMajorVersion;
public uint dwMinorVersion;
public uint dwBuildNumber;
public uint dwPlatformId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=0x80)]
public string szCSDVersion;
public ushort wServicePackMajor;
public ushort wServicePackMinor;
public ushort wSuiteMask;
public byte wProductType;
public byte wReserved;
public static int SizeOf
{
get
{
return Marshal.SizeOf(typeof(NativeStructs.OSVERSIONINFOEX));
}
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?