Gets the file options used by LEADTOOLS when loading encrypted files.
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.
|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, etc). L_GetPDFOptions can also be used to check an additional password used only for PDF files.
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 L_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.pszPasswordis not NULL, then set
FILEDECRYPTOPTIONS.pszPassword = _tcsdup(FILEDECRYPTOPTIONS.pszPassword).
For an example, refer to FILEDECRYPTCALLBACK.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries