Environment Variable

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Aku (anonymous_at_devdex.com)
Date: 10/12/04


Date: Tue, 12 Oct 2004 07:41:02 -0700


Hello,
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)".
Once the app ceased its activities, the environment vars are
automatically destroyed. It's also contained to that particular app only
- outside of it, they are unknown.

I'm searching a similar method within C#, using
Microsoft.Win32.Registry, but can't find an equivalent.

Somebody knows how?

Regards, Aku.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: Environment Variable
    ... Aku wrote: ... > key in the registry to satisfy a particular app. ... I don't believe that has anything to do with the registry. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Simple example of playing video
    ... It would be really nice if there was an example app that played an ... There are a couple of players in the DirectShow samples in the latest SDK. ... If they satisfy your needs, they aren't too hard to follow. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Call to absolute address
    ... > there to satisfy the linker. ... virtually any app these days, it's an ort... ...
    (microsoft.public.vb.general.discussion)
  • 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)