如何通过函数来判断操作系统是NT Server还是NT Workstation?

码狂 2000-07-11 12:00:00
如何通过函数来判断操作系统是NT Server还是NT Workstation?
十万火急,请指教!
...全文
102 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
码狂 2000-07-12
  • 打赏
  • 举报
回复
非常感谢你的指点,不过在2000上似乎不同。分数将在今晚给出,无论如何。
haihong 2000-07-11
  • 打赏
  • 举报
回复
下面一段是从msdn上的摘抄,题目是:
Determining System Version from a Win32-based Application
Last

In order to distinguish between Windows NT Workstation and Windows NT Server, use the registry API to query the following:


\HKEY_LOCAL_MACHINE\SYSTEM
\CurrentControlSet
\Control
\ProductOptions


The result will be one of the following:

WINNT Windows NT Workstation is running.
SERVERNT Windows NT Server (3.5 or later) is running.
LANMANNT Windows NT Advanced Server (3.1) is running.

6,847

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