Get SystemVersionInfo with Interop
This commit is contained in:
1 parent
c46f8a754c
commit
0fe47b2925
6 files changed
+27
-8
No files matched your search
@@ -17,7 +17,8 @@ namespace HandyControl.Tools.Interop
|
||||
GdiPlus = "gdiplus.dll",
|
||||
Kernel32 = "kernel32.dll",
|
||||
Shell32 = "shell32.dll",
|
||||
MsImg = "msimg32.dll";
|
||||
MsImg = "msimg32.dll",
|
||||
NTdll = "ntdll.dll";
|
||||
}
|
||||
|
||||
internal delegate IntPtr HookProc(int code, IntPtr wParam, IntPtr lParam);
|
||||
@@ -956,5 +957,17 @@ namespace HandyControl.Tools.Interop
|
||||
public RECT rc;
|
||||
public int lParam;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct RTL_OSVERSIONINFOEX
|
||||
{
|
||||
internal uint dwOSVersionInfoSize;
|
||||
internal uint dwMajorVersion;
|
||||
internal uint dwMinorVersion;
|
||||
internal uint dwBuildNumber;
|
||||
internal uint dwPlatformId;
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
||||
internal string szCSDVersion;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user