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