ANNENCRYPTOPTIONS

typedef struct tagANNENCRYPTOPTIONS 
{ 
   L_UINT uStructSize; 
   L_UINT uFlags; 
   L_BOOL bEncryptor; 
   L_UINT32 uKey; 
   L_BOOL bNeverEncrypted; 
   pBITMAPHANDLE pEncryptBitmap; 
   L_BOOL bSaveEncryptorKey; 
   L_BOOL bSaveDecryptorKey; 
   L_BOOL bClearEncryptorKey; 
   L_BOOL bClearDecryptorKey; 
   L_UINT uBitmapStructSize; 
   L_INT32 nReserved; 
} ANNENCRYPTOPTIONS, *pANNENCRYPTOPTIONS; 
 

bEncryptor Flag that indicates whether the object is an encryptor or decryptor. Possible values are:
  Value Meaning
  TRUE The object is an encryptor.
  FALSE The object is a decryptor.
uKey Key that is used for the encryption/decryption. This is an unsigned integer with a minimum value of 0 and a maximum value of 4294967295 (0xffffffff). When used in automation using the Encrypt dialog (right-clicking an encryptor), the maximum value is 999999999. When decrypting, use the same key that was used when the encryptor was applied.
bNeverEncrypted Flag that indicates whether you can change the key and location of the decryptor. This field is only relevant for decryptors (bEncryptor is FALSE). Possible values are:
  Value Meaning
  TRUE The decryptor has never been encrypted. This means that in automation, the key and location of the decryptor can be changed.
  FALSE The decryptor was originally an encryptor that was applied. You cannot change the key or location of this kind of decryptor.
pEncryptBitmap Pointer to the bitmap that is being encrypted or decrypted
bSaveEncryptorKey Flag that indicates if encryptor keys are saved. Possible values are:
  Value Meaning
  TRUE Encryptor keys are saved with L_AnnSave, L_AnnSaveOffset, L_AnnSaveMemory, L_AnnSaveTag.
  FALSE Encryptor keys are saved with a value of 0 with L_AnnSave, L_AnnSaveOffset, L_AnnSaveMemory, L_AnnSaveTag.
bSaveDecryptorKey Flag that indicates if decryptor keys are saved. Possible values are:
  Value Meaning
  TRUE Decryptor keys are saved with L_AnnSave, L_AnnSaveOffset, L_AnnSaveMemory, L_AnnSaveTag.
  FALSE Decryptor keys are saved with a value of 0 with L_AnnSave, L_AnnSaveOffset, L_AnnSaveMemory, L_AnnSaveTag.
bClearEncryptorKey Flag that indicates what happens to encrypt keys after calling L_AnnEncryptApply
  Value Meaning
  TRUE All encrypt objects whose state has become ‘encryptor’ have the key set to 0.
  FALSE All encrypt objects whose state has become ‘encryptor’ have the key unchanged.
bClearDecryptorKey Flag that indicates what happens to encrypt keys after calling L_AnnEncryptApply.
  Value Meaning
  TRUE All encrypt objects whose state has become ‘decryptor’ have the key set to 0.
  FALSE All encrypt objects whose state has become ‘decryptor’ have the key unchanged.
uBitmapStructSize Size of the BITMAPHANDLE structure -- use sizeof(BITMAPHANDLE).
nReserved Reserved for future use. Must set this field to zero.

Comments

The ANNENCRYPTOPTIONS structure is used with the functions L_AnnSetEncryptOptions and L_AnnGetEncryptOptions to get or set options on an annotation encrypt object. This encrypt object may be in the encryptor state or the decryptor state.

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help