#include <nwps_com.h> or #include <nwpsrv.h>NWCCODE NWAPI NWPSComPrintServerRequest (WORD spxID, void NWPTR reqBuffer, int reqSize, void NWPTR repBuffer, int repSize);
reqBuffer contains the request, formated as indicated in nwps_pkt.h. When the last data item in the packet is a zero-terminated ASCII string, only the length of the packet up to and including the zero needs to be specified for reqSize.
repBuffer need only be as large as repSize. The data returned from the print server is the full size of the packet described in nwps_pkt.h, but only the amount of data specified by repSize is copied into the caller's repBuffer.
An NWPSE_SUCCESSFUL return code indicates a reply was received
for the request. If this is the case, the user must check the reply
packet's returnCode
. This field may contain errors from the
print server ranging from 0x100 to 0x600, depending on the nature of
the problem.