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