 |
GetEnvironmentVariable ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the value of the specified variable from the environment block of the calling process. The value is in the form of a null-terminated string of characters. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD GetEnvironmentVariable(
LPCTSTR lpName, // environment variable name
LPTSTR lpBuffer, // buffer for variable value
DWORD nSize // size of buffer
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetEnvironmentVariable IN kernel32;
STRING lpName,;
STRING @ lpBuffer,;
INTEGER nSize
|
 |
 |
 |
| Parameters: |
 |
lpName
[in] Pointer to a null-terminated string that specifies the environment variable.
lpBuffer
[out] Pointer to a buffer to receive the value of the specified environment variable.
nSize
[in] Specifies the size, in TCHARs, of the buffer pointed to by the lpBuffer parameter. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the number of TCHARs stored into the buffer pointed to by lpBuffer, not including the terminating null character. |
 |
 |
| Word Index links for the GetEnvironmentVariable : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-09-18 12:00:00 | | Modified: | 2001-11-26 16:03:41 | Visited in last 7 days: 16 |