uia 0.6 → 0.7.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2c98020ff0631ad6e1901a9ccc3cc31753df7fcd
4
+ data.tar.gz: bdb22ca34e9cdd2bcd8093eeb1a73a23bad668a3
5
+ SHA512:
6
+ metadata.gz: ce84d669ec3ba4ebc0501d3e875515712e06d11276465a9737656f4eabe5e55e6c4ebb31a06259cac1053c7aa920712eafcdc64688e9f28764002158d8bb0473
7
+ data.tar.gz: 4bc901727952f012cd28156a35f2f2e6baabd246f218217b03b9ab4ab67e7fa932da5bd1b7be592c1cb76335c7a7b388ba3dfe341b78f35dfb5cabf559b7c517
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ruby-uia.gemspec
4
- gem 'albacore', :git => 'git://github.com/Albacore/albacore.git', :branch => 'clean_slate'
5
4
  gemspec
data/Rakefile CHANGED
@@ -9,11 +9,19 @@ RSpec::Core::RakeTask.new(:spec)
9
9
 
10
10
  task :default => :spec
11
11
 
12
- task :spec => :build_release
12
+ task :spec => [:build_release, :build_release_x64]
13
13
  task :build => :spec
14
14
 
15
15
  desc 'Build the release version of UiaDll'
16
16
  build :build_release do |b|
17
17
  b.sln = 'ext/UiaDll/UiaDll.sln'
18
+ b.prop :Platform, 'Mixed Platforms'
18
19
  b.prop :Configuration, :Release
19
20
  end
21
+
22
+ desc 'Build the release x64 version of UiaDll'
23
+ build :build_release_x64 do |b|
24
+ b.sln = 'ext/UiaDll/UiaDll.sln'
25
+ b.prop :Platform, 'Mixed Platforms'
26
+ b.prop :Configuration, 'Release x64'
27
+ end
@@ -30,6 +30,15 @@
30
30
  <ErrorReport>prompt</ErrorReport>
31
31
  <WarningLevel>4</WarningLevel>
32
32
  </PropertyGroup>
33
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release x64|AnyCPU'">
34
+ <OutputPath>bin\Release x64\</OutputPath>
35
+ <DefineConstants>TRACE</DefineConstants>
36
+ <Optimize>true</Optimize>
37
+ <DebugType>pdbonly</DebugType>
38
+ <PlatformTarget>AnyCPU</PlatformTarget>
39
+ <ErrorReport>prompt</ErrorReport>
40
+ <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
41
+ </PropertyGroup>
33
42
  <ItemGroup>
34
43
  <Reference Include="System" />
35
44
  <Reference Include="System.Core" />
@@ -5,10 +5,26 @@
5
5
  <Configuration>Debug</Configuration>
6
6
  <Platform>Win32</Platform>
7
7
  </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Debug|x64">
9
+ <Configuration>Debug</Configuration>
10
+ <Platform>x64</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Release x64|Win32">
13
+ <Configuration>Release x64</Configuration>
14
+ <Platform>Win32</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release x64|x64">
17
+ <Configuration>Release x64</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
8
20
  <ProjectConfiguration Include="Release|Win32">
9
21
  <Configuration>Release</Configuration>
10
22
  <Platform>Win32</Platform>
11
23
  </ProjectConfiguration>
24
+ <ProjectConfiguration Include="Release|x64">
25
+ <Configuration>Release</Configuration>
26
+ <Platform>x64</Platform>
27
+ </ProjectConfiguration>
12
28
  </ItemGroup>
13
29
  <PropertyGroup Label="Globals">
14
30
  <ProjectGuid>{E83CF3F7-74C6-4333-89E3-36C6297F0A06}</ProjectGuid>
@@ -24,6 +40,27 @@
24
40
  <CLRSupport>true</CLRSupport>
25
41
  <CharacterSet>Unicode</CharacterSet>
26
42
  </PropertyGroup>
