case XTYP_CONNECT: case XTYP_CONNECT_CONFIRM:  if ( DdeCmpStringHandles( hsz1, mTopic ) == 0 && DdeCmpStringHandles( hsz2, mApplication ) == 0 ) {
case XTYP_CONNECT:  if ( FindTopic( hsz1 ) < topicCount ) {  result = (HDDEDATA)1; } break; case XTYP_CONNECT_CONFIRM:
nsNativeAppSupportWin::HandleDDENotification( UINT uType,       // transaction type                                              UINT uFmt,        // clipboard data format                                              HCONV hconv,      // handle to the conversation                                              HSZ hsz1,         // handle to a string                                              HSZ hsz2,         // handle to a string                                              HDDEDATA hdata,   // handle to a global memory object                                              ULONG dwData1,    // transaction-specific data                                              ULONG dwData2 ) { // transaction-specific data    #if MOZ_DEBUG_DDE    printf( "DDE: uType  =%s\n",      uTypeDesc( uType ).get() );    printf( "     uFmt   =%u\n",      (unsigned)uFmt );    printf( "     hconv  =%08x\n",    (int)hconv );    printf( "     hsz1   =%08x:%s\n", (int)hsz1, hszValue( mInstance, hsz1 ).get() );    printf( "     hsz2   =%08x:%s\n", (int)hsz2, hszValue( mInstance, hsz2 ).get() );    printf( "     hdata  =%08x\n",    (int)hdata );    printf( "     dwData1=%08x\n",    (int)dwData1 );    printf( "     dwData2=%08x\n",    (int)dwData2 );    #endif    HDDEDATA result = 0;    if ( uType & XCLASS_BOOL ) {        switch ( uType ) {        case XTYP_CONNECT:        case XTYP_CONNECT_CONFIRM:            // Make sure its for our service/topic.            if ( DdeCmpStringHandles( hsz1, mTopic ) == 0                 &&                 DdeCmpStringHandles( hsz2, mApplication ) == 0 ) {                // We support this connection.                result = (HDDEDATA)1;            }        }    } else if ( uType & XCLASS_DATA ) {    } else if ( uType & XCLASS_FLAGS ) {        if ( uType == XTYP_EXECUTE ) {            // Prove that we received the request.            DWORD bytes;            LPBYTE request = DdeAccessData( hdata, &bytes );            #if MOZ_DEBUG_DDE            printf( "Handling dde request: [%s]...\n", (char*)request );            #endif            HandleRequest( request );            result = (HDDEDATA)DDE_FACK;        } else {            result = (HDDEDATA)DDE_FNOTPROCESSED;        }    } else if ( uType & XCLASS_NOTIFICATION ) {    }    return result;}