LDicomDS::GetPresStateInfo

#include "Ltdic.h"

L_UINT16 LDicomDS::GetPresStateInfo(pPresState, uStructSize)

pDICOMPRESSTATEINFO pPresState;

/* pointer to a presentation state attributes structure */

L_UINT uStructSize;

/* size of the DICOMPRESSTATEINFO structure */

Retrieves the attributes of the "Presentation State Module".

Parameter

Description

pPresState

Pointer to a structure which will be filled with the "Presentation State Module" attributes.

uStructSize

Size of the DICOMPRESSTATEINFO structure. Pass sizeof(DICOMPRESSTATEINFO).

Returns

0

SUCCESS

>0

An error occurred. Refer to Return Codes.

Comments

This function will retrieve the attributes of the "Presentation State Module" and store their values in the structure pointed to by pPresState.

pPresState->uStructSize will be set to the value of the parameter uStructSize.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LDicomDS::SetPresStateInfo, LDicomDS::AddPresStateImageRefByFileName, LDicomDS::AddPresStateImageRefByDS, LDicomDS::RemovePresStateImageRefBySOPInstance, LDicomDS::RemoveAllPresStateImageRefs, LDicomDS::GetPresStateImageRefSOPInstance, LDicomDS::GetPresStateImageRefCount, LDicomDS::FindFirstPresStateRefSeriesItem, LDicomDS::FindNextPresStateRefSeriesItem, LDicomDS::GetPresStateImageRefBySOPInstance

Topics:

Working with DICOM Annotations

Example

L_INT LDicomDS_GetPresStateInfoExample(LDicomDS& PresStateDS) 
{
   L_INT                nRet;
   DICOMPRESSTATEINFO   PresState; 
   nRet = PresStateDS.GetPresStateInfo(&PresState, sizeof(DICOMPRESSTATEINFO)); 
   if (nRet == DICOM_SUCCESS) 
   {
      L_TCHAR szText[256] =TEXT( "");
      if(PresState.pszPresDescription) 
      {
         wsprintf(szText, 
                  TEXT("Presentation State description is: %s "), 
                  PresState.pszPresDescription); 
      }
      else
      {
         wsprintf(szText, TEXT("Presentation State description is missing"));
      }
      MessageBox( NULL, szText, TEXT("Note"), MB_OK); 
   }
   return nRet;
}