ホーム › Globalization › uspoof_openCheckResult
uspoof_openCheckResult
関数なりすまし検査結果オブジェクトを生成する。
シグネチャ
// icuin.dll
#include <windows.h>
USpoofCheckResult* uspoof_openCheckResult(
UErrorCode* status
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| status | UErrorCode* | inout |
戻り値の型: USpoofCheckResult*
各言語での呼び出し定義
// icuin.dll
#include <windows.h>
USpoofCheckResult* uspoof_openCheckResult(
UErrorCode* status
);[DllImport("icuin.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr uspoof_openCheckResult(
ref int status // UErrorCode* in/out
);<DllImport("icuin.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Function uspoof_openCheckResult(
ByRef status As Integer ' UErrorCode* in/out
) As IntPtr
End Function' status : UErrorCode* in/out
Declare PtrSafe Function uspoof_openCheckResult Lib "icuin" ( _
ByRef status As Long) As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
uspoof_openCheckResult = ctypes.cdll.icuin.uspoof_openCheckResult
uspoof_openCheckResult.restype = ctypes.c_void_p
uspoof_openCheckResult.argtypes = [
ctypes.c_void_p, # status : UErrorCode* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuin.dll')
uspoof_openCheckResult = Fiddle::Function.new(
lib['uspoof_openCheckResult'],
[
Fiddle::TYPE_VOIDP, # status : UErrorCode* in/out
],
Fiddle::TYPE_VOIDP, Fiddle::Function::CDECL)#[link(name = "icuin")]
extern "C" {
fn uspoof_openCheckResult(
status: *mut i32 // UErrorCode* in/out
) -> *mut isize;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("icuin.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr uspoof_openCheckResult(ref int status);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuin_uspoof_openCheckResult' -Namespace Win32 -PassThru
# $api::uspoof_openCheckResult(status)#uselib "icuin.dll"
#func global uspoof_openCheckResult "uspoof_openCheckResult" sptr
; uspoof_openCheckResult status ; 戻り値は stat
; status : UErrorCode* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "icuin.dll"
#cfunc global uspoof_openCheckResult "uspoof_openCheckResult" int
; res = uspoof_openCheckResult(status)
; status : UErrorCode* in/out -> "int"; USpoofCheckResult* uspoof_openCheckResult(UErrorCode* status)
#uselib "icuin.dll"
#cfunc global uspoof_openCheckResult "uspoof_openCheckResult" int
; res = uspoof_openCheckResult(status)
; status : UErrorCode* in/out -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuin = windows.NewLazySystemDLL("icuin.dll")
procuspoof_openCheckResult = icuin.NewProc("uspoof_openCheckResult")
)
// status (UErrorCode* in/out)
r1, _, err := procuspoof_openCheckResult.Call(
uintptr(status),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // USpoofCheckResult*function uspoof_openCheckResult(
status: Pointer // UErrorCode* in/out
): Pointer; cdecl;
external 'icuin.dll' name 'uspoof_openCheckResult';result := DllCall("icuin\uspoof_openCheckResult"
, "Ptr", status ; UErrorCode* in/out
, "Cdecl Ptr") ; return: USpoofCheckResult*●uspoof_openCheckResult(status) = DLL("icuin.dll", "void* uspoof_openCheckResult(void*)")
# 呼び出し: uspoof_openCheckResult(status)
# status : UErrorCode* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。