This call scans (searches) an environment segment for an environment variable.
DosScanEnv
EnvVarName (PSZ) - input
Assume that the process' environment contains:
"DPATH=c:\sysdir;c:\libdir" | │ │ └---- ResultPointer points here after the following call to DosScanEnv: DosScanEnv("DPATH", &ResultPointer);
As noted above, ResultPointer points to the first character of the value of the environment variable.