ホーム › Globalization › umsg_close
umsg_close
関数メッセージフォーマッタを閉じて解放する。
シグネチャ
// icuin.dll
#include <windows.h>
void umsg_close(
void** format
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| format | void** | inout |
戻り値の型: void
各言語での呼び出し定義
// icuin.dll
#include <windows.h>
void umsg_close(
void** format
);[DllImport("icuin.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern void umsg_close(
IntPtr format // void** in/out
);<DllImport("icuin.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub umsg_close(
format As IntPtr ' void** in/out
)
End Sub' format : void** in/out
Declare PtrSafe Sub umsg_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
umsg_close = ctypes.cdll.icuin.umsg_close
umsg_close.restype = None
umsg_close.argtypes = [
ctypes.c_void_p, # format : void** in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuin.dll')
umsg_close = Fiddle::Function.new(
lib['umsg_close'],
[
Fiddle::TYPE_VOIDP, # format : void** in/out
],
Fiddle::TYPE_VOID, Fiddle::Function::CDECL)#[link(name = "icuin")]
extern "C" {
fn umsg_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 umsg_close(IntPtr format);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuin_umsg_close' -Namespace Win32 -PassThru
# $api::umsg_close(format)#uselib "icuin.dll"
#func global umsg_close "umsg_close" sptr
; umsg_close format
; format : void** in/out -> "sptr"#uselib "icuin.dll"
#func global umsg_close "umsg_close" sptr
; umsg_close format
; format : void** in/out -> "sptr"; void umsg_close(void** format)
#uselib "icuin.dll"
#func global umsg_close "umsg_close" intptr
; umsg_close format
; format : void** in/out -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuin = windows.NewLazySystemDLL("icuin.dll")
procumsg_close = icuin.NewProc("umsg_close")
)
// format (void** in/out)
r1, _, err := procumsg_close.Call(
uintptr(format),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure umsg_close(
format: Pointer // void** in/out
); cdecl;
external 'icuin.dll' name 'umsg_close';result := DllCall("icuin\umsg_close"
, "Ptr", format ; void** in/out
, "Cdecl Int") ; return: void●umsg_close(format) = DLL("icuin.dll", "int umsg_close(void*)")
# 呼び出し: umsg_close(format)
# format : void** in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。