Re: Environment Variable

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 10/12/04


Date: Tue, 12 Oct 2004 15:51:00 +0100

Aku <anonymous@devdex.com> wrote:
> In the 'old-days', WIN32-API/MFC, it is possible to create a temporary
> key in the registry to satisfy a particular app.
> It's done with 'SetEnvironmentVariable(name, value)".

I don't believe that has anything to do with the registry. It just sets
the environment variables within that process.

You can P/Invoke the same function, of course, and use
Environment.GetEnvironmentVariable to retrieve values.

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Environment Variable
    ... In the 'old-days', WIN32-API/MFC, it is possible to create a temporary ... key in the registry to satisfy a particular app. ... Once the app ceased its activities, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Mobile Service & Auto Start
    ... The RegRestoreFile API is only supported by the object store-based registry. ... have never needed to write an app like this and I just figured ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Ini File vs Registry
    ... How do you manage the settings? ... dollars in hacking the OS to introduce the concept of registry ... Hard to migrate app ... but increasingly desktop developers are fighting it out ...
    (microsoft.public.vc.mfc)
  • Re: VFP Updates?
    ... Account", which is what many users do, e.g. in company networks. ... WinXP limited accounts as well as Vista UAC is quite easy ... considerations for installing and running a VFP app in Vista. ... directory/folder IS), and you don't need to write to registry, I think ...
    (microsoft.public.fox.programmer.exchange)
  • Re: OT - Desktop Linux
    ... I want to delete the file, but let the app using it to continue ... But it keeps it in the main registry instead of creating a per user ... It's next to impossible to shift apps from disk to disk ... drives can be mounted at will at any mount point or even as a ...
    (alt.sports.basketball.nba.la-lakers)