Skip to content

Commit 52b03dc

Browse files
committed
Add robocopy injection. Close #29
1 parent 2fd4af8 commit 52b03dc

22 files changed

+371
-6
lines changed

FastCopy.sln

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.4.33110.190
4+
VisualStudioVersion = 17.14.36705.20 d17.14
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FastCopy", "FastCopy\FastCopy.vcxproj", "{7BAED4AB-03D0-4AA9-AB8D-8D32B1D049F3}"
7+
ProjectSection(ProjectDependencies) = postProject
8+
{3CFC5459-E40B-4049-A227-81BD5675F3D7} = {3CFC5459-E40B-4049-A227-81BD5675F3D7}
9+
EndProjectSection
710
EndProject
811
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FastCopyShellExtension", "FastCopyShellExtension\FastCopyShellExtension.vcxproj", "{17F52E4D-1E98-4288-9AA1-20A384171876}"
912
EndProject
@@ -20,6 +23,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2023
vcpkg.json = vcpkg.json
2124
EndProjectSection
2225
EndProject
26+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RobocopyInjection", "RobocopyInjection\RobocopyInjection.vcxproj", "{3CFC5459-E40B-4049-A227-81BD5675F3D7}"
27+
EndProject
2328
Global
2429
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2530
Debug|Any CPU = Debug|Any CPU
@@ -174,6 +179,36 @@ Global
174179
{56D28B01-9F66-40CC-B24F-372119750A74}.Release|x64.Build.0 = Release|x64
175180
{56D28B01-9F66-40CC-B24F-372119750A74}.Release|x86.ActiveCfg = Release|Win32
176181
{56D28B01-9F66-40CC-B24F-372119750A74}.Release|x86.Build.0 = Release|Win32
182+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|Any CPU.ActiveCfg = Debug|x64
183+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|Any CPU.Build.0 = Debug|x64
184+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|ARM.ActiveCfg = Debug|x64
185+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|ARM.Build.0 = Debug|x64
186+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|arm64.ActiveCfg = Debug|x64
187+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|arm64.Build.0 = Debug|x64
188+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|x64.ActiveCfg = Debug|x64
189+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|x64.Build.0 = Debug|x64
190+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|x86.ActiveCfg = Debug|Win32
191+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Debug|x86.Build.0 = Debug|Win32
192+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|Any CPU.ActiveCfg = Debug|x64
193+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|Any CPU.Build.0 = Debug|x64
194+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|ARM.ActiveCfg = Debug|x64
195+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|ARM.Build.0 = Debug|x64
196+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|arm64.ActiveCfg = Debug|x64
197+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|arm64.Build.0 = Debug|x64
198+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|x64.ActiveCfg = Package|x64
199+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|x64.Build.0 = Package|x64
200+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|x86.ActiveCfg = Debug|Win32
201+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Package|x86.Build.0 = Debug|Win32
202+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|Any CPU.ActiveCfg = Release|x64
203+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|Any CPU.Build.0 = Release|x64
204+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|ARM.ActiveCfg = Release|x64
205+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|ARM.Build.0 = Release|x64
206+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|arm64.ActiveCfg = Release|x64
207+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|arm64.Build.0 = Release|x64
208+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|x64.ActiveCfg = Release|x64
209+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|x64.Build.0 = Release|x64
210+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|x86.ActiveCfg = Release|Win32
211+
{3CFC5459-E40B-4049-A227-81BD5675F3D7}.Release|x86.Build.0 = Release|Win32
177212
EndGlobalSection
178213
GlobalSection(SolutionProperties) = preSolution
179214
HideSolutionNode = FALSE

FastCopy/CreateSuspend.h

612 Bytes
Binary file not shown.

