Partager via


ActiveSync Functions

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following tables show the ActiveSync functions, with a description of the purpose of each.

Programming element Description

CeGetDeviceId

This function returns an identifier for a currently connected device.

CeGetSelectedDeviceId

This function returns an identifier for a currently selected device.

CeSvcAdd

This function adds a registry subkey for a service.

CeSvcClose

This function closes a handle to a registry subkey for a service.

CeSvcDelete

This function deletes a handle to a registry subkey for a service.

CeSvcDeleteVal

This function removes a value from a registry subkey for a service.

CeSvcEnumProfiles

This function enumerates all the service profiles currently stored in the registry.

CeSvcGetBinary

This function retrieves a binary value from a registry subkey for a service.

CeSvcGetDword

This function retrieves a DWORD value from a registry subkey for a service.

CeSvcGetString

This function retrieves a string value from a registry subkey for a service.

CeSvcOpen

This function opens a service and retrieves a handle to the registry root for a specified logical position.

CeSvcOpenEx

This function opens a service and retrieves a nested subkey for the supplied registry key.

CeSvcQueryInfo

This function requests information about a service.

CeSvcRemove

This function removes a registry subkey for a service.

CeSvcSetBinary

This function writes a binary value to a registry subkey for a service.

CeSvcSetDword

This function writes a DWORD value to a registry subkey for a service.

CeSvcSetString

This function writes a string value to a registry subkey for a service.

FindObjects

This device module function is called by the server to locate objects in the device's object store.

GetObjTypeInfo

This device module function is called by the server to retrieve information about the object type.

InitObjType

This device module function initializes an object type.

Install_Exit

Called after an application is installed. Used for custom operations, such as handling errors that occurred during installation or launching of the application.

Install_Init

Called before application installation begins. Used for custom operations, such as checking an application version for application re-installation or determining whether a dependent application is present.

ObjectNotify

This device module function is called by the server when there is a change or deletion to an object in the device's object store.

ReportStatus

This device module function is called by the server to report status information about synchronization objects.

SyncData

This device module function synchronizes data between the ActiveSync service provider and the device.

Uninstall_Exit

Called after an application is uninstalled. Used for custom operations such as saving database data into a file and deleting the database, informing the user where the user data files are stored, or informing the user how to reinstall the application.

Uninstall_Init

Called before an application is uninstalled. Used for custom operations such as closing the application if it is running.

ActiveSyncStart

This function initiates synchronization.

ActiveSyncStop

This function requests for synchronization to stop.

OnSSPDisable

This is an ActiveSync service provider function called when the service provider is disabled in the Activesync Options dialog box.

OnSSPEnable

This is an ActiveSync service provider function called when the service provider is enabled in the Activesync Options dialog box.