请问怎么查看WIN2000中用户或组的SID号???

michaelpeng7799 2001-08-31 11:13:10
在DOMAIN里在WORKGROUP里怎么看用户的SID号??
另外组也有SID号么??如何查看??
...全文
84 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
aznarble 2001-08-31
  • 打赏
  • 举报
回复
使用Windows API函数LookupAccountName可以检索指定账号的SID。

LookupAccountName
The LookupAccountName function accepts the name of a system and an account as input. It retrieves a security identifier (SID) for the account and the name of the domain on which the account was found.

BOOL LookupAccountName(
LPCTSTR lpSystemName, // system name
LPCTSTR lpAccountName, // account name
PSID Sid, // security identifier
LPDWORD cbSid, // size of security identifier
LPTSTR DomainName, // domain name
LPDWORD cbDomainName, // size of domain name
PSID_NAME_USE peUse // SID-type indicator
);

详细用法请参见MSDN Library/Platform SDK/Security/Access Control/Access Control Reference/Access Control Functions

6,868

社区成员

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

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