Windows Vista Tips

Windows Vista Tips > Newsgroups > ActiveSync > ActiveSync desktop

Reply
Thread Tools Display Modes

ActiveSync desktop

 
 
Lisa Pearlson
Guest
Posts: n/a

 
      01-21-2009
Hi,

I wish to temporarily disable ActiveSync's ability to connect via USB.
Manually this can be done by unticking the box for allowing USB connections,
under connection settings.
While this modifies the registry setting
HKEY_CURRENT_USER\Software\Microsoft\Windows CE
Services\ConnectionTypesAllowed, changing this value doesn't seem to have an
effect (until a reload).

Sure, I can kill wcescomm.exe and restart it when I'm done, but this is
ugly.. I want an active connection to remain connection, but if
disconnected, I want to disallow reconnect.

Some COM interface, windows message, or some other way to change the
connection settings programmatically?

Lisa


 
Reply With Quote
 
 
 
 
Linley Meslier
Guest
Posts: n/a

 
      01-22-2009
Hi Lisa,

You may want to try Activesync Toggle from
http://micrologics.co.uk/library/ast/
--
Linley Meslier
Microsoft MVP - Mobile Devices
Http://PocketpcMauritius.blogspot.com
Http://PPCMUDownloads.blogspot.com/


"Lisa Pearlson" wrote:

> Hi,
>
> I wish to temporarily disable ActiveSync's ability to connect via USB.
> Manually this can be done by unticking the box for allowing USB connections,
> under connection settings.
> While this modifies the registry setting
> HKEY_CURRENT_USER\Software\Microsoft\Windows CE
> Services\ConnectionTypesAllowed, changing this value doesn't seem to have an
> effect (until a reload).
>
> Sure, I can kill wcescomm.exe and restart it when I'm done, but this is
> ugly.. I want an active connection to remain connection, but if
> disconnected, I want to disallow reconnect.
>
> Some COM interface, windows message, or some other way to change the
> connection settings programmatically?
>
> Lisa
>
>
>

 
Reply With Quote
 
Lisa Pearlson
Guest
Posts: n/a

 
      01-22-2009
That one kills and reruns activesync.

I can accomplish same by running

taskkill /IM wcescomm.exe /T
And run activesync again by getting wcescomm.exe path from registry.

That's not what I want though. Besides, if I am to use some 3rd party app
for that, I might as well use ActiveSync's own UI to disable USB
connections. The whole point is doing it programmatically, disable usb
connections without killing activesync.

Thanks though.

"Linley Meslier" <> wrote in message
news:66DF82EA-92C8-4C9A-A831-...
> Hi Lisa,
>
> You may want to try Activesync Toggle from
> http://micrologics.co.uk/library/ast/
> --
> Linley Meslier
> Microsoft MVP - Mobile Devices
> Http://PocketpcMauritius.blogspot.com
> Http://PPCMUDownloads.blogspot.com/
>
>
> "Lisa Pearlson" wrote:
>
>> Hi,
>>
>> I wish to temporarily disable ActiveSync's ability to connect via USB.
>> Manually this can be done by unticking the box for allowing USB
>> connections,
>> under connection settings.
>> While this modifies the registry setting
>> HKEY_CURRENT_USER\Software\Microsoft\Windows CE
>> Services\ConnectionTypesAllowed, changing this value doesn't seem to have
>> an
>> effect (until a reload).
>>
>> Sure, I can kill wcescomm.exe and restart it when I'm done, but this is
>> ugly.. I want an active connection to remain connection, but if
>> disconnected, I want to disallow reconnect.
>>
>> Some COM interface, windows message, or some other way to change the
>> connection settings programmatically?
>>
>> Lisa
>>
>>
>>



 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a

 
      01-22-2009
There's not going to be an API/COM interface for "disable ActiveSync" (and
more than there's one for "disable Internet Explorer", etc.) You can kill
and restart ActiveSync, as you said. I'm sure that, when you make a change
to ActiveSync's settings to disable USB connection, it's actually acting on
that immediately to remove itself from being notified about USB device
connections, etc. I think it's unlikely that it's monitoring for some
WM_SETTINGCHANGE message or something to catch other programs changing its
registry settings. You could try WM_SETTINGCHANGE, of course...

Paul T.

"Lisa Pearlson" <> wrote in message
news:...
> That one kills and reruns activesync.
>
> I can accomplish same by running
>
> taskkill /IM wcescomm.exe /T
> And run activesync again by getting wcescomm.exe path from registry.
>
> That's not what I want though. Besides, if I am to use some 3rd party app
> for that, I might as well use ActiveSync's own UI to disable USB
> connections. The whole point is doing it programmatically, disable usb
> connections without killing activesync.
>
> Thanks though.
>
> "Linley Meslier" <> wrote in
> message news:66DF82EA-92C8-4C9A-A831-...
>> Hi Lisa,
>>
>> You may want to try Activesync Toggle from
>> http://micrologics.co.uk/library/ast/
>> --
>> Linley Meslier
>> Microsoft MVP - Mobile Devices
>> Http://PocketpcMauritius.blogspot.com
>> Http://PPCMUDownloads.blogspot.com/
>>
>>
>> "Lisa Pearlson" wrote:
>>
>>> Hi,
>>>
>>> I wish to temporarily disable ActiveSync's ability to connect via USB.
>>> Manually this can be done by unticking the box for allowing USB
>>> connections,
>>> under connection settings.
>>> While this modifies the registry setting
>>> HKEY_CURRENT_USER\Software\Microsoft\Windows CE
>>> Services\ConnectionTypesAllowed, changing this value doesn't seem to
>>> have an
>>> effect (until a reload).
>>>
>>> Sure, I can kill wcescomm.exe and restart it when I'm done, but this is
>>> ugly.. I want an active connection to remain connection, but if
>>> disconnected, I want to disallow reconnect.
>>>
>>> Some COM interface, windows message, or some other way to change the
>>> connection settings programmatically?
>>>
>>> Lisa
>>>
>>>
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
ActiveSync Desktop Stopped Launching Jerry Mickman ActiveSync 0 07-26-2006 02:29 PM
Activesync 4.1 - WM 5.0 WORKING Paco Plus ActiveSync 6 05-12-2006 06:16 PM
Re: Cingular 8125/WM5.0/Win2000/AS 4.1 No Can Do... Raj Pillai ActiveSync 1 04-26-2006 01:33 PM
Can't sync w/ Exchange Activesync through my desktop Hutch ActiveSync 4 04-11-2006 09:30 PM
Re: Activesync 4.1 can't see device R. McCarty ActiveSync 1 03-02-2006 09:54 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59