Skip to content

Commit

Permalink
Updated ManagedBlink1.HidLibrary to better support 64-bit processes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrotello committed Jul 10, 2013
1 parent f036b30 commit b29b478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
4 changes: 2 additions & 2 deletions windows/ManagedBlink1/HidLibrary/HidDevices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ private static IEnumerable<string> EnumerateHidDevices()
{
var hidClass = HidClassGuid;
var deviceInfoSet = NativeMethods.SetupDiGetClassDevs(ref hidClass, null, 0, NativeMethods.DIGCF_PRESENT | NativeMethods.DIGCF_DEVICEINTERFACE);

if (deviceInfoSet.ToInt32() != NativeMethods.INVALID_HANDLE_VALUE)
if (deviceInfoSet.ToInt64() != NativeMethods.INVALID_HANDLE_VALUE)
{
var devices = new List<string>();
var deviceInfoData = CreateDeviceInfoData();
Expand Down

0 comments on commit b29b478

Please sign in to comment.