title: PowerShell Enviromental Variable not seen?
body: <p>Set by another Program (started as user) my own Environmental Variable using (kernel32.dll:</p>
  
  <pre><code> SetEnvironmentVariableW("ToTestVar_001", "ToTestVar.001 11:11:54" )
  </code></pre>
  
  <p>So the program that sets the Environmental Variable ToTestVar_001 can read it but I do In PowerShell (started as the same user)</p>
  
  <pre><code> Get-ChildItem Env:
  </code></pre>
  
  <p>ToTestVar_001 is not listed how can I create an Environmental Variable that can be read and written by my program and PowerShell?</p>
  
  <p>My next try was to create an Env. Var. by PowerShell: "TestVariable"="test Value" but my program can't find it using kernel32.dll:</p>
  
  <pre><code>string rdBuff = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx":
  GetEnvironmentVariableW("TestVariable", rdBuff, StringLen(rdBuff));
  </code></pre>
  
  <p>Where can I find, read and set the Kernel32.dll-Env.Variables in Win 7 64 bit - is that the problem?</p>
  
  <p>Thanks in advance,
  Gooly</p>