C++
template <size_t nBufLen> inline int acedGetEnv( const wchar_t * pszName, wchar_t (& buf)[nBufLen] );
File
acedads.h
Description
Deprecated. Retrieves the value of an environment variable. Looks first in the AutoCAD-specific FixedProfile/General section of the registry:
HKEY_CURRENT_USER Software Autodesk AutoCAD R25.0 <Install ID> FixedProfile General
If an entry is not found in the registry, retrieves the value from the Windows system environment table.
Note: This function will not work for AutoCAD sysvars. For AutoCAD sysvars, use acedGetVar().
If acedGetEnv() succeeds, it returns RTNORM; otherwise it returns RTERROR. This function is the complement of the acedSetEnv() function.
Parameters
Parameters | Description |
---|---|
pszName | Input environment variable name to get, which is case sensitive in all environments (AutoLISP, ObjectARX, Managed .NET and VBA/ActiveX) |
buf | Output buffer to be filled in with environment variable value |
Use Instead
ACCORE_PORT int acedGetEnv(const ACHAR * sym, AcString & sResult);