Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit f84bcc2

Browse files
committed
~ | Replace Main.cpp with Main.c for thread hijacking implementation
1 parent 77ba6c5 commit f84bcc2

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

Target/Main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <stdio.h>
2+
#include <Windows.h>
3+
4+
int main() {
5+
for (int i = 0;;i++) {
6+
printf("%d\n", i);
7+
Sleep(1000);
8+
}
9+
}

Target/Main.cpp

Lines changed: 0 additions & 11 deletions
This file was deleted.

Target/Target.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
</Link>
124124
</ItemDefinitionGroup>
125125
<ItemGroup>
126-
<ClCompile Include="Main.cpp" />
126+
<ClCompile Include="Main.c" />
127127
</ItemGroup>
128128
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
129129
<ImportGroup Label="ExtensionTargets">

Target/Target.vcxproj.filters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</Filter>
1616
</ItemGroup>
1717
<ItemGroup>
18-
<ClCompile Include="Main.cpp">
18+
<ClCompile Include="Main.c">
1919
<Filter>Source Files</Filter>
2020
</ClCompile>
2121
</ItemGroup>

0 commit comments

Comments
 (0)