文件名称:获取操作系统信息
文件大小:3KB
文件格式:TXT
更新时间:2017-09-30 11:33:36
os
获取os系统基本信息 int __cdecl wmain( __in int argc, __in_ecount(argc) PCWSTR argv[] ) { UNREFERENCED_PARAMETER(argc); UNREFERENCED_PARAMETER(argv); if (IsWindowsXPOrGreater()) { printf("XPOrGreater\n"); } if (IsWindowsXPSP1OrGreater()) { printf("XPSP1OrGreater\n"); } if (IsWindowsXPSP2OrGreater()) { printf("XPSP2OrGreater\n"); } if (IsWindowsXPSP3OrGreater()) { printf("XPSP3OrGreater\n"); } if (IsWindowsVistaOrGreater()) { printf("VistaOrGreater\n"); } if (IsWindowsVistaSP1OrGreater()) { printf("VistaSP1OrGreater\n"); } if (IsWindowsVistaSP2OrGreater()) { printf("VistaSP2OrGreater\n"); } if (IsWindows7OrGreater()) { printf("Windows7OrGreater\n"); } if (IsWindows7SP1OrGreater()) { printf("Windows7SP1OrGreater\n"); }