Thread: installing printers

  1. #1
    Registered User headexplodes's Avatar
    Join Date
    Aug 2001
    Posts
    26

    installing printers

    How can I install a printer port (Standard TCP/IP Port) from within a C++ program?

    I need to be able to install a printer port and the printer itself. I dont really need to know how to install the printer using C++ since i can just excecute "rundll32 printui.dll,PrintUIEntry blah blah" to do most things. The problem is you cant install a printer PORT using that method (you can do pretty much everything else).

    Is there a windows api call to install a printer port?

    Thanks,
    Robert.
    /* MSN and E-Mail - head_explodeshotmail.com */
    If Bill Gates got a dollar for every time windows crahsed... oh... he does.
    I always use MSVC++6.0

  2. #2
    Registered User headexplodes's Avatar
    Join Date
    Aug 2001
    Posts
    26
    It appears that the AddPort function might be what i'm looking for (win32 api) but i cant seem to get it working. If i create a tcp/ip printer port manually (using control pannel) then do an enum ports, i see the port i created. The problem is that I dont seem to be able to specify details such as ip or server when creating the port. Has anyone had any experience with adding printer ports? Yes, i have searched google and i am unable to find any information of use.

    Thanks.
    /* MSN and E-Mail - head_explodeshotmail.com */
    If Bill Gates got a dollar for every time windows crahsed... oh... he does.
    I always use MSVC++6.0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Installing IBM Java Software
    By Tonto in forum Tech Board
    Replies: 1
    Last Post: 03-17-2009, 09:06 AM
  2. Installing GTK+?
    By Jake.c in forum C Programming
    Replies: 1
    Last Post: 10-05-2008, 05:20 PM
  3. Trouble installing Qt3 from book Cd
    By mrcheesypants in forum Tech Board
    Replies: 2
    Last Post: 10-12-2005, 06:57 PM
  4. Installing a HD
    By MethodMan in forum Tech Board
    Replies: 6
    Last Post: 01-16-2003, 06:07 PM
  5. Replies: 8
    Last Post: 01-09-2003, 10:05 PM