SYNOPSIS
#include <nutc.h>
char *_NutQueryWinDir(int fmt);
DESCRIPTION
This function returns the Windows installation directory. Use this function to determine the path to where the operating system was installed.
- Note:
-
This function returns a pointer to a static buffer. Do not modify the string returned by this function.
PARAMETERS
- fmt
-
When NUTFMT_WIN32, indicates that the path should be returned in Windows format.
When NUTFMT_NUTC, indicates that the path should be returned in NuTCRACKER Platform format.
When NUTFMT_WIN32_FS, indicates that the path should be returned in Windows format, using forward slashes (also known as MKS format).
RETURN VALUES
CONFORMANCE
MKS Toolkit UNIX APIs extension.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
_NutPathToNutc() ,_NutPathToWin32() ,_NutPathToWin32FS() ,_NutQueryRootDir() ,_NutQueryWinNetFileDir() ,_NutQueryWinSysDir()
MKS Toolkit 9.3 Documentation Build 6.