|
26 | 26 | </PropertyGroup> |
27 | 27 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
28 | 28 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
29 | | - <ConfigurationType>Application</ConfigurationType> |
| 29 | + <ConfigurationType>DynamicLibrary</ConfigurationType> |
30 | 30 | <UseDebugLibraries>true</UseDebugLibraries> |
31 | 31 | <PlatformToolset>v120_xp</PlatformToolset> |
32 | | - <CharacterSet>MultiByte</CharacterSet> |
33 | 32 | </PropertyGroup> |
34 | 33 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
35 | | - <ConfigurationType>Application</ConfigurationType> |
| 34 | + <ConfigurationType>DynamicLibrary</ConfigurationType> |
36 | 35 | <UseDebugLibraries>false</UseDebugLibraries> |
37 | 36 | <PlatformToolset>v120_xp</PlatformToolset> |
38 | 37 | <WholeProgramOptimization>true</WholeProgramOptimization> |
39 | | - <CharacterSet>MultiByte</CharacterSet> |
40 | 38 | </PropertyGroup> |
41 | 39 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
42 | | - <ConfigurationType>Application</ConfigurationType> |
| 40 | + <ConfigurationType>DynamicLibrary</ConfigurationType> |
43 | 41 | <UseDebugLibraries>true</UseDebugLibraries> |
44 | 42 | <PlatformToolset>v120_xp</PlatformToolset> |
45 | 43 | <CharacterSet>MultiByte</CharacterSet> |
46 | 44 | </PropertyGroup> |
47 | 45 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
48 | | - <ConfigurationType>Application</ConfigurationType> |
| 46 | + <ConfigurationType>DynamicLibrary</ConfigurationType> |
49 | 47 | <UseDebugLibraries>false</UseDebugLibraries> |
50 | 48 | <PlatformToolset>v120_xp</PlatformToolset> |
51 | 49 | <WholeProgramOptimization>true</WholeProgramOptimization> |
|
69 | 67 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
70 | 68 | </ImportGroup> |
71 | 69 | <PropertyGroup Label="UserMacros" /> |
72 | | - <PropertyGroup /> |
| 70 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 71 | + <OutDir>$(SolutionDir)$(Configuration)\</OutDir> |
| 72 | + <IntDir>$(Configuration)\</IntDir> |
| 73 | + <TargetName>$(ProjectName).x64</TargetName> |
| 74 | + </PropertyGroup> |
| 75 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 76 | + <OutDir>$(SolutionDir)$(Configuration)\</OutDir> |
| 77 | + <IntDir>$(Configuration)\</IntDir> |
| 78 | + <TargetName>$(ProjectName).x64</TargetName> |
| 79 | + </PropertyGroup> |
| 80 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 81 | + <TargetName>$(ProjectName).x86</TargetName> |
| 82 | + </PropertyGroup> |
| 83 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 84 | + <TargetName>$(ProjectName).x86</TargetName> |
| 85 | + </PropertyGroup> |
73 | 86 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
74 | 87 | <ClCompile> |
75 | 88 | <WarningLevel>Level3</WarningLevel> |
76 | 89 | <Optimization>Disabled</Optimization> |
77 | 90 | <SDLCheck>true</SDLCheck> |
78 | 91 | <TreatWarningAsError>true</TreatWarningAsError> |
79 | | - <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);DEBUG</PreprocessorDefinitions> |
| 92 | + <PreprocessorDefinitions>REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 93 | + <AdditionalIncludeDirectories>$(SolutionDir)ReflectiveDLLInjection\dll\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
80 | 94 | </ClCompile> |
| 95 | + <PostBuildEvent> |
| 96 | + <Command>python $(SolutionDir)pe_patch.py "$(TargetPath)" "$(TargetPath)"</Command> |
| 97 | + </PostBuildEvent> |
| 98 | + <PostBuildEvent> |
| 99 | + <Message>Patch in the .restore section</Message> |
| 100 | + </PostBuildEvent> |
81 | 101 | </ItemDefinitionGroup> |
82 | 102 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
83 | 103 | <ClCompile> |
84 | 104 | <WarningLevel>Level3</WarningLevel> |
85 | 105 | <Optimization>Disabled</Optimization> |
86 | 106 | <SDLCheck>true</SDLCheck> |
87 | 107 | <TreatWarningAsError>true</TreatWarningAsError> |
88 | | - <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);DEBUG</PreprocessorDefinitions> |
| 108 | + <PreprocessorDefinitions>REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 109 | + <AdditionalIncludeDirectories>$(SolutionDir)ReflectiveDLLInjection\dll\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
89 | 110 | </ClCompile> |
| 111 | + <PostBuildEvent> |
| 112 | + <Command>python $(SolutionDir)pe_patch.py "$(TargetPath)" "$(TargetPath)"</Command> |
| 113 | + </PostBuildEvent> |
| 114 | + <PostBuildEvent> |
| 115 | + <Message>Patch in the .restore section</Message> |
| 116 | + </PostBuildEvent> |
90 | 117 | </ItemDefinitionGroup> |
91 | 118 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
92 | 119 | <ClCompile> |
|
96 | 123 | <IntrinsicFunctions>true</IntrinsicFunctions> |
97 | 124 | <SDLCheck>true</SDLCheck> |
98 | 125 | <TreatWarningAsError>true</TreatWarningAsError> |
| 126 | + <AdditionalIncludeDirectories>$(SolutionDir)ReflectiveDLLInjection\dll\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 127 | + <PreprocessorDefinitions>REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
99 | 128 | </ClCompile> |
100 | 129 | <Link> |
101 | 130 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
102 | 131 | <OptimizeReferences>true</OptimizeReferences> |
103 | 132 | </Link> |
| 133 | + <PostBuildEvent> |
| 134 | + <Command>python $(SolutionDir)pe_patch.py "$(TargetPath)" "$(TargetPath)"</Command> |
| 135 | + </PostBuildEvent> |
| 136 | + <PostBuildEvent> |
| 137 | + <Message>Patch in the .restore section</Message> |
| 138 | + </PostBuildEvent> |
104 | 139 | </ItemDefinitionGroup> |
105 | 140 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
106 | 141 | <ClCompile> |
|
110 | 145 | <IntrinsicFunctions>true</IntrinsicFunctions> |
111 | 146 | <SDLCheck>true</SDLCheck> |
112 | 147 | <TreatWarningAsError>true</TreatWarningAsError> |
| 148 | + <AdditionalIncludeDirectories>$(SolutionDir)ReflectiveDLLInjection\dll\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 149 | + <PreprocessorDefinitions>REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
113 | 150 | </ClCompile> |
114 | 151 | <Link> |
115 | 152 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
116 | 153 | <OptimizeReferences>true</OptimizeReferences> |
117 | 154 | </Link> |
| 155 | + <PostBuildEvent> |
| 156 | + <Command>python $(SolutionDir)pe_patch.py "$(TargetPath)" "$(TargetPath)"</Command> |
| 157 | + </PostBuildEvent> |
| 158 | + <PostBuildEvent> |
| 159 | + <Message>Patch in the .restore section</Message> |
| 160 | + </PostBuildEvent> |
118 | 161 | </ItemDefinitionGroup> |
119 | 162 | <ItemGroup> |
| 163 | + <ClCompile Include="..\ReflectiveDLLInjection\dll\src\ReflectiveLoader.c" /> |
120 | 164 | <ClCompile Include="Main.c" /> |
121 | 165 | <ClCompile Include="ReflectiveUnloader.c" /> |
122 | 166 | </ItemGroup> |
123 | 167 | <ItemGroup> |
| 168 | + <ClInclude Include="..\ReflectiveDLLInjection\dll\src\ReflectiveLoader.h" /> |
124 | 169 | <ClInclude Include="ReflectiveUnloader.h" /> |
125 | 170 | </ItemGroup> |
126 | 171 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
|
0 commit comments