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

ucal_close

関数
カレンダーを閉じて資源を解放する。
DLLicuin.dll呼出規約cdecl

シグネチャ

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

void ucal_close(
    void** cal
);

パラメーター

名前方向
calvoid**inout

戻り値の型: void

各言語での呼び出し定義

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

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

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

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

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	procucal_close = icuin.NewProc("ucal_close")
)

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