为什么SetComputerName对2k、xp无效??

lvjack 2003-12-12 01:34:31
如题
对98是有效的
...全文
61 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
BeRoy 2004-01-15
  • 打赏
  • 举报
回复
可能是程序自己的权限不够,就象关机用关机函数一样。
lvjack 2004-01-13
  • 打赏
  • 举报
回复
没遇到过??
hongliqiu 2004-01-13
  • 打赏
  • 举报
回复
2000,XP是适用的,以下摘自MSDN

Remarks
Applications using this function must have administrator rights.


Requirements
Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, and Windows 95.
Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server.
Unicode: Implemented as Unicode and ANSI versions. Note that Unicode support on Windows Me/98/95 requires Microsoft Layer for Unicode.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.


lvjack 2004-01-04
  • 打赏
  • 举报
回复
请教
lvjack 2003-12-12
  • 打赏
  • 举报
回复
我用的是管理员权限
156095582 2003-12-12
  • 打赏
  • 举报
回复
98,XP,安全机制比较高,不可随便更改

1,221

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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