43
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
44
+ <ConfigurationType>Application</ConfigurationType>
45
+ <UseDebugLibraries>true</UseDebugLibraries>
46
+ <PlatformToolset>v110</PlatformToolset>
47
+ <CLRSupport>true</CLRSupport>
48
+ <CharacterSet>Unicode</CharacterSet>
49
+ </PropertyGroup>
50
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'" Label="Configuration">
51
+ <ConfigurationType>Application</ConfigurationType>
52
+ <UseDebugLibraries>true</UseDebugLibraries>
53
+ <PlatformToolset>v110</PlatformToolset>
54
+ <CLRSupport>true</CLRSupport>
55
+ <CharacterSet>Unicode</CharacterSet>
56
+ </PropertyGroup>
57
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'" Label="Configuration">
58
+ <ConfigurationType>Application</ConfigurationType>
59
+ <UseDebugLibraries>true</UseDebugLibraries>
60
+ <PlatformToolset>v110</PlatformToolset>
61
+ <CLRSupport>true</CLRSupport>
62
+ <CharacterSet>Unicode</CharacterSet>
63
+ </PropertyGroup>
27
64
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
28
65
  <ConfigurationType>Application</ConfigurationType>
29
66
  <UseDebugLibraries>false</UseDebugLibraries>
@@ -31,22 +68,53 @@
31
68
  <CLRSupport>true</CLRSupport>
32
69
  <CharacterSet>Unicode</CharacterSet>
33
70
  </PropertyGroup>
71
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
72
+ <ConfigurationType>Application</ConfigurationType>
73
+ <UseDebugLibraries>false</UseDebugLibraries>
74
+ <PlatformToolset>v110</PlatformToolset>
75
+ <CLRSupport>true</CLRSupport>
76
+ <CharacterSet>Unicode</CharacterSet>
77
+ </PropertyGroup>
34
78
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
35
79
  <ImportGroup Label="ExtensionSettings">
36
80
  </ImportGroup>
37
81
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
38
82
  <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
39
83
  </ImportGroup>
84
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
85
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
86
+ </ImportGroup>
87
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'" Label="PropertySheets">
88
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
89
+ </ImportGroup>
90
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'" Label="PropertySheets">
91
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
92
+ </ImportGroup>
40
93
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
41
94
  <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
42
95
  </ImportGroup>
96
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
97
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
98
+ </ImportGroup>
43
99
  <PropertyGroup Label="UserMacros" />
44
100
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
45
101
  <LinkIncremental>true</LinkIncremental>
46
102
  </PropertyGroup>
103
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
104
+ <LinkIncremental>true</LinkIncremental>
105
+ </PropertyGroup>
106
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'">
107
+ <LinkIncremental>true</LinkIncremental>
108
+ </PropertyGroup>
109
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'">
110
+ <LinkIncremental>true</LinkIncremental>
111
+ </PropertyGroup>
47
112
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
48
113
  <LinkIncremental>false</LinkIncremental>
49
114
  </PropertyGroup>
115
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
116
+ <LinkIncremental>false</LinkIncremental>
117
+ </PropertyGroup>
50
118
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
51
119
  <ClCompile>
52
120
  <WarningLevel>Level3</WarningLevel>
@@ -65,6 +133,60 @@
65
133
  <Command>$(TargetPath)</Command>
66
134
  </PostBuildEvent>
67
135
  </ItemDefinitionGroup>
