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 11:19, local time: 2024/12/25 23:59,
18.222.67.8: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/f21_1.htm"> EnumPorts</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.