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

uspoof_closeCheckResult

関数
なりすまし検査結果オブジェクトを破棄する。
DLLicuin.dll呼出規約cdecl

シグネチャ

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

void uspoof_closeCheckResult(
    USpoofCheckResult* checkResult
);

パラメーター

名前方向
checkResultUSpoofCheckResult*inout

戻り値の型: void

各言語での呼び出し定義

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

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

uspoof_closeCheckResult = ctypes.cdll.icuin.uspoof_closeCheckResult
uspoof_closeCheckResult.restype = None
uspoof_closeCheckResult.argtypes = [
    ctypes.c_void_p,  # checkResult : USpoofCheckResult* in/out
]
require 'fiddle'
require 'fiddle/import'

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

var (
	icuin = windows.NewLazySystemDLL("icuin.dll")
	procuspoof_closeCheckResult = icuin.NewProc("uspoof_closeCheckResult")
)

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