Return an environment variable by its index.
BOOLEAN GetRtEnvironmentVariableByIndex( DWORD dwIndex, LPSTR szValue, LPDWORD pdwValueLen);
dwIndex
szValue
pdwValueLen
The call may be used for discovering all of the variables in the current process environment.
If the buffer supplied is too small for the value to be returned the call returns FALSE and sets the last error to E_LIMIT, and the value at pdwLocation
to the number of characters which will be returned, excluding the trailing NULL.
Returns TRUE on success and the value of the requested variable is copied to the supplied buffer.
Returns FALSE on error. The status is returned by calling GetLastRtError(). Possible error conditions include:
E_EXIST
E_LIMIT
E_BAD_ADDR
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 6.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |