学习笔记:silktest怎样判断本机器的操作系统(1)

GUIType Data Type 

GUI Specifier  Includes These Platforms 
msw2003  Microsoft Windows 2003 
msw2000  Microsoft Windows 2000 
msw32  Microsoft Win32
msw2003_64 Microsoft Windows 2003 (64-bit) 
mswxp  Microsoft Windows XP 
mswxp64  Microsoft Windows XP (64-bit) 
mswvista  Microsoft Windows Vista 
mswvista_64 Microsoft Windows Vista (64-bit)
mswin2008 Microsoft Windows 2008
mswin2008_64 Microsoft Windows 2008 (64-bit)
mswin2008r2 Microsoft Windows 2008 R2
mswin2008r2_64 Microsoft Windows 2008 R2 (64-bit)
mswin7 Microsoft Windows 7
mswin7_64 Microsoft Windows 7 (64-bit)
msw9x  Microsoft Windows 9x (msw98 for Windows 98) 
msw  Microsoft Windows 

GUI Set  Includes These Platforms 
msw  msw32 and msw64 
msw32  mswnt32 and msw9x 
mswnt  mswnt32 and msw64 
msw64 msw2003_64, mswxp64, mswvista_64, mswin2008_64, mswin7_64, mswin2008r2_64
mswnt32  msw2000, msw2003, mswxp, mswvista, mswin2008, mswin7, mswin2008r2 
-----------------------------------------------------

GetGUIType()
switch(GetGUIType())
case msw2003:
// code to test feature on windows 2003

case msw2000:
// code to test feature on windows 2000

----------------------------------------------------

GUITYPE gtype = GetGuiType ()
if (gtype == msw2003)
SetGuiType (mswxp)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值