CNVGetFolders
- Updated2023-02-21
- 2 minute(s) read
int CNVGetFolders (const char *parentPath, char ***folders, int *numberOfFolders);
Purpose
Obtains the names of the folders in the network variable path you specify.
Parameters
Input | ||||
Name | Type | Description | ||
parentPath | const char * | The parent's machine-relative path. You can specify a process name or a process name followed by one or more folder names delimited with the backslash path separator. Do not include a trailing backslash in the path.
|
||
Output | ||||
Name | Type | Description | ||
folders | char ** | Returns an array containing the names of the folders in the specified network variable path. CNVGetFolders allocates memory for the array. The numberOfFolders parameter returns the length of the allocated array. You must free each element of this array and the array itself using CNVFreeMemory. | ||
numberOfFolders | int | The number of folders in the specified network variable path. |
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 2012 and later