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