programatically stop and start ActiveSync service.

  • Thread starter Thread starter Empi
  • Start date Start date
E

Empi

Hi,

I need to stop the activesync in some sections of my projects.
Any clue on how to do it?

Thanks.
 
On Windows Mobile 5.0 and above you can call the ActiveSyncStart and
ActiveSyncStop methods in aygshell.dll e.g.
[DllImport("aygshell.dll", SetLastError = true)]
internal static extern int ActiveSyncStart();

[DllImport("aygshell.dll", SetLastError = true)]
internal static extern int ActiveSyncStop();

See the SDK documentation for a description of these functions.

Peter
 
TY very much !



Peter Foot said:
On Windows Mobile 5.0 and above you can call the ActiveSyncStart and
ActiveSyncStop methods in aygshell.dll e.g.
[DllImport("aygshell.dll", SetLastError = true)]
internal static extern int ActiveSyncStart();

[DllImport("aygshell.dll", SetLastError = true)]
internal static extern int ActiveSyncStop();

See the SDK documentation for a description of these functions.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

Empi said:
Hi,

I need to stop the activesync in some sections of my projects.
Any clue on how to do it?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top