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

ICSeqCompressFrameStart

関数
連続フレーム圧縮の開始準備を行う。
DLLMSVFW32.dll呼出規約winapi対応OSWindows 2000 以降

シグネチャ

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

BOOL ICSeqCompressFrameStart(
    COMPVARS* pc,
    BITMAPINFO* lpbiIn
);

パラメーター

名前方向
pcCOMPVARS*in
lpbiInBITMAPINFO*in

戻り値の型: BOOL

各言語での呼び出し定義

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

BOOL ICSeqCompressFrameStart(
    COMPVARS* pc,
    BITMAPINFO* lpbiIn
);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("MSVFW32.dll", ExactSpelling = true)]
static extern bool ICSeqCompressFrameStart(
    IntPtr pc,   // COMPVARS*
    IntPtr lpbiIn   // BITMAPINFO*
);
<DllImport("MSVFW32.dll", ExactSpelling:=True)>
Public Shared Function ICSeqCompressFrameStart(
    pc As IntPtr,   ' COMPVARS*
    lpbiIn As IntPtr   ' BITMAPINFO*
) As Boolean
End Function
' pc : COMPVARS*
' lpbiIn : BITMAPINFO*
Declare PtrSafe Function ICSeqCompressFrameStart Lib "msvfw32" ( _
    ByVal pc As LongPtr, _
    ByVal lpbiIn As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ICSeqCompressFrameStart = ctypes.windll.msvfw32.ICSeqCompressFrameStart
ICSeqCompressFrameStart.restype = wintypes.BOOL
ICSeqCompressFrameStart.argtypes = [
    ctypes.c_void_p,  # pc : COMPVARS*
    ctypes.c_void_p,  # lpbiIn : BITMAPINFO*
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSVFW32.dll')
ICSeqCompressFrameStart = Fiddle::Function.new(
  lib['ICSeqCompressFrameStart'],
  [
    Fiddle::TYPE_VOIDP,  # pc : COMPVARS*
    Fiddle::TYPE_VOIDP,  # lpbiIn : BITMAPINFO*
  ],
  Fiddle::TYPE_INT)
#[link(name = "msvfw32")]
extern "system" {
    fn ICSeqCompressFrameStart(
        pc: *mut COMPVARS,  // COMPVARS*
        lpbiIn: *mut BITMAPINFO  // BITMAPINFO*
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("MSVFW32.dll")]
public static extern bool ICSeqCompressFrameStart(IntPtr pc, IntPtr lpbiIn);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSVFW32_ICSeqCompressFrameStart' -Namespace Win32 -PassThru
# $api::ICSeqCompressFrameStart(pc, lpbiIn)
#uselib "MSVFW32.dll"
#func global ICSeqCompressFrameStart "ICSeqCompressFrameStart" sptr, sptr
; ICSeqCompressFrameStart varptr(pc), varptr(lpbiIn)   ; 戻り値は stat
; pc : COMPVARS* -> "sptr"
; lpbiIn : BITMAPINFO* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "MSVFW32.dll"
#cfunc global ICSeqCompressFrameStart "ICSeqCompressFrameStart" var, var
; res = ICSeqCompressFrameStart(pc, lpbiIn)
; pc : COMPVARS* -> "var"
; lpbiIn : BITMAPINFO* -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; BOOL ICSeqCompressFrameStart(COMPVARS* pc, BITMAPINFO* lpbiIn)
#uselib "MSVFW32.dll"
#cfunc global ICSeqCompressFrameStart "ICSeqCompressFrameStart" var, var
; res = ICSeqCompressFrameStart(pc, lpbiIn)
; pc : COMPVARS* -> "var"
; lpbiIn : BITMAPINFO* -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msvfw32 = windows.NewLazySystemDLL("MSVFW32.dll")
	procICSeqCompressFrameStart = msvfw32.NewProc("ICSeqCompressFrameStart")
)

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