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/11/9 08:06,
3.145.88.20:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©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://linistepper.com/techref/os/win/api/win32/func/src/f21_1.htm"> EnumPorts</A> |
Did you find what you needed? |