PC Review


Reply
Thread Tools Rate Thread

Disable "Receive all incoming beams"

 
 
maderjc@gmail.com
Guest
Posts: n/a
 
      23rd May 2005
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

 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      23rd May 2005
That registry entry is documented as indicating the status of the server,
but that doesn't mean that there's some sort of instantaneous connection
between the registry entry and the server. Changing a registry entry never,
by itself, stops or starts a server. I think that what you want to do is
stop the server entirely. If you can live with that, look up activating a
service programmatically...

Paul T.


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      23rd May 2005
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/mic...ramework?hl=en

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Darren Beckley
Guest
Posts: n/a
 
      23rd May 2005
There is an example in MSDN of how to disable Obex. It is in C++ though.

http://msdn.microsoft.com/library/en...ementation.asp

Hope that helps,
Darren

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Disable scheduled send/receive" missing from "Send/Receive settings" - Cross post, kind of Ken Isaacson Microsoft Outlook Discussion 1 12th Jan 2009 05:53 PM
Cannot Disable "Allow incoming echo request" in Windows Firewall =?Utf-8?B?R3JlZw==?= Windows XP General 1 3rd Dec 2008 05:49 PM
why always click "send/receive" to get incoming messages?? =?Utf-8?B?ZHJla2t5IGtuaXNo?= Microsoft Outlook Discussion 0 11th Aug 2006 12:45 PM
Cannot disable "Incoming Echo Request" checkbox in ICF =?Utf-8?B?QWxhbiBC?= Windows XP Networking 0 23rd Dec 2004 12:47 AM
In Outlook 2003 how do I do a "receive only" to check incoming be. =?Utf-8?B?UmljaGFyZCBZb3VuZw==?= Microsoft Outlook Discussion 12 8th Dec 2004 04:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:12 PM.