Circumvent a problem of lacking GetEnvironmentVariable() in WindowsCE.