Windows User Name and HostName
-
The function NetWkstaUserGetInfo can be called to get the User Name. The function NetWkstaGetInfo can be called to get the computer name. There are security restrictions in place that could cause these calls to fail, though. Chris Meech I am Canadian. [heard in a local bar] When I want privacy, I'll close the bathroom door. [Stan Shannon] BAD DAY FOR: Friendly competition, as Ford Motor Co. declared the employee parking lot at its truck plant in Dearborn, Mich., off limits to vehicles built by rival companies. Workers have to drive a Ford to work, or park across the street. [CNNMoney.com] Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]
-
RadioOpa wrote:
How to read...Host name in a VC application ?
Try
gethostname()
.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
-
RadioOpa wrote:
Windows User Name
GetUserName
RadioOpa wrote:
machine Host name
GetComputerName
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
RadioOpa wrote:
Windows User Name
GetUserName
RadioOpa wrote:
machine Host name
GetComputerName
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV