Tracker Software Products
Online Help System
Search:
Contents
IndexBookmarkPrint

Home >  >  > Orphaned Pages

PXCV_CheckPassword

PXCV_CheckPassword validates the supplied password against the current document.

This function should only be called after PXCV_ReadDocumentW returns PS_ERR_DocEncrypted.

HRESULT PXCV_CheckPassword(
     PXVDocument Doc,
     BYTE* pPassword,
     DWORD PassLen
);

Parameters

Doc
[in] Doc specifies the PDF object previously created by the function PXCV_Init.
pPassword
[in] pPassword specifies a pointer to a buffer which contains password data (buffer may contain zero '\0' symbol(s)).
PassLen
[in] PassLen specifies the length of the buffer.

Return Values

If the function succeeds, the return value is one of the following:

Value Meaning
1 User password
2 Owner password
If the function fails, the return value is error code.

See Also

PXCV_Init, PXCV_Delete, PXCV_ReadDocumentW, PXCV_FinishReadDocument

 



See also


Was this information helpful?YesNo