Prev: Attaching to a DLL
Next: dlls in VB.NET (VS 2008).
From: John on 1 Apr 2010 23:35 Hi How can I check for this registry value; [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\MyApp Log] "Retention"=dword:00000000 and if it does not exist to create it and if it exists make sure the value of "Retention"key is 00000000? Many Thanks Regards
From: Gregory A. Beamer on 2 Apr 2010 09:40 "John" <info(a)nospam.infovis.co.uk> wrote in message news:O$F#5Vh0KHA.6108(a)TK2MSFTNGP06.phx.gbl... > Hi > > How can I check for this registry value; > > [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\MyApp Log] > "Retention"=dword:00000000 > > and if it does not exist to create it and if it exists make sure the value > of "Retention"key is 00000000? Read this for registry info: http://www.codeproject.com/KB/vb/registry_with_vb.aspx Note that you have to have the proper permissions on the registry to use this. Some users might have install privileges, but no ability to access certain registry keys due to permissions given on the domain they belong to. You have to keep this in mind for business software. I am not sure about one thing. Why do you have a key that always has to be a certain value, or am I missing something? If it is a constant, it does not have to be in the registry, as it will never change. -- Peace and Grace, Greg Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ************************************************ | Think outside the box! | ************************************************
|
Pages: 1 Prev: Attaching to a DLL Next: dlls in VB.NET (VS 2008). |