How to get Outlook's command line parameters?

Å

刘é¹

I want to create a Add-In to let Outlook can deal with "&Attachment=xxx" in
the mailto protocol.

I find a key in the registry like this:
\KEY_CLASSES_ROOT\mailto\shell\open\command
"C:\PROGRA~1\MICROS~2\Office12\OUTLOOK.EXE" -c IPM.Note /m "%1"

I think mailto protocol's parameters are passed to Outlook by command line,
so I want to access command line parameters through Outlook Object Model
Reference API.

thanks,
LP
 
S

SvenC

Hi,

åˆ˜é¹ said:
I want to create a Add-In to let Outlook can deal with "&Attachment=xxx"
in
the mailto protocol.

I find a key in the registry like this:
\KEY_CLASSES_ROOT\mailto\shell\open\command
"C:\PROGRA~1\MICROS~2\Office12\OUTLOOK.EXE" -c IPM.Note /m "%1"

I think mailto protocol's parameters are passed to Outlook by command
line,
so I want to access command line parameters through Outlook Object Model
Reference API.

I don't think there is an OOM property for this.

Use the win32 GetCommandLine() function instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top