How to check if a registry value exists by C# code? This is my code, I want to check if \'Start\' exists.
public static bool checkMachineType() { Registr
string keyName=@"HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\pcmcia"; string valueName="Start"; if (Registry.GetValue(keyName, valueName, null) == null) { //code if key Not Exist } else { //code if key Exist }