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