GetStatusISCL Example for C++ 6.0 and later
void CDicomNetSink::OnNetReceive(long hNet, long nStatus, short nType, const VARIANT FAR& pData, long lSize)
{
// In this example, assume an error occurs in the NetReceive event. The code to
// determine why this happened should look like this:
// . . .
long nStatusISCL = m_pDlg->m_pLEADDicomNet->GetStatusISCL (hNet);
if(nStatus == DICOM_ERROR_ISCL_DECRYPT)
{
if(nStatusISCL == 24)
// error decrypting message data
AfxMessageBox("Error decrypting message");
if(nStatusISCL == 25)
// error decrypting MAC code
AfxMessageBox("Error decrypting MAC code");
}
// . . .
}