Re: Environment Variable
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 10/12/04
- Next message: Nikhil: "Re: Identify if a file is being used by another thread"
- Previous message: Fernando: "RE: Where to put the SQLDataAdapter.Update() method?"
- In reply to: Aku: "Environment Variable"
- Next in thread: Aku: "Re: Environment Variable"
- Reply: Aku: "Re: Environment Variable"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Nikhil: "Re: Identify if a file is being used by another thread"
- Previous message: Fernando: "RE: Where to put the SQLDataAdapter.Update() method?"
- In reply to: Aku: "Environment Variable"
- Next in thread: Aku: "Re: Environment Variable"
- Reply: Aku: "Re: Environment Variable"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|