Archive

Archive for November, 2015

CVersionInfo v1.04

November 29, 2015 Comments off

Just to let everyone know that v1.04 of CVersionInfo has been released. Updates for this version include:

  • Updated the code to clean compile in VC 2015.
  • Reworked the classes to optionally compile without MFC. By default the class now use STL classes and idioms but if you define CVERSIONINFO_MFC_EXTENSIONS the class will revert back to the MFC behaviour.
  • All the class methods have had SAL annotations added
Categories: Web Site Updates

SCardWrappers v1.02

November 29, 2015 Comments off

Just to let everyone know that v1.02 of SCardWrappers has been released. Updates for this version include:

  • Updated the code to compile cleanly on VC 2015
  • Verified there were no changes to the Windows Smart Card API on Windows 10.
  • Added SAL annotations to the ListReaderGroups methods for the return value
Categories: Web Site Updates

WinUSBWrappers v1.0

November 27, 2015 Comments off

Just to let everyone know that v1.0 of WinUSBWrappers has been released.

The new class provided is WinUSB::CDevice which provides a simple RAII wrapper for programming to the WinUSB API for USB devices on Windows.

Features

  • Provides a simple C++ Header only module to easily encapsulate WinUSB.
  • Integrates with STL’s and MFC’s collection and string classes for easier client coding.
  • Should make it easier to use WinUSB from C++ going forward.
  • Provides a RAII wrapper for the WINUSB_INTERFACE_HANDLE handle of WinUSB as well as the HANDLE returned from the CreateFile call when opening a WinUSB device.
  • The class also provides generic enumeration of USB devices given a device interface GUID, a USB PID and / or VID. This enumeration also is customizable from client code using a function pointer callback.

Included in the download is the WinUSBWrappers source code and a VC 2013 console based application which exercises all of the class API methods. If the sample app detects that you have an OSR FX2 Learning Kit device attached to your computer then it will exercise all of the functionality of this board via the WinUSBWrappers API methods. Even if you do not have one of these devices attached the sample app will demonstrate enumeration of USB devices using the WinUSB::CDevice::EnumerateDevices methods before it exits prematurely. For more information about this device, please see www.osronline.com/hardware/osrfx2_32.pdf and https://store.osr.com/product/osr-usb-fx2-learning-kit-v2/ to purchase one of these devices. Most of the Microsoft documentation related to WinUSB assumes you have one of these devices when learning WinUSB programming. Another resource worth reading is https://www.osronline.com/article.cfm?article=532 which provides a MFC wrapper class for WinUSB upon which WinUSBWrappers takes some inspiration. For examples of all the WinUSBWrappers API methods please see the source code of the demo application in the WinUSBWrappersDemo.cpp module in the download. To install the FX2 device using a specific device interface GUID you might want to take a look at http://zadig.akeo.ie/ which allows a specific driver such as WinUSB to be associated with a specific USB device as well as automating creation of signed inf driver installation files.

Categories: Web Site Updates

CMapi v1.26

November 23, 2015 Comments off

Just to let everyone know that v1.26 of CMapi has been released. Updates for this version include:

  • Updated code to clean compile on VC 2015
Categories: Web Site Updates

MSMQWrappers v1.01

November 22, 2015 Comments off

Just to let everyone know that v1.01 of MSMQWrappers has been released. Updates for this version include:

  • Updated copyright details.
  • Updated the code to clean compile at warning level 4
  • Updated the code to clean compile on VC 2015
  • Added comprehensive SAL annotations to all the code
  • Replaced all occurrences of NULL with nullptr throughout the code
Categories: Web Site Updates

CHLinkCtrl v1.33

November 22, 2015 Comments off

Just to let everyone know that v1.33 of CHLinkCtrl has been released. Updates for this version include:

  • Verified the code compiles cleanly on VC 2015.
  • Updated the sample apps main icon.
Categories: Web Site Updates

CSelectCertificateDlg v1.05

November 19, 2015 Comments off

Just to let everyone know that v1.05 of CSelectCertificateDlg has been released. Updates for this version include:

  • Verified the code compiles cleanly on VC 2015.
  • Updated the sample apps main icon.
  • Updated copyright details.
  • CryptUIDlgViewCertificate is now referenced via import library rather than by using GetProcAddress.
  • Separator used for "Intended Use" column is now setup by calling GetLocaleInfo.
Categories: Web Site Updates