<< Click to Display Table of Contents >> Navigation: Functions > PXCV_CheckPassword |
PXCV_CheckPassword validates the supplied password against the current document, and should be called when PXCV_ReadDocumentW returns PS_ERR_DocEncrypted.
HRESULT PXCV_CheckPassword(
PXVDocument Doc,
BYTE* pPassword,
DWORD PassLen
);
Parameters
Doc
[in] Specifies a document that PXCV_Init created.
pPassword
[in] Specifies a pointer to a buffer that contains password data. (Buffers may contain zero '\0' symbols if desired).
PassLen
[in] Specifies the buffer length.
Please note that all functions and parameters are case-sensitive.
If the function succeeds then the return value is 1 in the case of user passwords and 2 in the case of owner passwords.
If the function fails then the return value is an error code.