[wintrust 1/2] Added stubbed WintrustAddDefaultForUsage
Paul Vriens
Paul.Vriens at xs4all.nl
Tue Sep 12 06:18:25 CDT 2006
Hi,
implement stub. The real thing will come soon. Documentation will be added
later once I've figured out what to put there.
Changelog
Added stubbed WintrustAddDefaultForUsage
Cheers,
Paul.
---
dlls/wintrust/register.c | 10 ++++++++++
dlls/wintrust/wintrust.spec | 2 +-
include/wintrust.h | 10 ++++++++++
3 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/dlls/wintrust/register.c b/dlls/wintrust/register.c
index 7037f09..1f1fc86 100644
--- a/dlls/wintrust/register.c
+++ b/dlls/wintrust/register.c
@@ -680,6 +680,16 @@ static void WINTRUST_RegisterGenChainVer
}
/***********************************************************************
+ * WintrustAddDefaultForUsage (WINTRUST.@)
+ */
+BOOL WINAPI WintrustAddDefaultForUsage(const CHAR *pszUsageOID,
+ CRYPT_PROVIDER_REGDEFUSAGE *psDefUsage)
+{
+ FIXME("(%s %p) stub\n", debugstr_a(pszUsageOID), psDefUsage);
+ return FALSE;
+}
+
+/***********************************************************************
* DllRegisterServer (WINTRUST.@)
*/
HRESULT WINAPI DllRegisterServer(void)
diff --git a/dlls/wintrust/wintrust.spec b/dlls/wintrust/wintrust.spec
index f7a4221..5335605 100644
--- a/dlls/wintrust/wintrust.spec
+++ b/dlls/wintrust/wintrust.spec
@@ -111,7 +111,7 @@
@ stdcall WinVerifyTrust(long ptr ptr)
@ stdcall WinVerifyTrustEx(long ptr ptr)
@ stdcall WintrustAddActionID(ptr long ptr)
-@ stub WintrustAddDefaultForUsage
+@ stdcall WintrustAddDefaultForUsage(ptr ptr)
@ stub WintrustCertificateTrust
@ stub WintrustGetDefaultForUsage
@ stdcall WintrustGetRegPolicyFlags(ptr)
diff --git a/include/wintrust.h b/include/wintrust.h
index b6c8785..9c4f7c9 100644
--- a/include/wintrust.h
+++ b/include/wintrust.h
@@ -135,6 +135,15 @@ typedef struct _CRYPT_REGISTER_ACTIONID
CRYPT_TRUST_REG_ENTRY sCleanupProvider;
} CRYPT_REGISTER_ACTIONID, *PCRYPT_REGISTER_ACTIONID;
+typedef struct _CRYPT_PROVIDER_REGDEFUSAGE
+{
+ DWORD cbStruct;
+ GUID *pgActionID;
+ WCHAR *pwszDllName;
+ char *pwszLoadCallbackDataFunctionName;
+ char *pwszFreeCallbackDataFunctionName;
+} CRYPT_PROVIDER_REGDEFUSAGE, *PCRYPT_PROVIDER_REGDEFUSAGE;
+
typedef struct _CRYPT_PROVUI_DATA {
DWORD cbStruct;
DWORD dwFinalError;
@@ -316,6 +325,7 @@ #endif
BOOL WINAPI WintrustAddActionID(GUID*,DWORD,CRYPT_REGISTER_ACTIONID*);
BOOL WINAPI WintrustRemoveActionID(GUID*);
BOOL WINAPI WintrustLoadFunctionPointers(GUID*,CRYPT_PROVIDER_FUNCTIONS*);
+BOOL WINAPI WintrustAddDefaultForUsage(const CHAR*,CRYPT_PROVIDER_REGDEFUSAGE*);
void WINAPI WintrustGetRegPolicyFlags(DWORD*);
LONG WINAPI WinVerifyTrust(HWND,GUID*,LPVOID);
HRESULT WINAPI WinVerifyTrustEx(HWND,GUID*,WINTRUST_DATA*);
--
1.4.2
More information about the wine-patches
mailing list