Utility Library Chapter 8
LabWindows/CVI Standard Libraries 8-30 © National Instruments Corporation
Using This Function
This function is useful when your program needs to access a file in the project and you do not
know what directory the file is in.
Example
char *fileName;
char fullPath[MAX_PATHNAME_LEN];
fileName = "myfile.c"
if (GetFullPathFromProject (fileName, fullPath) < 0)
FmtOut ("File %s is not in the project\n", fileName);
Note: Runtime errors are not reported for this function.
GetInterruptStateint interruptstate = GetInterruptState (void);
Note: This function is available only on the Windows versions of LabWindows/CVI.
Purpose
This function returns the state of the interrupt bit of the 80x86 CPU status flag.
On Windows NT, this function always returns 1. Interrupts are always enabled while your
program is running at the user (as opposed to the kernel) level.
Return Value
interrupt state integer Interrupt bit of 80x86 CPU
status flag.
GetKeyint k = GetKey (void);
Purpose
Waits for the user to press a key and returns the key code as an integer value.
Note: This function only detects keystrokes in the Standard I/O window. It does not detect
keystrokes in windows created with the User Interface Library or in the console
window in a Windows Console Application.