# MS BaseCSP MiniDriver

# Build

Now Minidriver is added to opensc for experimental and improvement.

To build use build tool provided :

http://www.opensc-project.org/build/

I use the command:

CHOST=i386-mingw32 CBUILD=i686-pc-linux CFLAGS=-I"/XXXX/trunk/include" EXTRA_OPENSC_CONFIG=--enable-cardmod build

where XXX is the PATH where you install opens sc build system

for mingw32 some include file can missings, you should add them from the SDK WINDOWS

Winscard.h, SCardErr.h and Winsmcr.h put all them in include directory in build system

# Testing

For testing install opensc tree on your systeme (prefer c:\Program Files\opensc) you must absolutly add opensc directory on PATH environnement.

Prefer the install way, if you have makensis installed you should have after
building an opensc-setup-XXX.exe ready to install.

# XP & VISTA

in opensc/bin copy cardmod-westcos.reg to cardmod-yourcardname.reg edit it change ATR and ATRmask for yours card

# 7

Plug your card and have a look on device manager you should have a device not installed due to the lacks of driver. You have to read the device id give by windows to your card start like CID_0066xxxxxxxxxxxxxxx

You have to add this to cardmod.inf and make windows update driver point to cardmod.inf.

To test if it's working you can run :

certutil.exe -SCinfo

You should be asked for pin code and can view certificats on card...

Warning: certutil.exe not present on XP system

- Tags
- unsupported
- windows

### Attachments

- OpenSCCardMod.png (35.7 KB) - added by martin 13 days ago. Description of BaseCSP/CardMod architecture.