CertUnregisterPhysicalStore 函式 (wincrypt.h)

CertUnregisterPhysicalStore函式會從指定的系統存放區集合中移除實體存放區。 CertUnregisterPhysicalStore 也可以用來刪除實體存放區。

語法

BOOL CertUnregisterPhysicalStore(
  [in] const void *pvSystemStore,
  [in] DWORD      dwFlags,
  [in] LPCWSTR    pwszStoreName
);

參數

[in] pvSystemStore

要從中移除實體存放區之系統存放區集合識別碼的指標。 其為 Null 終止的 Unicode 字串或 CERT_SYSTEM_STORE_RELOCATE_PARA 結構。 如需使用 結構和附加 ServiceName 或 ComputerName 至系統存放區名稱字串結尾的相關資訊,請參閱 CertRegisterSystemStore

[in] dwFlags

dwFlags參數的高字會指定系統存放區的位置。 如需已定義高字旗標以及附加 ServiceName、UserNames 和 ComputerNames 到系統存放區名稱結尾的資訊,請參閱 CertRegisterSystemStore

也會定義下列低字值。 它們可以使用位OR 運算搭配高字值來結合。

意義
CERT_SYSTEM_STORE_RELOCATE_FLAG
系統存放區不在預設登錄位置中, pvSystemStore 必須是 CERT_SYSTEM_STORE_RELOCATE_PARA 結構的指標。
CERT_STORE_DELETE_FLAG
實體存放區會先從系統存放區集合中移除,然後刪除。

[in] pwszStoreName

Null 終止的 Unicode 字串,其中包含實體存放區的名稱。

傳回值

如果函式成功,則傳回值為 TRUE

如果函式失敗,傳回值為 FALSE

規格需求

   
最低支援的用戶端 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限桌面應用程式]
目標平台 Windows
標頭 wincrypt.h
程式庫 Crypt32.lib
Dll Crypt32.dll

另請參閱

CERT_SYSTEM_STORE_RELOCATE_PARA

CertEnumPhysicalStore

CertEnumSystemStore

CertEnumSystemStoreLocation

CertRegisterPhysicalStore

CertRegisterSystemStore

憑證存放區函式