Export (0) Print
Expand All

OnSSPEnable (Compact 7)

3/12/2014

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


HRESULT WINAPI OnSSPEnable(
  HWND hwndParent
);

hwndParent

[in] Handle for the service provider to use to parent any dialog box it displays when this function is called.

Returns S_OK. The ActiveSync engine does not process the return value.

The IReplStore::Initialize function may not have been called prior to this function being called. Thus the caller must not use any internal variables that depend on a prior call to IReplStore::Initialize.

The following code example demonstrates how to use OnSSPEnable.

Ee485570.note(en-us,WinEmbedded.70).gifNote:
To make the following code example easier to read, security checking and error handling are not included. This code example should not be used in a release configuration unless it has been modified to include them.
HRESULT WINAPI OnSSPEnable(HWND hWndParent)
{
    // The IReplStore::Initialize function might not have been called prior 
    // to this function being called, so you must not use internal 
    // variables that depend on IReplStore::Initialize being called.
    MessageBox(hWndParent, _T("SSP was just enabled"), _T("My SSP"), MB_OK);
    return S_OK;
}

Header

cesync.h

Show:
© 2014 Microsoft