c# Programming Glossary: penvironmentblock
Calling CreateProcessAsUser from C# http://stackoverflow.com/questions/668389/calling-createprocessasuser-from-c-sharp IntPtr.Zero var hUserTokenDuplicate IntPtr.Zero var pEnvironmentBlock IntPtr.Zero var pNewEnvironmentBlock IntPtr.Zero if WinApi.LogonUser.. for logged on user. if WinApi.CreateEnvironmentBlock out pEnvironmentBlock hUserToken false throw new Win32Exception Marshal.GetLastWin32Error.. one per variable. var envVars ReadEnvironmentVariables pEnvironmentBlock Append custom environment variables to list. foreach var var..
|