#include "Ltdic.h"
L_UINT16 LDicomDS::GetPresStateInfo(pPresState, uStructSize)
Retrieves the attributes of the "Presentation State Module".
Pointer to a structure which will be filled with the "Presentation State Module" attributes.
Size of the DICOMPRESSTATEINFO structure. Pass sizeof(DICOMPRESSTATEINFO).
Value | Meaning |
---|---|
0 | SUCCESS |
>0 | An error occurred. Refer to Return Codes. |
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
Win32, x64
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document