CNVRegisterMachine
- Updated2023-02-21
- 1 minute(s) read
int CNVRegisterMachine (const char *machine);
Purpose
Registers a computer for browsing on the current system.
![]() |
Note To avoid deadlocks, do not call this function in a network variable callback function. |
Parameters
| Input | ||
| Name | Type | Description |
| machine | const char * | The name or IP address of the computer. |
Return Value
| Name | Type | Description |
| status | int | Return value indicating whether the function was successful. One indicates that a next item was found, zero indicates that a next item was not found, and a negative number indicates that an error occurred. You can call CNVGetErrorDescription to obtain a string that describes the error. |
Additional Information
Library: Network Variable Library
Include file: cvinetv.h
LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later
Example
Refer to networkvariable\Browser\NVBrowser.cws for an example of using the CNVRegisterMachine function.
