[wintrust 2/8] Register WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI

Paul Vriens Paul.Vriens at xs4all.nl
Tue Sep 5 13:37:55 CDT 2006


Hi,

there is no definition of WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI in any of
the include files I've found. The names is mentioned however somewhere on the
web.

Changelog
  Register WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI

Cheers,

Paul.

---
 dlls/wintrust/register.c |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/dlls/wintrust/register.c b/dlls/wintrust/register.c
index f18042a..ce4d957 100644
--- a/dlls/wintrust/register.c
+++ b/dlls/wintrust/register.c
@@ -429,6 +429,38 @@ static void WINTRUST_RegisterPublishedSo
     WINTRUST_WriteProviderToReg(GuidString, Cleanup       , SoftpubCleanup);
 }
 
+#define WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI { 0xc6b2e8d0, 0xe005, 0x11cf, { 0xa1,0x34,0x00,0xc0,0x4f,0xd7,0xbf,0x43 }}
+
+/***************************************************************************
+ *              WINTRUST_RegisterPublishedSoftwareNoBadUi
+ *
+ * Register WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI actions and usages.
+ *
+ * NOTES
+ *   WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI ({C6B2E8D0-E005-11CF-A134-00C04FD7BF43})
+ *   is not defined in any include file. (FIXME: Find out if the name is correct).
+ *   We don't care about failures (see comments in DllRegisterServer)
+ */
+static void WINTRUST_RegisterPublishedSoftwareNoBadUi(void)
+{
+    GUID ProvGUID;
+    WCHAR GuidString[39];
+
+    ProvGUID = (GUID)WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI;
+    WINTRUST_Guid2Wstr(&ProvGUID , GuidString);
+
+    TRACE("Going to register WIN_SPUB_ACTION_PUBLISHED_SOFTWARE_NOBADUI : %s\n", wine_dbgstr_w(GuidString));
+
+    /* HKLM\Software\Microsoft\Cryptography\Trust\Provider\*\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43} */
+    WINTRUST_WriteProviderToReg(GuidString, Initialization, SoftpubInitialization);
+    WINTRUST_WriteProviderToReg(GuidString, Message       , SoftpubMessage);
+    WINTRUST_WriteProviderToReg(GuidString, Signature     , SoftpubSignature);
+    WINTRUST_WriteProviderToReg(GuidString, Certificate   , SoftpubCertficate);
+    WINTRUST_WriteProviderToReg(GuidString, CertCheck     , SoftpubCertCheck);
+    WINTRUST_WriteProviderToReg(GuidString, FinalPolicy   , SoftpubFinalPolicy);
+    WINTRUST_WriteProviderToReg(GuidString, Cleanup       , SoftpubCleanup);
+}
+
 /***********************************************************************
  *              DllRegisterServer (WINTRUST.@)
  */
@@ -468,6 +500,7 @@ HRESULT WINAPI DllRegisterServer(void)
     /* Register several Trust Provider actions */
     WINTRUST_RegisterGenVerifyV2();
     WINTRUST_RegisterPublishedSoftware();
+    WINTRUST_RegisterPublishedSoftwareNoBadUi();
 
     /* Free the registry structures */
     WINTRUST_FreeRegStructs();
-- 
1.4.1.1




More information about the wine-patches mailing list