Win32 printer API

Source: Internet
Author: User
4. API print function abortdoc cancel printing a document abortprinter delete a buffer file associated with a printer addform adds a new form addjob to the printer form list for obtaining a valid path name, this allows you to create a background print file for a job. It will also assign a job number for the job addmonitor to add a printer monitor addport for the system to start the "add Port" dialog box, allow users to add a new port addprinter in the list of available ports to add a new printer addprinterconnection in the system to connect to the specified printer addprinterdriver to add a print driver for the specified system Program Addprintprocessor adds a print processor for the specified system addprintprovidor adds a print supplier advanceddocumentproperties for the system to start the printer documentation Setting Dialog Box closeprinter closes an opened printer object configureport for the specified port, start a port configuration dialog box connecttoprinterdlg start the printer connection dialog box, use deleteform to connect to deleteform with a printer accessing the network to delete a form from the list of available printer forms deletemonitor Delete the specified print monitor deleteport start the "delete port" dialog box, allows the user to delete a port deleteprinter from the current system to delete the specified printer flag from the system deleteprinterconnection Delete the connection with the specified printer deleteprinterdriver delete a printer driver deleteprintprocessor from the system delete the print processor deleteprintprovidor deletes a print vendor from the system. devicecapabilities this function can be used to obtain information related to the capabilities of a device. documentproperties printer configuration control function enddocapi ends a successful print job. enddocprinter prints in the background program level specifies the end endpage of a document. Use this function to print a page, prepare device scenarios, to print the next page endpageprinter specify the end of a page in the print job enumforms enumerate available forms for a printer enumjobs enumeration jobs in the print queue enummonitors enumeration available print monitor enumports enumerate enumprinterdrivers available ports enumeration Printer Drivers installed in the system enumprinters enumeration printer enumprintprocessordatatypes enumeration data types supported by a print processor enumprintprocessors enumeration available print processor escape device control function findcloseprinterchangenotification disable a printer notification object obtained using the findfirstprinterchangenotification function to create a new change notification object, so that we can pay attention to the various changes in the printer status findnextprinterchangenotification use this function to determine the cause of triggering a printer change announcement signal. freeprinterpolicyinfo releases a buffer zone allocated by the findnextprinterchangenotification function. getform obtains information related getprinter obtains information related to the specified printer getprinterdata sets registry configuration information for the printer getprinterdriver for the specified printer, get information related to the printer driver getprinterdriverdirectory determine the directory of the specified system containing the Printer Driver What getprintprocessordirectory determine the directory of the specified system containing the printer processor driver and files openprinter open the specified printer, and get the printer handle printermessagebox display a printer error message box printerproperties on the system that has the specified print job to start the printer Properties dialog box, to configure the readprinter for the printer to read data from the printer resetdc reset a device scenario resetprinter change the default data type of the specified printer and document settings schedulejob submit a job to print setabortproc for Windows specified cancel Function setform specifies the form setting information. setjob controls the status of a print job. setprinter controls the status of a printer. setprinterdata sets the Registry configuration information of the printer. startdoc starts a print job. startdocprinter before starting a new document startpage to print a new page, call this function startpageprinter to specify the start of a new page in the print job. writeprinter writes data in the sending directory to the printer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.