ホーム › UI.TabletPC › DestroyAlternate
DestroyAlternate
関数認識候補オブジェクトを破棄する。
シグネチャ
// inkobjcore.dll
#include <windows.h>
HRESULT DestroyAlternate(
HRECOALT hrcalt
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hrcalt | HRECOALT | in |
戻り値の型: HRESULT
各言語での呼び出し定義
// inkobjcore.dll
#include <windows.h>
HRESULT DestroyAlternate(
HRECOALT hrcalt
);[DllImport("inkobjcore.dll", ExactSpelling = true)]
static extern int DestroyAlternate(
IntPtr hrcalt // HRECOALT
);<DllImport("inkobjcore.dll", ExactSpelling:=True)>
Public Shared Function DestroyAlternate(
hrcalt As IntPtr ' HRECOALT
) As Integer
End Function' hrcalt : HRECOALT
Declare PtrSafe Function DestroyAlternate Lib "inkobjcore" ( _
ByVal hrcalt As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
DestroyAlternate = ctypes.windll.inkobjcore.DestroyAlternate
DestroyAlternate.restype = ctypes.c_int
DestroyAlternate.argtypes = [
wintypes.HANDLE, # hrcalt : HRECOALT
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('inkobjcore.dll')
DestroyAlternate = Fiddle::Function.new(
lib['DestroyAlternate'],
[
Fiddle::TYPE_VOIDP, # hrcalt : HRECOALT
],
Fiddle::TYPE_INT)#[link(name = "inkobjcore")]
extern "system" {
fn DestroyAlternate(
hrcalt: *mut core::ffi::c_void // HRECOALT
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("inkobjcore.dll")]
public static extern int DestroyAlternate(IntPtr hrcalt);
"@
$api = Add-Type -MemberDefinition $sig -Name 'inkobjcore_DestroyAlternate' -Namespace Win32 -PassThru
# $api::DestroyAlternate(hrcalt)#uselib "inkobjcore.dll"
#func global DestroyAlternate "DestroyAlternate" sptr
; DestroyAlternate hrcalt ; 戻り値は stat
; hrcalt : HRECOALT -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "inkobjcore.dll"
#cfunc global DestroyAlternate "DestroyAlternate" sptr
; res = DestroyAlternate(hrcalt)
; hrcalt : HRECOALT -> "sptr"; HRESULT DestroyAlternate(HRECOALT hrcalt)
#uselib "inkobjcore.dll"
#cfunc global DestroyAlternate "DestroyAlternate" intptr
; res = DestroyAlternate(hrcalt)
; hrcalt : HRECOALT -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
inkobjcore = windows.NewLazySystemDLL("inkobjcore.dll")
procDestroyAlternate = inkobjcore.NewProc("DestroyAlternate")
)
// hrcalt (HRECOALT)
r1, _, err := procDestroyAlternate.Call(
uintptr(hrcalt),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction DestroyAlternate(
hrcalt: THandle // HRECOALT
): Integer; stdcall;
external 'inkobjcore.dll' name 'DestroyAlternate';result := DllCall("inkobjcore\DestroyAlternate"
, "Ptr", hrcalt ; HRECOALT
, "Int") ; return: HRESULT●DestroyAlternate(hrcalt) = DLL("inkobjcore.dll", "int DestroyAlternate(void*)")
# 呼び出し: DestroyAlternate(hrcalt)
# hrcalt : HRECOALT -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。