FastCopy/FastCopy.vcxproj

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@
137137
</ClCompile>
138138
<PostBuildEvent>
139139
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">mkdir "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX"
140-
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtension.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I</Command>
140+
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtension.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I
141+
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\RobocopyInjection.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I</Command>
141142
</PostBuildEvent>
142143
<PostBuildEvent>
143144
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|arm64'">mkdir "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX"
@@ -173,7 +174,8 @@ xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtensio
173174
</PostBuildEvent>
174175
<PostBuildEvent>
175176
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">mkdir "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX"
176-
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtension.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I</Command>
177+
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtension.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I
178+
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\RobocopyInjection.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I</Command>
177179
</PostBuildEvent>
178180
</ItemDefinitionGroup>
179181
<ItemDefinitionGroup Condition="'$(Configuration)'=='Package'">
@@ -201,7 +203,8 @@ xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtensio
201203
</PostBuildEvent>
202204
<PostBuildEvent>
203205
<Command Condition="'$(Configuration)|$(Platform)'=='Package|x64'">mkdir "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX"
204-
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtension.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I</Command>
206+
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtension.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I
207+
xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\RobocopyInjection.dll" "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\AppX" /Y /C /I</Command>
205208
</PostBuildEvent>
206209
</ItemDefinitionGroup>
207210
<ItemGroup Condition="'$(WindowsPackageType)'!='None' and Exists('Package.appxmanifest')">
@@ -230,6 +233,7 @@ xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtensio
230233
<DependentUpon>CopyDialogWindow.xaml</DependentUpon>
231234
<SubType>Code</SubType>
232235
</ClInclude>
236+
<ClInclude Include="CreateSuspend.h" />
233237
<ClInclude Include="DebugFileSize.h" />
234238
<ClInclude Include="DebugLogger.h" />
235239
<ClInclude Include="DependentValue.h">
@@ -282,6 +286,7 @@ xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtensio
282286
<ClInclude Include="resource1.h" />
283287
<ClInclude Include="ResourceHelper.h" />
284288
<ClInclude Include="RobocopyArgs.h" />
289+
<ClInclude Include="RobocopyInjectDll.h" />
285290
<ClInclude Include="RobocopyJobFile.h" />
286291
<ClInclude Include="NewDir.h" />
287292
<ClInclude Include="RobocopyProcess.h" />
@@ -407,6 +412,7 @@ xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtensio
407412
</ClCompile>
408413
<ClCompile Include="ResourceHelper.cpp" />
409414
<ClCompile Include="RobocopyArgs.cpp" />
415+
<ClCompile Include="RobocopyInjectDll.cpp" />
410416
<ClCompile Include="RobocopyProcess.cpp" />
411417
<ClCompile Include="RobocopyProcessStatus.cpp" />
412418
<ClCompile Include="RobocopyViewModel.cpp">
@@ -591,6 +597,9 @@ xcopy "$(SolutionDir)$(Platform)\$(Configuration)\FastCopy\FastCopyShellExtensio
591597
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Package|Win32'">true</DeploymentContent>
592598
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Package|x64'">true</DeploymentContent>
593599
</None>
600+
<None Include="..\x64\Package\FastCopy\RobocopyInjection.dll">
601+
<DeploymentContent>true</DeploymentContent>
602+
</None>
594603
<None Include="FastCopy_TemporaryKey.pfx" />
595604
<None Include="packages.config" />
596605
</ItemGroup>

FastCopy/FastCopy.vcxproj.filters

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@
156156
<ClCompile Include="ImageUtils.cpp">
157157
<Filter>Utils\ImageUtils</Filter>
158158
</ClCompile>
159+
<ClCompile Include="RobocopyInjectDll.cpp">
160+
<Filter>Utils\Robocopy</Filter>
161+
</ClCompile>
159162
</ItemGroup>
160163
<ItemGroup>
161164
<ClInclude Include="pch.h" />
@@ -300,6 +303,12 @@
300303
<Filter>Utils\ImageUtils</Filter>
301304
</ClInclude>
302305
<ClInclude Include="..\Public\PackageConfig.h" />
306+
<ClInclude Include="CreateSuspend.h">
307+
<Filter>Utils\Robocopy</Filter>
308+
</ClInclude>
309+
<ClInclude Include="RobocopyInjectDll.h">
310+
<Filter>Utils\Robocopy</Filter>
311+
</ClInclude>
303312
</ItemGroup>
304313
<ItemGroup>
305314
<Image Include="Assets\Wide310x150Logo.scale-200.png">
@@ -564,6 +573,7 @@
564573
<None Include="..\PackageDlls\fmt.dll" />
565574
<None Include="..\x64\Package\FastCopy\FastCopyShellExtension.dll" />
566575
<None Include="Package.StoreAssociation.xml" />
576+
<None Include="..\x64\Package\FastCopy\RobocopyInjection.dll" />
567577
</ItemGroup>
568578
<ItemGroup>
569579
<PRIResource Include="Strings\en-US\Resources.resw">

FastCopy/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<Identity
1515
Name="HO-COOH.RoboCopyEx"
1616
Publisher="CN=0000973C-93A8-4716-8C14-5EC442A69DBE"
17-
Version="1.0.10.0" />
17+
Version="1.1.0.0" />
1818

1919
<Properties>
2020
<DisplayName>RoboCopyEx</DisplayName>

FastCopy/RobocopyInjectDll.cpp

2.13 KB
Binary file not shown.

FastCopy/RobocopyInjectDll.h

424 Bytes
Binary file not shown.

FastCopy/RobocopyProcess.cpp

3.4 KB
Binary file not shown.

FastCopy/RobocopyProcess.h

5.97 KB
Binary file not shown.
3.32 KB
Binary file not shown.

0 commit comments

Comments
 (0)