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