> For the complete documentation index, see [llms.txt](https://developer.magtek.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl.md).

# Programmer's Manual (.NET/PCL)

This manual explains how to build Windows applications that work with MagneSafe V5 card readers using MagTek's .NET libraries. It covers .NET Framework projects for Windows 7, 8/8.1, and 10, which use MTSCRANET.dll and MTLIB.dll, and Universal Windows Platform projects for Windows 10, which use MTSCRAUWP.dll. Depending on the reader and platform, readers connect over the audio jack, Bluetooth, Bluetooth LE, or USB. Start with Introduction and How to Set Up, then use the method and event sections as reference while you build. The SDK downloads are on the [<mark style="color:red;">**MagneSafe V5 SDKs page.**</mark>](https://developer.magtek.com/sdks-and-tools/~/revisions/qg05ngUvQMY7AMcY395O/sdks-and-software-libraries/magnesafe-v5-sdks)

<table data-header-hidden><thead><tr><th valign="middle"></th><th></th></tr></thead><tbody><tr><td valign="middle"><strong>Reference Section</strong></td><td><strong>Information Available</strong></td></tr><tr><td valign="middle"><a href="https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl/introduction"><mark style="color:red;"><strong>Introduction</strong></mark></a></td><td>What the libraries do, the Windows versions they support, and which library files to reference for .NET Framework and UWP projects.</td></tr><tr><td valign="middle"><a href="https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl/how-to-set-up"><mark style="color:red;"><strong>How to Set Up</strong></mark></a></td><td>Adding the libraries to your project, including how to remove the Windows POS HID Magnetic Stripe Reader driver when you use a USB reader with the UWP library.</td></tr><tr><td valign="middle"><a href="https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl/mtscra-class-methods"><mark style="color:red;"><strong>MTSCRA Class Methods</strong></mark></a></td><td>All 61 methods for finding and connecting to readers, reading card and device data, sending commands, and running EMV transactions.</td></tr><tr><td valign="middle"><a href="https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl/mtscra-events"><mark style="color:red;"><strong>MTSCRA Events</strong></mark></a></td><td>The events the library raises, such as when the device list is ready, the connection state changes, card data arrives, or an EMV transaction needs input or returns a result.</td></tr><tr><td valign="middle"><a href="https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl/enums-interfaces"><mark style="color:red;"><strong>Enums/Interfaces</strong></mark></a></td><td>The enumerations and interfaces the library uses, such as connection types.</td></tr><tr><td valign="middle"><a href="https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl/commands"><mark style="color:red;"><strong>Commands</strong></mark></a></td><td>Commonly used commands you can send to a reader with sendCommandToDevice, such as Discovery, and the device information each one returns.</td></tr><tr><td valign="middle"><a href="https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl/appendices"><mark style="color:red;"><strong>Appendices</strong></mark></a></td><td>Code examples, EMV message formats, batch data format, supported features by reader, and the EMV transaction flow.</td></tr></tbody></table>

### Need More Help

{% hint style="info" %}
**Need Help?**

For additional support, please contact MagTek Support:

**Technical Support:**

* 📧 **Email:** [support@magtek.com](mailto:support@magtek.com?subject=Support%20Request)
* 📞 **Phone:** 1-562-546-6800 (US)
* 🕐 **Hours:** Monday-Friday, 5:30 AM - 5:00 PM Pacific

**Online Resources:**

* 🌐 **Support Portal:** developer.magtek.com
* 🌐 **Official Site:** [https://www.magtek.com](https://www.magtek.com/)

**Documentation Feedback:**

Help us improve this documentation! [feedback@magtek.com](mailto:feedback@magtek.com?subject=Feedback)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.magtek.com/sdks-and-tools/sdks-and-software-libraries/magnesafe-v5-sdks/programmers-manual-.net-pcl.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
