HANDLE hEvent = CreateEvent (NULL, FALSE, FALSE, (LPCTSTR) MAPI_SENDCOMPLETE_EVENT) ; SetEvent (hEvent) ; CloseHandle (hEvent) ;
    NS_IMETHOD OnStopSending(const char *aMsgID, nsresult aStatus, const PRUnichar *aMsg,                            nsIFileSpec *returnFileSpec) {        m_done = PR_TRUE;        HANDLE hEvent = CreateEvent (NULL, FALSE, FALSE, (LPCTSTR) MAPI_SENDCOMPLETE_EVENT) ;        SetEvent (hEvent) ;        CloseHandle (hEvent) ;        return NS_OK ;    }