The EnumPorts function enumerates the ports that are available for printing on a specified server.
BOOL EnumPorts(
LPTSTR pName, |
// pointer to server name |
DWORD Level, |
// specifies type of port info structure |
LPBYTE pPorts, |
// pointer to buffer to receive array of port info. structures |
DWORD cbBuf, |
// specifies size, in bytes, of buffer |
LPDWORD pcbNeeded, |
// pointer to number of bytes stored into buffer (or required |
LPDWORD pcReturned |
// pointer to number of PORT_INFO_*. structures stored into buffer |
); |
If pName is NULL, the function enumerates the local machine’s printer
ports.
This value can be 1 or 2.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The EnumPorts function can succeed even if the server specified by pName does not have a printer defined.
AddPort, DeletePort, PORT_INFO_1, PORT_INFO_2
file: /Techref/os/win/api/win32/func/src/f21_1.htm, 4KB, , updated: 2000/4/7 12:19, local time: 2024/8/25 04:47,
18.227.183.149: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://piclist.com/tecHREF/os/win/api/win32/func/src/f21_1.htm"> EnumPorts</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.