ANNENCRYPTOPTIONS (Document/Medical only)
typedef struct tagANNENCRYPTOPTIONS
{
L_UINT32 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_INT32 nReserved;
} ANNENCRYPTOPTIONS, L_FAR *pANNENCRYPTOPTIONS;
Member |
Description |
|
uStructSize |
Size of this structure. Use sizeof(ANNENCRYPTOPTIONS) |
|
uFlags |
Flags that identify which files to set or get. Possible values are one or more of the following constants "or"ed together: |
|
|
Value |
Meaning |
|
ANNENCRYPT_TYPE |
[0x001] Get or set the bEncryptor field. |
|
ANNENCRYPT_KEY |
[0x002] Get or set the uKey field. |
|
ANNENCRYPT_RESERVED1 |
[0x004] Reserved for future use. |
|
ANNENCRYPT_NEVER_ENCRYPTED |
[0x008] Get or set the bNeverEncrypted field. |
|
ANNENCRYPT_ENCRYPT_BITMAP |
[0x010] Get or set the pEncryptBitmap field. |
|
ANNENCRYPT_ALL |
[0x01F] Get or set all fields. |
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. |
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.