Re: Disable "Receive all incoming beams"
- From: "Peter Foot [MVP]" <feedback@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 May 2005 17:50:35 +0100
The setting doesn't take effect immediately, try broadcasting a
WM_SETTINGCHANGED message and see if that works. You can find examples of
broadcasting the message in the archives of this group:-
http://groups.google.co.uk/group/microsoft.public.dotnet.framework.compactframework?hl=en
Peter
--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org
<maderjc@xxxxxxxxx> wrote in message
news:1116864837.616538.64990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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
>
.
- References:
- Disable "Receive all incoming beams"
- From: maderjc@xxxxxxxxx
- Disable "Receive all incoming beams"
- Prev by Date: Re: Disable "Receive all incoming beams"
- Next by Date: Re: Migration from .NET CF 1 to .NET CF 2
- Previous by thread: Re: Disable "Receive all incoming beams"
- Next by thread: Re: Disable "Receive all incoming beams"
- Index(es):
Relevant Pages
|