M
maderjc
Ok I am trying to enable and disable the "Receive all incoming
beams" so that I can use the OpenNETCF port. I am able to update the
registry to make sure that the "IsEnabled" key if 0 'false' when I
open the port. And then return it back to it pervious state when I
close the port.
Below shows the registry entry I am looking at.
subKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Obex",
true);
if (subKey != null && subKey.ValueCount > 0)
{
subKey.SetValue("IsEnabled", iBeamValue);
}
if (subKey != null)
{
subKey.Close();
Registry.LocalMachine.Close();
}
But when I change the "IsEnabled" from 1 'true' to 0
'false' right before I open the port I receive an error that the
port is busy (OpenNETCF.IO.Serial.CommPortException:CreateFile Failed:
55). I look at the registry with a RegEdit utility and it shows the
value at 0 'false'.
So where am I going wrong?
Do I need to refresh the registry after I update the value? How would
I do that?
Am I looking at the wrong registry entry?
Does OpenNETCF port not use the registry to see in the Beams are
enabled?
I am using a Dell Axim x50 running Window Mobile 2003.
Thanks,
Jason
beams" so that I can use the OpenNETCF port. I am able to update the
registry to make sure that the "IsEnabled" key if 0 'false' when I
open the port. And then return it back to it pervious state when I
close the port.
Below shows the registry entry I am looking at.
subKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Obex",
true);
if (subKey != null && subKey.ValueCount > 0)
{
subKey.SetValue("IsEnabled", iBeamValue);
}
if (subKey != null)
{
subKey.Close();
Registry.LocalMachine.Close();
}
But when I change the "IsEnabled" from 1 'true' to 0
'false' right before I open the port I receive an error that the
port is busy (OpenNETCF.IO.Serial.CommPortException:CreateFile Failed:
55). I look at the registry with a RegEdit utility and it shows the
value at 0 'false'.
So where am I going wrong?
Do I need to refresh the registry after I update the value? How would
I do that?
Am I looking at the wrong registry entry?
Does OpenNETCF port not use the registry to see in the Beams are
enabled?
I am using a Dell Axim x50 running Window Mobile 2003.
Thanks,
Jason