The GetDOSEnvironment function has been deleted. This function is x86 specific and cannot be used in Win32.
Use the GetEnvironmentStrings function.
GetEnvironmentStrings