How to pass password to MailOpenMessageFile func

Hi all,

How can I pass password to MailOpenMessageFile func programmatically?

When I call MailOpenMessageFile func, I must enter the password to the console. I want to pass the password to it using the dialog box or programmatically.

Regards,

Tom