Win32 API 日本語リファレンス
ホームUI.TabletPC › DestroyWordList

DestroyWordList

関数
認識用の単語リストを破棄する。
DLLinkobjcore.dll呼出規約winapi対応OSWindows XP 以降

シグネチャ

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

HRESULT DestroyWordList(
    HRECOWORDLIST hwl
);

パラメーター

名前方向
hwlHRECOWORDLISTin

戻り値の型: HRESULT

各言語での呼び出し定義

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

HRESULT DestroyWordList(
    HRECOWORDLIST hwl
);
[DllImport("inkobjcore.dll", ExactSpelling = true)]
static extern int DestroyWordList(
    IntPtr hwl   // HRECOWORDLIST
);
<DllImport("inkobjcore.dll", ExactSpelling:=True)>
Public Shared Function DestroyWordList(
    hwl As IntPtr   ' HRECOWORDLIST
) As Integer
End Function
' hwl : HRECOWORDLIST
Declare PtrSafe Function DestroyWordList Lib "inkobjcore" ( _
    ByVal hwl As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

DestroyWordList = ctypes.windll.inkobjcore.DestroyWordList
DestroyWordList.restype = ctypes.c_int
DestroyWordList.argtypes = [
    wintypes.HANDLE,  # hwl : HRECOWORDLIST
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('inkobjcore.dll')
DestroyWordList = Fiddle::Function.new(
  lib['DestroyWordList'],
  [
    Fiddle::TYPE_VOIDP,  # hwl : HRECOWORDLIST
  ],
  Fiddle::TYPE_INT)
#[link(name = "inkobjcore")]
extern "system" {
    fn DestroyWordList(
        hwl: *mut core::ffi::c_void  // HRECOWORDLIST
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("inkobjcore.dll")]
public static extern int DestroyWordList(IntPtr hwl);
"@
$api = Add-Type -MemberDefinition $sig -Name 'inkobjcore_DestroyWordList' -Namespace Win32 -PassThru
# $api::DestroyWordList(hwl)
#uselib "inkobjcore.dll"
#func global DestroyWordList "DestroyWordList" sptr
; DestroyWordList hwl   ; 戻り値は stat
; hwl : HRECOWORDLIST -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "inkobjcore.dll"
#cfunc global DestroyWordList "DestroyWordList" sptr
; res = DestroyWordList(hwl)
; hwl : HRECOWORDLIST -> "sptr"
; HRESULT DestroyWordList(HRECOWORDLIST hwl)
#uselib "inkobjcore.dll"
#cfunc global DestroyWordList "DestroyWordList" intptr
; res = DestroyWordList(hwl)
; hwl : HRECOWORDLIST -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	inkobjcore = windows.NewLazySystemDLL("inkobjcore.dll")
	procDestroyWordList = inkobjcore.NewProc("DestroyWordList")
)

// hwl (HRECOWORDLIST)
r1, _, err := procDestroyWordList.Call(
	uintptr(hwl),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // HRESULT
function DestroyWordList(
  hwl: THandle   // HRECOWORDLIST
): Integer; stdcall;
  external 'inkobjcore.dll' name 'DestroyWordList';
result := DllCall("inkobjcore\DestroyWordList"
    , "Ptr", hwl   ; HRECOWORDLIST
    , "Int")   ; return: HRESULT
●DestroyWordList(hwl) = DLL("inkobjcore.dll", "int DestroyWordList(void*)")
# 呼び出し: DestroyWordList(hwl)
# hwl : HRECOWORDLIST -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。