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)
Library Certadm.lib
DLL Certadm.dll

另请参阅

CertSrvBackupGetBackupLogs

CertSrvBackupGetDatabaseNames

CertSrvBackupGetDynamicFileList

CertSrvRestoreGetDatabaseLocations

CertSrvServerControl

使用证书服务备份和还原函数