ホーム › Globalization › uspoof_close
uspoof_close
関数なりすまし文字検査オブジェクトを破棄する。
シグネチャ
// icuin.dll
#include <windows.h>
void uspoof_close(
USpoofChecker* sc
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| sc | USpoofChecker* | inout |
戻り値の型: void
各言語での呼び出し定義
// icuin.dll
#include <windows.h>
void uspoof_close(
USpoofChecker* sc
);[DllImport("icuin.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern void uspoof_close(
ref IntPtr sc // USpoofChecker* in/out
);<DllImport("icuin.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub uspoof_close(
ByRef sc As IntPtr ' USpoofChecker* in/out
)
End Sub' sc : USpoofChecker* in/out
Declare PtrSafe Sub uspoof_close Lib "icuin" ( _
ByRef sc As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
uspoof_close = ctypes.cdll.icuin.uspoof_close
uspoof_close.restype = None
uspoof_close.argtypes = [
ctypes.c_void_p, # sc : USpoofChecker* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuin.dll')
uspoof_close = Fiddle::Function.new(
lib['uspoof_close'],
[
Fiddle::TYPE_VOIDP, # sc : USpoofChecker* in/out
],
Fiddle::TYPE_VOID, Fiddle::Function::CDECL)#[link(name = "icuin")]
extern "C" {
fn uspoof_close(
sc: *mut isize // USpoofChecker* in/out
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("icuin.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void uspoof_close(ref IntPtr sc);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuin_uspoof_close' -Namespace Win32 -PassThru
# $api::uspoof_close(sc)#uselib "icuin.dll"
#func global uspoof_close "uspoof_close" sptr
; uspoof_close sc
; sc : USpoofChecker* in/out -> "sptr"#uselib "icuin.dll"
#func global uspoof_close "uspoof_close" int
; uspoof_close sc
; sc : USpoofChecker* in/out -> "int"; void uspoof_close(USpoofChecker* sc)
#uselib "icuin.dll"
#func global uspoof_close "uspoof_close" int
; uspoof_close sc
; sc : USpoofChecker* in/out -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuin = windows.NewLazySystemDLL("icuin.dll")
procuspoof_close = icuin.NewProc("uspoof_close")
)
// sc (USpoofChecker* in/out)
r1, _, err := procuspoof_close.Call(
uintptr(sc),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure uspoof_close(
sc: Pointer // USpoofChecker* in/out
); cdecl;
external 'icuin.dll' name 'uspoof_close';result := DllCall("icuin\uspoof_close"
, "Ptr", sc ; USpoofChecker* in/out
, "Cdecl Int") ; return: void●uspoof_close(sc) = DLL("icuin.dll", "int uspoof_close(void*)")
# 呼び出し: uspoof_close(sc)
# sc : USpoofChecker* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。