FAX management programatically
-
Hi, I'm working with Microsoft WinFax in C++ (Win32) under Visual Studio 2005 in XP Pro, which is very easy to use. I already successfully connected to the FAX server with "FaxConnectFaxServer", sent a PDF document with "FaxSendDocument", and even editted and added a cover page. I checked all with the FAX console, which allowed me to see the FAX pages as well as all FAX'es pending. This all took me about 30 minutes, so I was very happy with it. Then I began trying to evaluate how I could extract information about queued outbound and also inbound FAX information. The function to use, of course, is "FaxEnumJobs", which works fine. However, the amount of detail it returns seems to not be adequate for my purposes. At this point I want to get access to the FAX pages while they are queued or after being received. This is where my problem begins. The "FaxGetPageData" should return information only about the first page, excluding cover, which is not sufficient for me. I state "should" because, in fact, it returns an empty buffer for all the FAX'es I have queued (BufferSize is zero, but Buffer points to "LMEM"). So I tried relating the "JobID" I get from "FaxEnumJobs" to the names of the files on disk, to access them directly. I looked into "C:\Documents and Settings\All Users\Application Data\Microsoft\Windows NT\MSFax\Queue", and all my queued FAX files are there. Their names, however, have no obvious relation to the "JobID", so I don't have an easy way to access the files directly. Anyway, due to their ugliness, I would always consider these solutions extreme. Does anyone have any idea on how to get queued complete FAX page data? I don't really need to interpret TIF files, I will just send them over through the WEB server for the client users to open in their browsers. The cleaner solutions are prefered! :-) Rilhas