ホーム › Security.ExtensibleAuthenticationProtocol › EapHostPeerInitialize
EapHostPeerInitialize
関数EAPHostピアの実行環境を初期化する。
シグネチャ
// eappprxy.dll
#include <windows.h>
DWORD EapHostPeerInitialize(void);パラメーターなし。戻り値: DWORD
各言語での呼び出し定義
// eappprxy.dll
#include <windows.h>
DWORD EapHostPeerInitialize(void);[DllImport("eappprxy.dll", ExactSpelling = true)]
static extern uint EapHostPeerInitialize();<DllImport("eappprxy.dll", ExactSpelling:=True)>
Public Shared Function EapHostPeerInitialize() As UInteger
End FunctionDeclare PtrSafe Function EapHostPeerInitialize Lib "eappprxy" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
EapHostPeerInitialize = ctypes.windll.eappprxy.EapHostPeerInitialize
EapHostPeerInitialize.restype = wintypes.DWORD
EapHostPeerInitialize.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('eappprxy.dll')
EapHostPeerInitialize = Fiddle::Function.new(
lib['EapHostPeerInitialize'],
[],
-Fiddle::TYPE_INT)#[link(name = "eappprxy")]
extern "system" {
fn EapHostPeerInitialize() -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("eappprxy.dll")]
public static extern uint EapHostPeerInitialize();
"@
$api = Add-Type -MemberDefinition $sig -Name 'eappprxy_EapHostPeerInitialize' -Namespace Win32 -PassThru
# $api::EapHostPeerInitialize()#uselib "eappprxy.dll"
#func global EapHostPeerInitialize "EapHostPeerInitialize"
; EapHostPeerInitialize ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "eappprxy.dll"
#cfunc global EapHostPeerInitialize "EapHostPeerInitialize"
; res = EapHostPeerInitialize(); DWORD EapHostPeerInitialize()
#uselib "eappprxy.dll"
#cfunc global EapHostPeerInitialize "EapHostPeerInitialize"
; res = EapHostPeerInitialize()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
eappprxy = windows.NewLazySystemDLL("eappprxy.dll")
procEapHostPeerInitialize = eappprxy.NewProc("EapHostPeerInitialize")
)
r1, _, err := procEapHostPeerInitialize.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction EapHostPeerInitialize: DWORD; stdcall;
external 'eappprxy.dll' name 'EapHostPeerInitialize';result := DllCall("eappprxy\EapHostPeerInitialize", "UInt")●EapHostPeerInitialize() = DLL("eappprxy.dll", "dword EapHostPeerInitialize()")
# 呼び出し: EapHostPeerInitialize()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。