Win32 API 日本語リファレンス
ホームGlobalization › ucfpos_close

ucfpos_close

関数
制約付きフィールド位置を閉じて解放する。
DLLicu.dll呼出規約cdecl

シグネチャ

// icu.dll
#include <windows.h>

void ucfpos_close(
    UConstrainedFieldPosition* ucfpos
);

パラメーター

名前方向
ucfposUConstrainedFieldPosition*inout

戻り値の型: void

各言語での呼び出し定義

// icu.dll
#include <windows.h>

void ucfpos_close(
    UConstrainedFieldPosition* ucfpos
);
[DllImport("icu.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern void ucfpos_close(
    ref IntPtr ucfpos   // UConstrainedFieldPosition* in/out
);
<DllImport("icu.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub ucfpos_close(
    ByRef ucfpos As IntPtr   ' UConstrainedFieldPosition* in/out
)
End Sub
' ucfpos : UConstrainedFieldPosition* in/out
Declare PtrSafe Sub ucfpos_close Lib "icu" ( _
    ByRef ucfpos As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ucfpos_close = ctypes.cdll.icu.ucfpos_close
ucfpos_close.restype = None
ucfpos_close.argtypes = [
    ctypes.c_void_p,  # ucfpos : UConstrainedFieldPosition* in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('icu.dll')
ucfpos_close = Fiddle::Function.new(
  lib['ucfpos_close'],
  [
    Fiddle::TYPE_VOIDP,  # ucfpos : UConstrainedFieldPosition* in/out
  ],
  Fiddle::TYPE_VOID, Fiddle::Function::CDECL)
#[link(name = "icu")]
extern "C" {
    fn ucfpos_close(
        ucfpos: *mut isize  // UConstrainedFieldPosition* in/out
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("icu.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void ucfpos_close(ref IntPtr ucfpos);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icu_ucfpos_close' -Namespace Win32 -PassThru
# $api::ucfpos_close(ucfpos)
#uselib "icu.dll"
#func global ucfpos_close "ucfpos_close" sptr
; ucfpos_close ucfpos
; ucfpos : UConstrainedFieldPosition* in/out -> "sptr"
#uselib "icu.dll"
#func global ucfpos_close "ucfpos_close" int
; ucfpos_close ucfpos
; ucfpos : UConstrainedFieldPosition* in/out -> "int"
; void ucfpos_close(UConstrainedFieldPosition* ucfpos)
#uselib "icu.dll"
#func global ucfpos_close "ucfpos_close" int
; ucfpos_close ucfpos
; ucfpos : UConstrainedFieldPosition* in/out -> "int"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	icu = windows.NewLazySystemDLL("icu.dll")
	procucfpos_close = icu.NewProc("ucfpos_close")
)

// ucfpos (UConstrainedFieldPosition* in/out)
r1, _, err := procucfpos_close.Call(
	uintptr(ucfpos),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure ucfpos_close(
  ucfpos: Pointer   // UConstrainedFieldPosition* in/out
); cdecl;
  external 'icu.dll' name 'ucfpos_close';
result := DllCall("icu\ucfpos_close"
    , "Ptr", ucfpos   ; UConstrainedFieldPosition* in/out
    , "Cdecl Int")   ; return: void
●ucfpos_close(ucfpos) = DLL("icu.dll", "int ucfpos_close(void*)")
# 呼び出し: ucfpos_close(ucfpos)
# ucfpos : UConstrainedFieldPosition* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。