ホーム › Security.ExtensibleAuthenticationProtocol › EapHostPeerFreeErrorMemory
EapHostPeerFreeErrorMemory
関数EAPエラー構造体に割り当てられたメモリを解放する。
シグネチャ
// eappcfg.dll
#include <windows.h>
void EapHostPeerFreeErrorMemory(
EAP_ERROR* pEapError
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pEapError | EAP_ERROR* | inout |
戻り値の型: void
各言語での呼び出し定義
// eappcfg.dll
#include <windows.h>
void EapHostPeerFreeErrorMemory(
EAP_ERROR* pEapError
);[DllImport("eappcfg.dll", ExactSpelling = true)]
static extern void EapHostPeerFreeErrorMemory(
IntPtr pEapError // EAP_ERROR* in/out
);<DllImport("eappcfg.dll", ExactSpelling:=True)>
Public Shared Sub EapHostPeerFreeErrorMemory(
pEapError As IntPtr ' EAP_ERROR* in/out
)
End Sub' pEapError : EAP_ERROR* in/out
Declare PtrSafe Sub EapHostPeerFreeErrorMemory Lib "eappcfg" ( _
ByVal pEapError As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
EapHostPeerFreeErrorMemory = ctypes.windll.eappcfg.EapHostPeerFreeErrorMemory
EapHostPeerFreeErrorMemory.restype = None
EapHostPeerFreeErrorMemory.argtypes = [
ctypes.c_void_p, # pEapError : EAP_ERROR* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('eappcfg.dll')
EapHostPeerFreeErrorMemory = Fiddle::Function.new(
lib['EapHostPeerFreeErrorMemory'],
[
Fiddle::TYPE_VOIDP, # pEapError : EAP_ERROR* in/out
],
Fiddle::TYPE_VOID)#[link(name = "eappcfg")]
extern "system" {
fn EapHostPeerFreeErrorMemory(
pEapError: *mut EAP_ERROR // EAP_ERROR* in/out
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("eappcfg.dll")]
public static extern void EapHostPeerFreeErrorMemory(IntPtr pEapError);
"@
$api = Add-Type -MemberDefinition $sig -Name 'eappcfg_EapHostPeerFreeErrorMemory' -Namespace Win32 -PassThru
# $api::EapHostPeerFreeErrorMemory(pEapError)#uselib "eappcfg.dll"
#func global EapHostPeerFreeErrorMemory "EapHostPeerFreeErrorMemory" sptr
; EapHostPeerFreeErrorMemory varptr(pEapError)
; pEapError : EAP_ERROR* in/out -> "sptr"出力引数:
#uselib "eappcfg.dll" #func global EapHostPeerFreeErrorMemory "EapHostPeerFreeErrorMemory" var ; EapHostPeerFreeErrorMemory pEapError ; pEapError : EAP_ERROR* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "eappcfg.dll" #func global EapHostPeerFreeErrorMemory "EapHostPeerFreeErrorMemory" sptr ; EapHostPeerFreeErrorMemory varptr(pEapError) ; pEapError : EAP_ERROR* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; void EapHostPeerFreeErrorMemory(EAP_ERROR* pEapError) #uselib "eappcfg.dll" #func global EapHostPeerFreeErrorMemory "EapHostPeerFreeErrorMemory" var ; EapHostPeerFreeErrorMemory pEapError ; pEapError : EAP_ERROR* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; void EapHostPeerFreeErrorMemory(EAP_ERROR* pEapError) #uselib "eappcfg.dll" #func global EapHostPeerFreeErrorMemory "EapHostPeerFreeErrorMemory" intptr ; EapHostPeerFreeErrorMemory varptr(pEapError) ; pEapError : EAP_ERROR* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
eappcfg = windows.NewLazySystemDLL("eappcfg.dll")
procEapHostPeerFreeErrorMemory = eappcfg.NewProc("EapHostPeerFreeErrorMemory")
)
// pEapError (EAP_ERROR* in/out)
r1, _, err := procEapHostPeerFreeErrorMemory.Call(
uintptr(pEapError),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure EapHostPeerFreeErrorMemory(
pEapError: Pointer // EAP_ERROR* in/out
); stdcall;
external 'eappcfg.dll' name 'EapHostPeerFreeErrorMemory';result := DllCall("eappcfg\EapHostPeerFreeErrorMemory"
, "Ptr", pEapError ; EAP_ERROR* in/out
, "Int") ; return: void●EapHostPeerFreeErrorMemory(pEapError) = DLL("eappcfg.dll", "int EapHostPeerFreeErrorMemory(void*)")
# 呼び出し: EapHostPeerFreeErrorMemory(pEapError)
# pEapError : EAP_ERROR* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。