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

ulocdata_close

関数
ロケールデータオブジェクトを閉じて解放する。
DLLicuin.dll呼出規約cdecl

シグネチャ

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

void ulocdata_close(
    ULocaleData* uld
);

パラメーター

名前方向
uldULocaleData*inout

戻り値の型: void

各言語での呼び出し定義

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

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

ulocdata_close = ctypes.cdll.icuin.ulocdata_close
ulocdata_close.restype = None
ulocdata_close.argtypes = [
    ctypes.c_void_p,  # uld : ULocaleData* in/out
]
require 'fiddle'
require 'fiddle/import'

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

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	proculocdata_close = icuin.NewProc("ulocdata_close")
)

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