 |
SetComputerName ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
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. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL SetComputerName(
LPCTSTR lpComputerName // computer name
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetComputerName IN kernel32;
STRING lpComputerName
|
 |
 |
 |
| Parameters: |
 |
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). |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a nonzero value. |
 |
 |
| Word Index links for the SetComputerName : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-02-08 20:25:59 | | Modified: | 2002-02-08 20:28:32 | Visited in last 7 days: 10 |