1. 首页
  2. 操作系统
  3. OS
  4. 获取操作系统信息

获取操作系统信息

上传者: 2018-12-16 12:46:55上传 TXT文件 2.59KB 热度 32次
获取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"); }
用户评论