FILEDECRYPTOPTIONS

Summary

The FILEDECRYPTOPTIONS structure provides information on loading encrypted files in LEADTOOLS.

Syntax

typedef struct _FILEDECRYPTOPTIONS 
{ 
   L_UINT uStructSize; 
   L_UINT uFlags; 
   L_TCHAR *pszPassword; 
   FILEDECRYPTCALLBACK pfnCallback; 
   L_VOID *pUserData; 
} FILEDECRYPTOPTIONS, *pFILEDECRYPTOPTIONS; 

Members

uStructSize

Size of the structure. The size must be set before passing this structure to the LEAD functions. Use sizeof(FILEDECRYPTOPTIONS) to calculate this value.

uFlags

Reserved for future use, pass 0.

pszPassword

Optional password for loading the file. If this is NULL or is not the correct password, LEADTOOLS will try calling pfnCallback (if it is not NULL).

pfnCallback

Optional callback for loading the file. If not NULL, LEADTOOLS will try this callback when a decryption password is needed.

pUserData

Optional callback user data. This value will be passed to pfnCallback as the pUserData parameter.

Comments

pFILEDECRYPTOPTIONS is a pointer to a FILEDECRYPTOPTIONS structure.

If you pass this structure to L_SetDecryptOptions and you set pszPassword to a value other than NULL, LEADTOOLS will make a copy of this string. So if you allocated this pointer, you will need to remember to free the pointer when you are done with this structure.

If you call L_GetDecryptOptions, LEADTOOLS might set pszPassword to the internal buffer used to store the default password. You should NOT attempt to free this pointer. This pointer is only valid until this thread makes another call to L_SetDecryptOptions. So if you need to use this pointer at a later time, you should make a copy.

See Loading Encrypted files for more information.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.