Skip to content

Win32api

Development Language

The following development language is covered.

  • Visual C++

Library File

The library file of the Win32 API is a dynamic link library format.
The library file has the following file name:

  • SPSWL_API.dll

The library file is stored in the Windows system folder.
Use the library file without moving it from the folder. Except in special cases, there is no need to set a path to the folder where the library file is saved.
If the library file is moved to another location, the library file will not be updated properly when upgrading the printer driver.

API List

Name Description
OpenMonPrinterA*1
OpenMonPrinterW*1
Starts using the Win32 API and returns the API handle.
CloseMonPrinter Ends using the Win32 API.
LockPrinter Locks all data transmission and hardware reset requests from other processes to the printer.
UnlockPrinter Unlocks the access prohibition (lock) from other processes by LockPrinter.
DirectIO Sends and receives binary data.
(Receive data does not include responses of the ASB setting command.)
DirectIOEx Sends and receives binary data.
Reset Performs hardware reset of the printer.
GetStatus Gets the latest printer status.
SetStatusBackFunction Registers the callback function called when a change in the printer status is detected.
SetStatusBackWnd Registers the window handle of a button for which the click event is called and the variable to set the printer status when a change in the printer status is detected.
CancelStatusBack Unregisters the callback function registered by SetStatusBackWnd or SetStatusBackFunction.
SendDataFileA*1
SendDataFileW*1
Registers the contents of the command definition file to the memory in the SDK.
DirectSendReadA*1
DirectSendReadW*1
Sends transmission data corresponding to the specified command name with respect to the command definition file registered by SendDataFile.
GetPrintSmartLabelMode Gets the paper when printing label file.
SetPrintSmartLabelMode Specifies the paper when printing label file.
SelectSmartLabelFileA*1
SelectSmartLabelFileW*1
Specifies a label file (*.slex) to use the printing label function.
PrintSmartLabelImageData Prints labels selected by SelectSmartLabelFile.
SetSmartLabelCharacterSet Specifies the codepage of the text data to replace by ReplaceSmartLabelTextDataA or ReplaceSmartLabelBarcodeDataA.
ReplaceSmartLabelTextDataA*1
ReplaceSmartLabelTextDataW*1
Replaces the value of the text object of the label file (*.slex) selected by SelectSmartLabelFile.
ReplaceSmartLabelImageDataA*1
ReplaceSmartLabelImageDataW*1
Replaces the value of the image object of the label file (*.slex) selected by SelectSmartLabelFile.
ReplaceSmartLabelBarcodeDataA*1
ReplaceSmartLabelBarcodeDataW*1
Replaces the value of the barcode object of the label file (*.slex) selected by SelectSmartLabelFile.
GetProperty Gets a part of the print settings.
SetProperty Changes a part of the print settings.

*1: Specify arguments of strings by MBCS (MultiByte Character Set) or UNICODE (Unicode). Use API added the suffix 'A' for MBCS or 'W' for Unicode. Note that the suffix of 'A' or 'W' is omitted in the following descriptions.

Warning

  • SLP800 series does not support the APIs of the barcode scanner or Display.
  • With Bluetooth connection, the response data while the printer is not connected cannot be retrieved.