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