This repository provides the code snippets for the CoreScanner Driver for Windows in C++ and C#. Code snippets are provided to perform the following operations.
- EnableDisableScanner - Includes the usage of CoreScanner API to enable or disable a barcode scanner connected to the host in a manageable host mode (e.g. SNAPI, IBM TT, or IBM HID)
- GetScanners - Demonstrates the use of the CoreScanner API to enumerate all barcode scanners currently connected to the host.
- InitializeCoreScanner - Describes the process for creating an instance of the CoreScanner and establishing a connection with the CoreScanner service.
- RegisterUnregisterForEvents - This demonstrates the implementation of event handlers for various events supported by the CoreScanner service. These events include, but are not limited to, barcode data events, scanner plug-and-play notifications, and image capture events. The process for receiving and displaying barcode data is also showcased.
- ScannerBeepLED - Demonstrates how to trigger an audible beep (a single, short, high-pitched tone) and control the scanner's LED illumination by setting it to red on a connected barcode scanner.
The following dependencies are required to run the C# code snippets solutions:
- Zebra CoreScanner Driver for Windows
- .Net Framework 4.6 or above.
- Microsoft Visual Studio 2019
The following dependencies are required to run the C++ code snippets solutions:
- Zebra CoreScanner Driver for Windows
- Microsoft Visual Studio 2017 (Windows SDK version 10.0.17763.0 and Platform Toolset v141)
For more information about the SDK and APIs, go to https://techdocs.zebra.com/dcs/scanners/sdk-windows/about/ or visit the forums.