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)
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXC_Document::AuthorizeWithPassword2 Method}}
 
{{#customTitle:IPXC_Document::AuthorizeWithPassword2 Method}}
{{#parentPage:PXV:IPXC_Document#Methods|AuthorizeWithPassword2 Method|method}}
+
{{#parentPage:PXV:IPXC_Document#Methods|AuthorizeWithPassword2|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Like [[PXV:IPXC_Document_AuthorizeWithPassword|IPXC_Document_AuthorizeWithPassword]] method authorize document with specified password, but this function takes password in raw format.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT AuthorizeWithPassword2([in]          UCHAR*          pPwd,
+
<pre class="brush:cpp;gutter:false">HRESULT AuthorizeWithPassword2([in]          UCHAR*          nPwd,
 
                               [in]          ULONG            nLen,
 
                               [in]          ULONG            nLen,
                               [out, retval]  PXC_PermStatus*  pStatus);</pre>
+
                               [out, retval]  PXC_PermStatus*  nStatus);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pPwd
+
;nPwd
:[in] Pointer to UCHAR.
+
:[in] Pointer to the <tt>BYTE</tt> buffer that contains the password.
 
;nLen
 
;nLen
:[in] Value of ULONG.
+
:[in] Specifies the length in bytes of the ''nPwd'' buffer.
;pStatus
+
;nStatus
:[out, retval] Pointer to [[PXV:PXC_PermStatus|PXC_PermStatus]].
+
:[out, retval] Returns [[PXV:PXC_PermStatus|PXC_PermStatus]] value that indicates if document was successfully authorized.
  
 
== Return Value ==
 
== Return Value ==
Returns S_OK if operation was successful or error code in other cases.
+
Returns <tt>S_OK</tt> if operation was successful or error code in other cases.
  
 
== See Also ==
 
== See Also ==
 
[[PXV:IPXC_Document|IPXC_Document]]
 
[[PXV:IPXC_Document|IPXC_Document]]

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