Home > database >  Access to the computer's domain name?
Access to the computer's domain name?

Time:10-02

How to get the computer's domain name?
Or, for computer login account, can take account out of the domain name, thank you!

CodePudding user response:

Domain name?
What is domain name for API?

CodePudding user response:

Yes, the domain name? How to get?

CodePudding user response:

ContextKeyword lcxk_base
String ls_Path
String ls_values []
Enclosing GetContextService (" Keyword ", lcxk_base)
Lcxk_base. GetContextKeywords (" USERDOMAIN ls_values)
IF Upperbound (ls_values) & gt; 0 THEN
Ls_Path=ls_values [1]
The ELSE
UNDEFINED ls_Path="* *"
END the IF

CodePudding user response:

It also take not to come out, can only get to the computer name

CodePudding user response:

That's what you not in the domain and belongs to the group...

CodePudding user response:

No, for the top

CodePudding user response:

I am in the domain, not working group

CodePudding user response:

RegistryGet (" HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control \ ComputerName \ ComputerName ", "ComputerName," regstring! , gs_host)
  • Related