ArcGetPasswordProcW function |
Top Previous Next |
The function gets called to get archive password from the user. Plugin must remember the pointer on the function in ArcInitPluginW. Syntax C++
Parameters Session [in] Type: LONG_PTR hArcData [in] Type: HANDLE Archive identifier. If the file packing or another operation when no function ArcOpenW get called, the parameter must be 0. ArcFileName [in] Type: wchar_t* Pointer on a string with archive name. FileNameInArc [in] Type: wchar_t* Pointer on a string with the name of unarchived file. If password is required for the whole archive, not just a specific file, the pointer must be NULL. PasswordBuf [out] Type: wchar_t* Pointer on a buffer, containing 0-terminated password. The length of the buffer allocated by the plugin must be no less than PasswordMaxLen+1 characters. PasswordMaxLen [in] Type: int Maximum password buffer length. Return value Type: int Returns one of following values:
Notes The function gets called by the plugin as needed. During execution of the function an appropriate dialog is shown to get password from the user. A password can be received for a specific file, or the entire archive. Returning value allows handling buttons "OK", "Cancel", "Skip" (if password was for a specific file). |