|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Setting registry valueHi
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 "John" <info@nospam.infovis.co.uk> wrote in message Read this for registry info:news:O$F#5Vh0KHA.6108@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? 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. -- Show quoteHide quotePeace and Grace, Greg Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ************************************************ | Think outside the box! | ************************************************
Attaching to a DLL
Re: Application crashes at start-up Dates Deploy my solution. create main configuration file for solution. Displaying Panel After Timer Loop .NET 3.5 - System.Reflection.Assembly does not release object (DLL) after use Dynamic Label Control Property in 2008 creating activeX on VB.NET 2008 Executable program while debugging. |
|||||||||||||||||||||||