How to find the Domain name.
-
-
Dear all, in VC++ we can find the username by calling GetUserName () API. But how to find the Domain name ? please help me. Regards, Jijo. :rose: ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.
-
Dear all, in VC++ we can find the username by calling GetUserName () API. But how to find the Domain name ? please help me. Regards, Jijo. :rose: ________________________________ Yesterday is history, Tomorrow is a mystery, But today is a present.
Use
NetWkstaGetInfo()
to get the name of the domain to which the workstation belongs. UseNetWkstaUserGetInfo()
to get the name of the domain in which the user is currently logged on
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Use
NetWkstaGetInfo()
to get the name of the domain to which the workstation belongs. UseNetWkstaUserGetInfo()
to get the name of the domain in which the user is currently logged on
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen