GetPdfUserPassword

#include “BlackIceDEVMODE.h”

 

BOOL            GetPdfUserPassword (BlackIceDEVMODE* pDevMode, LPTSTR pPassword, DWORD* pSize);

Description

Returns the user password of the PDF document. If pPassword is NULL or too small, the function returns FALSE, and pSize will contain the number of bytes required for storing the password of the document. The maximum number of characters in the password is (MAX_PASSWORD_LNG - 1). The MAX_PASSWORD_LNG is declared in DEVMODE.h.

Parameters

BlackIceDEVMODE* pDevMode            - pointer to the BlackIceDEVMODE structure.

LPTSTR pPassword                                 - pointer to the string

DWORD* pSize                                           - pointer to variable that contains the length of the pPassword in bytes.

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None