136
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
137
+ <ClCompile>
138
+ <WarningLevel>Level3</WarningLevel>
139
+ <Optimization>Disabled</Optimization>
140
+ <PreprocessorDefinitions>WIN32;_VARIADIC_MAX=10;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
141
+ <PrecompiledHeader>Use</PrecompiledHeader>
142
+ <AdditionalIncludeDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\include;$(SolutionDir)UiaDll;$(SolutionDir)UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
143
+ </ClCompile>
144
+ <Link>
145
+ <GenerateDebugInformation>true</GenerateDebugInformation>
146
+ <AdditionalDependencies>gtestd.lib;gmockd.lib</AdditionalDependencies>
147
+ <SubSystem>Console</SubSystem>
148
+ <AdditionalLibraryDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\lib;$(SolutionDir)UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
149
+ </Link>
150
+ <PostBuildEvent>
151
+ <Command>$(TargetPath)</Command>
152
+ </PostBuildEvent>
153
+ </ItemDefinitionGroup>
154
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'">
155
+ <ClCompile>
156
+ <WarningLevel>Level3</WarningLevel>
157
+ <Optimization>Disabled</Optimization>
158
+ <PreprocessorDefinitions>WIN32;_VARIADIC_MAX=10;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
159
+ <PrecompiledHeader>Use</PrecompiledHeader>
160
+ <AdditionalIncludeDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\include;$(SolutionDir)UiaDll;$(SolutionDir)UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
161
+ </ClCompile>
162
+ <Link>
163
+ <GenerateDebugInformation>true</GenerateDebugInformation>
164
+ <AdditionalDependencies>gtestd.lib;gmockd.lib</AdditionalDependencies>
165
+ <SubSystem>Console</SubSystem>
166
+ <AdditionalLibraryDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\lib;$(SolutionDir)UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
167
+ </Link>
168
+ <PostBuildEvent>
169
+ <Command>$(TargetPath)</Command>
170
+ </PostBuildEvent>
171
+ </ItemDefinitionGroup>
172
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'">
173
+ <ClCompile>
174
+ <WarningLevel>Level3</WarningLevel>
175
+ <Optimization>Disabled</Optimization>
176
+ <PreprocessorDefinitions>WIN32;_VARIADIC_MAX=10;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
177
+ <PrecompiledHeader>Use</PrecompiledHeader>
178
+ <AdditionalIncludeDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\include;$(SolutionDir)UiaDll;$(SolutionDir)UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
179
+ </ClCompile>
180
+ <Link>
181
+ <GenerateDebugInformation>true</GenerateDebugInformation>
182
+ <AdditionalDependencies>gtestd.lib;gmockd.lib</AdditionalDependencies>
183
+ <SubSystem>Console</SubSystem>
184
+ <AdditionalLibraryDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\lib;$(SolutionDir)UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
185
+ </Link>
186
+ <PostBuildEvent>
187
+ <Command>$(TargetPath)</Command>
188
+ </PostBuildEvent>
189
+ </ItemDefinitionGroup>
68
190
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
69
191
  <ClCompile>
70
192
  <WarningLevel>Level3</WarningLevel>
@@ -82,6 +204,23 @@
82
204
  <Command>$(TargetPath)</Command>
83
205
  </PostBuildEvent>
84
206
  </ItemDefinitionGroup>
207
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
208
+ <ClCompile>
209
+ <WarningLevel>Level3</WarningLevel>
210
+ <PreprocessorDefinitions>WIN32;_VARIADIC_MAX=10;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
211
+ <PrecompiledHeader>Use</PrecompiledHeader>
212
+ <AdditionalIncludeDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\include;$(SolutionDir)UiaDll;$(SolutionDir)UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
213
+ </ClCompile>
214
+ <Link>
215
+ <GenerateDebugInformation>true</GenerateDebugInformation>
216
+ <AdditionalDependencies>gtest.lib;gmock.lib</AdditionalDependencies>
217
+ <SubSystem>Console</SubSystem>
218
+ <AdditionalLibraryDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\lib;$(SolutionDir)UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
219
+ </Link>
220
+ <PostBuildEvent>
221
+ <Command>$(TargetPath)</Command>
222
+ </PostBuildEvent>
223
+ </ItemDefinitionGroup>
85
224
  <ItemGroup>
86
225
  <Reference Include="System" />
87
226
  <Reference Include="System.Core" />
@@ -109,7 +248,11 @@
109
248
  <ClCompile Include="SearchConditionTest.cpp" />
110
249
  <ClCompile Include="stdafx.cpp">
111
250
  <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
251
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
252
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'">Create</PrecompiledHeader>
253
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'">Create</PrecompiledHeader>
112
254
  <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
255
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
113
256
  </ClCompile>
114
257
  <ClCompile Include="StringHelperTest.cpp" />
115
258
  <ClCompile Include="UiaDll.Test.cpp" />
@@ -15,6 +15,9 @@ Global
15
15
  Debug|Any CPU = Debug|Any CPU
16
16
  Debug|Mixed Platforms = Debug|Mixed Platforms
17
17
  Debug|Win32 = Debug|Win32
18
+ Release x64|Any CPU = Release x64|Any CPU
19
+ Release x64|Mixed Platforms = Release x64|Mixed Platforms
20
+ Release x64|Win32 = Release x64|Win32
18
21
  Release|Any CPU = Release|Any CPU
19
22
  Release|Mixed Platforms = Release|Mixed Platforms
