FindModuleIOD Example for C++ 6.0 and later

   IDicomIODItemPtr pCurrentIOD=NULL;

   //Find a Module
   m_pLEADDicomDS->FindModuleIOD(DICOM_CLASS_CR_IMAGE_STORAGE, DICOM_MODULE_PATIENT);
   pCurrentIOD = m_pLEADDicomDS->GetCurrentIOD();
   AfxMessageBox(pCurrentIOD->GetName());

   m_pLEADDicomDS->SetIODName("New IOD Name #1");
   m_pLEADDicomDS->SetIODDescription("New IOD Description #1");
   pCurrentIOD = m_pLEADDicomDS->GetCurrentIOD();
   AfxMessageBox(pCurrentIOD->GetName() + "\n" + pCurrentIOD->GetDescription());

   //Find a Class
   m_pLEADDicomDS->FindClassIOD(DICOM_CLASS_PRINT_QUEUE);
   pCurrentIOD = m_pLEADDicomDS->GetCurrentIOD();
   AfxMessageBox(pCurrentIOD->GetName());

   m_pLEADDicomDS->SetIODName("New IOD Name #2");
   m_pLEADDicomDS->SetIODDescription("New IOD Description #2");
   pCurrentIOD = m_pLEADDicomDS->GetCurrentIOD();
   AfxMessageBox(pCurrentIOD->GetName() + "\n" + pCurrentIOD->GetDescription());