Hello,

I have a server daemon which handles printing. From this daemon, I want
to print a PDF doc. Which I can do easily using the call ShellExecuteEx
as below...

SHELLEXECUTEINFO shlexInfo;
shlexInfo.cbSize = sizeof(SHELLEXECUTEINFO);
shlexInfo.fMask = SEE_MASK_FLAG_DDEWAIT | SEE_MASK_NOCLOSEPROCESS;
shlexInfo.lpVerb = "printto";
shlexInfo.lpFile = "C:\\idioms.pdf";
shlexInfo.lpParameters = ""HP4050" "HP LaserJet 4050 Series PCL6"
"IP_10.10.10.10"";
shlexInfo.nShow = SW_MINIMIZE ;

bool bRes = ShellExecuteEx(&shlexInfo);

However this pops up Acrobat Reader and leaves it open. Can I stop
Acrobat Reader from popping up in someway?

If these are not the correct groups to post these question, please
direct me to the correct once.

Thanks,


Loma