GetEnvironmentStrings and stange values ​​"= :: = :: \"

Possible duplicate:
What are these weird environment variables?

I try to use the Win32API GetEnvironmentStrings function to get environment variables and I get very strange key = value pairs (an example is attached to []):

[=::=::\] [=C:=C:\Users\username\value] [=ExitCode=00000001] [ALLUSERSPROFILE=C:\ProgramData] [APPDATA=C:\Users\artik\AppData\Roaming] [CommonProgramFiles=C:\Program Files (x86)\Common Files] [CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files] [CommonProgramW6432=C:\Program Files\Common Files] ... 

Obviously, this does not seem to be the correct value for the string environment, as described there http://msdn.microsoft.com/en-us/library/windows/desktop/ms683187%28v=vs.85%29.aspx

Questions:

  • What is the expected behavior?
  • If there are "special type variables =ExitCode Why, for example, getenv() does not show them ( getenv("=ExitCode") returns NULL)
  • Can anyone provide pointers to the documentation / specifications of this material.
+8
c winapi environment-variables
source share

No one has answered this question yet.

See similar questions:

thirteen
What are these weird environment variables?

or similar:

1427
How to access environment variables from Python?
924
How to initialize all elements of an array with the same value?
2
Why does CreateEnvironmentBlock in the WOW64 process give me PROCESSOR_ARCHITECTURE = AMD64
one
WBAdmin command not recognized when adding CreateProcessAsUser at command line
0
Replace value in Path variable
0
Accidentally edited my path to system variables ...?
0
When I try to install TensorFlow, I import ImportError when importing from the models folder due to environment variables
0
PATH environment variable incorrectly recognized after reboot (Win 8.1)
0
pyspark startup error: "java" is not recognized as an internal or external command '
-one
C ++ ExpandEnvironmentStringsForUser Function Sometimes Returns Wrong Value

All Articles