Lines Matching defs:nError
190 ULONG nError = m_data->m_lpfnMAPILogon(nUIParam, pszProfileName, pszPassword, flags | MAPI_NEW_SESSION, 0, &m_data->m_hSession);
191 if (nError != SUCCESS_SUCCESS && nError != MAPI_E_USER_ABORT)
195 nError = m_data->m_lpfnMAPILogon(nUIParam, NULL, NULL, 0, 0, &m_data->m_hSession);
196 if (nError == SUCCESS_SUCCESS)
203 wxLogDebug(_T("Failed to logon to MAPI using a shared session, Error:%ld\n"), nError);
204 m_data->m_nLastError = nError;
207 else if (nError == SUCCESS_SUCCESS)
237 ULONG nError = m_data->m_lpfnMAPILogoff(m_data->m_hSession, 0, 0, 0);
238 if (nError != SUCCESS_SUCCESS)
240 wxLogDebug(_T("Failed in call to MapiLogoff, Error:%ld"), nError);
241 m_data->m_nLastError = nError;
272 ULONG nError = m_data->m_lpfnMAPIResolveName(m_data->m_hSession, 0, lpszAsciiName, 0, 0, lppRecip);
273 if (nError != SUCCESS_SUCCESS)
276 sName.c_str(), nError);
277 m_data->m_nLastError = nError;
280 return (nError == SUCCESS_SUCCESS);
455 ULONG nError = m_data->m_lpfnMAPISendMail(m_data->m_hSession, 0, &mapiMessage, MAPI_DIALOG, 0);
456 if (nError == SUCCESS_SUCCESS)
463 wxLogDebug(_T("Failed to send mail message, Error:%ld\n"), nError);
464 m_data->m_nLastError = nError;