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

ufmt_close

関数
フォーマット可能オブジェクトを閉じて解放する。
DLLicuin.dll呼出規約cdecl

シグネチャ

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

void ufmt_close(
    void** fmt
);

パラメーター

名前方向
fmtvoid**inout

戻り値の型: void

各言語での呼び出し定義

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

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

ufmt_close = ctypes.cdll.icuin.ufmt_close
ufmt_close.restype = None
ufmt_close.argtypes = [
    ctypes.c_void_p,  # fmt : void** in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('icuin.dll')
ufmt_close = Fiddle::Function.new(
  lib['ufmt_close'],
  [
    Fiddle::TYPE_VOIDP,  # fmt : void** in/out
  ],
  Fiddle::TYPE_VOID, Fiddle::Function::CDECL)
#[link(name = "icuin")]
extern "C" {
    fn ufmt_close(
        fmt: *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 ufmt_close(IntPtr fmt);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuin_ufmt_close' -Namespace Win32 -PassThru
# $api::ufmt_close(fmt)
#uselib "icuin.dll"
#func global ufmt_close "ufmt_close" sptr
; ufmt_close fmt
; fmt : void** in/out -> "sptr"
#uselib "icuin.dll"
#func global ufmt_close "ufmt_close" sptr
; ufmt_close fmt
; fmt : void** in/out -> "sptr"
; void ufmt_close(void** fmt)
#uselib "icuin.dll"
#func global ufmt_close "ufmt_close" intptr
; ufmt_close fmt
; fmt : void** in/out -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	procufmt_close = icuin.NewProc("ufmt_close")
)

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