How to create a modal dialog in my Fax Service Provider DLL

P

Philip

I create a virtul Fax Serivce Provider DLL for Fax Print
Serivce, and wanna create a modal dialog in my Fax
Service Provider(FSP) DLL.
But the dialog can not be created successfully, the
CDialog::Modal() will be return -1(failed).

Does it has any way to create dialog in a FSP DLL. Please
advise. Thanks a lot!

Philip
 
R

R. Sridharan [MSFT]

Interesting. Can you tell me, why you are planning to conduct a dialog
within a Service Provider? Are you always expecting a user to be around?

--
R. Sridharan
Microsoft Printing, Imaging and Fax Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
 
A

Alex Feinman [MVP]

I agree, bad idea, although to answer the question, DoModal probably fails
because FSP runs in the context of Spooler service, which does not have
"Allow service to interact with the desktop" flag set by default
 
R

R. Sridharan [MSFT]

Actually, it runs in the context of Fax Service which runs in the context of
Network Service. You cannot see the Dialogs created from another context in
your currently logged in user context. Do you really want to conduct a
dialog? Or is there any parameter, you are looking to pull from the fax
properties, like number being sent etc.

--
R. Sridharan
Microsoft Printing, Imaging and Fax Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
 
A

Alex Feinman [MVP]

R. Sridharan said:
Actually, it runs in the context of Fax Service which runs in the context of
Network Service. You cannot see the Dialogs created from another context in
your currently logged in user context.

Actually I think you can if it's a service and it has INTERACTIVE flag set.
Or am I mistaken?
 

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