National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 8 Utility Library
© National Instruments Corporation 8-23 LabWindows/CVI Standard Libraries
GetFileAttrs
int
result = GetFileAttrs
(char
fileName
[],
int
*
read-only
,
int
*
system
,
int
*
hidden
,
int
*
archive
);
Note:
Only available on the Windows version of LabWindows/CVI.
Purpose
Gets the following attributes of a file:
Read-Only
System
Hidden
Archive
The
read-only
attribute makes it impossible to write to the file or create a file with the same
name.
The
system
attribute and hidden attribute both prevent the file from appearing in a directory list
and exclude it from normal searches.
The
archive
attribute is set whenever you modify the file, and cleared by the DOS BACKUP
command.
Parameters
Input
fileName
string File to get attributes.
Output
read-only
integer Read only attribute.
system
integer System attribute.
hidden
integer Hidden attribute.
archive
integer Archive attribute.
Return Value
result
integer Result of operation.
Return Codes
0
Success.
1
Specified file is a directory.
-1
File not found.