diff --git a/.gitignore b/.gitignore index 222f2ec..a855e32 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vs kdmapper/x64 kdmapper/kdmapper.vcxproj.user -x64 \ No newline at end of file +x64 +HelloWorld/.vs \ No newline at end of file diff --git a/HelloWorld/HelloWorld.sln b/HelloWorld/HelloWorld.sln new file mode 100644 index 0000000..cac0bd4 --- /dev/null +++ b/HelloWorld/HelloWorld.sln @@ -0,0 +1,35 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32929.385 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloWorld", "HelloWorld.vcxproj", "{5A13DEBE-516A-40EF-AA23-FB4C91BD0721}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM64 = Debug|ARM64 + Debug|x64 = Debug|x64 + Release|ARM64 = Release|ARM64 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Debug|ARM64.Build.0 = Debug|ARM64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Debug|ARM64.Deploy.0 = Debug|ARM64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Debug|x64.ActiveCfg = Debug|x64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Debug|x64.Build.0 = Debug|x64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Debug|x64.Deploy.0 = Debug|x64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Release|ARM64.ActiveCfg = Release|ARM64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Release|ARM64.Build.0 = Release|ARM64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Release|ARM64.Deploy.0 = Release|ARM64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Release|x64.ActiveCfg = Release|x64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Release|x64.Build.0 = Release|x64 + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721}.Release|x64.Deploy.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {27A535C3-8DEE-4C17-86BE-F38E7690B38D} + EndGlobalSection +EndGlobal diff --git a/HelloWorld/HelloWorld.vcxproj b/HelloWorld/HelloWorld.vcxproj new file mode 100644 index 0000000..8dbf8d0 --- /dev/null +++ b/HelloWorld/HelloWorld.vcxproj @@ -0,0 +1,120 @@ + + + + + Debug + x64 + + + Release + x64 + + + Debug + ARM64 + + + Release + ARM64 + + + + {5A13DEBE-516A-40EF-AA23-FB4C91BD0721} + {1bc93793-694f-48fe-9372-81e2b05556fd} + v4.5 + 12.0 + Debug + x64 + HelloWorld + + + + Windows10 + true + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + + + Windows10 + false + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + + + Windows10 + true + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + + + Windows10 + false + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + + + + + + + + + + + DbgengKernelDebugger + false + + + DbgengKernelDebugger + false + + + DbgengKernelDebugger + + + DbgengKernelDebugger + + + + sha256 + + + CustomDriverEntry + + + + + sha256 + + + CustomDriverEntry + + + + + sha256 + + + + + sha256 + + + + + + + + + + + + \ No newline at end of file diff --git a/HelloWorld/HelloWorld.vcxproj.filters b/HelloWorld/HelloWorld.vcxproj.filters new file mode 100644 index 0000000..d06bfa5 --- /dev/null +++ b/HelloWorld/HelloWorld.vcxproj.filters @@ -0,0 +1,26 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {8E41214B-6785-4CFE-B992-037D68949A14} + inf;inv;inx;mof;mc; + + + + + Source Files + + + \ No newline at end of file diff --git a/HelloWorld/HelloWorld.vcxproj.user b/HelloWorld/HelloWorld.vcxproj.user new file mode 100644 index 0000000..c9c9b9b --- /dev/null +++ b/HelloWorld/HelloWorld.vcxproj.user @@ -0,0 +1,9 @@ + + + + Off + + + Off + + \ No newline at end of file diff --git a/HelloWorld/main.cpp b/HelloWorld/main.cpp new file mode 100644 index 0000000..028327a --- /dev/null +++ b/HelloWorld/main.cpp @@ -0,0 +1,15 @@ + +#include + +NTSTATUS CustomDriverEntry( + _In_ PDRIVER_OBJECT kdmapperParam1, + _In_ PUNICODE_STRING kdmapperParam2 +) +{ + UNREFERENCED_PARAMETER(kdmapperParam1); + UNREFERENCED_PARAMETER(kdmapperParam2); + + DbgPrintEx(0, 0, "Hello world!"); + + return 0; +} \ No newline at end of file