VAPIMWP_INIT_SETPASSWORD

Sets the password to use to open a password-protected file before the file is opened. Currently,you can use this to set a password for ZIP and PST files. This is a parameter of the VAPIM_INIT message.

Syntax

SendMessage (hWndVAPI, VAPIM_INIT, VAPIMWP_INIT_SETPASSWORD,
            (LPARAM) (LPCTSTR) pPasswordInfo );

Arguments

Argument Description
hWndVAPI The handle of the VAPI window.
pPasswordInfo A pointer to a password string.

Returns

SendMessage() returns TRUE if successful, or FALSE if it fails.

Discussion