#include <nwps_cfg.h> or #include <nwpsrv.h>NWCCODE NWAPI NWPSCfgAddPrintQueue (WORD connType, DWORD connID, char NWFAR
queueName, char NWFAR
volumeName);
After the queue is created, it can be added to a printer with NWPSCfgAddPrinterAttr, using either NWPS_ATTR_DQUEUE or NWPS_ATTR_QUEUE. When a queue is created, it is assigned a default NWPS_ATTR_QUE_DIR. This applies to both NWPS_DIRECTORY_SERVICE and NWPS_BINDERY_SERVICE.
In NWPS_BINDERY_SERVICE, the operator is set to the currently logged-in user and the user is set to EVERYONE. If the user group EVERYONE does not exist, the currently logged-in user is added to the list of users explicitly. A local server is assumed.
In NWPS_DIRECTORY_SERVICE, the list of operators is set to the current user and the list of users is set to the organizational unit. If there is a group EVERYONE under the organizational unit, it is also added to the list of users for compatibility with Bindery emulation.
The default value for NWPS_ATTR_VOLUME is the volume name. The default value for NWPS_ATTR_HOST_SER is the name of the NetWare server where the volume is found.