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

ICClose

関数
開いている映像圧縮ドライバーを閉じる。
DLLMSVFW32.dll呼出規約winapi対応OSWindows 2000 以降

シグネチャ

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

LRESULT ICClose(
    HIC hic
);

パラメーター

名前方向
hicHICin

戻り値の型: LRESULT

各言語での呼び出し定義

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

LRESULT ICClose(
    HIC hic
);
[DllImport("MSVFW32.dll", ExactSpelling = true)]
static extern IntPtr ICClose(
    IntPtr hic   // HIC
);
<DllImport("MSVFW32.dll", ExactSpelling:=True)>
Public Shared Function ICClose(
    hic As IntPtr   ' HIC
) As IntPtr
End Function
' hic : HIC
Declare PtrSafe Function ICClose Lib "msvfw32" ( _
    ByVal hic As LongPtr) As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ICClose = ctypes.windll.msvfw32.ICClose
ICClose.restype = ctypes.c_ssize_t
ICClose.argtypes = [
    wintypes.HANDLE,  # hic : HIC
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSVFW32.dll')
ICClose = Fiddle::Function.new(
  lib['ICClose'],
  [
    Fiddle::TYPE_VOIDP,  # hic : HIC
  ],
  Fiddle::TYPE_INTPTR_T)
#[link(name = "msvfw32")]
extern "system" {
    fn ICClose(
        hic: *mut core::ffi::c_void  // HIC
    ) -> isize;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSVFW32.dll")]
public static extern IntPtr ICClose(IntPtr hic);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSVFW32_ICClose' -Namespace Win32 -PassThru
# $api::ICClose(hic)
#uselib "MSVFW32.dll"
#func global ICClose "ICClose" sptr
; ICClose hic   ; 戻り値は stat
; hic : HIC -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "MSVFW32.dll"
#cfunc global ICClose "ICClose" sptr
; res = ICClose(hic)
; hic : HIC -> "sptr"
; LRESULT ICClose(HIC hic)
#uselib "MSVFW32.dll"
#cfunc global ICClose "ICClose" intptr
; res = ICClose(hic)
; hic : HIC -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msvfw32 = windows.NewLazySystemDLL("MSVFW32.dll")
	procICClose = msvfw32.NewProc("ICClose")
)

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