L_DicomGetApplication

#include "ltdic.h"

L_LTDIC_API L_VOID L_DicomGetApplication(hPDU, strApplication, SizeInWords)

Gets the Application Context for the specified DICOM Associate.

Parameters

HDICOMPDU hPDU

A DICOM Associate handle.

L_TCHAR * strApplication

Buffer to be updated with the Application Context for the specified DICOM Associate.

L_UINT32 SizeInWords

Size of the destination string buffer.

Returns

None.

Comments

The default value for the Application Context is "1.2.840.10008.3.1.1.1" (UID_APPLICATION_CONTEXT_NAME).

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

L_INT DicomGetApplicationExample(HDICOMPDU hPDU) 
{ 
   L_INT nRet; 
 
   /* display current Application Context */ 
   L_TCHAR szApplication[PDU_MAX_UID_SIZE+1]; 
 
   L_DicomGetApplication(hPDU, szApplication, PDU_MAX_UID_SIZE+1); 
   MessageBox(NULL, szApplication, TEXT("Test"), MB_OK); 
   /* change it */ 
   nRet = L_DicomSetApplication(hPDU, TEXT("9.9.999.99999.9.9.9.9")); 
   if (nRet != DICOM_SUCCESS) 
      return nRet; 
 
   L_DicomGetApplication(hPDU, szApplication, PDU_MAX_UID_SIZE+1); 
   MessageBox(NULL, szApplication, TEXT("Test"), MB_OK); 
   return DICOM_SUCCESS; 
} 
Help Version 20.0.2019.9.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help