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