typedef struct _FILEDECRYPTOPTIONS
} FILEDECRYPTOPTIONS, *pFILEDECRYPTOPTIONS;
The FILEDECRYPTOPTIONS structure provides information on loading encrypted files in LEADTOOLS.
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.
The structure is used by:
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.
See Loading Encrypted files for more information.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries