ホーム › Security.Cryptography › CertFreeCertificateChainEngine
CertFreeCertificateChainEngine
関数証明書チェーンエンジンを解放する。
シグネチャ
// CRYPT32.dll
#include <windows.h>
void CertFreeCertificateChainEngine(
HCERTCHAINENGINE hChainEngine // optional
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hChainEngine | HCERTCHAINENGINE | inoptional |
戻り値の型: void
各言語での呼び出し定義
// CRYPT32.dll
#include <windows.h>
void CertFreeCertificateChainEngine(
HCERTCHAINENGINE hChainEngine // optional
);[DllImport("CRYPT32.dll", ExactSpelling = true)]
static extern void CertFreeCertificateChainEngine(
IntPtr hChainEngine // HCERTCHAINENGINE optional
);<DllImport("CRYPT32.dll", ExactSpelling:=True)>
Public Shared Sub CertFreeCertificateChainEngine(
hChainEngine As IntPtr ' HCERTCHAINENGINE optional
)
End Sub' hChainEngine : HCERTCHAINENGINE optional
Declare PtrSafe Sub CertFreeCertificateChainEngine Lib "crypt32" ( _
ByVal hChainEngine As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
CertFreeCertificateChainEngine = ctypes.windll.crypt32.CertFreeCertificateChainEngine
CertFreeCertificateChainEngine.restype = None
CertFreeCertificateChainEngine.argtypes = [
wintypes.HANDLE, # hChainEngine : HCERTCHAINENGINE optional
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('CRYPT32.dll')
CertFreeCertificateChainEngine = Fiddle::Function.new(
lib['CertFreeCertificateChainEngine'],
[
Fiddle::TYPE_VOIDP, # hChainEngine : HCERTCHAINENGINE optional
],
Fiddle::TYPE_VOID)#[link(name = "crypt32")]
extern "system" {
fn CertFreeCertificateChainEngine(
hChainEngine: *mut core::ffi::c_void // HCERTCHAINENGINE optional
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("CRYPT32.dll")]
public static extern void CertFreeCertificateChainEngine(IntPtr hChainEngine);
"@
$api = Add-Type -MemberDefinition $sig -Name 'CRYPT32_CertFreeCertificateChainEngine' -Namespace Win32 -PassThru
# $api::CertFreeCertificateChainEngine(hChainEngine)#uselib "CRYPT32.dll"
#func global CertFreeCertificateChainEngine "CertFreeCertificateChainEngine" sptr
; CertFreeCertificateChainEngine hChainEngine
; hChainEngine : HCERTCHAINENGINE optional -> "sptr"#uselib "CRYPT32.dll"
#func global CertFreeCertificateChainEngine "CertFreeCertificateChainEngine" sptr
; CertFreeCertificateChainEngine hChainEngine
; hChainEngine : HCERTCHAINENGINE optional -> "sptr"; void CertFreeCertificateChainEngine(HCERTCHAINENGINE hChainEngine)
#uselib "CRYPT32.dll"
#func global CertFreeCertificateChainEngine "CertFreeCertificateChainEngine" intptr
; CertFreeCertificateChainEngine hChainEngine
; hChainEngine : HCERTCHAINENGINE optional -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
crypt32 = windows.NewLazySystemDLL("CRYPT32.dll")
procCertFreeCertificateChainEngine = crypt32.NewProc("CertFreeCertificateChainEngine")
)
// hChainEngine (HCERTCHAINENGINE optional)
r1, _, err := procCertFreeCertificateChainEngine.Call(
uintptr(hChainEngine),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure CertFreeCertificateChainEngine(
hChainEngine: THandle // HCERTCHAINENGINE optional
); stdcall;
external 'CRYPT32.dll' name 'CertFreeCertificateChainEngine';result := DllCall("CRYPT32\CertFreeCertificateChainEngine"
, "Ptr", hChainEngine ; HCERTCHAINENGINE optional
, "Int") ; return: void●CertFreeCertificateChainEngine(hChainEngine) = DLL("CRYPT32.dll", "int CertFreeCertificateChainEngine(void*)")
# 呼び出し: CertFreeCertificateChainEngine(hChainEngine)
# hChainEngine : HCERTCHAINENGINE optional -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。