The AdvancedDocumentProperties function displays a printer-configuration dialog box for the specified printer, allowing the user to configure that printer.
LONG AdvancedDocumentProperties(
HWND hWnd, |
// handle to dialog box’s parent window |
HANDLE hPrinter, |
// handle to printer object |
LPTSTR pDeviceName, |
// pointer to driver name |
PDEVMODE pDevModeOutput, |
// pointer to modified device mode structure |
PDEVMODE pDevModeInput |
// pointer to original device mode structure |
); |
If the function succeeds, the return value is zero.
If the function fails, the return value is nonzero. To get extended error information, call GetLastError.
An application can obtain the printer handle identified by the hPrinter parameter by calling the OpenPrinter or AddPrinter function.
An application can obtain the name pointed to by the pDeviceName parameter by calling the GetPrinter function and then examining the pPrinterName member of the PRINTER_INFO_2 structure.
AddPrinter, DEVMODE, GetPrinter, OpenPrinter, PRINTER_INFO_2
file: /Techref/os/win/api/win32/func/src/f01_19.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/12/24 11:35,
3.142.199.54:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f01_19.htm"> AdvancedDocumentProperties</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.