diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec index dedcb4fe08d..45ec6662942 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 df12e3e8ad3..b540e6189f5 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 88345610ca2..7a2e5b398a4 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);