summaryrefslogtreecommitdiff
path: root/smartcrd
diff options
context:
space:
mode:
authorJ M Rossy <[email protected]>2015-07-29 15:40:09 -0700
committerJ M Rossy <[email protected]>2015-07-29 16:34:40 -0700
commit5d61a4a79a1e96dc5d9af1e5e712c84507307544 (patch)
tree49ed270893578cd18758b74ffcca16dc7ab948d6 /smartcrd
parent5d41613e26e147d2300c786bb2b34cb4b4067a25 (diff)
Samples update for public Windows 10 release
Fix #2 Enabling WPP Recorder in Sensors Samples causes errors Fix #4 Add back fixed KMDOD sample Add new BarcodeScanner sample in pos folder Add new MagneticStripeReader sample in pos folder Add new SynpaticsTouch sample in input folder Add new Power Engine Plugin sample in pofx folder Add new DeviceMft sample in avstream folder Add new AvsCamera sample in root Add new SimBatt sample in root Add other pre-existing samples not yet released for Win10
Diffstat (limited to 'smartcrd')
-rw-r--r--smartcrd/ReadMe.md12
-rw-r--r--smartcrd/pscr/Pscr.vcxproj5
-rw-r--r--smartcrd/pscr/Pscr.vcxproj.Filters11
-rw-r--r--smartcrd/pscr/pscr.inxbin6292 -> 6338 bytes
-rw-r--r--smartcrd/smartcrd.sln18
5 files changed, 17 insertions, 29 deletions
diff --git a/smartcrd/ReadMe.md b/smartcrd/ReadMe.md
index d3d0f600..b623b669 100644
--- a/smartcrd/ReadMe.md
+++ b/smartcrd/ReadMe.md
@@ -1,6 +1,8 @@
PCMCIA Smart Card Driver
========================
+**Warning, this sample and its documentation are known to be out of date. They will be updated soon. Please be aware that some functionality may not work as expected.**
+
The PCMCIA Smart Card Driver is used for the SCM PCMCIA smart card reader. This driver is written using Kernel-Mode Driver Framework.
This driver in its original form was written in WDM. It was converted to KMDF to take advantage of all the benefits provided by KMDF in terms of reducing complexity and making it robust. Since this driver still needs to work with the existing smartcard library to handle smartcard specific processing, the driver is not restricted to using only KMDF interfaces. Escaping out of KMDF is necessary for processing I/O requests to get the underlying IRPs and provide that to the smartcard library. The driver also uses advanced IRP handling techniques to work around the limitations imposed by the smartcard library. Except for this quirk, the driver is a fully functional KMDF driver. As a sample, it also makes it easier to adapt this driver for USB devices since KMDF has good support for interfacing with USB devices.
@@ -10,16 +12,6 @@ Power Management is described in detail in the WDK documentation. There is, howe
A card reader will not see any card insertion or removal events in these modes, because the bus might not even have power. The card state must be saved before the reader goes into standby or hibernation mode. After the system returns from these modes, it is necessary to determine what the state of the card is. Card tracking calls must complete whenever there was a card in the reader before standby or hibernation mode or whenever there is a card in the reader after these modes. This step is necessary because the user could have changed the card while the system was in a low-power mode.
-Build the sample
-----------------
-
-For information on how to build a driver solution using Microsoft Visual Studio, see [Building a Driver](http://msdn.microsoft.com/en-us/library/windows/hardware/ff554644).
-
-**Note**  Starting in Windows 8, the WDK no longer contains the co-installers by default. You can obtain the co-installers by downloading the *wdfcoinstaller.msi* package from [WDK 8 Redistributable Components](http://go.microsoft.com/fwlink/p/?LinkID=226396).
-
-Run the sample
---------------
-
Installation
------------
diff --git a/smartcrd/pscr/Pscr.vcxproj b/smartcrd/pscr/Pscr.vcxproj
index 88bc7891..a2a60ea8 100644
--- a/smartcrd/pscr/Pscr.vcxproj
+++ b/smartcrd/pscr/Pscr.vcxproj
@@ -19,12 +19,12 @@
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
- <ProjectGuid>{E963C756-D675-4202-A229-6B3ADB94B252}</ProjectGuid>
+ <ProjectGuid>{C90317D3-294B-41DD-9E58-EA5C4592B822}</ProjectGuid>
<RootNamespace>$(MSBuildProjectName)</RootNamespace>
<KMDF_VERSION_MAJOR>1</KMDF_VERSION_MAJOR>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">Win32</Platform>
- <SampleGuid>{1C4F5FFD-0F09-4478-A3F7-DEF422837617}</SampleGuid>
+ <SampleGuid>{4497680E-B15A-4377-9690-CC9B9A94CBBC}</SampleGuid>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -169,7 +169,6 @@
<ItemGroup>
<Inf Exclude="@(Inf)" Include="*.inf" />
<FilesToPackage Include="$(TargetPath)" Condition="'$(ConfigurationType)'=='Driver' or '$(ConfigurationType)'=='DynamicLibrary'" />
- <FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
</ItemGroup>
<ItemGroup>
<None Exclude="@(None)" Include="*.txt;*.htm;*.html" />
diff --git a/smartcrd/pscr/Pscr.vcxproj.Filters b/smartcrd/pscr/Pscr.vcxproj.Filters
index 55f941f4..1bad5e49 100644
--- a/smartcrd/pscr/Pscr.vcxproj.Filters
+++ b/smartcrd/pscr/Pscr.vcxproj.Filters
@@ -3,25 +3,22 @@
<ItemGroup>
<Filter Include="Source Files">
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;*</Extensions>
- <UniqueIdentifier>{7EB6DC3A-11A4-48F2-9730-419C9A104242}</UniqueIdentifier>
+ <UniqueIdentifier>{54D65CE6-224F-4E82-BCA5-3348D0F43339}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files">
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- <UniqueIdentifier>{2AAA41D4-E19E-409F-87C1-EA4C640F0BAA}</UniqueIdentifier>
+ <UniqueIdentifier>{FB0DF8C2-7B63-4219-B2EF-23A2BA12B7EC}</UniqueIdentifier>
</Filter>
<Filter Include="Resource Files">
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms;man;xml</Extensions>
- <UniqueIdentifier>{9FEF86B3-6289-44F6-B036-2C15E61CDDDE}</UniqueIdentifier>
+ <UniqueIdentifier>{9C2A7E2B-9B74-4579-A1D3-5C5B3D397F7E}</UniqueIdentifier>
</Filter>
<Filter Include="Driver Files">
<Extensions>inf;inv;inx;mof;mc;</Extensions>
- <UniqueIdentifier>{A832F7F9-C73F-4032-83DF-1CA14DE6C0FF}</UniqueIdentifier>
+ <UniqueIdentifier>{B796B525-44D3-4260-8C76-705DBADA1043}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
- <FilesToPackage Include=".\Debug\\pscr.inf">
- <Filter>Driver Files</Filter>
- </FilesToPackage>
<Inf Include=".\pscr.inx">
<Filter>Driver Files</Filter>
</Inf>
diff --git a/smartcrd/pscr/pscr.inx b/smartcrd/pscr/pscr.inx
index 28e93816..50cd311c 100644
--- a/smartcrd/pscr/pscr.inx
+++ b/smartcrd/pscr/pscr.inx
Binary files differ
diff --git a/smartcrd/smartcrd.sln b/smartcrd/smartcrd.sln
index c0f3b05e..a8cd3b2f 100644
--- a/smartcrd/smartcrd.sln
+++ b/smartcrd/smartcrd.sln
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0
MinimumVisualStudioVersion = 12.0
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pscr", "pscr\Pscr.vcxproj", "{E963C756-D675-4202-A229-6B3ADB94B252}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pscr", "pscr\Pscr.vcxproj", "{C90317D3-294B-41DD-9E58-EA5C4592B822}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -13,14 +13,14 @@ Global
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {E963C756-D675-4202-A229-6B3ADB94B252}.Debug|Win32.ActiveCfg = Debug|Win32
- {E963C756-D675-4202-A229-6B3ADB94B252}.Debug|Win32.Build.0 = Debug|Win32
- {E963C756-D675-4202-A229-6B3ADB94B252}.Release|Win32.ActiveCfg = Release|Win32
- {E963C756-D675-4202-A229-6B3ADB94B252}.Release|Win32.Build.0 = Release|Win32
- {E963C756-D675-4202-A229-6B3ADB94B252}.Debug|x64.ActiveCfg = Debug|x64
- {E963C756-D675-4202-A229-6B3ADB94B252}.Debug|x64.Build.0 = Debug|x64
- {E963C756-D675-4202-A229-6B3ADB94B252}.Release|x64.ActiveCfg = Release|x64
- {E963C756-D675-4202-A229-6B3ADB94B252}.Release|x64.Build.0 = Release|x64
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Debug|Win32.Build.0 = Debug|Win32
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Release|Win32.ActiveCfg = Release|Win32
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Release|Win32.Build.0 = Release|Win32
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Debug|x64.ActiveCfg = Debug|x64
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Debug|x64.Build.0 = Debug|x64
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Release|x64.ActiveCfg = Release|x64
+ {C90317D3-294B-41DD-9E58-EA5C4592B822}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE