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.
 
Back
Top