Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
检查消息,看它是否是来自 ActiveSync 的 MobiLink 提供程序的同步消息,以便可以调用处理这种消息的代码。
public ul_bool ULIsSynchronizeMessage(ul_u_long number)
完成对同步消息的处理后,应调用 ULSignalSyncIsComplete 函数。
应将对此函数的调用包括在应用程序的 WindowProc 函数中。此函数适用于用于 ActiveSync 的 Windows Mobile。
下面的代码片段说明如何使用 ULIsSynchronizeMessage 处理同步消息:
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; }