Skip to content
This repository was archived by the owner on Mar 26, 2019. It is now read-only.

Commit 3fc73b5

Browse files
authored
Add files via upload
1 parent e259c2a commit 3fc73b5

File tree

64 files changed

+2310
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2310
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|Win32">
13+
<Configuration>Release</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<ProjectGuid>{37FD77D1-5F5E-4132-A320-41D97D091F42}</ProjectGuid>
23+
<Keyword>Win32Proj</Keyword>
24+
<RootNamespace>DDPluginOpenCSRSS</RootNamespace>
25+
</PropertyGroup>
26+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
28+
<ConfigurationType>DynamicLibrary</ConfigurationType>
29+
<UseDebugLibraries>true</UseDebugLibraries>
30+
<CharacterSet>Unicode</CharacterSet>
31+
<PlatformToolset>v100</PlatformToolset>
32+
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
34+
<ConfigurationType>DynamicLibrary</ConfigurationType>
35+
<UseDebugLibraries>true</UseDebugLibraries>
36+
<CharacterSet>Unicode</CharacterSet>
37+
<PlatformToolset>v110</PlatformToolset>
38+
</PropertyGroup>
39+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
40+
<ConfigurationType>DynamicLibrary</ConfigurationType>
41+
<UseDebugLibraries>false</UseDebugLibraries>
42+
<WholeProgramOptimization>true</WholeProgramOptimization>
43+
<CharacterSet>Unicode</CharacterSet>
44+
<PlatformToolset>v100</PlatformToolset>
45+
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
47+
<ConfigurationType>DynamicLibrary</ConfigurationType>
48+
<UseDebugLibraries>false</UseDebugLibraries>
49+
<WholeProgramOptimization>true</WholeProgramOptimization>
50+
<CharacterSet>Unicode</CharacterSet>
51+
<PlatformToolset>v110</PlatformToolset>
52+
</PropertyGroup>
53+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
54+
<ImportGroup Label="ExtensionSettings">
55+
</ImportGroup>
56+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
57+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
58+
</ImportGroup>
59+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
60+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61+
</ImportGroup>
62+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64+
</ImportGroup>
65+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
66+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67+
</ImportGroup>
68+
<PropertyGroup Label="UserMacros" />
69+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
70+
<LinkIncremental>true</LinkIncremental>
71+
</PropertyGroup>
72+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
73+
<LinkIncremental>true</LinkIncremental>
74+
</PropertyGroup>
75+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
76+
<LinkIncremental>false</LinkIncremental>
77+
</PropertyGroup>
78+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
79+
<LinkIncremental>false</LinkIncremental>
80+
</PropertyGroup>
81+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
82+
<ClCompile>
83+
<PrecompiledHeader>
84+
</PrecompiledHeader>
85+
<WarningLevel>Level3</WarningLevel>
86+
<Optimization>Disabled</Optimization>
87+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;DDPLUGINOPENCSRSS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
88+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
89+
</ClCompile>
90+
<Link>
91+
<SubSystem>Windows</SubSystem>
92+
<GenerateDebugInformation>true</GenerateDebugInformation>
93+
</Link>
94+
</ItemDefinitionGroup>
95+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
96+
<ClCompile>
97+
<PrecompiledHeader>
98+
</PrecompiledHeader>
99+
<WarningLevel>Level3</WarningLevel>
100+
<Optimization>Disabled</Optimization>
101+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;DDPLUGINOPENCSRSS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
102+
</ClCompile>
103+
<Link>
104+
<SubSystem>Windows</SubSystem>
105+
<GenerateDebugInformation>true</GenerateDebugInformation>
106+
</Link>
107+
</ItemDefinitionGroup>
108+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
109+
<ClCompile>
110+
<WarningLevel>Level3</WarningLevel>
111+
<PrecompiledHeader>
112+
</PrecompiledHeader>
113+
<Optimization>Full</Optimization>
114+
<FunctionLevelLinking>true</FunctionLevelLinking>
115+
<IntrinsicFunctions>true</IntrinsicFunctions>
116+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;DDPLUGINOPENCSRSS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
117+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
118+
</ClCompile>
119+
<Link>
120+
<SubSystem>Windows</SubSystem>
121+
<GenerateDebugInformation>true</GenerateDebugInformation>
122+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
123+
<OptimizeReferences>true</OptimizeReferences>
124+
</Link>
125+
</ItemDefinitionGroup>
126+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
127+
<ClCompile>
128+
<WarningLevel>Level3</WarningLevel>
129+
<PrecompiledHeader>
130+
</PrecompiledHeader>
131+
<Optimization>MaxSpeed</Optimization>
132+
<FunctionLevelLinking>true</FunctionLevelLinking>
133+
<IntrinsicFunctions>true</IntrinsicFunctions>
134+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;DDPLUGINOPENCSRSS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
135+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
136+
</ClCompile>
137+
<Link>
138+
<SubSystem>Windows</SubSystem>
139+
<GenerateDebugInformation>true</GenerateDebugInformation>
140+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
141+
<OptimizeReferences>true</OptimizeReferences>
142+
</Link>
143+
</ItemDefinitionGroup>
144+
<ItemGroup>
145+
<ClCompile Include="DLLMain.cpp" />
146+
</ItemGroup>
147+
<ItemGroup>
148+
<ClInclude Include="DLLMain.h" />
149+
</ItemGroup>
150+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
151+
<ImportGroup Label="ExtensionTargets">
152+
</ImportGroup>
153+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Quelldateien">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Headerdateien">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Ressourcendateien">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="DLLMain.cpp">
19+
<Filter>Quelldateien</Filter>
20+
</ClCompile>
21+
</ItemGroup>
22+
<ItemGroup>
23+
<ClInclude Include="DLLMain.h">
24+
<Filter>Headerdateien</Filter>
25+
</ClInclude>
26+
</ItemGroup>
27+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#include "DLLMain.h"
2+
3+
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
4+
{
5+
return true;
6+
}
7+
8+
__declspec(dllexport) TCHAR* __cdecl PluginName(void)
9+
{
10+
return L"Open CSRSS Process";
11+
}
12+
13+
__declspec(dllexport) char* __cdecl PluginVersion(void)
14+
{
15+
return __DATE__;
16+
}
17+
18+
__declspec(dllexport) TCHAR* __cdecl PluginErrorMessage(void)
19+
{
20+
return sErrorMessage;
21+
}
22+
23+
__declspec(dllexport) DWORD __cdecl PluginDebugCheck(int iWinVer)
24+
{
25+
HANDLE hProcessSnap = NULL,hProc = NULL;
26+
PROCESSENTRY32W pe32w;
27+
bool bDebugged = false;
28+
29+
hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
30+
if(hProcessSnap != INVALID_HANDLE_VALUE)
31+
{
32+
pe32w.dwSize = sizeof(PROCESSENTRY32W);
33+
if(Process32First(hProcessSnap,&pe32w))
34+
{
35+
do
36+
{
37+
if(wcsstr(pe32w.szExeFile,L"csrss.exe") != NULL)
38+
{
39+
hProc = OpenProcess(PROCESS_ALL_ACCESS,false,pe32w.th32ProcessID);
40+
41+
if(hProc != INVALID_HANDLE_VALUE)
42+
{
43+
bDebugged = true;
44+
CloseHandle(hProc);
45+
}
46+
}
47+
} while(Process32Next(hProcessSnap,&pe32w));
48+
}
49+
CloseHandle(hProcessSnap);
50+
}
51+
else
52+
{
53+
sErrorMessage = TEXT("CreateToolhelp32Snapshot: invalid handle");
54+
return -1;
55+
}
56+
return bDebugged;
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <Windows.h>
2+
#include <tlhelp32.h>
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
__declspec(dllexport) TCHAR* __cdecl PluginName(void);
9+
__declspec(dllexport) char* __cdecl PluginVersion(void);
10+
__declspec(dllexport) TCHAR* __cdecl PluginErrorMessage(void);
11+
__declspec(dllexport) DWORD __cdecl PluginDebugCheck(int iWinVer);
12+
13+
#ifdef __cplusplus
14+
}
15+
#endif
16+
17+
TCHAR* sErrorMessage;

0 commit comments

Comments
 (0)