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

uldn_close

関数
ロケール表示名生成オブジェクトを閉じて解放する。
DLLicuuc.dll呼出規約cdecl

シグネチャ

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

void uldn_close(
    ULocaleDisplayNames* ldn
);

パラメーター

名前方向
ldnULocaleDisplayNames*inout

戻り値の型: void

各言語での呼び出し定義

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

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

uldn_close = ctypes.cdll.icuuc.uldn_close
uldn_close.restype = None
uldn_close.argtypes = [
    ctypes.c_void_p,  # ldn : ULocaleDisplayNames* in/out
]
require 'fiddle'
require 'fiddle/import'

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

var (
	icuuc = windows.NewLazySystemDLL("icuuc.dll")
	proculdn_close = icuuc.NewProc("uldn_close")
)

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