LSettings::IsSupportLocked

#include "ltwrappr.h"

static L_BOOL LSettings::IsSupportLocked(uType)

L_UINT uType;

/* optional feature to check */

Indicates whether support is locked for an optional feature, such as LEADTOOLS Document/Medical capabilities.

Parameter

Description

uType

The optional feature to check. For a list of possible values, refer to the uType parameter of LSettings::UnlockSupport.

Returns

TRUE

The optional feature is locked.

FALSE

The optional feature is available in your toolkit.

Comments

For information about LEADTOOLS Document/Medical capabilities, contact LEAD.

To unlock a feature, use the LSettings::UnlockSupport function.

Note: Please note that the L_SUPPORT_VECTOR_DWG, L_SUPPORT_VECTOR_DWF, L_SUPPORT_VECTOR_DXF, L_SUPPORT_VECTOR_MISC and L_SUPPORT_VECTOR_ALL options for the iType parameter are now obsolete. If these constants are currently in your code, you should consider adding the LEADTOOLS Vector View Plug in or upgrading to the LEADTOOLS Vector Imaging Pro toolkit.

Required DLLs and Libraries

LTKRN

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:

LSettings::UnlockSupport, Class Members

Example

L_INT LSettings__IsSupportLockedExample()
{
   LSettings LeadSettings;
   if (LeadSettings.IsSupportLocked (L_SUPPORT_DOCUMENT))
   {
      MessageBox (NULL, TEXT("Support for Document/Medical Capabilities is locked- You need to unlock Document/Medical capabilities"), 
         TEXT("IsSupportLocked"), MB_OK);
   }
   else
   {
      MessageBox (NULL, TEXT("You can use Document/Medical Capabilities"), TEXT("IsSupportLocked"), MB_OK);
      return FAILURE;
   }
   return SUCCESS;
}