IPXC_Document::AuthorizeWithPassword Method
From PDF XChange PDF SDK
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 AuthorizeWithPassword([in] LPWSTR | + | <pre class="brush:cpp;gutter:false">HRESULT AuthorizeWithPassword([in] LPWSTR Pwd, |
− | [out, retval] PXC_PermStatus* | + | [out, retval] PXC_PermStatus* Status);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;Pwd |
:[in] Password to authorize. | :[in] Password to authorize. | ||
− | ; | + | ;Status |
:[out, retval] Returns [[PXV:PXC_PermStatus|PXC_PermStatus]] value that specifies if document was successfully authorized or not. | :[out, retval] Returns [[PXV:PXC_PermStatus|PXC_PermStatus]] value that specifies if document was successfully authorized or not. | ||
Revision as of 06:59, 12 June 2015
Tries to authorize documents, protected by Standard (Password protection) security handler, with specified password. Password specified as regular Unicode string that will be converted to UTF-8 or default ANSI code page depends of document security revision. If document is not protected by Standard security, the method will fail.
Syntax
HRESULT AuthorizeWithPassword([in] LPWSTR Pwd, [out, retval] PXC_PermStatus* Status);
Parameters
- Pwd
- [in] Password to authorize.
- Status
- [out, retval] Returns PXC_PermStatus value that specifies if document was successfully authorized or not.
Return Value
Returns S_OK if operation was successful or error code in other cases.