-
August 21st, 2005, 02:50 PM
#1
One question about GetComputerName()
Hi,
one question about this function: when I have NT domain and use logon scripts, from witch I call my program, in which I call GetComputerName(), what name will be returned? The one of server on which the logon script and exe file reside, or the one of client computer, on which a user is just logging?
I have no possibility to check it right now, but I would like to know it.
Thank you.
The sun is the same in the relative way, but you're older
Shorter of breath and one day closer to death
- Roger Waters, 1973
-
August 21st, 2005, 03:07 PM
#2
Re: One question about GetComputerName()
GetComputerName API will return the NetBIOS name of the computer on which this API is executed.
So, if your program is run on the client computer (via logon script), the API will return the name of the Client.
-
August 21st, 2005, 03:09 PM
#3
Re: One question about GetComputerName()
Does this quote from MSDN makes it clearer?
The GetComputerName function retrieves the NetBIOS name of the local computer. This name is established at system startup, when the system reads it from the registry.
If the local computer is a node in a cluster, GetComputerName returns the name of the cluster virtual server.
-
August 21st, 2005, 03:09 PM
#4
Re: One question about GetComputerName()
Thank you very much Siddhartha!
The sun is the same in the relative way, but you're older
Shorter of breath and one day closer to death
- Roger Waters, 1973
-
August 21st, 2005, 03:52 PM
#5
Re: One question about GetComputerName()
You are welcome...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|