 |
NetGetJoinInformation ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The NetGetJoinInformation function retrieves join status information for the specified computer. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
NET_API_STATUS NetGetJoinInformation(
LPCWSTR lpServer,
LPWSTR* lpNameBuffer,
PNETSETUP_JOIN_STATUS BufferType
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER NetGetJoinInformation IN netapi32;
STRING lpServer,;
INTEGER @ lpNameBuffer,;
INTEGER @ BufferType
|
 |
 |
 |
| Parameters: |
 |
lpServer
[in] Pointer to a constant string that specifies the DNS or NetBIOS name of the computer on which to call the function. If this parameter is NULL, the local computer is used.
lpNameBuffer
[out] Pointer to the buffer that receives the NetBIOS name of the domain or workgroup to which the computer is joined.
BufferType
[out] Receives the join status of the specified computer: unknown, unjoined, workgroup, domain |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is NERR_Success (0). |
 |
 |
| My comment: |
 |
The lpNameBuffer buffer is allocated by the system and must be freed using the NetApiBufferFree function.
Regularly this function returns either domain name or workgroup name for selected computer. |
 |
 |
| Word Index links for the NetGetJoinInformation : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-06-17 08:47:38 | | Modified: | 2004-06-17 08:52:27 | Visited in last 7 days: 20 |