Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » UltraLite - C and C++ Programming » API Reference » Embedded SQL API reference

 

ULIsSynchronizeMessage function

Checks a message to see if it is a synchronization message from the MobiLink provider for ActiveSync, so that code to handle such a message can be called. When the processing of a synchronization message is complete, the ULSignalSyncIsComplete function should be called.

Syntax
ul_bool ULIsSynchronizeMessage(
ul_u_long uMsg
);
Remarks

You should include a call to this function in the WindowProc function of your application.

Applies to Windows Mobile for ActiveSync.

Example

The following code snippet illustrates how to use ULIsSynchronizeMessage to handle a synchronization message.

LRESULT CALLBACK WindowProc( HWND hwnd,
         UINT uMsg,
         WPARAM wParam,
         LPARAM lParam )
{
  if( ULIsSynchronizeMessage( uMsg ) ) {
    // execute synchronization code
    if( wParam == 1 ) DestroyWindow( hWnd );
    return 0;
  }

  switch( uMsg ) {

  // code to handle other windows messages

  default:
    return DefWindowProc( hwnd, uMsg, wParam, lParam );
  }
  return 0;
}
See also