Group: System Information - Library: kernel32
The SetComputerName function stores a new NetBIOS name for the local computer. The name is stored in the registry and takes effect the next time the user restarts the computer.
BOOL SetComputerName(
LPCTSTR lpComputerName // computer name
); DECLARE INTEGER SetComputerName IN kernel32;
STRING lpComputerName lpComputerName [in] Pointer to a null-terminated character string that specifies the name that will be the computer name the next time the computer is started. The name must not be longer than MAX_COMPUTERNAME_LENGTH characters (31).
If the function succeeds, the return value is a nonzero value.
Home