How to Access Storage Cards via OMNIKEY Synchronous API?
Download HID PROX card sample code for .NET, C#, VB.NET

We get these questions quite often:

Of course you could start reading through HID OMNIKEY scardsyn.dll documentation. HID also makes a few C++ and VB samples available for their SyncAPI to show how to call their native synchronous API.

Then you would try to figure out how to write a wrapper to make unmanaged functions residing in scardsyn.dll (32-bit native Windows API) and scardsynx64.dll (64 bit native Windows API) available from within a C# application development project. By the time you are done a week of development time can easily be gone.

Thanks to CardWerk SmartCard API (Professional) edition accessing OMNIKEY synchronous API is quite easy. Our Hello World - like sample code "HelloSyncAPI" shows how to access the following cards:

I2C cards from Atmel (Inside):
AT24C01A, AT24C02, AT24C04, AT24C08, AT24C1024, AT24C128, AT24C16, AT24C164, AT24C256, AT24C32, AT24C512, AT24C64, AT24CS128, AT24CS256

I2C cards from Gemalto (GemPlus):
GFM2K,GFM32K,GFM4K

I2C cards from ST-Microelectronics:
M14128,M14256,M14C04,M14C16,M14C32,M14C64,ST14C02C,ST14C04C,ST14E32

2-wire protocol cards from Infineon:
SLE4432, SLE4442

All you need to access storage cards is SmartCard-API (Professional) and a few of lines of code. No need to know anything about third party data structures, winscard context or Windows card handles etc.

Once you are connected using SmartCardAPI (professional), you can also access I2C cards. We expose three easy-yo-use methods. The wrapper assembly takes care of everything needed to get things worked out between native winscard, PC/SC and OMNIKEY proprietary synchronous API.

SmartCard API provides you with easy-to-use methods to access unmanaged API calls. Both, 32-bit and 64 builds are supported.

We have prepared sample code to demonstrate this. It is work in progress. However as we think that this code can be very helpful, we wrapped it in HelloWorld-style sample code. Pre-release updates might become available outside the standard SDK setup. Just look for "C# HelloSyncAPI" sample code in our download section or contact us directly.

HelloSyncAPI works fine on any Windows XP or Windows 7 system. 32-bit and x64 versions of Windows are supported.

Download HID PROX card sample code for .NET, C#, VB.NET

Key Features of HelloSyncAPI Sample Code

Minimum Requirements

Buying a commercial license of the CardWerk SmartCard API (Professional) edition entitles you to redistribute the binary CardWerk SmartCard API (Professional) assembly to your customers at an incredible ROI.


Copyright 2004-2016 CardWerk Technologies,
All rights reserved. Imprint, Legal Disclaimer. Last modified September 19, 2016.