The FILEDECRYPTOPTIONS structure provides information on loading encrypted files in LEADTOOLS.
typedef struct _FILEDECRYPTOPTIONS
{
L_UINT uStructSize;
L_UINT uFlags;
L_TCHAR *pszPassword;
FILEDECRYPTCALLBACK pfnCallback;
L_VOID *pUserData;
} FILEDECRYPTOPTIONS, *pFILEDECRYPTOPTIONS;
Size of the structure. The size must be set before passing this structure to the LEAD functions. Use sizeof(FILEDECRYPTOPTIONS)
to calculate this value.
Reserved for future use, pass 0.
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).
Optional callback for loading the file. If not NULL, LEADTOOLS will try this callback when a decryption password is needed.
Optional callback user data. This value will be passed to pfnCallback
as the pUserData parameter.
pFILEDECRYPTOPTIONS
is a pointer to a FILEDECRYPTOPTIONS structure.
If you pass this structure to LFileSettings::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 LFileSettings::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 LFileSettings::SetDecryptOptions. So if you need to use this pointer at a later time, you should make a copy.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.