L_SetDecryptOptions (original) (raw)
Summary
Sets the file options used by LEADTOOLS when loading encrypted files.
Syntax
#include "l_bitmap.h"
L_LTFIL_API L_INT EXT_FUNCTION L_SetDecryptOptions(pOptions)
Parameters
pFILEDECRYPTOPTIONS pOptions
Pointer to a structure that contains the options used when loading encrypted files.
Returns
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Comments
The values set by this function are valid only for the current thread. To change the values used by the current thread, this function must be called again from that thread.
These settings are used for loading all encrypted files (DOC, DOCX, PDF, PPT, PPTX, XLS, XLSX, XLSB, etc). An additional password can be provided for loading encrypted PDF files using L_SetPDFOptions.
The following scenarios are possible when loading encrypted files:
- To load encrypted DOC, DOCX, or any other document file, use
L_SetDecryptOptions
. - To load encrypted PDF files, use
L_SetDecryptOptions
or L_SetPDFOptions. Both can also be used.
To get the current options used when loading encrypted files, call L_GetDecryptOptions.
Required DLLs and Libraries
- LTFIL
- File format DLLs
- For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
Platforms
Win32, x64.
See Also
Functions
Topics
Example
For an example, refer to FILEDECRYPTCALLBACK.
LEADTOOLS Raster Imaging C API Help