Juan Lang : crypt32: Add stub for CertRegisterPhysicalStore.

Alexandre Julliard julliard at winehq.org
Mon Jan 17 10:59:45 CST 2011


Module: wine
Branch: master
Commit: 7f0db794917631f749b07ab19fb76638c62ed243
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f0db794917631f749b07ab19fb76638c62ed243

Author: Juan Lang <juan.lang at gmail.com>
Date:   Sun Jan 16 11:43:56 2011 -0800

crypt32: Add stub for CertRegisterPhysicalStore.

---

 dlls/crypt32/crypt32.spec |    1 +
 dlls/crypt32/store.c      |   12 ++++++++++++
 include/wincrypt.h        |    3 +++
 3 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index dedcb4f..45ec666 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -77,6 +77,7 @@
 @ stdcall CertOpenSystemStoreW(long wstr)
 @ stdcall CertRDNValueToStrA(long ptr ptr long)
 @ stdcall CertRDNValueToStrW(long ptr ptr long)
+@ stdcall CertRegisterPhysicalStore(ptr long wstr ptr ptr)
 @ stdcall CertRemoveEnhancedKeyUsageIdentifier(ptr str)
 @ stdcall CertRemoveStoreFromCollection(ptr ptr)
 @ stdcall CertSaveStore(ptr long long long ptr long)
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index df12e3e..b540e61 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -1465,3 +1465,15 @@ BOOL WINAPI CertEnumPhysicalStore(const void *pvSystemStore, DWORD dwFlags,
          pfnEnum);
     return FALSE;
 }
+
+BOOL WINAPI CertRegisterPhysicalStore(const void *pvSystemStore, DWORD dwFlags,
+ LPCWSTR pwszStoreName, PCERT_PHYSICAL_STORE_INFO pStoreInfo, void *pvReserved)
+{
+    if (dwFlags & CERT_SYSTEM_STORE_RELOCATE_FLAG)
+        FIXME("(%p, %08x, %s, %p, %p): stub\n", pvSystemStore, dwFlags,
+         debugstr_w(pwszStoreName), pStoreInfo, pvReserved);
+    else
+        FIXME("(%s, %08x, %s, %p, %p): stub\n", debugstr_w(pvSystemStore),
+         dwFlags, debugstr_w(pwszStoreName), pStoreInfo, pvReserved);
+    return FALSE;
+}
diff --git a/include/wincrypt.h b/include/wincrypt.h
index 8834561..7a2e5b3 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -3999,6 +3999,9 @@ BOOL WINAPI CertEnumSystemStore(DWORD dwFlags, void *pvSystemStoreLocationPara,
 BOOL WINAPI CertEnumPhysicalStore(const void *pvSystemStore, DWORD dwFlags,
  void *pvArg, PFN_CERT_ENUM_PHYSICAL_STORE pfnEnum);
 
+BOOL WINAPI CertRegisterPhysicalStore(const void *pvSystemStore, DWORD dwFlags,
+ LPCWSTR pwszStoreName, PCERT_PHYSICAL_STORE_INFO pStoreInfo, void *pvReserved);
+
 BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
              DWORD dwSaveAs, DWORD dwSaveTo, void* pvSaveToPara, DWORD dwFlags);
 




More information about the wine-cvs mailing list