The p/Envoke for GetEnv and SetEnv seemed the easiest way to handle the Variables stored in the Fixed Profile ->General section of the registry... Other Variables are stored in Profiles-> <<UserProfile>> -> General