From a0ca51b5683b464d759c6398c1a72211e4976871 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 19 Sep 2019 20:24:09 +0200 Subject: added TestDLL suitable for manual mapping and integration test skeleton --- TestDLL/TestDLL.cpp | 6 ++ TestDLL/TestDLL.vcxproj | 171 ++++++++++++++++++++++++++++++++++++++++ TestDLL/TestDLL.vcxproj.filters | 36 +++++++++ TestDLL/dllmain.cpp | 23 ++++++ TestDLL/stdafx.cpp | 1 + TestDLL/stdafx.h | 16 ++++ TestDLL/targetver.h | 8 ++ 7 files changed, 261 insertions(+) create mode 100644 TestDLL/TestDLL.cpp create mode 100644 TestDLL/TestDLL.vcxproj create mode 100644 TestDLL/TestDLL.vcxproj.filters create mode 100644 TestDLL/dllmain.cpp create mode 100644 TestDLL/stdafx.cpp create mode 100644 TestDLL/stdafx.h create mode 100644 TestDLL/targetver.h (limited to 'TestDLL') diff --git a/TestDLL/TestDLL.cpp b/TestDLL/TestDLL.cpp new file mode 100644 index 0000000..a3aa76f --- /dev/null +++ b/TestDLL/TestDLL.cpp @@ -0,0 +1,6 @@ +// TestDLL.cpp : Defines the exported functions for the DLL application. +// + +#include "stdafx.h" + + diff --git a/TestDLL/TestDLL.vcxproj b/TestDLL/TestDLL.vcxproj new file mode 100644 index 0000000..0dc46b5 --- /dev/null +++ b/TestDLL/TestDLL.vcxproj @@ -0,0 +1,171 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {E27E6F2C-154E-46AF-BED4-78D50C751565} + Win32Proj + TestDLL + 10.0.17763.0 + + + + DynamicLibrary + true + v141 + Unicode + + + DynamicLibrary + false + v141 + true + Unicode + + + DynamicLibrary + true + v141 + Unicode + false + + + DynamicLibrary + false + v141 + true + Unicode + false + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + Use + Level3 + Disabled + true + _DEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + MultiThreadedDLL + + + Windows + true + $(VCToolsInstallDir)lib\x64;$(OutputPath);%(AdditionalLibraryDirectories) + + + + + Use + Level3 + Disabled + true + WIN32;_DEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Use + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Use + Level3 + MaxSpeed + true + true + true + NDEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + $(VCToolsInstallDir)lib\x64;$(OutputPath);%(AdditionalLibraryDirectories) + + + + + + + + + + Create + Create + Create + Create + + + + + + + \ No newline at end of file diff --git a/TestDLL/TestDLL.vcxproj.filters b/TestDLL/TestDLL.vcxproj.filters new file mode 100644 index 0000000..a11e11a --- /dev/null +++ b/TestDLL/TestDLL.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;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 + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/TestDLL/dllmain.cpp b/TestDLL/dllmain.cpp new file mode 100644 index 0000000..6d84f90 --- /dev/null +++ b/TestDLL/dllmain.cpp @@ -0,0 +1,23 @@ +// dllmain.cpp : Defines the entry point for the DLL application. +#include "stdafx.h" + +BOOL APIENTRY DllMain(HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved +) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + + return MessageBoxA(NULL, + "DllMain from TestDLL", + "TestDLL Notification", + MB_OK | MB_ICONINFORMATION) == IDOK ? TRUE : FALSE; +} + diff --git a/TestDLL/stdafx.cpp b/TestDLL/stdafx.cpp new file mode 100644 index 0000000..fd4f341 --- /dev/null +++ b/TestDLL/stdafx.cpp @@ -0,0 +1 @@ +#include "stdafx.h" diff --git a/TestDLL/stdafx.h b/TestDLL/stdafx.h new file mode 100644 index 0000000..f380517 --- /dev/null +++ b/TestDLL/stdafx.h @@ -0,0 +1,16 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +// Windows Header Files +#include + + + +// reference additional headers your program requires here diff --git a/TestDLL/targetver.h b/TestDLL/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/TestDLL/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include -- cgit v1.2.3