_NutQueryWinSysDir()

return the Windows system directory 

Function


SYNOPSIS

#include <nutc.h>

char *_NutQueryWinSysDir(int fmt);


DESCRIPTION

This function returns the Windows system directory. Use this function to determine the path to where the system files (drivers, and so on) are 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

_NutQueryWinSysDir() returns a pointer to the Windows system directory in the specified format.


CONFORMANCE

PTC MKS Toolkit UNIX APIs extension.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
_NutPathToNutc(), _NutPathToWin32(), _NutPathToWin32FS(), _NutQueryRootDir(), _NutQueryWinDir(), _NutQueryWinNetFileDir()


PTC MKS Toolkit 10.3 Documentation Build 39.