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