NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

How to get Windows XP Account Information?

如何获得Windows的帐户信息,如用户名,用户所属Groups等
是否可以调用API函数来获得这些信息,或者是其他的方法
 
谢谢
 
Qia
 
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 项奖励
1 条消息(共 5 条)
4,909 次查看
链接是如何在labVIEW中调用Windows API的帮助文档
您需要了解具体调用哪个API fuction
2 条消息(共 5 条)
4,897 次查看
能具体详细点嘛?找了一下API,不知道该是那个函数
.net有WindowsIdentity这个函数可以获得相关帐户和权限的信息,但在LV中好像不好调用,找不到这个函数
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 项奖励
3 条消息(共 5 条)
4,894 次查看

Use the Win API "LookupAccountName". See its doc in MSDN.

The API might be too complicated to be called from LV directly. You can wrap it first with a dll, and then call that dll from LV.

Good luck.

4 条消息(共 5 条)
4,892 次查看
Thank you for your reply,aoh.
I am not familiar with other language like VC,VB. Could you please make a dll for me which can retrieve Computer's Account name and their groups.
 
Thanks in advance
 
Qia
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 项奖励
5 条消息(共 5 条)
4,884 次查看