#include "l_bitmap.h"
L_LTDIC_API L_UINT16 L_DicomSetPresStateInfo(hDS, pPresState)
Sets the attributes of the "Presentation State Module".
A DICOM handle.
Pointer to a "Presentation State Module" attributes structure.
Value | Meaning |
---|---|
DICOM_SUCCESS | The function was successful. |
>0 | An error occurred. Refer to Return Codes. |
This function will set the attributes of the "Presentation State Module". Before calling this function, initialize pPresState->uStructSize to be sizeof(DICOMPRESSTATEINFO) and initialize all the members of the structure.
Required DLLs and Libraries
Win32, x64, Linux.
L_INT DicomSetPresStateInfoExample(HDICOMDS hPresStateDS)
{
L_UINT16 nRet;
VALUEDATE Date;
VALUETIME Time;
DICOMPRESSTATEINFO PresState;
SYSTEMTIME SysTime;
GetSystemTime(&SysTime);
Date.nYear = SysTime.wYear;
Date.nMonth = SysTime.wMonth;
Date.nDay = SysTime.wDay;
Time.nHours = SysTime.wHour;
Time.nMinutes = SysTime.wMinute;
Time.nSeconds = SysTime.wSecond;
PresState.nInstanceNumber = 1;
PresState.pszPresLabel = TEXT("Label");
PresState.pszPresDescription = TEXT("Description");
PresState.pszPresCreator = TEXT("Creator");
PresState.pPresCreationDate = &Date;
PresState.pPresCreationTime = &Time;
PresState.uStructSize = sizeof(DICOMPRESSTATEINFO);
nRet = L_DicomSetPresStateInfo(hPresStateDS,&PresState);
if (nRet == DICOM_SUCCESS)
MessageBox( NULL, TEXT("Presentation state has been successfully updated"), TEXT("Notice"), 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