The SetComputerName function sets the computer name to be used the next time the system is restarted.
BOOL SetComputerName(
LPCTSTR lpComputerName |
// address of new computer name |
); |
Windows 95: If this string contains one or more characters that are outside the standard character set, those characters are coerced into standard characters.
Windows NT: If this string contains one or more characters that are outside the standard character set, SetComputerName returns ERROR_INVALID_PARAMETER. It does not coerce the characters outside the standard set.
The standard character set includes letters, numbers, and the following symbols: ! @ # % ^ & ‘ ) ( . - _ { } ~ .
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Applications using this function must have administrator rights.
file: /Techref/os/win/api/win32/func/src/f77_5.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/23 21:27,
18.222.98.29:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f77_5.htm"> SetComputerName</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.