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

udat_close

関数
日付フォーマッタを閉じて解放する。
DLLicuin.dll呼出規約cdecl

シグネチャ

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

void udat_close(
    void** format
);

パラメーター

名前方向
formatvoid**inout

戻り値の型: void

各言語での呼び出し定義

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

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

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

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

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	procudat_close = icuin.NewProc("udat_close")
)

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