因为WIN98、WIN2000的API和系统目录等 有所不同,所以我想在安装程序的时候,先探测系统环境然后安装相应的版本,请大家指教! :)

解决方案 »

  1.   

    GetVersion()
     Platform       High-order bit  Low-order byte (major       version) 
    Windows NT/2000         0       3, 4, or 5 
    Windows 95/98            1       4 
    Win32s with Windows 3.1   1       3 
      

  2.   

    The GetVersionEx function obtains extended information about the version of the operating system that is currently running.BOOL GetVersionEx(
      LPOSVERSIONINFO lpVersionInformation   // pointer to version 
                                             // information structure
    );
     
      

  3.   

    The GetVersionEx function obtains extended information about the version of the operating system that is currently running.BOOL GetVersionEx(
      LPOSVERSIONINFO lpVersionInformation   // pointer to version 
                                             // information structure
    );