How to deal with Microsoft Fax not installed?

  • Thread starter Thread starter Angus Comber
  • Start date Start date
A

Angus Comber

Hello

I am #include'ing winfax.h and reveiwing the PlatformSDK samples. All looks
easier than I thought. But I have the problem that if Microsoft Fax is not
installed get Winfax.dll error. I think I have to dynamically load
winfax.dll. I realise this is not particularly a Microsoft Fax question but
how would I check at runtime so user doesn't get this error. (For example
in my program I want to allow user to print documents and then fax manually
as an option - or use another fax server).

Angus Comber
(e-mail address removed)
 
I didn't completely understand what you mean by:
in my program I want to allow user to print documents and then fax manually
as an option - or use another fax server

Can you please explain in more detail what you are trying to achieve?

To find if fax is installed, you can try using OpenService (please refer to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/openservice.asp
how to use this API) to check if Fax service is present - which would error
out with ERROR_SERVICE_DOES_NOT_EXIST if it is not there.

Dynamically loading winfax.dll does not ensure that fax is properly
installed and things work as expected.

Thanks,
--
Arindam Basak
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.
 
Back
Top