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

  • Thread starter Thread starter Philip
  • Start date Start date
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
 
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.
 
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
 
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.
 
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?
 
Back
Top