NetWkstaGetInfo函数到底以那个为准?...难道是microsoft的错?

chilicsdn 2003-08-19 02:47:16
我想获取某台机器属于哪个工作组用NetWkstaGetInfo函数
MSDN上NetWkstaGetInfo函数原形为
NET_API_STATUS NetWkstaGetInfo(
LPWSTR servername,
DWORD level,
LPBYTE *bufptr
);
servername:要传unicode string
msdn上描述:Pointer to a Unicode string containing the name of the remote server on which the function is to execute. A NULL pointer or string specifies the local computer

但是在vc的lmwksta.h中却为
NET_API_STATUS NET_API_FUNCTION
NetWkstaGetInfo (
IN LPTSTR servername OPTIONAL,
IN DWORD level,
OUT LPBYTE *bufptr
);
servername传字符串即可
这是microsoft的错吗?
...全文
82 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

6,185

社区成员

发帖
与我相关
我的任务
社区描述
windows网络管理与配置
社区管理员
  • 网络管理与配置社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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