August 18th, 1999, 09:34 AM
I use api function to enumerate how many printers are in my domain:
Success = EnumPrinters(PRINTER_ENUM_REMOTE, _
vbNullString, _
1, _
buffer(0), _
cbBuffer, _
cbRequired, _
nEntries)
I can not find where is placed the printername. I can load workstation name and other info from buffer(0) (no printer name) when I use constant
PRINTER_ENUM_REMOTE .
When I use constant
PRINTER_ENUM_CONNECTIONS Or _
PRINTER_ENUM_LOCAL
in first line, is the printername loadable from buffer.
The complet code is in the MSDN.
Success = EnumPrinters(PRINTER_ENUM_REMOTE, _
vbNullString, _
1, _
buffer(0), _
cbBuffer, _
cbRequired, _
nEntries)
I can not find where is placed the printername. I can load workstation name and other info from buffer(0) (no printer name) when I use constant
PRINTER_ENUM_REMOTE .
When I use constant
PRINTER_ENUM_CONNECTIONS Or _
PRINTER_ENUM_LOCAL
in first line, is the printername loadable from buffer.
The complet code is in the MSDN.