获取操作系统信息
获取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"); }
用户评论