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