ホーム › Security.ExtensibleAuthenticationProtocol › EapHostPeerClearConnection
EapHostPeerClearConnection
関数指定接続に関連付けられたEAP状態をクリアする。
シグネチャ
// eappprxy.dll
#include <windows.h>
DWORD EapHostPeerClearConnection(
GUID* pConnectionId,
EAP_ERROR** ppEapError
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pConnectionId | GUID* | in |
| ppEapError | EAP_ERROR** | out |
戻り値の型: DWORD
各言語での呼び出し定義
// eappprxy.dll
#include <windows.h>
DWORD EapHostPeerClearConnection(
GUID* pConnectionId,
EAP_ERROR** ppEapError
);[DllImport("eappprxy.dll", ExactSpelling = true)]
static extern uint EapHostPeerClearConnection(
ref Guid pConnectionId, // GUID*
IntPtr ppEapError // EAP_ERROR** out
);<DllImport("eappprxy.dll", ExactSpelling:=True)>
Public Shared Function EapHostPeerClearConnection(
ByRef pConnectionId As Guid, ' GUID*
ppEapError As IntPtr ' EAP_ERROR** out
) As UInteger
End Function' pConnectionId : GUID*
' ppEapError : EAP_ERROR** out
Declare PtrSafe Function EapHostPeerClearConnection Lib "eappprxy" ( _
ByVal pConnectionId As LongPtr, _
ByVal ppEapError As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
EapHostPeerClearConnection = ctypes.windll.eappprxy.EapHostPeerClearConnection
EapHostPeerClearConnection.restype = wintypes.DWORD
EapHostPeerClearConnection.argtypes = [
ctypes.c_void_p, # pConnectionId : GUID*
ctypes.c_void_p, # ppEapError : EAP_ERROR** out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('eappprxy.dll')
EapHostPeerClearConnection = Fiddle::Function.new(
lib['EapHostPeerClearConnection'],
[
Fiddle::TYPE_VOIDP, # pConnectionId : GUID*
Fiddle::TYPE_VOIDP, # ppEapError : EAP_ERROR** out
],
-Fiddle::TYPE_INT)#[link(name = "eappprxy")]
extern "system" {
fn EapHostPeerClearConnection(
pConnectionId: *mut GUID, // GUID*
ppEapError: *mut *mut EAP_ERROR // EAP_ERROR** out
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("eappprxy.dll")]
public static extern uint EapHostPeerClearConnection(ref Guid pConnectionId, IntPtr ppEapError);
"@
$api = Add-Type -MemberDefinition $sig -Name 'eappprxy_EapHostPeerClearConnection' -Namespace Win32 -PassThru
# $api::EapHostPeerClearConnection(pConnectionId, ppEapError)#uselib "eappprxy.dll"
#func global EapHostPeerClearConnection "EapHostPeerClearConnection" sptr, sptr
; EapHostPeerClearConnection varptr(pConnectionId), varptr(ppEapError) ; 戻り値は stat
; pConnectionId : GUID* -> "sptr"
; ppEapError : EAP_ERROR** out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "eappprxy.dll" #cfunc global EapHostPeerClearConnection "EapHostPeerClearConnection" var, var ; res = EapHostPeerClearConnection(pConnectionId, ppEapError) ; pConnectionId : GUID* -> "var" ; ppEapError : EAP_ERROR** out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "eappprxy.dll" #cfunc global EapHostPeerClearConnection "EapHostPeerClearConnection" sptr, sptr ; res = EapHostPeerClearConnection(varptr(pConnectionId), varptr(ppEapError)) ; pConnectionId : GUID* -> "sptr" ; ppEapError : EAP_ERROR** out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; DWORD EapHostPeerClearConnection(GUID* pConnectionId, EAP_ERROR** ppEapError) #uselib "eappprxy.dll" #cfunc global EapHostPeerClearConnection "EapHostPeerClearConnection" var, var ; res = EapHostPeerClearConnection(pConnectionId, ppEapError) ; pConnectionId : GUID* -> "var" ; ppEapError : EAP_ERROR** out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; DWORD EapHostPeerClearConnection(GUID* pConnectionId, EAP_ERROR** ppEapError) #uselib "eappprxy.dll" #cfunc global EapHostPeerClearConnection "EapHostPeerClearConnection" intptr, intptr ; res = EapHostPeerClearConnection(varptr(pConnectionId), varptr(ppEapError)) ; pConnectionId : GUID* -> "intptr" ; ppEapError : EAP_ERROR** out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
eappprxy = windows.NewLazySystemDLL("eappprxy.dll")
procEapHostPeerClearConnection = eappprxy.NewProc("EapHostPeerClearConnection")
)
// pConnectionId (GUID*), ppEapError (EAP_ERROR** out)
r1, _, err := procEapHostPeerClearConnection.Call(
uintptr(pConnectionId),
uintptr(ppEapError),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction EapHostPeerClearConnection(
pConnectionId: PGUID; // GUID*
ppEapError: Pointer // EAP_ERROR** out
): DWORD; stdcall;
external 'eappprxy.dll' name 'EapHostPeerClearConnection';result := DllCall("eappprxy\EapHostPeerClearConnection"
, "Ptr", pConnectionId ; GUID*
, "Ptr", ppEapError ; EAP_ERROR** out
, "UInt") ; return: DWORD●EapHostPeerClearConnection(pConnectionId, ppEapError) = DLL("eappprxy.dll", "dword EapHostPeerClearConnection(void*, void*)")
# 呼び出し: EapHostPeerClearConnection(pConnectionId, ppEapError)
# pConnectionId : GUID* -> "void*"
# ppEapError : EAP_ERROR** out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。