L_DicomGetErrorSecure

#include "ltdic.h"

L_LTDIC_API L_UINT32 L_DicomGetErrorSecure(hNet)

HDICOMNET hNet;

/* handle to an existing DICOM Network */

Returns a special ISCL or TLS error. This function is available in Medical Suite toolkits.

Parameter

Description

hNet

Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.

Returns

Returns the last occurring error code.

Returns a specialized ISCL or TLS error code. For a list of possible values, refer to Return Codes.

Comments

The errors returned by this function may be useful for debugging purposes.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DicomGetStatusISCL

Topics:

DICOM Net: ISCL connection

 

Sending and Receiving Messages

 

General Integrated Secure Communication Layer (ISCL) Information

Example

// This example assumes L_DicomConnect (…) has been called, and then the 
// OnSecureLinkReady callback is called with an error code.
L_UINT32 EXT_CALLBACK myOnSecureLinkready(HDICOMNET hNet, L_UINT32 nError, L_VOID *  pUserData)
{
   UNREFERENCED_PARAMETER(pUserData);
   UNREFERENCED_PARAMETER(nError);
   
   L_TCHAR str[20];
   wsprintf(str, TEXT("Error code is:%d"), L_DicomGetErrorSecure(hNet));
   MessageBox(NULL, str, TEXT("Error"), MB_OK);

   return 0;
};