#include "ltdic.h"
L_LTDIC_API L_VOID L_DicomInitCS(hDS, nCommand, bRequest)
Creates the Command Set and inserts the elements for the specified command.
A DICOM handle.
Type of command to create. Possible values are:
Value | Meaning |
---|---|
COMMAND_C_STORE | [0x0001] Composite Store Command |
COMMAND_C_FIND | [0x0020] Composite Find Command |
COMMAND_C_GET | [0x0010] Composite Get Command |
COMMAND_C_MOVE | [0x0021] Composite Move Command |
COMMAND_C_CANCEL | [0x0FFF] Composite Cancel Command |
COMMAND_C_ECHO | [0x0030] Composite Echo Command |
COMMAND_N_REPORT | [0x0100] Normalized Report Command |
COMMAND_N_GET | [0x0110] Normalized Get Command |
COMMAND_N_SET | [0x0120] Normalized Set Command |
COMMAND_N_ACTION | [0x0130] Normalized Action Command |
COMMAND_N_CREATE | [0x0140] Normalized Create Command |
COMMAND_N_DELETE | [0x0150] Normalized Delete Command |
Flag that indicates whether to create the command set as a request or an a response. Possible values are:
Value | Meaning |
---|---|
TRUE | Create the command set as a request. |
FALSE | Create the command set as a response. |
None.
A Command set is a special type of Data Set. Therefore, to create a Command Set you must first call L_DicomCreateDS and initialize the newly created Data Set by calling L_DicomInitCS.
For more information about the elements contained in the command sets supported by LEADTOOLS, refer to Command Set Default Tables.
Required DLLs and Libraries
Win32, x64, Linux.
This example creates a Data Set as a Command Set and gets information about the command
L_INT DicomInitCSExample(L_VOID)
{
L_UINT16 nCommand;
L_BOOL bRequest;
L_TCHAR buf[180];
HDICOMDS hDS;
hDS = L_DicomCreateDS(NULL);
L_DicomInitCS(hDS, COMMAND_C_STORE, 0);
L_DicomGetInfoCS(hDS, &nCommand, &bRequest);
wsprintf(buf, TEXT("Command = %d\n"), nCommand);
if(bRequest)
lstrcat(buf, TEXT("Request"));
else
lstrcat(buf, TEXT("Response"));
MessageBox(NULL, buf, TEXT("Test"), MB_OK);
L_DicomFreeDS(hDS);
return DICOM_SUCCESS;
}
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.