I was checking out Iczelion's site and I came across the "Win32 Tips/Techniques for MASM Part #1" document. I Liked it alot! I learn much better from source than I do from tutorials. But while I was reading it I noticed something:

.data
lpPage db "http://win32asm.cjb.net",0
lpMail db "ates@anet.net.tr",0
lpOperation db "open",0

.code
invoke ShellExecute,hWin,addr lpOperation, addr lpPage, NULL, NULL, SW_SHOWNORMAL
invoke ShellExecute,hWin,addr lpOperation, addr lpMail, NULL, NULL, SW_SHOWNORMAL

I was thinking off adding that to one of my programs but I noticed that the email didn't work when I tested it on WinNT 5.0. I figured it might have just been a syntax
error so I tried

.data
lpPage db "http://win32asm.cjb.net",0
lpMail db "mailto:ates@anet.net.tr",0 ;<< mailto:
lpOperation db "open",0

.code
invoke ShellExecute,hWin,addr lpOperation, addr lpPage, NULL, NULL, SW_SHOWNORMAL
invoke ShellExecute,hWin,addr lpOperation, addr lpMail, NULL, NULL, SW_SHOWNORMAL

And now it works. I just thought you might want to fix that for anyone else comming across it. It might just be Windows NT 5.0 that it needs the mailto:
option on because I've not got any other version of windows to test it on.
Posted on 2004-03-15 18:40:47 by Synfire
i would just like to add that with making it

lpMail db "mailto:ates@anet.net.tr?Subject=test subject. Review&Body=Best regards.",0

from

lpMail db "mailto:ates@anet.net.tr",0

To make it write a subject as "test subject" and body of the mail as "Best regards.".

thank you
nickdigital


then code becomes


.data
lpPage db "http://win32asm.cjb.net",0
lpMail db "mailto:ates@anet.net.tr?Subject=test subject Review&Body=best regards.",0
lpOperation db "open",0

.code
invoke ShellExecute,hWin,addr lpOperation, addr lpPage, NULL, NULL, SW_SHOWNORMAL
invoke ShellExecute,hWin,addr lpOperation, addr lpMail, NULL, NULL, SW_SHOWNORMAL
Posted on 2004-10-05 13:25:25 by nickdigital