(IN) Specifies either NWPS_BINDERY_SERVICE,
NWPS_BINDERY_SERVICE_PRE_40, or NWPS_DIRECTORY_SERVICE.
connID
(IN) Specifies the connection or context identifier.
pServerName
(IN) Points to the name of the print server.
attrID
(IN) Specifies the print services attribute identifier.
handle
(OUT) Points to the value to be passed to
NWPSCfgGetNextPrintServerAttr and
NWPSCfgEndNextPrintServerAttr (optional).
attrValue
(OUT) Points to the buffer in which to place the first attribute found.
Its maximum length is MAX_DN_BYTES + sizeof(NWPSTypedName).
Return values
0x0000
Successful
0x7760
NWPSE_END_OF_ATTR_LIST
-1
General Error
other
Bindery or Directory Services Errors
Notices
Memory allocated and files opened by NWPSCfgGetFirstPrintServerAttr
must be respectively deallocated and closed by calling
NWPSCfgEndNextPrintServerAttr. If the completion code is non-zero
or if the attribute requested is single-valued, the value returned for the
handle is zero. In this case, calling NWPSCfgEndNextPrintServerAttr
is not required.
The type of the buffer pointed to by attrValue depends on the
value of attrID. If attrIDs is not recognized, an
error is returned.
Legal attribute identifier and values for the print server are as follows: