¡@

Home 

c# Programming Glossary: registrykey

Change desktop wallpaper using code in .NET

http://stackoverflow.com/questions/1061678/change-desktop-wallpaper-using-code-in-net

img.Save tempPath System.Drawing.Imaging.ImageFormat.Bmp RegistryKey key Registry.CurrentUser.OpenSubKey @ Control Panel Desktop..

Detect if running as Administrator with or without elevated privileges?

http://stackoverflow.com/questions/1220213/detect-if-running-as-administrator-with-or-without-elevated-privileges

out public static class UacHelper private const string uacRegistryKey Software Microsoft Windows CurrentVersion Policies System private.. public static bool IsUacEnabled get RegistryKey uacKey Registry.LocalMachine.OpenSubKey uacRegistryKey false.. RegistryKey uacKey Registry.LocalMachine.OpenSubKey uacRegistryKey false bool result uacKey.GetValue uacRegistryValue .Equals 1..

Programmatically Set Browser Proxy Settings in C#

http://stackoverflow.com/questions/197725/programmatically-set-browser-proxy-settings-in-c-sharp

I'm applying the proxy settings by going into the registry RegistryKey registry Registry.CurrentUser.OpenSubKey Software Microsoft..

Associate File Extension with Application

http://stackoverflow.com/questions/2681878/associate-file-extension-with-application

string KeyName string OpenWith string FileDescription RegistryKey BaseKey RegistryKey OpenMethod RegistryKey Shell RegistryKey.. string OpenWith string FileDescription RegistryKey BaseKey RegistryKey OpenMethod RegistryKey Shell RegistryKey CurrentUser BaseKey.. FileDescription RegistryKey BaseKey RegistryKey OpenMethod RegistryKey Shell RegistryKey CurrentUser BaseKey Registry.ClassesRoot.CreateSubKey..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

phKey new IntPtr var answer IEGetWriteableHKCU ref phKey RegistryKey writeable_registry RegistryKey.FromHandle new Microsoft.Win32.SafeHandles.SafeRegistryHandle.. ref phKey RegistryKey writeable_registry RegistryKey.FromHandle new Microsoft.Win32.SafeHandles.SafeRegistryHandle.. Microsoft.Win32.SafeHandles.SafeRegistryHandle phKey true RegistryKey registryKey writeable_registry.OpenSubKey RegData true if registryKey..

Get installed applications in a system

http://stackoverflow.com/questions/908850/get-installed-applications-in-a-system

Windows CurrentVersion Uninstall using Microsoft.Win32.RegistryKey key Registry.LocalMachine.OpenSubKey registry_key foreach string.. foreach string subkey_name in key.GetSubKeyNames using RegistryKey subkey key.OpenSubKey subkey_name Console.WriteLine subkey.GetValue..

Is there an easy way to check .NET Framework version using C#?

http://stackoverflow.com/questions/951856/is-there-an-easy-way-to-check-net-framework-version-using-c

installed version SP is the service pack for that version. RegistryKey installed_versions Registry.LocalMachine.OpenSubKey @ SOFTWARE..

Check Adobe Reader is installed (C#)?

http://stackoverflow.com/questions/969027/check-adobe-reader-is-installed-c

MyApp class Program static void Main string args RegistryKey adobe Registry.LocalMachine.OpenSubKey Software .OpenSubKey.. return adobe policies.OpenSubKey Adobe if adobe null RegistryKey acroRead adobe.OpenSubKey Acrobat Reader if acroRead null ..

Read a Registry Key

http://stackoverflow.com/questions/1675864/read-a-registry-key

partial class Reports1 System.Web.UI.Page RegistryKey registryKey Registry.CurrentUser.OpenSubKey @ Software xyz string pathName.. @ Software xyz string pathName string registryKey.GetValue BinDir const string dllpath pathName DllImport dllpath.. Page_Load object sender EventArgs e string pathName string registryKey.GetValue BinDir is not working here but is working in the pageload..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

phKey true RegistryKey registryKey writeable_registry.OpenSubKey RegData true if registryKey null.. registryKey writeable_registry.OpenSubKey RegData true if registryKey null registryKey writeable_registry.CreateSubKey RegData registryKey.SetValue.. RegData true if registryKey null registryKey writeable_registry.CreateSubKey RegData registryKey.SetValue..