20
23
  Release|Win32 = Release|Win32
@@ -25,6 +28,11 @@ Global
25
28
  {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Debug|Mixed Platforms.Build.0 = Debug|Win32
26
29
  {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Debug|Win32.ActiveCfg = Debug|Win32
27
30
  {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Debug|Win32.Build.0 = Debug|Win32
31
+ {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release x64|Any CPU.ActiveCfg = Release x64|Win32
32
+ {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release x64|Mixed Platforms.ActiveCfg = Release x64|x64
33
+ {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release x64|Mixed Platforms.Build.0 = Release x64|x64
34
+ {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release x64|Win32.ActiveCfg = Release x64|Win32
35
+ {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release x64|Win32.Build.0 = Release x64|Win32
28
36
  {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release|Any CPU.ActiveCfg = Release|Win32
29
37
  {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release|Mixed Platforms.ActiveCfg = Release|Win32
30
38
  {16531A20-39FB-4BDB-8F1C-E2D619BBCF58}.Release|Mixed Platforms.Build.0 = Release|Win32
@@ -35,6 +43,11 @@ Global
35
43
  {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
36
44
  {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
37
45
  {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Debug|Win32.ActiveCfg = Debug|Any CPU
46
+ {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release x64|Any CPU.ActiveCfg = Release x64|Any CPU
47
+ {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release x64|Any CPU.Build.0 = Release x64|Any CPU
48
+ {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release x64|Mixed Platforms.ActiveCfg = Release x64|Any CPU
49
+ {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release x64|Mixed Platforms.Build.0 = Release x64|Any CPU
50
+ {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release x64|Win32.ActiveCfg = Release x64|Any CPU
38
51
  {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
39
52
  {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release|Any CPU.Build.0 = Release|Any CPU
40
53
  {C2D567A8-B059-41A8-B9F5-FF4F8F961C1F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
@@ -45,6 +58,10 @@ Global
45
58
  {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Debug|Mixed Platforms.Build.0 = Debug|Win32
46
59
  {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Debug|Win32.ActiveCfg = Debug|Win32
47
60
  {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Debug|Win32.Build.0 = Debug|Win32
61
+ {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Release x64|Any CPU.ActiveCfg = Release x64|Win32
62
+ {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Release x64|Mixed Platforms.ActiveCfg = Debug|x64
63
+ {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Release x64|Win32.ActiveCfg = Release x64|Win32
64
+ {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Release x64|Win32.Build.0 = Release x64|Win32
48
65
  {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Release|Any CPU.ActiveCfg = Release|Win32
49
66
  {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Release|Mixed Platforms.ActiveCfg = Debug|Win32
50
67
  {E83CF3F7-74C6-4333-89E3-36C6297F0A06}.Release|Mixed Platforms.Build.0 = Debug|Win32
@@ -3,7 +3,9 @@
3
3
  #include <list>
4
4
  #include <functional>
5
5
 
6
+ using namespace System;
6
7
  using namespace System::Collections::Generic;
8
+ using namespace System::Windows::Automation;
7
9
  using namespace std;
8
10
 
9
11
  ref class ConditionHelper
@@ -1,6 +1,7 @@
1
1
  #pragma once
2
2
  #include <list>
3
3
  using namespace std;
4
+ using namespace System::Windows::Automation;
4
5
 
5
6
  typedef struct _SearchCondition {
6
7
  int propertyId;
@@ -66,7 +67,7 @@ typedef struct _SearchCondition {
66
67
  }
67
68
 
68
69
  static _SearchCondition* FromControlTypes(list<const int>& controlTypes) {
69
- return new SearchCondition(System::Windows::Automation::AutomationElement::ControlTypeProperty->Id, controlTypes);
70
+ return new SearchCondition(AutomationElement::ControlTypeProperty->Id, controlTypes);
70
71
  }
71
72
 
72
73
  void Reset(const int id) {
@@ -5,10 +5,26 @@
5
5
  <Configuration>Debug</Configuration>
6
6
  <Platform>Win32</Platform>
7
7
  </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Debug|x64">
9
+ <Configuration>Debug</Configuration>
10
+ <Platform>x64</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Release x64|Win32">
13
+ <Configuration>Release x64</Configuration>
14
+ <Platform>Win32</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release x64|x64">
17
+ <Configuration>Release x64</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
8
20
  <ProjectConfiguration Include="Release|Win32">
9
21
  <Configuration>Release</Configuration>
10
22
  <Platform>Win32</Platform>
11
23
  </ProjectConfiguration>
24
+ <ProjectConfiguration Include="Release|x64">
25
+ <Configuration>Release</Configuration>
26
+ <Platform>x64</Platform>
27
+ </ProjectConfiguration>
12
28
  </ItemGroup>
13
29
  <PropertyGroup Label="Globals">
14
30
  <ProjectGuid>{16531A20-39FB-4BDB-8F1C-E2D619BBCF58}</ProjectGuid>
@@ -24,6 +40,13 @@
24
40
  <CLRSupport>true</CLRSupport>
25
41
  <CharacterSet>Unicode</CharacterSet>
26
42
  </PropertyGroup>
43
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
44
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
45
+ <UseDebugLibraries>true</UseDebugLibraries>
46
+ <PlatformToolset>v110</PlatformToolset>
47
+ <CLRSupport>true</CLRSupport>
48
+ <CharacterSet>Unicode</CharacterSet>
49
+ </PropertyGroup>
27
50
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
28
51
  <ConfigurationType>DynamicLibrary</ConfigurationType>
29
52
  <UseDebugLibraries>false</UseDebugLibraries>
@@ -31,22 +54,67 @@
31
54
  <CLRSupport>true</CLRSupport>
32
55
  <CharacterSet>Unicode</CharacterSet>
33
56
  </PropertyGroup>
57
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
58
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
59
+ <UseDebugLibraries>false</UseDebugLibraries>
60
+ <PlatformToolset>v110</PlatformToolset>
61
+ <CLRSupport>true</CLRSupport>
62
+ <CharacterSet>Unicode</CharacterSet>
63
+ </PropertyGroup>
64
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'" Label="Configuration">
65
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
66
+ <UseDebugLibraries>false</UseDebugLibraries>
67
+ <PlatformToolset>v110</PlatformToolset>
68
+ <CLRSupport>true</CLRSupport>
69
+ <CharacterSet>Unicode</CharacterSet>
70
+ </PropertyGroup>
71
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'" Label="Configuration">
72
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
73
+ <UseDebugLibraries>false</UseDebugLibraries>
74
+ <PlatformToolset>v110</PlatformToolset>
75
+ <CLRSupport>true</CLRSupport>
76
+ <CharacterSet>Unicode</CharacterSet>
77
+ </PropertyGroup>
34
78
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
35
79
  <ImportGroup Label="ExtensionSettings">
36
80
  </ImportGroup>
37
81
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
38
82
  <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
39
83
  </ImportGroup>
84
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
85
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
86
+ </ImportGroup>
40
87
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
41
88
  <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
42
89
  </ImportGroup>
90
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
91
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
92
+ </ImportGroup>
93
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'" Label="PropertySheets">
94
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
95
+ </ImportGroup>
96
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'" Label="PropertySheets">
97
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
98
+ </ImportGroup>
43
99
  <PropertyGroup Label="UserMacros" />
44
100
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
45
101
  <LinkIncremental>true</LinkIncremental>
46
102
  </PropertyGroup>
103
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
104
+ <LinkIncremental>true</LinkIncremental>
105
+ </PropertyGroup>
47
106
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
48
107
  <LinkIncremental>false</LinkIncremental>
49
108
  </PropertyGroup>
109
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
110
+ <LinkIncremental>false</LinkIncremental>
111
+ </PropertyGroup>
112
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'">
113
+ <LinkIncremental>false</LinkIncremental>
114
+ </PropertyGroup>
115
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'">
116
+ <LinkIncremental>false</LinkIncremental>
117
+ </PropertyGroup>
50
118
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
51
119
  <ClCompile>
52
120
  <WarningLevel>Level3</WarningLevel>
@@ -59,6 +127,19 @@
59
127
  <AdditionalDependencies />
60
128
  </Link>
61
129
  </ItemDefinitionGroup>
130
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
131
+ <ClCompile>
132
+ <WarningLevel>Level3</WarningLevel>
133
+ <Optimization>Disabled</Optimization>
134
+ <PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
135
+ <PrecompiledHeader>Use</PrecompiledHeader>
136
+ </ClCompile>
137
+ <Link>
138
+ <GenerateDebugInformation>true</GenerateDebugInformation>
139
+ <AdditionalDependencies>
140
+ </AdditionalDependencies>
141
+ </Link>
142
+ </ItemDefinitionGroup>
62
143
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63
144
  <ClCompile>
64
145
  <WarningLevel>Level3</WarningLevel>
@@ -70,6 +151,42 @@
70
151
  <AdditionalDependencies />
71
152
  </Link>
72
153
  </ItemDefinitionGroup>
154
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
155
+ <ClCompile>
156
+ <WarningLevel>Level3</WarningLevel>
157
+ <PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
158
+ <PrecompiledHeader>Use</PrecompiledHeader>
159
+ </ClCompile>
160
+ <Link>
161
+ <GenerateDebugInformation>true</GenerateDebugInformation>
162
+ <AdditionalDependencies>
163
+ </AdditionalDependencies>
164
+ </Link>
165
+ </ItemDefinitionGroup>
166
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'">
167
+ <ClCompile>
168
+ <WarningLevel>Level3</WarningLevel>
169
+ <PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
170
+ <PrecompiledHeader>Use</PrecompiledHeader>
171
+ </ClCompile>
172
+ <Link>
173
+ <GenerateDebugInformation>true</GenerateDebugInformation>
174
+ <AdditionalDependencies>
175
+ </AdditionalDependencies>
176
+ </Link>
177
+ </ItemDefinitionGroup>
178
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'">
179
+ <ClCompile>
180
+ <WarningLevel>Level3</WarningLevel>
181
+ <PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
182
+ <PrecompiledHeader>Use</PrecompiledHeader>
183
+ </ClCompile>
184
+ <Link>
185
+ <GenerateDebugInformation>true</GenerateDebugInformation>
186
+ <AdditionalDependencies>
187
+ </AdditionalDependencies>
188
+ </Link>
189
+ </ItemDefinitionGroup>
73
190
  <ItemGroup>
74
191
  <Reference Include="System" />
75
192
  <Reference Include="System.Core" />
@@ -102,7 +219,11 @@
102
219
  <ClCompile Include="SelectionMethods.cpp" />
103
220
  <ClCompile Include="Stdafx.cpp">
104
221
  <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
222
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
105
223
  <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
224
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
225
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release x64|Win32'">Create</PrecompiledHeader>
226
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release x64|x64'">Create</PrecompiledHeader>
106
227
  </ClCompile>
107
228
  <ClCompile Include="TableItemMethods.cpp" />
108
229
  <ClCompile Include="TableMethods.cpp" />
@@ -7,7 +7,8 @@ module Uia
7
7
  extend FFI::Library
8
8
 
9
9
  def self.uia_directory
10
- File.dirname(__FILE__) + '/../../ext/UiaDll/Release'
10
+ flavor = !!(RUBY_PLATFORM =~ /x64/) ? 'x64/Release x64' : 'Release'
11
+ (File.dirname(__FILE__) + "/../../ext/UiaDll/#{flavor}")
11
12
  end
12
13
 
13
14
  ffi_lib File.join(uia_directory, 'UiaDll.dll')
@@ -201,4 +202,4 @@ module Uia
201
202
  rescue LoadError
202
203
  raise LoadError, 'You must install the Visual Studio 2012 C++ Runtime Environment to use the Uia gem (http://www.microsoft.com/en-us/download/details.aspx?id=30679)'
203
204
  end
204
- end
205
+ end
@@ -1,3 +1,3 @@
1
1
  module Uia
2
- VERSION = '0.6'
2
+ VERSION = '0.7.alpha.1'
3
3
  end
@@ -15,7 +15,9 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  binaries = [
17
17
  'ext/UiaDll/Release/UiaDll.dll',
18
- 'ext/UiaDll/Release/UIA.Helper.dll'
18
+ 'ext/UiaDll/Release/UIA.Helper.dll',
19
+ 'ext/UiaDll/x64/Release x64/UiaDll.dll',
20
+ 'ext/UiaDll/x64/Release x64/UIA.Helper.dll'
19
21
  ]
20
22
 
21
23
  exclude = lambda {|p| p =~ /(gtest)|(gmock)/i }
@@ -30,7 +32,8 @@ Gem::Specification.new do |spec|
30
32
 
31
33
  spec.add_development_dependency 'bundler', '~> 1.3'
32
34
  spec.add_development_dependency 'rake'
33
- spec.add_development_dependency 'rspec'
35
+ spec.add_development_dependency 'rspec', '~> 2.9'
34
36
  spec.add_development_dependency 'rspec-given'
35
37
  spec.add_development_dependency 'childprocess'
38
+ spec.add_development_dependency 'albacore', '~> 2.2'
36
39
  end
metadata CHANGED
@@ -1,128 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uia
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
5
- prerelease:
4
+ version: 0.7.alpha.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Levi Wilson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-11-14 00:00:00.000000000 Z
11
+ date: 2016-12-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ffi
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.9.4
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.9.4
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: require_all
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.3'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.3'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
- version: '0'
75
+ version: '2.9'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
- version: '0'
82
+ version: '2.9'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec-given
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: childprocess
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: albacore
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.2'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.2'
126
125
  description: A low-level wrapper around Microsoft UI Automation for ruby
127
126
  email:
128
127
  - levi@leviwilson.com
@@ -130,15 +129,17 @@ executables: []
130
129
  extensions: []
131
130
  extra_rdoc_files: []
132
131
  files:
133
- - .gitignore
134
- - .gitmodules
135
- - .rspec
132
+ - ".gitignore"
133
+ - ".gitmodules"
134
+ - ".rspec"
136
135
  - ChangeLog
137
136
  - Gemfile
138
137
  - LICENSE.txt
139
138
  - README.md
140
139
  - Rakefile
141
140
  - ext/.gitignore
141
+ - ext/UiaDll/Release/UIA.Helper.dll
142
+ - ext/UiaDll/Release/UiaDll.dll
142
143
  - ext/UiaDll/UIA.Helper/AutomationPropertyCondition.cs
143
144
  - ext/UiaDll/UIA.Helper/Element.cs
144
145
  - ext/UiaDll/UIA.Helper/Extensions.cs
@@ -195,6 +196,8 @@ files:
195
196
  - ext/UiaDll/UiaDll/ValuePatternMethods.cpp
196
197
  - ext/UiaDll/UiaDll/WindowMethods.cpp
197
198
  - ext/UiaDll/UiaDll/app.rc
199
+ - ext/UiaDll/x64/Release x64/UIA.Helper.dll
200
+ - ext/UiaDll/x64/Release x64/UiaDll.dll
198
201
  - lib/core_ext/array.rb
199
202
  - lib/core_ext/module.rb
200
203
  - lib/core_ext/string.rb
@@ -246,38 +249,29 @@ files:
246
249
  - spec/uia_spec.rb
247
250
  - test.rb
248
251
  - uia.gemspec
249
- - ext/UiaDll/Release/UiaDll.dll
250
- - ext/UiaDll/Release/UIA.Helper.dll
251
252
  homepage: https://github.com/northwoodspd/uia
252
253
  licenses:
253
254
  - MIT
255
+ metadata: {}
254
256
  post_install_message:
255
257
  rdoc_options: []
256
258
  require_paths:
257
259
  - lib
258
260
  required_ruby_version: !ruby/object:Gem::Requirement
259
- none: false
260
261
  requirements:
261
- - - ! '>='
262
+ - - ">="
262
263
  - !ruby/object:Gem::Version
263
264
  version: '0'
264
- segments:
265
- - 0
266
- hash: 659579951
267
265
  required_rubygems_version: !ruby/object:Gem::Requirement
268
- none: false
269
266
  requirements:
270
- - - ! '>='
267
+ - - ">"
271
268
  - !ruby/object:Gem::Version
272
- version: '0'
273
- segments:
274
- - 0
275
- hash: 659579951
269
+ version: 1.3.1
276
270
  requirements: []
277
271
  rubyforge_project:
278
- rubygems_version: 1.8.28
272
+ rubygems_version: 2.4.5.2
279
273
  signing_key:
280
- specification_version: 3
274
+ specification_version: 4
281
275
  summary: A low-level wrapper around Microsoft UI Automation for ruby
282
276
  test_files:
283
277
  - spec/app/FizzWare.NBuilder.dll