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

ureldatefmt_close

関数
相対日時フォーマッタを破棄する。
DLLicuin.dll呼出規約cdecl

シグネチャ

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

void ureldatefmt_close(
    URelativeDateTimeFormatter* reldatefmt
);

パラメーター

名前方向
reldatefmtURelativeDateTimeFormatter*inout

戻り値の型: void

各言語での呼び出し定義

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

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

ureldatefmt_close = ctypes.cdll.icuin.ureldatefmt_close
ureldatefmt_close.restype = None
ureldatefmt_close.argtypes = [
    ctypes.c_void_p,  # reldatefmt : URelativeDateTimeFormatter* in/out
]
require 'fiddle'
require 'fiddle/import'

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

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	procureldatefmt_close = icuin.NewProc("ureldatefmt_close")
)

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