wwAPI::WinApi_GetEnvironmentVariable

Returns a Windows Environment Variable. Unlike GETENV() it can return strings larger than 255 characters (specifically the Windows path!)

lcPath = WinApi_GetEnvironmentVariable("PATH")

Note: This is a static function not a class method

WinApi_GetEnvironmentVariable(lcVar)

Result from env call or "" if the var doesn't exist or is empty.

Parameters

lcVar
Environment Variable

See also