共用方式為


CertSrvBackupFree 函式 (certbcli.h)

CertSrvBackupFree 函式可用來釋放從特定憑證服務備份 API 配置的記憶體。

語法

VOID CERTBCLI_API CertSrvBackupFree(
  [in] VOID *pv
);

參數

[in] pv

要釋放之內存的指標。

傳回值

此函式不會傳回值。

備註

使用下列函式設定記憶體完成時,請呼叫此函式:

範例

FNCERTSRVBACKUPFREE* pfnBackupFree;

char * szBackupFreeFunc = "CertSrvBackupFree";

// Get the address for the desired function.
// hInst was set by calling LoadLibrary for Certadm.dll.
pfnBackupFree = (FNCERTSRVBACKUPFREE*)GetProcAddress(hInst,
                      szBackupFreeFunc);
if ( NULL == pfnBackupFree )
{
    printf("Failed GetProcAddress - %s, error=%d\n",
           szBackupFreeFunc,
           GetLastError() );
    exit(1);
}

// Use the backup APIs.
// ...

// Free allocated memory.
// pBuff was allocated by another certsrv backup function.
pfnBackupFree(pBuff);

規格需求

需求
最低支援的用戶端 都不支援
最低支援的伺服器 Windows Server 2003 [僅限傳統型應用程式]
目標平台 Windows
標頭 certbcli.h (包含 Certsrv.h)
程式庫 Certadm.lib
Dll Certadm.dll

另請參閱

CertSrvBackupGetBackupLogs

CertSrvBackupGetDatabaseNames

CertSrvBackupGetDynamicFileList

CertSrvRestoreGetDatabaseLocations

CertSrvServerControl

使用憑證服務備份和還原函式