Return the value of an environment variable given its name.
BOOLEAN GetRtEnvironmentVariable( LPCSTR szName, LPSTR szValue, LPDWORD pdwValueLen);
szName
szValue
pdwValueLen
Environment variable names are case-sensitive.
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 size required to return the value.
Return 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 |