RE: SetEnvironmentVariable in Debug and Release cofiguratin

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



How are you declaring your access to GetEnvironmentVariableW?

Maybe like this?

[DllImport("KERNEL32.DLL", EntryPoint="GetEnvironmentVariableW",
SetLastError=true, CharSet=CharSet.Unicode, ExactSpelling=true,
CallingConvention=CallingConvention.Winapi)]
public static extern uint GetEnvironmentVariable(String name, ref string
value, uint length);


--
--

Of all words of tongue and pen, the saddest are: "It might have been"


"DenG" wrote:

> Thanks for the response ;)
> I do the checks via GetEnviromnentVariable and also via Process
> Explorer, which is a very nice freeware utility.
>
>
> --
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com
>
.



Relevant Pages