|
-
March 25th, 2003, 12:59 PM
#1
Computer name in the registry?
where can i find my Computer's name in the registry?
Or, what is the API function to get the name?
Thanks!
-
March 25th, 2003, 01:29 PM
#2
Code:
DWORD dwSize = MAX_COMPUTERNAME_LENGTH + 1;
LPTSTR pszName = new TCHAR[dwSize];
BOOL bRet = ::GetComputerName( pszName, &dwSize );
delete []pszName;
-
March 25th, 2003, 01:35 PM
#3
Also see
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName
in the registry
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
|