Searching the Data Set for a Digital Signature Example for C++ 6.0 and later
void FindSignature(ILEADDicomDSPtr& spDicomDS, LPCSTR pszSignatureUID)
{
// Search the whole Data Set for the Digital Signature with the
// specified Digital Signature UID
if (!spDicomDS->FindSignature(pszSignatureUID))
{
::MessageBox(NULL,
"The Digital Signature was not found.",
"Sample",
MB_OK);
return;
}
char* pszMsg = "The Digital Signature was found.\n"
"Press Yes to examine it or No to delete it.";
switch (::MessageBox(NULL, pszMsg, "Sample", MB_YESNOCANCEL))
{
case IDYES:
// Refer to Examining a Digital Signature Example for C++ 6.0 and later
// for the function ExamineSignature
ExamineSignature(spDicomDS, spDicomDS->GetCurrentElement()->hElement);
break;
case IDNO:
// Delete the Digital Signature
spDicomDS->DeleteSignature();
break;
}
}