_NutQueryWinDir()

return the Windows installation directory 

Function


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

_NutQueryWinDir() returns a pointer to the window installation 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(), _NutQueryWinNetFileDir(), _NutQueryWinSysDir()


PTC MKS Toolkit 10.5 Documentation Build 40.