National Instruments 320682C Musical Toy Instrument User Manual


 
Utility Library Chapter 8
LabWindows/CVI Standard Libraries 8-70 © National Instruments Corporation
SetFileTime
int
result = SetFileTime
(char
fileName
[],
int
hours
,
int
minutes
,
int
seconds
);
Purpose
Sets the time of a file.
Parameters
Input
fileName
string File to set date.
hours
integer Hours (0 to 23).
minutes
integer Minutes (0 to 59).
seconds
integer Seconds (0-58); Odd Values are
rounded down.
Return Value
result
integer Result of operation.
Return Codes
0 Success.
-1 File not found or directory in path not found.
-3 General I/O error occurred.
-4 Insufficient memory to complete operation.
-5 Invalid time, or invalid path (for example, c:filename in Windows).
-6 Access denied.
Parameter Discussion
fileName
may be the empty string (""), in which case the time of the file found by the most
recent call to GetFirstFile or GetNextFile is set.
seconds
value must be entered in increments of 2.