diff options
| author | Bob Arnson <bob@firegiant.com> | 2022-02-13 00:46:54 -0500 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2022-02-13 08:47:43 -0500 |
| commit | 1be6baef099aa75fd45f41e55b8138ac2c7e0da3 (patch) | |
| tree | f441deda5d7a355aea7966150ed1116a40701296 /src/ext/Msmq/ca | |
| parent | cb509edac4749d77a4eb07e9314354279f99ff1a (diff) | |
| download | wix-1be6baef099aa75fd45f41e55b8138ac2c7e0da3.tar.gz wix-1be6baef099aa75fd45f41e55b8138ac2c7e0da3.tar.bz2 wix-1be6baef099aa75fd45f41e55b8138ac2c7e0da3.zip | |
Versioned extension ids: ComPlus, Msmq
Diffstat (limited to 'src/ext/Msmq/ca')
| -rw-r--r-- | src/ext/Msmq/ca/mqqueuesched.cpp | 6 | ||||
| -rw-r--r-- | src/ext/Msmq/ca/mqutilexec.cpp | 4 | ||||
| -rw-r--r-- | src/ext/Msmq/ca/mqutilsched.cpp | 43 | ||||
| -rw-r--r-- | src/ext/Msmq/ca/mqutilsched.h | 9 | ||||
| -rw-r--r-- | src/ext/Msmq/ca/msmqca.vcxproj | 30 | ||||
| -rw-r--r-- | src/ext/Msmq/ca/precomp.h | 1 |
6 files changed, 22 insertions, 71 deletions
diff --git a/src/ext/Msmq/ca/mqqueuesched.cpp b/src/ext/Msmq/ca/mqqueuesched.cpp index 01777ea4..ab4d1680 100644 --- a/src/ext/Msmq/ca/mqqueuesched.cpp +++ b/src/ext/Msmq/ca/mqqueuesched.cpp | |||
| @@ -6,13 +6,13 @@ | |||
| 6 | // sql queries | 6 | // sql queries |
| 7 | 7 | ||
| 8 | LPCWSTR vcsMessageQueueQuery = | 8 | LPCWSTR vcsMessageQueueQuery = |
| 9 | L"SELECT `MessageQueue`, `Component_`, `BasePriority`, `JournalQuota`, `Label`, `MulticastAddress`, `PathName`, `PrivLevel`, `Quota`, `ServiceTypeGuid`, `Attributes` FROM `MessageQueue`"; | 9 | L"SELECT `MessageQueue`, `Component_`, `BasePriority`, `JournalQuota`, `Label`, `MulticastAddress`, `PathName`, `PrivLevel`, `Quota`, `ServiceTypeGuid`, `Attributes` FROM `Wix4MessageQueue`"; |
| 10 | enum eMessageQueueQuery { mqqMessageQueue = 1, mqqComponent, mqqBasePriority, mqqJournalQuota, mqqLabel, mqqMulticastAddress, mqqPathName, mqqPrivLevel, mqqQuota, mqqServiceTypeGuid, mqqAttributes }; | 10 | enum eMessageQueueQuery { mqqMessageQueue = 1, mqqComponent, mqqBasePriority, mqqJournalQuota, mqqLabel, mqqMulticastAddress, mqqPathName, mqqPrivLevel, mqqQuota, mqqServiceTypeGuid, mqqAttributes }; |
| 11 | 11 | ||
| 12 | LPCWSTR vcsMessageQueueUserPermissionQuery = | 12 | LPCWSTR vcsMessageQueueUserPermissionQuery = |
| 13 | L"SELECT `MessageQueueUserPermission`, `MessageQueue_`, `MessageQueueUserPermission`.`Component_`, `Domain`, `Name`, `Permissions` FROM `MessageQueueUserPermission`, `User` WHERE `User_` = `User`"; | 13 | L"SELECT `MessageQueueUserPermission`, `MessageQueue_`, `MessageQueueUserPermission`.`Component_`, `Domain`, `Name`, `Permissions` FROM `Wix4MessageQueueUserPermission`, `User` WHERE `User_` = `User`"; |
| 14 | LPCWSTR vcsMessageQueueGroupPermissionQuery = | 14 | LPCWSTR vcsMessageQueueGroupPermissionQuery = |
| 15 | L"SELECT `MessageQueueGroupPermission`, `MessageQueue_`, `MessageQueueGroupPermission`.`Component_`, `Domain`, `Name`, `Permissions` FROM `MessageQueueGroupPermission`, `Group` WHERE `Group_` = `Group`"; | 15 | L"SELECT `MessageQueueGroupPermission`, `MessageQueue_`, `MessageQueueGroupPermission`.`Component_`, `Domain`, `Name`, `Permissions` FROM `Wix4MessageQueueGroupPermission`, `Group` WHERE `Group_` = `Group`"; |
| 16 | enum eMessageQueuePermissionQuery { mqpqMessageQueuePermission = 1, mqpqMessageQueue, mqpqComponent, mqpqDomain, mqpqName, mqpqPermissions }; | 16 | enum eMessageQueuePermissionQuery { mqpqMessageQueuePermission = 1, mqpqMessageQueue, mqpqComponent, mqpqDomain, mqpqName, mqpqPermissions }; |
| 17 | 17 | ||
| 18 | 18 | ||
diff --git a/src/ext/Msmq/ca/mqutilexec.cpp b/src/ext/Msmq/ca/mqutilexec.cpp index a9c56e02..7055333b 100644 --- a/src/ext/Msmq/ca/mqutilexec.cpp +++ b/src/ext/Msmq/ca/mqutilexec.cpp | |||
| @@ -40,7 +40,7 @@ static HRESULT CreateSidFromDomainRidPair( | |||
| 40 | static HRESULT InitLsaUnicodeString( | 40 | static HRESULT InitLsaUnicodeString( |
| 41 | PLSA_UNICODE_STRING plusStr, | 41 | PLSA_UNICODE_STRING plusStr, |
| 42 | LPCWSTR pwzStr, | 42 | LPCWSTR pwzStr, |
| 43 | DWORD dwLen | 43 | SIZE_T dwLen |
| 44 | ); | 44 | ); |
| 45 | static void FreeLsaUnicodeString( | 45 | static void FreeLsaUnicodeString( |
| 46 | PLSA_UNICODE_STRING plusStr | 46 | PLSA_UNICODE_STRING plusStr |
| @@ -351,7 +351,7 @@ LExit: | |||
| 351 | static HRESULT InitLsaUnicodeString( | 351 | static HRESULT InitLsaUnicodeString( |
| 352 | PLSA_UNICODE_STRING plusStr, | 352 | PLSA_UNICODE_STRING plusStr, |
| 353 | LPCWSTR pwzStr, | 353 | LPCWSTR pwzStr, |
| 354 | DWORD dwLen | 354 | SIZE_T dwLen |
| 355 | ) | 355 | ) |
| 356 | { | 356 | { |
| 357 | HRESULT hr = S_OK; | 357 | HRESULT hr = S_OK; |
diff --git a/src/ext/Msmq/ca/mqutilsched.cpp b/src/ext/Msmq/ca/mqutilsched.cpp deleted file mode 100644 index 4353a6d6..00000000 --- a/src/ext/Msmq/ca/mqutilsched.cpp +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | #include "precomp.h" | ||
| 4 | |||
| 5 | |||
| 6 | // function definitions | ||
| 7 | |||
| 8 | HRESULT PcaGuidToRegFormat( | ||
| 9 | LPWSTR pwzGuid, | ||
| 10 | LPWSTR pwzDest, | ||
| 11 | SIZE_T cchDest | ||
| 12 | ) | ||
| 13 | { | ||
| 14 | HRESULT hr = S_OK; | ||
| 15 | |||
| 16 | GUID guid = GUID_NULL; | ||
| 17 | int cch = 0; | ||
| 18 | |||
| 19 | WCHAR wz[39]; | ||
| 20 | ::ZeroMemory(wz, sizeof(wz)); | ||
| 21 | |||
| 22 | cch = lstrlenW(pwzGuid); | ||
| 23 | |||
| 24 | if (38 == cch && L'{' == pwzGuid[0] && L'}' == pwzGuid[37]) | ||
| 25 | StringCchCopyW(wz, countof(wz), pwzGuid); | ||
| 26 | else if (36 == cch) | ||
| 27 | StringCchPrintfW(wz, countof(wz), L"{%s}", pwzGuid); | ||
| 28 | else | ||
| 29 | ExitFunction1(hr = E_INVALIDARG); | ||
| 30 | |||
| 31 | // convert string to guid | ||
| 32 | hr = ::CLSIDFromString(wz, &guid); | ||
| 33 | ExitOnFailure(hr, "Failed to parse guid string"); | ||
| 34 | |||
| 35 | // convert guid to string | ||
| 36 | if (0 == ::StringFromGUID2(guid, pwzDest, cchDest)) | ||
| 37 | ExitOnFailure(hr = E_FAIL, "Failed to convert guid to string"); | ||
| 38 | |||
| 39 | hr = S_OK; | ||
| 40 | |||
| 41 | LExit: | ||
| 42 | return hr; | ||
| 43 | } | ||
diff --git a/src/ext/Msmq/ca/mqutilsched.h b/src/ext/Msmq/ca/mqutilsched.h deleted file mode 100644 index e172257d..00000000 --- a/src/ext/Msmq/ca/mqutilsched.h +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | #pragma once | ||
| 2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 3 | |||
| 4 | |||
| 5 | HRESULT PcaGuidToRegFormat( | ||
| 6 | LPWSTR pwzGuid, | ||
| 7 | LPWSTR pwzDest, | ||
| 8 | SIZE_T cchDest | ||
| 9 | ); | ||
diff --git a/src/ext/Msmq/ca/msmqca.vcxproj b/src/ext/Msmq/ca/msmqca.vcxproj index b00cd88e..0e712f63 100644 --- a/src/ext/Msmq/ca/msmqca.vcxproj +++ b/src/ext/Msmq/ca/msmqca.vcxproj | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
| 3 | |||
| 4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 3 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 5 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props')" /> | 4 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props')" /> |
| 6 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props')" /> | 5 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.17\build\WixToolset.WcaUtil.props')" /> |
| 7 | |||
| 8 | <ItemGroup Label="ProjectConfigurations"> | 6 | <ItemGroup Label="ProjectConfigurations"> |
| 9 | <ProjectConfiguration Include="Debug|Win32"> | 7 | <ProjectConfiguration Include="Debug|Win32"> |
| 10 | <Configuration>Debug</Configuration> | 8 | <Configuration>Debug</Configuration> |
| @@ -14,8 +12,23 @@ | |||
| 14 | <Configuration>Release</Configuration> | 12 | <Configuration>Release</Configuration> |
| 15 | <Platform>Win32</Platform> | 13 | <Platform>Win32</Platform> |
| 16 | </ProjectConfiguration> | 14 | </ProjectConfiguration> |
| 15 | <ProjectConfiguration Include="Debug|X64"> | ||
| 16 | <Configuration>Debug</Configuration> | ||
| 17 | <Platform>X64</Platform> | ||
| 18 | </ProjectConfiguration> | ||
| 19 | <ProjectConfiguration Include="Release|X64"> | ||
| 20 | <Configuration>Release</Configuration> | ||
| 21 | <Platform>X64</Platform> | ||
| 22 | </ProjectConfiguration> | ||
| 23 | <ProjectConfiguration Include="Debug|ARM64"> | ||
| 24 | <Configuration>Debug</Configuration> | ||
| 25 | <Platform>ARM64</Platform> | ||
| 26 | </ProjectConfiguration> | ||
| 27 | <ProjectConfiguration Include="Release|ARM64"> | ||
| 28 | <Configuration>Release</Configuration> | ||
| 29 | <Platform>ARM64</Platform> | ||
| 30 | </ProjectConfiguration> | ||
| 17 | </ItemGroup> | 31 | </ItemGroup> |
| 18 | |||
| 19 | <PropertyGroup Label="Globals"> | 32 | <PropertyGroup Label="Globals"> |
| 20 | <ProjectGuid>{CAD56A7E-342B-4324-9DCB-BCEB8F3BC80D}</ProjectGuid> | 33 | <ProjectGuid>{CAD56A7E-342B-4324-9DCB-BCEB8F3BC80D}</ProjectGuid> |
| 21 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 34 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| @@ -24,14 +37,11 @@ | |||
| 24 | <ProjectModuleDefinitionFile>msmqca.def</ProjectModuleDefinitionFile> | 37 | <ProjectModuleDefinitionFile>msmqca.def</ProjectModuleDefinitionFile> |
| 25 | <Description>WiX Toolset MSMQ CustomAction</Description> | 38 | <Description>WiX Toolset MSMQ CustomAction</Description> |
| 26 | </PropertyGroup> | 39 | </PropertyGroup> |
| 27 | |||
| 28 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 40 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
| 29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 41 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 30 | |||
| 31 | <PropertyGroup> | 42 | <PropertyGroup> |
| 32 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> | 43 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> |
| 33 | </PropertyGroup> | 44 | </PropertyGroup> |
| 34 | |||
| 35 | <ItemGroup> | 45 | <ItemGroup> |
| 36 | <ClCompile Include="dllmain.cpp"> | 46 | <ClCompile Include="dllmain.cpp"> |
| 37 | <PrecompiledHeader>Create</PrecompiledHeader> | 47 | <PrecompiledHeader>Create</PrecompiledHeader> |
| @@ -41,28 +51,22 @@ | |||
| 41 | <ClCompile Include="mqqueuesched.cpp" /> | 51 | <ClCompile Include="mqqueuesched.cpp" /> |
| 42 | <ClCompile Include="mqsched.cpp" /> | 52 | <ClCompile Include="mqsched.cpp" /> |
| 43 | <ClCompile Include="mqutilexec.cpp" /> | 53 | <ClCompile Include="mqutilexec.cpp" /> |
| 44 | <ClCompile Include="mqutilsched.cpp" /> | ||
| 45 | </ItemGroup> | 54 | </ItemGroup> |
| 46 | |||
| 47 | <ItemGroup> | 55 | <ItemGroup> |
| 48 | <ClInclude Include="mqcost.h" /> | 56 | <ClInclude Include="mqcost.h" /> |
| 49 | <ClInclude Include="mqqueueexec.h" /> | 57 | <ClInclude Include="mqqueueexec.h" /> |
| 50 | <ClInclude Include="mqqueuesched.h" /> | 58 | <ClInclude Include="mqqueuesched.h" /> |
| 51 | <ClInclude Include="mqutilexec.h" /> | 59 | <ClInclude Include="mqutilexec.h" /> |
| 52 | <ClInclude Include="mqutilsched.h" /> | ||
| 53 | <ClInclude Include="precomp.h" /> | 60 | <ClInclude Include="precomp.h" /> |
| 54 | </ItemGroup> | 61 | </ItemGroup> |
| 55 | |||
| 56 | <ItemGroup> | 62 | <ItemGroup> |
| 57 | <None Include="msmqca.def" /> | 63 | <None Include="msmqca.def" /> |
| 58 | </ItemGroup> | 64 | </ItemGroup> |
| 59 | |||
| 60 | <ItemGroup> | 65 | <ItemGroup> |
| 61 | <PackageReference Include="WixToolset.Dutil" /> | 66 | <PackageReference Include="WixToolset.Dutil" /> |
| 62 | <PackageReference Include="WixToolset.WcaUtil" /> | 67 | <PackageReference Include="WixToolset.WcaUtil" /> |
| 63 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> | 68 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> |
| 64 | <PackageReference Include="GitInfo" PrivateAssets="All" /> | 69 | <PackageReference Include="GitInfo" PrivateAssets="All" /> |
| 65 | </ItemGroup> | 70 | </ItemGroup> |
| 66 | |||
| 67 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 71 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 68 | </Project> | 72 | </Project> \ No newline at end of file |
diff --git a/src/ext/Msmq/ca/precomp.h b/src/ext/Msmq/ca/precomp.h index cbbff6ea..6fbd418c 100644 --- a/src/ext/Msmq/ca/precomp.h +++ b/src/ext/Msmq/ca/precomp.h | |||
| @@ -17,7 +17,6 @@ | |||
| 17 | #include "CustomMsiErrors.h" | 17 | #include "CustomMsiErrors.h" |
| 18 | 18 | ||
| 19 | #include "mqcost.h" | 19 | #include "mqcost.h" |
| 20 | #include "mqutilsched.h" | ||
| 21 | #include "mqqueuesched.h" | 20 | #include "mqqueuesched.h" |
| 22 | #include "mqutilexec.h" | 21 | #include "mqutilexec.h" |
| 23 | #include "mqqueueexec.h" | 22 | #include "mqqueueexec.h" |
