LDicomDS::GetPresStateInfo

Summary

Retrieves the attributes of the "Presentation State Module".

Syntax

#include "Ltdic.h"

L_UINT16 LDicomDS::GetPresStateInfo(pPresState, uStructSize)

Parameters

pDICOMPRESSTATEINFO pPresState

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

L_UINT uStructSize

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

Returns

Value Meaning
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

Platforms

Win32, x64

See Also

Functions

Topics

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; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.