NWSetPrinterStrings(3nw)
NWSetPrinterStrings --
sets printer setup and reset strings
Synopsis
#include <nwprint.h>
or
#include <nwcalls.h>
NWCCODE NWAPI NWSetPrinterStrings
(nuint8 LPTDevice,
nuint16 setupStringLen,
pnstr8 setupString,
nuint16 resetStringLen,
pnstr8 resetString);
Description
The parameters are as follows:
- LPTDevice
-
(IN) Specifies the number of the specified LPT device.
- setupStringLen
-
(IN) Specifies the length of the data in setup string;
setupStringLen is not used if setupString is set to
NULL.
- setupString
-
(IN) Points to a buffer containing the setup string (optional).
- resetStringLen
-
(IN) Specifies the length of the data in resetString;
resetStringLen is not used if resetString is set to
NULL.
- resetString
-
(IN) Points to a buffer containing the reset string (optional).
Return values
- 0x0000
-
SUCCESSFUL
Notices
The strings must not exceed the lengths specified in setupStringMaLen
and resetStringMaxLen
(fields in NWCAPTURE_FLAGS2). These
lengths can be retrieved by calling NWGetCaptureFlags.
Under Netx, LPTDevice can have the following values:
- 1
-
LPT1
- 2
-
LPT2
- 3
-
LPT3
Under VLM and OS/2, LPTDevice can have up
to nine values (1-9).
Services
Print
NCP calls
None
References
NWGetCaptureFlags(3nw),
NWGetPrinterStrings(3nw),
NWGetCaptureStatus(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.