ホーム › Devices.Display › EngFreeModule
EngFreeModule
関数読み込んだモジュールを解放する。
シグネチャ
// GDI32.dll
#include <windows.h>
void EngFreeModule(
HANDLE h
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| h | HANDLE | in |
戻り値の型: void
各言語での呼び出し定義
// GDI32.dll
#include <windows.h>
void EngFreeModule(
HANDLE h
);[DllImport("GDI32.dll", ExactSpelling = true)]
static extern void EngFreeModule(
IntPtr h // HANDLE
);<DllImport("GDI32.dll", ExactSpelling:=True)>
Public Shared Sub EngFreeModule(
h As IntPtr ' HANDLE
)
End Sub' h : HANDLE
Declare PtrSafe Sub EngFreeModule Lib "gdi32" ( _
ByVal h As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
EngFreeModule = ctypes.windll.gdi32.EngFreeModule
EngFreeModule.restype = None
EngFreeModule.argtypes = [
wintypes.HANDLE, # h : HANDLE
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('GDI32.dll')
EngFreeModule = Fiddle::Function.new(
lib['EngFreeModule'],
[
Fiddle::TYPE_VOIDP, # h : HANDLE
],
Fiddle::TYPE_VOID)#[link(name = "gdi32")]
extern "system" {
fn EngFreeModule(
h: *mut core::ffi::c_void // HANDLE
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("GDI32.dll")]
public static extern void EngFreeModule(IntPtr h);
"@
$api = Add-Type -MemberDefinition $sig -Name 'GDI32_EngFreeModule' -Namespace Win32 -PassThru
# $api::EngFreeModule(h)#uselib "GDI32.dll"
#func global EngFreeModule "EngFreeModule" sptr
; EngFreeModule h
; h : HANDLE -> "sptr"#uselib "GDI32.dll"
#func global EngFreeModule "EngFreeModule" sptr
; EngFreeModule h
; h : HANDLE -> "sptr"; void EngFreeModule(HANDLE h)
#uselib "GDI32.dll"
#func global EngFreeModule "EngFreeModule" intptr
; EngFreeModule h
; h : HANDLE -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
gdi32 = windows.NewLazySystemDLL("GDI32.dll")
procEngFreeModule = gdi32.NewProc("EngFreeModule")
)
// h (HANDLE)
r1, _, err := procEngFreeModule.Call(
uintptr(h),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure EngFreeModule(
h: THandle // HANDLE
); stdcall;
external 'GDI32.dll' name 'EngFreeModule';result := DllCall("GDI32\EngFreeModule"
, "Ptr", h ; HANDLE
, "Int") ; return: void●EngFreeModule(h) = DLL("GDI32.dll", "int EngFreeModule(void*)")
# 呼び出し: EngFreeModule(h)
# h : HANDLE -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。