Skip to content

Commit

Permalink
更改解决方案和项目名称
Browse files Browse the repository at this point in the history
添加应用详细信息
集成恢复
  • Loading branch information
SZ2528 committed Apr 26, 2023
1 parent 2256efa commit 89a6d6b
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 33 deletions.
25 changes: 0 additions & 25 deletions BlowUpTheDesktop/BlowUpTheDesktop.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion BlowUpTheDesktop.sln → CleanDesktop.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33424.131
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BlowUpTheDesktop", "BlowUpTheDesktop\BlowUpTheDesktop.vcxproj", "{961524B7-DC46-430A-80ED-8C4157DA090E}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CleanDesktop", "CleanDesktop\CleanDesktop.vcxproj", "{961524B7-DC46-430A-80ED-8C4157DA090E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
33 changes: 33 additions & 0 deletions CleanDesktop/CleanDesktop.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// CleanDesktop.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>
#include <windows.h>
using namespace std;

int main(int argc, char* argv[]) {
//HKEY hKey_doge = HKEY_CURRENT_USER;
//LPCTSTR regpath = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders";
if (argc>1) {
system("reg add \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -v Desktop -t REG_EXPAND_SZ -d \"%USERPROFILE%\\Desktop\" -f");
cout << "已恢复。";
}
else {
system("reg add \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -v Desktop -t REG_EXPAND_SZ -d \"%WINDIR%\\System32\" -f");
cout << "不会有逝的。";
}
system("taskkill -im explorer.exe -f&&start explorer");
system("pause>nul");
return 0;
}

// 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单
// 调试程序: F5 或调试 >“开始调试”菜单

// 入门使用技巧:
// 1. 使用解决方案资源管理器窗口添加/管理文件
// 2. 使用团队资源管理器窗口连接到源代码管理
// 3. 使用输出窗口查看生成输出和其他消息
// 4. 使用错误列表窗口查看错误
// 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目
// 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{961524b7-dc46-430a-80ed-8c4157da090e}</ProjectGuid>
<RootNamespace>BlowUpTheDesktop</RootNamespace>
<RootNamespace>CleanDesktop</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>CleanDesktop (C++)</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down Expand Up @@ -110,7 +111,8 @@
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
<UACExecutionLevel>AsInvoker</UACExecutionLevel>
<EnableUAC>false</EnableUAC>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -131,13 +133,13 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="BlowUpTheDesktop.cpp" />
<ClCompile Include="CleanDesktop.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="BlowUpTheDesktop.rc" />
<ResourceCompile Include="CleanDesktop.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="icon1.ico" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="BlowUpTheDesktop.cpp">
<ClCompile Include="CleanDesktop.cpp">
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
Expand All @@ -25,7 +25,7 @@
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="BlowUpTheDesktop.rc">
<ResourceCompile Include="CleanDesktop.rc">
<Filter>资源文件</Filter>
</ResourceCompile>
</ItemGroup>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion BlowUpTheDesktop/resource.h → CleanDesktop/resource.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ 生成的包含文件。
// 供 BlowUpTheDesktop.rc 使用
// 供 CleanDesktop.rc 使用
//
#define IDI_ICON1 101

Expand Down

0 comments on commit 89a6d6b

Please sign in to comment.