IPXC_Document::AuthorizeWithPassword2 Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT AuthorizeWithPassword2([in]          UCHAR*          Pwd,
+
<pre class="brush:cpp;gutter:false">HRESULT AuthorizeWithPassword2([in]          UCHAR*          nPwd,
                               [in]          ULONG            Len,
+
                               [in]          ULONG            nLen,
                               [out, retval]  PXC_PermStatus*  Status);</pre>
+
                               [out, retval]  PXC_PermStatus*  nStatus);</pre>
  
 
== Parameters ==
 
== Parameters ==
;Pwd
+
;nPwd
 
:[in] Pointer to the <tt>BYTE</tt> buffer that contains the password.
 
:[in] Pointer to the <tt>BYTE</tt> buffer that contains the password.
;Len
+
;nLen
:[in] Specifies the length in bytes of the ''Pwd'' buffer.
+
:[in] Specifies the length in bytes of the ''nPwd'' buffer.
;Status
+
;nStatus
 
:[out, retval] Returns [[PXV:PXC_PermStatus|PXC_PermStatus]] value that indicates if document was successfully authorized.
 
:[out, retval] Returns [[PXV:PXC_PermStatus|PXC_PermStatus]] value that indicates if document was successfully authorized.
  

Latest revision as of 03:24, 15 June 2015


Like IPXC_Document_AuthorizeWithPassword method authorize document with specified password, but this function takes password in raw format.

Syntax

HRESULT AuthorizeWithPassword2([in]           UCHAR*           nPwd,
                               [in]           ULONG            nLen,
                               [out, retval]  PXC_PermStatus*  nStatus);

Parameters

nPwd
[in] Pointer to the BYTE buffer that contains the password.
nLen
[in] Specifies the length in bytes of the nPwd buffer.
nStatus
[out, retval] Returns PXC_PermStatus value that indicates if document was successfully authorized.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXC_Document