diff options
| author | Bevan Weiss <bevan.weiss@gmail.com> | 2025-01-03 15:14:49 +1100 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2025-02-11 14:55:39 -0800 |
| commit | c49432f7d39dfe7fedc722b85cd1162bd5096ac1 (patch) | |
| tree | 5f319208fffbb2a9215af627f7ee21a2425ece0e /src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative | |
| parent | 254196975c1f82bf7079a9d56b5417f5da9d8d76 (diff) | |
| download | wix-c49432f7d39dfe7fedc722b85cd1162bd5096ac1.tar.gz wix-c49432f7d39dfe7fedc722b85cd1162bd5096ac1.tar.bz2 wix-c49432f7d39dfe7fedc722b85cd1162bd5096ac1.zip | |
Migrate COM+ E2E tests from raw binaries to source code.
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Diffstat (limited to 'src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative')
18 files changed, 826 insertions, 0 deletions
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.cpp b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.cpp new file mode 100644 index 00000000..0b48727d --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.cpp | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | // Message.cpp : Implementation of CMessage | ||
| 2 | |||
| 3 | #include "pch.h" | ||
| 4 | #include "Message.h" | ||
| 5 | |||
| 6 | |||
| 7 | // CMessage | ||
| 8 | |||
| 9 | HRESULT STDMETHODCALLTYPE CMessage::SayHello(void) | ||
| 10 | { | ||
| 11 | return S_OK; | ||
| 12 | }; \ No newline at end of file | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.h b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.h new file mode 100644 index 00000000..2fbd47d4 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | // Message.h : Declaration of the CMessage | ||
| 2 | |||
| 3 | #pragma once | ||
| 4 | #include "resource.h" // main symbols | ||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | #include "TestComponentNative_i.h" | ||
| 9 | |||
| 10 | |||
| 11 | |||
| 12 | #if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA) | ||
| 13 | #error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms." | ||
| 14 | #endif | ||
| 15 | |||
| 16 | using namespace ATL; | ||
| 17 | |||
| 18 | |||
| 19 | // CMessage | ||
| 20 | |||
| 21 | class ATL_NO_VTABLE CMessage : | ||
| 22 | public CComObjectRootEx<CComSingleThreadModel>, | ||
| 23 | public CComCoClass<CMessage, &CLSID_Message>, | ||
| 24 | public IDispatchImpl<IMessage, &IID_IMessage, &LIBID_TestComponentNativeLib, /*wMajor =*/ 1, /*wMinor =*/ 0> | ||
| 25 | { | ||
| 26 | public: | ||
| 27 | CMessage() | ||
| 28 | { | ||
| 29 | } | ||
| 30 | HRESULT STDMETHODCALLTYPE CMessage::SayHello(void); | ||
| 31 | DECLARE_REGISTRY_RESOURCEID(106) | ||
| 32 | |||
| 33 | |||
| 34 | BEGIN_COM_MAP(CMessage) | ||
| 35 | COM_INTERFACE_ENTRY(IMessage) | ||
| 36 | COM_INTERFACE_ENTRY(IDispatch) | ||
| 37 | END_COM_MAP() | ||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | DECLARE_PROTECT_FINAL_CONSTRUCT() | ||
| 42 | |||
| 43 | HRESULT FinalConstruct() | ||
| 44 | { | ||
| 45 | return S_OK; | ||
| 46 | } | ||
| 47 | |||
| 48 | void FinalRelease() | ||
| 49 | { | ||
| 50 | } | ||
| 51 | |||
| 52 | public: | ||
| 53 | |||
| 54 | |||
| 55 | |||
| 56 | }; | ||
| 57 | |||
| 58 | OBJECT_ENTRY_AUTO(__uuidof(Message), CMessage) | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.rgs b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.rgs new file mode 100644 index 00000000..94a89f1f --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/Message.rgs | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | HKCR | ||
| 2 | { | ||
| 3 | NoRemove CLSID | ||
| 4 | { | ||
| 5 | ForceRemove {8b4c3a90-762c-465b-abc5-81cb3cc5e464} = s 'Message class' | ||
| 6 | { | ||
| 7 | ForceRemove Programmable | ||
| 8 | InprocServer32 = s '%MODULE%' | ||
| 9 | { | ||
| 10 | val ThreadingModel = s 'Apartment' | ||
| 11 | } | ||
| 12 | TypeLib = s '{8aaadab2-ac31-4618-ad2b-6b71d2a318eb}' | ||
| 13 | Version = s '1.0' | ||
| 14 | } | ||
| 15 | } | ||
| 16 | } | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.cpp b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.cpp new file mode 100644 index 00000000..1a9fcb32 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.cpp | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | // TestComponentNative.cpp : Implementation of DLL Exports. | ||
| 2 | |||
| 3 | |||
| 4 | #include "pch.h" | ||
| 5 | #include "framework.h" | ||
| 6 | #include "resource.h" | ||
| 7 | #include "TestComponentNative_i.h" | ||
| 8 | #include "dllmain.h" | ||
| 9 | |||
| 10 | |||
| 11 | using namespace ATL; | ||
| 12 | |||
| 13 | // Used to determine whether the DLL can be unloaded by OLE. | ||
| 14 | _Use_decl_annotations_ | ||
| 15 | STDAPI DllCanUnloadNow(void) | ||
| 16 | { | ||
| 17 | return _AtlModule.DllCanUnloadNow(); | ||
| 18 | } | ||
| 19 | |||
| 20 | // Returns a class factory to create an object of the requested type. | ||
| 21 | _Use_decl_annotations_ | ||
| 22 | STDAPI DllGetClassObject(_In_ REFCLSID rclsid, _In_ REFIID riid, _Outptr_ LPVOID* ppv) | ||
| 23 | { | ||
| 24 | return _AtlModule.DllGetClassObject(rclsid, riid, ppv); | ||
| 25 | } | ||
| 26 | |||
| 27 | // DllRegisterServer - Adds entries to the system registry. | ||
| 28 | _Use_decl_annotations_ | ||
| 29 | STDAPI DllRegisterServer(void) | ||
| 30 | { | ||
| 31 | // registers object, typelib and all interfaces in typelib | ||
| 32 | HRESULT hr = _AtlModule.DllRegisterServer(); | ||
| 33 | return hr; | ||
| 34 | } | ||
| 35 | |||
| 36 | // DllUnregisterServer - Removes entries from the system registry. | ||
| 37 | _Use_decl_annotations_ | ||
| 38 | STDAPI DllUnregisterServer(void) | ||
| 39 | { | ||
| 40 | HRESULT hr = _AtlModule.DllUnregisterServer(); | ||
| 41 | return hr; | ||
| 42 | } | ||
| 43 | |||
| 44 | // DllInstall - Adds/Removes entries to the system registry per user per machine. | ||
| 45 | STDAPI DllInstall(BOOL bInstall, _In_opt_ LPCWSTR pszCmdLine) | ||
| 46 | { | ||
| 47 | HRESULT hr = E_FAIL; | ||
| 48 | static const wchar_t szUserSwitch[] = L"user"; | ||
| 49 | |||
| 50 | if (pszCmdLine != nullptr) | ||
| 51 | { | ||
| 52 | if (_wcsnicmp(pszCmdLine, szUserSwitch, _countof(szUserSwitch)) == 0) | ||
| 53 | { | ||
| 54 | ATL::AtlSetPerUserRegistration(true); | ||
| 55 | } | ||
| 56 | } | ||
| 57 | |||
| 58 | if (bInstall) | ||
| 59 | { | ||
| 60 | hr = DllRegisterServer(); | ||
| 61 | if (FAILED(hr)) | ||
| 62 | { | ||
| 63 | DllUnregisterServer(); | ||
| 64 | } | ||
| 65 | } | ||
| 66 | else | ||
| 67 | { | ||
| 68 | hr = DllUnregisterServer(); | ||
| 69 | } | ||
| 70 | |||
| 71 | return hr; | ||
| 72 | } | ||
| 73 | |||
| 74 | |||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.def b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.def new file mode 100644 index 00000000..1c707604 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.def | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | ; TestComponentNative.def : Declares the module parameters. | ||
| 2 | |||
| 3 | LIBRARY | ||
| 4 | |||
| 5 | EXPORTS | ||
| 6 | DllCanUnloadNow PRIVATE | ||
| 7 | DllGetClassObject PRIVATE | ||
| 8 | DllRegisterServer PRIVATE | ||
| 9 | DllUnregisterServer PRIVATE | ||
| 10 | DllInstall PRIVATE | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.idl b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.idl new file mode 100644 index 00000000..12d77921 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.idl | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | // TestComponentNative.idl : IDL source for TestComponentNative | ||
| 2 | // | ||
| 3 | |||
| 4 | // This file will be processed by the MIDL tool to | ||
| 5 | // produce the type library (TestComponentNative.tlb) and marshalling code. | ||
| 6 | |||
| 7 | import "oaidl.idl"; | ||
| 8 | import "ocidl.idl"; | ||
| 9 | |||
| 10 | [ | ||
| 11 | object, | ||
| 12 | uuid(b734850b-d5c9-4903-bea3-4c46ee544ed8), | ||
| 13 | dual, | ||
| 14 | nonextensible, | ||
| 15 | pointer_default(unique) | ||
| 16 | ] | ||
| 17 | interface IMessage : IDispatch | ||
| 18 | { | ||
| 19 | [id(1), helpstring("hello")] HRESULT SayHello(); | ||
| 20 | }; | ||
| 21 | [ | ||
| 22 | uuid(8aaadab2-ac31-4618-ad2b-6b71d2a318eb), | ||
| 23 | version(1.0), | ||
| 24 | ] | ||
| 25 | library TestComponentNativeLib | ||
| 26 | { | ||
| 27 | importlib("stdole2.tlb"); | ||
| 28 | [ | ||
| 29 | uuid(8b4c3a90-762c-465b-abc5-81cb3cc5e464) | ||
| 30 | ] | ||
| 31 | coclass Message | ||
| 32 | { | ||
| 33 | [default] interface IMessage; | ||
| 34 | }; | ||
| 35 | }; | ||
| 36 | |||
| 37 | import "shobjidl.idl"; | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.rc b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.rc new file mode 100644 index 00000000..87f4785e --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.rc | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | // Microsoft Visual C++ generated resource script. | ||
| 2 | // | ||
| 3 | #include "resource.h" | ||
| 4 | |||
| 5 | #define APSTUDIO_READONLY_SYMBOLS | ||
| 6 | ///////////////////////////////////////////////////////////////////////////// | ||
| 7 | // | ||
| 8 | // Generated from the TEXTINCLUDE 2 resource. | ||
| 9 | // | ||
| 10 | #ifndef APSTUDIO_INVOKED | ||
| 11 | #include "targetver.h" | ||
| 12 | #endif | ||
| 13 | #include "winres.h" | ||
| 14 | #include "verrsrc.h" | ||
| 15 | |||
| 16 | ///////////////////////////////////////////////////////////////////////////// | ||
| 17 | #undef APSTUDIO_READONLY_SYMBOLS | ||
| 18 | |||
| 19 | ///////////////////////////////////////////////////////////////////////////// | ||
| 20 | // English (United States) resources | ||
| 21 | |||
| 22 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) | ||
| 23 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US | ||
| 24 | |||
| 25 | #ifdef APSTUDIO_INVOKED | ||
| 26 | ///////////////////////////////////////////////////////////////////////////// | ||
| 27 | // | ||
| 28 | // TEXTINCLUDE | ||
| 29 | // | ||
| 30 | |||
| 31 | 1 TEXTINCLUDE | ||
| 32 | BEGIN | ||
| 33 | "resource.h\0" | ||
| 34 | END | ||
| 35 | |||
| 36 | 2 TEXTINCLUDE | ||
| 37 | BEGIN | ||
| 38 | "#ifndef APSTUDIO_INVOKED\r\n" | ||
| 39 | "#include ""targetver.h""\r\n" | ||
| 40 | "#endif\r\n" | ||
| 41 | "#include ""winres.h""\r\n" | ||
| 42 | "#include ""verrsrc.h""\r\n" | ||
| 43 | "\0" | ||
| 44 | END | ||
| 45 | |||
| 46 | 3 TEXTINCLUDE | ||
| 47 | BEGIN | ||
| 48 | "1 TYPELIB ""TestComponentNative.tlb""\r\n" | ||
| 49 | "\0" | ||
| 50 | END | ||
| 51 | |||
| 52 | #endif // APSTUDIO_INVOKED | ||
| 53 | |||
| 54 | |||
| 55 | ///////////////////////////////////////////////////////////////////////////// | ||
| 56 | // | ||
| 57 | // Version | ||
| 58 | // | ||
| 59 | // REMOVED: This is provided by WiX build system overrides | ||
| 60 | |||
| 61 | //VS_VERSION_INFO VERSIONINFO | ||
| 62 | // FILEVERSION 1,0,0,1 | ||
| 63 | // PRODUCTVERSION 1,0,0,1 | ||
| 64 | // FILEFLAGSMASK 0x3fL | ||
| 65 | //#ifdef _DEBUG | ||
| 66 | // FILEFLAGS 0x1L | ||
| 67 | //#else | ||
| 68 | // FILEFLAGS 0x0L | ||
| 69 | //#endif | ||
| 70 | // FILEOS 0x40004L | ||
| 71 | // FILETYPE 0x2L | ||
| 72 | // FILESUBTYPE 0x0L | ||
| 73 | //BEGIN | ||
| 74 | // BLOCK "StringFileInfo" | ||
| 75 | // BEGIN | ||
| 76 | // BLOCK "040904B0" | ||
| 77 | // BEGIN | ||
| 78 | // VALUE "CompanyName", "TODO: <Company name>" | ||
| 79 | // VALUE "FileDescription", "TODO: <File description>" | ||
| 80 | // VALUE "FileVersion", "1.0.0.1" | ||
| 81 | // VALUE "LegalCopyright", "TODO: (c) <Company name>. All rights reserved." | ||
| 82 | // VALUE "InternalName", "TestComponentNative.dll" | ||
| 83 | // VALUE "OriginalFilename", "TestComponentNative.dll" | ||
| 84 | // VALUE "ProductName", "TODO: <Product name>" | ||
| 85 | // VALUE "ProductVersion", "1.0.0.1" | ||
| 86 | // END | ||
| 87 | // END | ||
| 88 | // BLOCK "VarFileInfo" | ||
| 89 | // BEGIN | ||
| 90 | // VALUE "Translation", 0x409, 1200 | ||
| 91 | // END | ||
| 92 | //END | ||
| 93 | |||
| 94 | |||
| 95 | ///////////////////////////////////////////////////////////////////////////// | ||
| 96 | // | ||
| 97 | // REGISTRY | ||
| 98 | // | ||
| 99 | |||
| 100 | IDR_TESTCOMPONENTNATIVE REGISTRY "TestComponentNative.rgs" | ||
| 101 | |||
| 102 | |||
| 103 | ///////////////////////////////////////////////////////////////////////////// | ||
| 104 | // | ||
| 105 | // String Table | ||
| 106 | // | ||
| 107 | |||
| 108 | STRINGTABLE | ||
| 109 | BEGIN | ||
| 110 | IDS_PROJNAME "TestComponentNative" | ||
| 111 | END | ||
| 112 | |||
| 113 | #endif // English (United States) resources | ||
| 114 | ///////////////////////////////////////////////////////////////////////////// | ||
| 115 | |||
| 116 | |||
| 117 | ///////////////////////////////////////////////////////////////////////////// | ||
| 118 | // English (United Kingdom) resources | ||
| 119 | |||
| 120 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG) | ||
| 121 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK | ||
| 122 | |||
| 123 | ///////////////////////////////////////////////////////////////////////////// | ||
| 124 | // | ||
| 125 | // REGISTRY | ||
| 126 | // | ||
| 127 | |||
| 128 | IDR_MESSAGE REGISTRY "Message.rgs" | ||
| 129 | |||
| 130 | #endif // English (United Kingdom) resources | ||
| 131 | ///////////////////////////////////////////////////////////////////////////// | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | #ifndef APSTUDIO_INVOKED | ||
| 136 | ///////////////////////////////////////////////////////////////////////////// | ||
| 137 | // | ||
| 138 | // Generated from the TEXTINCLUDE 3 resource. | ||
| 139 | // | ||
| 140 | 1 TYPELIB "TestComponentNative.tlb" | ||
| 141 | |||
| 142 | ///////////////////////////////////////////////////////////////////////////// | ||
| 143 | #endif // not APSTUDIO_INVOKED | ||
| 144 | |||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.rgs b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.rgs new file mode 100644 index 00000000..e7d37400 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.rgs | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | HKCR | ||
| 2 | { | ||
| 3 | } | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj new file mode 100644 index 00000000..d2e7b2b6 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj | |||
| @@ -0,0 +1,291 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Project DefaultTargets="Build" 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="Release|Win32"> | ||
| 9 | <Configuration>Release</Configuration> | ||
| 10 | <Platform>Win32</Platform> | ||
| 11 | </ProjectConfiguration> | ||
| 12 | <ProjectConfiguration Include="Debug|x64"> | ||
| 13 | <Configuration>Debug</Configuration> | ||
| 14 | <Platform>x64</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 | <VCProjectVersion>17.0</VCProjectVersion> | ||
| 23 | <ProjectGuid>{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}</ProjectGuid> | ||
| 24 | <Keyword>AtlProj</Keyword> | ||
| 25 | <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | ||
| 26 | </PropertyGroup> | ||
| 27 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
| 28 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
| 29 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
| 30 | <UseDebugLibraries>true</UseDebugLibraries> | ||
| 31 | <PlatformToolset>v143</PlatformToolset> | ||
| 32 | <CharacterSet>Unicode</CharacterSet> | ||
| 33 | </PropertyGroup> | ||
| 34 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
| 35 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
| 36 | <UseDebugLibraries>false</UseDebugLibraries> | ||
| 37 | <PlatformToolset>v143</PlatformToolset> | ||
| 38 | <CharacterSet>Unicode</CharacterSet> | ||
| 39 | </PropertyGroup> | ||
| 40 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
| 41 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
| 42 | <UseDebugLibraries>true</UseDebugLibraries> | ||
| 43 | <PlatformToolset>v143</PlatformToolset> | ||
| 44 | <CharacterSet>Unicode</CharacterSet> | ||
| 45 | </PropertyGroup> | ||
| 46 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
| 47 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
| 48 | <UseDebugLibraries>false</UseDebugLibraries> | ||
| 49 | <PlatformToolset>v143</PlatformToolset> | ||
| 50 | <CharacterSet>Unicode</CharacterSet> | ||
| 51 | </PropertyGroup> | ||
| 52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
| 53 | <ImportGroup Label="ExtensionSettings"> | ||
| 54 | </ImportGroup> | ||
| 55 | <ImportGroup Label="Shared"> | ||
| 56 | </ImportGroup> | ||
| 57 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
| 58 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
| 59 | </ImportGroup> | ||
| 60 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
| 61 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
| 62 | </ImportGroup> | ||
| 63 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
| 64 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
| 65 | </ImportGroup> | ||
| 66 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
| 67 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
| 68 | </ImportGroup> | ||
| 69 | <PropertyGroup Label="UserMacros" /> | ||
| 70 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
| 71 | <IgnoreImportLibrary>true</IgnoreImportLibrary> | ||
| 72 | <LinkIncremental>true</LinkIncremental> | ||
| 73 | <OutDir>$(ProjectDir)bin\$(Configuration)\</OutDir> | ||
| 74 | <IntDir>$(ProjectDir)obj\$(Configuration)\</IntDir> | ||
| 75 | </PropertyGroup> | ||
| 76 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
| 77 | <IgnoreImportLibrary>true</IgnoreImportLibrary> | ||
| 78 | <LinkIncremental>true</LinkIncremental> | ||
| 79 | <OutDir>$(ProjectDir)bin\$(Configuration)\</OutDir> | ||
| 80 | <IntDir>$(ProjectDir)obj\$(Configuration)\</IntDir> | ||
| 81 | </PropertyGroup> | ||
| 82 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
| 83 | <IgnoreImportLibrary>true</IgnoreImportLibrary> | ||
| 84 | <LinkIncremental>false</LinkIncremental> | ||
| 85 | <OutDir>$(ProjectDir)bin\$(Platform)\$(Configuration)\</OutDir> | ||
| 86 | <IntDir>$(ProjectDir)obj\$(Platform)\$(Configuration)\</IntDir> | ||
| 87 | </PropertyGroup> | ||
| 88 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
| 89 | <IgnoreImportLibrary>true</IgnoreImportLibrary> | ||
| 90 | <LinkIncremental>false</LinkIncremental> | ||
| 91 | <OutDir>$(ProjectDir)bin\$(Platform)\$(Configuration)\</OutDir> | ||
| 92 | <IntDir>$(ProjectDir)obj\$(Platform)\$(Configuration)\</IntDir> | ||
| 93 | </PropertyGroup> | ||
| 94 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
| 95 | <ClCompile> | ||
| 96 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 97 | <WarningLevel>Level3</WarningLevel> | ||
| 98 | <Optimization>Disabled</Optimization> | ||
| 99 | <PreprocessorDefinitions>_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 100 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
| 101 | <SDLCheck>true</SDLCheck> | ||
| 102 | <ControlFlowGuard>false</ControlFlowGuard> | ||
| 103 | </ClCompile> | ||
| 104 | <Midl> | ||
| 105 | <MkTypLibCompatible>false</MkTypLibCompatible> | ||
| 106 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 107 | <HeaderFileName>TestComponentNative_i.h</HeaderFileName> | ||
| 108 | <InterfaceIdentifierFileName>TestComponentNative_i.c</InterfaceIdentifierFileName> | ||
| 109 | <ProxyFileName>TestComponentNative_p.c</ProxyFileName> | ||
| 110 | <GenerateStublessProxies>true</GenerateStublessProxies> | ||
| 111 | <TypeLibraryName>$(IntDir)TestComponentNative.tlb</TypeLibraryName> | ||
| 112 | <DllDataFileName /> | ||
| 113 | <ValidateAllParameters>true</ValidateAllParameters> | ||
| 114 | </Midl> | ||
| 115 | <ResourceCompile> | ||
| 116 | <Culture>0x0409</Culture> | ||
| 117 | <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 118 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 119 | </ResourceCompile> | ||
| 120 | <Link> | ||
| 121 | <SubSystem>Windows</SubSystem> | ||
| 122 | <ModuleDefinitionFile>.\TestComponentNative.def</ModuleDefinitionFile> | ||
| 123 | <RegisterOutput>false</RegisterOutput> | ||
| 124 | </Link> | ||
| 125 | </ItemDefinitionGroup> | ||
| 126 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
| 127 | <ClCompile> | ||
| 128 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 129 | <WarningLevel>Level3</WarningLevel> | ||
| 130 | <Optimization>Disabled</Optimization> | ||
| 131 | <PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 132 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
| 133 | <SDLCheck>true</SDLCheck> | ||
| 134 | <ControlFlowGuard>false</ControlFlowGuard> | ||
| 135 | </ClCompile> | ||
| 136 | <Midl> | ||
| 137 | <MkTypLibCompatible>false</MkTypLibCompatible> | ||
| 138 | <TargetEnvironment>Win32</TargetEnvironment> | ||
| 139 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 140 | <HeaderFileName>TestComponentNative_i.h</HeaderFileName> | ||
| 141 | <InterfaceIdentifierFileName>TestComponentNative_i.c</InterfaceIdentifierFileName> | ||
| 142 | <ProxyFileName>TestComponentNative_p.c</ProxyFileName> | ||
| 143 | <GenerateStublessProxies>true</GenerateStublessProxies> | ||
| 144 | <TypeLibraryName>$(IntDir)TestComponentNative.tlb</TypeLibraryName> | ||
| 145 | <DllDataFileName /> | ||
| 146 | <ValidateAllParameters>true</ValidateAllParameters> | ||
| 147 | </Midl> | ||
| 148 | <ResourceCompile> | ||
| 149 | <Culture>0x0409</Culture> | ||
| 150 | <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 151 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 152 | </ResourceCompile> | ||
| 153 | <Link> | ||
| 154 | <SubSystem>Windows</SubSystem> | ||
| 155 | <ModuleDefinitionFile>.\TestComponentNative.def</ModuleDefinitionFile> | ||
| 156 | <RegisterOutput>false</RegisterOutput> | ||
| 157 | </Link> | ||
| 158 | </ItemDefinitionGroup> | ||
| 159 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
| 160 | <ClCompile> | ||
| 161 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 162 | <WarningLevel>Level3</WarningLevel> | ||
| 163 | <Optimization>MaxSpeed</Optimization> | ||
| 164 | <PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 165 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
| 166 | <SDLCheck>true</SDLCheck> | ||
| 167 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
| 168 | <ControlFlowGuard>false</ControlFlowGuard> | ||
| 169 | </ClCompile> | ||
| 170 | <Midl> | ||
| 171 | <MkTypLibCompatible>false</MkTypLibCompatible> | ||
| 172 | <TargetEnvironment>Win32</TargetEnvironment> | ||
| 173 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 174 | <HeaderFileName>TestComponentNative_i.h</HeaderFileName> | ||
| 175 | <InterfaceIdentifierFileName>TestComponentNative_i.c</InterfaceIdentifierFileName> | ||
| 176 | <ProxyFileName>TestComponentNative_p.c</ProxyFileName> | ||
| 177 | <GenerateStublessProxies>true</GenerateStublessProxies> | ||
| 178 | <TypeLibraryName>$(IntDir)TestComponentNative.tlb</TypeLibraryName> | ||
| 179 | <DllDataFileName /> | ||
| 180 | <ValidateAllParameters>true</ValidateAllParameters> | ||
| 181 | </Midl> | ||
| 182 | <ResourceCompile> | ||
| 183 | <Culture>0x0409</Culture> | ||
| 184 | <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 185 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 186 | </ResourceCompile> | ||
| 187 | <Link> | ||
| 188 | <SubSystem>Windows</SubSystem> | ||
| 189 | <ModuleDefinitionFile>.\TestComponentNative.def</ModuleDefinitionFile> | ||
| 190 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
| 191 | <OptimizeReferences>true</OptimizeReferences> | ||
| 192 | <RegisterOutput>false</RegisterOutput> | ||
| 193 | </Link> | ||
| 194 | </ItemDefinitionGroup> | ||
| 195 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
| 196 | <ClCompile> | ||
| 197 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 198 | <WarningLevel>Level3</WarningLevel> | ||
| 199 | <Optimization>MaxSpeed</Optimization> | ||
| 200 | <PreprocessorDefinitions>_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 201 | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
| 202 | <SDLCheck>true</SDLCheck> | ||
| 203 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
| 204 | <ControlFlowGuard>false</ControlFlowGuard> | ||
| 205 | </ClCompile> | ||
| 206 | <Midl> | ||
| 207 | <MkTypLibCompatible>false</MkTypLibCompatible> | ||
| 208 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 209 | <HeaderFileName>TestComponentNative_i.h</HeaderFileName> | ||
| 210 | <InterfaceIdentifierFileName>TestComponentNative_i.c</InterfaceIdentifierFileName> | ||
| 211 | <ProxyFileName>TestComponentNative_p.c</ProxyFileName> | ||
| 212 | <GenerateStublessProxies>true</GenerateStublessProxies> | ||
| 213 | <TypeLibraryName>$(IntDir)TestComponentNative.tlb</TypeLibraryName> | ||
| 214 | <DllDataFileName /> | ||
| 215 | <ValidateAllParameters>true</ValidateAllParameters> | ||
| 216 | </Midl> | ||
| 217 | <ResourceCompile> | ||
| 218 | <Culture>0x0409</Culture> | ||
| 219 | <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 220 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 221 | </ResourceCompile> | ||
| 222 | <Link> | ||
| 223 | <SubSystem>Windows</SubSystem> | ||
| 224 | <ModuleDefinitionFile>.\TestComponentNative.def</ModuleDefinitionFile> | ||
| 225 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
| 226 | <OptimizeReferences>true</OptimizeReferences> | ||
| 227 | <RegisterOutput>false</RegisterOutput> | ||
| 228 | </Link> | ||
| 229 | </ItemDefinitionGroup> | ||
| 230 | <ItemGroup> | ||
| 231 | <ClInclude Include="dllmain.h" /> | ||
| 232 | <ClInclude Include="framework.h" /> | ||
| 233 | <ClInclude Include="Message.h" /> | ||
| 234 | <ClInclude Include="pch.h" /> | ||
| 235 | <ClInclude Include="Resource.h" /> | ||
| 236 | <ClInclude Include="targetver.h" /> | ||
| 237 | <ClInclude Include="TestComponentNative_i.h" /> | ||
| 238 | </ItemGroup> | ||
| 239 | <ItemGroup> | ||
| 240 | <ClCompile Include="dllmain.cpp"> | ||
| 241 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged> | ||
| 242 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</CompileAsManaged> | ||
| 243 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged> | ||
| 244 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</CompileAsManaged> | ||
| 245 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
| 246 | </PrecompiledHeader> | ||
| 247 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
| 248 | </PrecompiledHeader> | ||
| 249 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
| 250 | </PrecompiledHeader> | ||
| 251 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
| 252 | </PrecompiledHeader> | ||
| 253 | </ClCompile> | ||
| 254 | <ClCompile Include="Message.cpp" /> | ||
| 255 | <ClCompile Include="pch.cpp"> | ||
| 256 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader> | ||
| 257 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader> | ||
| 258 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader> | ||
| 259 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader> | ||
| 260 | </ClCompile> | ||
| 261 | <ClCompile Include="TestComponentNative.cpp" /> | ||
| 262 | <ClCompile Include="TestComponentNative_i.c"> | ||
| 263 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged> | ||
| 264 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</CompileAsManaged> | ||
| 265 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged> | ||
| 266 | <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</CompileAsManaged> | ||
| 267 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
| 268 | </PrecompiledHeader> | ||
| 269 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
| 270 | </PrecompiledHeader> | ||
| 271 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
| 272 | </PrecompiledHeader> | ||
| 273 | <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
| 274 | </PrecompiledHeader> | ||
| 275 | </ClCompile> | ||
| 276 | </ItemGroup> | ||
| 277 | <ItemGroup> | ||
| 278 | <ResourceCompile Include="TestComponentNative.rc" /> | ||
| 279 | </ItemGroup> | ||
| 280 | <ItemGroup> | ||
| 281 | <None Include="Message.rgs" /> | ||
| 282 | <None Include="TestComponentNative.def" /> | ||
| 283 | <None Include="TestComponentNative.rgs" /> | ||
| 284 | </ItemGroup> | ||
| 285 | <ItemGroup> | ||
| 286 | <Midl Include="TestComponentNative.idl" /> | ||
| 287 | </ItemGroup> | ||
| 288 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
| 289 | <ImportGroup Label="ExtensionTargets"> | ||
| 290 | </ImportGroup> | ||
| 291 | </Project> \ No newline at end of file | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj.filters b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj.filters new file mode 100644 index 00000000..a05a6a8f --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj.filters | |||
| @@ -0,0 +1,82 @@ | |||
| 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="Source Files"> | ||
| 5 | <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> | ||
| 6 | <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> | ||
| 7 | </Filter> | ||
| 8 | <Filter Include="Header Files"> | ||
| 9 | <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> | ||
| 10 | <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> | ||
| 11 | </Filter> | ||
| 12 | <Filter Include="Resource Files"> | ||
| 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 | <Filter Include="Generated Files"> | ||
| 17 | <UniqueIdentifier>{2bfedd2b-d1cd-4377-bc56-e6696fb568b9}</UniqueIdentifier> | ||
| 18 | <SourceControlFiles>False</SourceControlFiles> | ||
| 19 | </Filter> | ||
| 20 | </ItemGroup> | ||
| 21 | <ItemGroup> | ||
| 22 | <ClInclude Include="framework.h"> | ||
| 23 | <Filter>Header Files</Filter> | ||
| 24 | </ClInclude> | ||
| 25 | <ClInclude Include="targetver.h"> | ||
| 26 | <Filter>Header Files</Filter> | ||
| 27 | </ClInclude> | ||
| 28 | <ClInclude Include="Resource.h"> | ||
| 29 | <Filter>Header Files</Filter> | ||
| 30 | </ClInclude> | ||
| 31 | <ClInclude Include="dllmain.h"> | ||
| 32 | <Filter>Header Files</Filter> | ||
| 33 | </ClInclude> | ||
| 34 | <ClInclude Include="TestComponentNative_i.h"> | ||
| 35 | <Filter>Generated Files</Filter> | ||
| 36 | </ClInclude> | ||
| 37 | <ClInclude Include="pch.h"> | ||
| 38 | <Filter>Header Files</Filter> | ||
| 39 | </ClInclude> | ||
| 40 | <ClInclude Include="Message.h"> | ||
| 41 | <Filter>Header Files</Filter> | ||
| 42 | </ClInclude> | ||
| 43 | </ItemGroup> | ||
| 44 | <ItemGroup> | ||
| 45 | <ClCompile Include="TestComponentNative.cpp"> | ||
| 46 | <Filter>Source Files</Filter> | ||
| 47 | </ClCompile> | ||
| 48 | <ClCompile Include="dllmain.cpp"> | ||
| 49 | <Filter>Source Files</Filter> | ||
| 50 | </ClCompile> | ||
| 51 | <ClCompile Include="TestComponentNative_i.c"> | ||
| 52 | <Filter>Generated Files</Filter> | ||
| 53 | </ClCompile> | ||
| 54 | <ClCompile Include="pch.cpp"> | ||
| 55 | <Filter>Source Files</Filter> | ||
| 56 | </ClCompile> | ||
| 57 | <ClCompile Include="Message.cpp"> | ||
| 58 | <Filter>Source Files</Filter> | ||
| 59 | </ClCompile> | ||
| 60 | </ItemGroup> | ||
| 61 | <ItemGroup> | ||
| 62 | <ResourceCompile Include="TestComponentNative.rc"> | ||
| 63 | <Filter>Resource Files</Filter> | ||
| 64 | </ResourceCompile> | ||
| 65 | </ItemGroup> | ||
| 66 | <ItemGroup> | ||
| 67 | <None Include="TestComponentNative.rgs"> | ||
| 68 | <Filter>Resource Files</Filter> | ||
| 69 | </None> | ||
| 70 | <None Include="TestComponentNative.def"> | ||
| 71 | <Filter>Source Files</Filter> | ||
| 72 | </None> | ||
| 73 | <None Include="Message.rgs"> | ||
| 74 | <Filter>Resource Files</Filter> | ||
| 75 | </None> | ||
| 76 | </ItemGroup> | ||
| 77 | <ItemGroup> | ||
| 78 | <Midl Include="TestComponentNative.idl"> | ||
| 79 | <Filter>Source Files</Filter> | ||
| 80 | </Midl> | ||
| 81 | </ItemGroup> | ||
| 82 | </Project> \ No newline at end of file | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNativeps.def b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNativeps.def new file mode 100644 index 00000000..2a4265af --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNativeps.def | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | |||
| 2 | LIBRARY | ||
| 3 | |||
| 4 | EXPORTS | ||
| 5 | DllGetClassObject PRIVATE | ||
| 6 | DllCanUnloadNow PRIVATE | ||
| 7 | DllRegisterServer PRIVATE | ||
| 8 | DllUnregisterServer PRIVATE | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/dllmain.cpp b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/dllmain.cpp new file mode 100644 index 00000000..1cd8a618 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/dllmain.cpp | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // dllmain.cpp : Implementation of DllMain. | ||
| 2 | |||
| 3 | #include "pch.h" | ||
| 4 | #include "framework.h" | ||
| 5 | #include "resource.h" | ||
| 6 | #include "TestComponentNative_i.h" | ||
| 7 | #include "dllmain.h" | ||
| 8 | |||
| 9 | CTestComponentNativeModule _AtlModule; | ||
| 10 | |||
| 11 | // DLL Entry Point | ||
| 12 | extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) | ||
| 13 | { | ||
| 14 | hInstance; | ||
| 15 | return _AtlModule.DllMain(dwReason, lpReserved); | ||
| 16 | } | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/dllmain.h b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/dllmain.h new file mode 100644 index 00000000..62d92dc0 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/dllmain.h | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | // dllmain.h : Declaration of module class. | ||
| 2 | |||
| 3 | class CTestComponentNativeModule : public ATL::CAtlDllModuleT< CTestComponentNativeModule > | ||
| 4 | { | ||
| 5 | public : | ||
| 6 | DECLARE_LIBID(LIBID_TestComponentNativeLib) | ||
| 7 | DECLARE_REGISTRY_APPID_RESOURCEID(IDR_TESTCOMPONENTNATIVE, "{8aaadab2-ac31-4618-ad2b-6b71d2a318eb}") | ||
| 8 | }; | ||
| 9 | |||
| 10 | extern class CTestComponentNativeModule _AtlModule; | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/framework.h b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/framework.h new file mode 100644 index 00000000..bdecff6a --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/framework.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #ifndef STRICT | ||
| 4 | #define STRICT | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #include "targetver.h" | ||
| 8 | |||
| 9 | #define _ATL_APARTMENT_THREADED | ||
| 10 | |||
| 11 | #define _ATL_NO_AUTOMATIC_NAMESPACE | ||
| 12 | |||
| 13 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit | ||
| 14 | |||
| 15 | |||
| 16 | #define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW | ||
| 17 | |||
| 18 | #include "resource.h" | ||
| 19 | #include <atlbase.h> | ||
| 20 | #include <atlcom.h> | ||
| 21 | #include <atlctl.h> | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/pch.cpp b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/pch.cpp new file mode 100644 index 00000000..64b7eef6 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/pch.cpp | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | // pch.cpp: source file corresponding to the pre-compiled header | ||
| 2 | |||
| 3 | #include "pch.h" | ||
| 4 | |||
| 5 | // When you are using pre-compiled headers, this source file is necessary for compilation to succeed. | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/pch.h b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/pch.h new file mode 100644 index 00000000..885d5d62 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/pch.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | // pch.h: This is a precompiled header file. | ||
| 2 | // Files listed below are compiled only once, improving build performance for future builds. | ||
| 3 | // This also affects IntelliSense performance, including code completion and many code browsing features. | ||
| 4 | // However, files listed here are ALL re-compiled if any one of them is updated between builds. | ||
| 5 | // Do not add files here that you will be updating frequently as this negates the performance advantage. | ||
| 6 | |||
| 7 | #ifndef PCH_H | ||
| 8 | #define PCH_H | ||
| 9 | |||
| 10 | // add headers that you want to pre-compile here | ||
| 11 | #include "framework.h" | ||
| 12 | |||
| 13 | #endif //PCH_H | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/resource.h b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/resource.h new file mode 100644 index 00000000..32e500b8 --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/resource.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | //{{NO_DEPENDENCIES}} | ||
| 2 | // Microsoft Visual C++ generated include file. | ||
| 3 | // Used by TestComponentNative.rc | ||
| 4 | // | ||
| 5 | #define IDS_PROJNAME 100 | ||
| 6 | #define IDR_TESTCOMPONENTNATIVE 101 | ||
| 7 | #define IDR_MESSAGE 106 | ||
| 8 | |||
| 9 | // Next default values for new objects | ||
| 10 | // | ||
| 11 | #ifdef APSTUDIO_INVOKED | ||
| 12 | #ifndef APSTUDIO_READONLY_SYMBOLS | ||
| 13 | #define _APS_NEXT_RESOURCE_VALUE 201 | ||
| 14 | #define _APS_NEXT_COMMAND_VALUE 32768 | ||
| 15 | #define _APS_NEXT_CONTROL_VALUE 201 | ||
| 16 | #define _APS_NEXT_SYMED_VALUE 107 | ||
| 17 | #endif | ||
| 18 | #endif | ||
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/targetver.h b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/targetver.h new file mode 100644 index 00000000..87c0086d --- /dev/null +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/targetver.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | // Including SDKDDKVer.h defines the highest available Windows platform. | ||
| 4 | |||
| 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and | ||
| 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. | ||
| 7 | |||
| 8 | #include <SDKDDKVer.h> | ||
