Borland C ++ Builder FAQ
The content The last update: 12/12/2008

How to learn folder path Windows?

The author: OlegGG
The initial link: - - -

Directory Windows:
char WinDir [256]; 
GetWindowsDirectory (WinDir, 256); 
System directory:
char WinSysDir [256]; 
GetSystemDirectory (WinSysDir, 256); 
Returns, for example:
WinDir: "C: \\WINNT"
WinSysDir: "C: \\WINNT \\System32"