win32profile.CreateEnvironmentBlock

dict = CreateEnvironmentBlock(Token, Inherit )

Retrieves environment variables for a user

Parameters

Token : PyHANDLE

User token as returned by win32security::LogonUser, use None to retrieve system variables only

Inherit : boolean

Indicates if environment of current process should be inherited