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

u_catclose

関数
メッセージカタログを閉じる。
DLLicuuc.dll呼出規約cdecl

シグネチャ

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

void u_catclose(
    UResourceBundle* catd
);

パラメーター

名前方向
catdUResourceBundle*inout

戻り値の型: void

各言語での呼び出し定義

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

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

u_catclose = ctypes.cdll.icuuc.u_catclose
u_catclose.restype = None
u_catclose.argtypes = [
    ctypes.c_void_p,  # catd : UResourceBundle* in/out
]
require 'fiddle'
require 'fiddle/import'

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

var (
	icuuc = windows.NewLazySystemDLL("icuuc.dll")
	procu_catclose = icuuc.NewProc("u_catclose")
)

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