Win32 API 日本語リファレンス
ホームMedia.Multimedia › DrawDibEnd

DrawDibEnd

関数
DrawDibの描画処理を終了し設定を解放する。
DLLMSVFW32.dll呼出規約winapi対応OSWindows 2000 以降

シグネチャ

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

BOOL DrawDibEnd(
    INT_PTR hdd
);

パラメーター

名前方向
hddINT_PTRin

戻り値の型: BOOL

各言語での呼び出し定義

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

BOOL DrawDibEnd(
    INT_PTR hdd
);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("MSVFW32.dll", ExactSpelling = true)]
static extern bool DrawDibEnd(
    IntPtr hdd   // INT_PTR
);
<DllImport("MSVFW32.dll", ExactSpelling:=True)>
Public Shared Function DrawDibEnd(
    hdd As IntPtr   ' INT_PTR
) As Boolean
End Function
' hdd : INT_PTR
Declare PtrSafe Function DrawDibEnd 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

DrawDibEnd = ctypes.windll.msvfw32.DrawDibEnd
DrawDibEnd.restype = wintypes.BOOL
DrawDibEnd.argtypes = [
    ctypes.c_ssize_t,  # hdd : INT_PTR
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSVFW32.dll')
DrawDibEnd = Fiddle::Function.new(
  lib['DrawDibEnd'],
  [
    Fiddle::TYPE_INTPTR_T,  # hdd : INT_PTR
  ],
  Fiddle::TYPE_INT)
#[link(name = "msvfw32")]
extern "system" {
    fn DrawDibEnd(
        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 DrawDibEnd(IntPtr hdd);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSVFW32_DrawDibEnd' -Namespace Win32 -PassThru
# $api::DrawDibEnd(hdd)
#uselib "MSVFW32.dll"
#func global DrawDibEnd "DrawDibEnd" sptr
; DrawDibEnd hdd   ; 戻り値は stat
; hdd : INT_PTR -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "MSVFW32.dll"
#cfunc global DrawDibEnd "DrawDibEnd" sptr
; res = DrawDibEnd(hdd)
; hdd : INT_PTR -> "sptr"
; BOOL DrawDibEnd(INT_PTR hdd)
#uselib "MSVFW32.dll"
#cfunc global DrawDibEnd "DrawDibEnd" intptr
; res = DrawDibEnd(hdd)
; hdd : INT_PTR -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msvfw32 = windows.NewLazySystemDLL("MSVFW32.dll")
	procDrawDibEnd = msvfw32.NewProc("DrawDibEnd")
)

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