none
How to get list of only fax driver in computer? RRS feed

  • Question

  • Hi,
    I want Only fax driver installed in my system,

    System.Drawing.Printing.PrinterSettings.InstalledPrinters


    I tried this but I am getting all printer and Fax I want only Fax driver.

    Monday, October 30, 2017 6:48 AM

All replies

  • You can get them with EnumPrinters and PRINTER_ATTRIBUTE_FAX Attributes member.

    I just tested it on Windows 10, VS 2015.

    [DllImport("Winspool.drv", SetLastError = true, CharSet = CharSet.Auto)]
            public static extern bool EnumPrinters(int Flags, string Name, int Level, IntPtr pPrinterEnum,  int cbBuf, out int pcbNeeded, out int pcReturned);

    • Proposed as answer by Fei HuModerator Wednesday, November 1, 2017 1:38 AM
    Monday, October 30, 2017 10:05 AM