Gets the file options used by LEADTOOLS when loading encrypted files.
#include "ltwrappr.h"
static L_INT LFileSettings::GetDecryptOptions(pOptions, uStructSize)
Pointer to a structure to be updated with the options used when loading encrypted files.
Size of the structure pointed to by pOptions
. Use sizeof(FILEDECRYPTOPTIONS) to calculate this value.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The options obtained by this function are valid for the current thread.
These settings are used for loading all encrypted files (DOC, DOCX, PDF, PPT, PPTX, XLS, XLSX/XLSB, etc). LFileSettings::GetPDFOptions can also be used to check an additional password used only for PDF files.
To change the current options, change the values in the FILEDECRYPTOPTIONS structure and call LFileSettings::SetDecryptOptions. Again, this will change the values only for the current thread.
FILEDECRYPTOPTIONS.pszPassword points to the internal buffer used by LEADTOOLS for decrypting files. You should not attempt to free this pointer and assume this pointer is valid. It is only valid until the next call to LFileSettings::SetDecryptOptions. If you need to use this pointer for extended amount of time, you should make a copy of it.
For example, if you wish to get a copy of this structure and use it to initialize any worker threads, then try the following:
FILEDECRYPTOPTIONS.pszPassword
is not NULL, then set FILEDECRYPTOPTIONS.pszPassword = _tcsdup(FILEDECRYPTOPTIONS.pszPassword)
.
Win32, x64.
For an example, refer to LFileSettings::SetDecryptOptions.
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