 |
GetComputerNameEx Add comment W32 Constants Translate this page |
 |
 |
|
The GetComputerNameEx function retrieves a NetBIOS or DNS name associated with the local computer. The names are established at system startup, when the system reads them from the registry. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetComputerNameEx(
COMPUTER_NAME_FORMAT NameType,
LPTSTR lpBuffer,
LPDWORD lpnSize
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetComputerNameEx IN kernel32;
INTEGER NameType,;
STRING @ lpBuffer,;
INTEGER @ lpnSize
|
 |
 |
 |
| Parameters: |
 |
NameType
[in] Type of name to retrieve. This parameter is a value from the COMPUTER_NAME_FORMAT enumeration type.
lpBuffer
[out] Pointer to a buffer that receives a null-terminated string containing the computer name or the cluster virtual server name.
lpnSize
[in, out] On input, specifies the size of the buffer. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a nonzero value. |
 |
 |
| Word Index links for the GetComputerNameEx : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-03-12 09:18:23 | | Modified: | 2003-03-12 09:20:23 | Visited in last 7 days: 41 |