 |
GetSystemDirectory ..msdn Add comment W32 Constants Translate this page |
 |
 |
The GetSystemDirectory function retrieves the path of the system directory. The system directory contains such files as dynamic-link libraries, drivers, and font files.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
UINT GetSystemDirectory(
LPTSTR lpBuffer, // buffer for system directory
UINT uSize // size of directory buffer
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetSystemDirectory IN kernel32;
As GetSystemDirectoryA;
STRING @ lpBuffer,;
INTEGER nSize
|
 |
 |
 |
| Parameters: |
 |
lpBuffer
[out] Pointer to the buffer to receive the null-terminated string containing the path
uSize
[in] Specifies the maximum size of the buffer |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value specifies the number of characters written to the buffer, not including the terminating null character |
 |
 |
| Usage: |
 |
cBuffer = REPLICATE(CHR(0), 260)
nSizeRet = GetSystemDirectory(@cBuffer, LEN(m.cBuffer))
cBuffer = SUBSTR(m.cBuffer, 1, nSizeRet)
? cBuffer
|
 |
 |
| My comment: |
 |
| See also: GetWindowsDirectory, SHGetFolderPath, GetSystemWow64Directory |
 |
 |
| Word Index links for the GetSystemDirectory : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-12 12:00:00 | | Modified: | 2009-01-07 13:43:01 | Visited in last 7 days: 66 |