Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. FAX management programatically

FAX management programatically

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiosysadmindata-structures
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rilhas
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups