Chapter 8 Utility Library
© National Instruments Corporation 8-77 LabWindows/CVI Standard Libraries
SetSystemTime
int status = SetSystemTime(int hours, int minutes, int seconds);
Note: This function is only available on the Windows version of LabWindows/CVI. Under
Windows NT, you must have system administrator status to use this function.
Purpose
Sets the system time.
Parameters
Input hours integer Hours (0–23).
minutes integer Minutes (0–59).
seconds integer Seconds (058). Odd values are
rounded down.
Return Value
status integer Success or failure.
Return Codes
0 Success.
-1 Failure reported by operating system, probably due to
an invalid parameter.
SplitPath
void SplitPath (char pathName[], char driveName[], char directoryName[],
char fileName[]);
Purpose
Splits a path name into the drive name, the directory name, and the file name.