Home > database >  To obtain all computer user name or state
To obtain all computer user name or state

Time:10-02

All access to the computer user name and state (the user whether to stop using these information)
Thank you very much!

CodePudding user response:

http://download.csdn.net/source/141867

CodePudding user response:

A, retrieve the user list with NetUserEnum
Second, using NetUserGetInfo get user information

CodePudding user response:

Have the original code?

CodePudding user response:

jf

CodePudding user response:

Pick up points

CodePudding user response:

jf

CodePudding user response:

For the top

CodePudding user response:

The Function ULong GetComputerName (Ref String lpBuffer, Ref ULong nSize) Library "kernel32. DLL" Alias for "GetComputerNameA
"
String ls_buffer
ULong lul_size
The Integer li_rtn
Ls_buffer=space (255)
Lul_size=255
Li_rtn=GetComputerName (ls_buffer lul_size)
If li_rtn & lt;> 0 then
Gs_hostname=ls_buffer
End the if
  • Related