CNVGetRegisteredMachines

int CNVGetRegisteredMachines (char ***registeredMachines, unsigned int *numberOfRegisteredMachines);

Purpose

Gets the computers registered for browsing on the current system.

Note Note  To avoid deadlocks, do not call this function in a network variable callback function.

Parameters

Output
Name Type Description
registeredMachines char ** Returns an array containing the computers registered for browsing. CNVGetRegisteredMachines allocates memory for the array. The numberOfRegisteredMachines parameter returns the length of the allocated array. You must free each element of this array and the array itself using CNVFreeMemory.
numberOfRegisteredMachines unsigned int The number of machines registered for browsing.

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

WAS THIS ARTICLE HELPFUL?

Not Helpful