ホーム › Media.Multimedia › ICCompressorFree
ICCompressorFree
関数圧縮変数構造体に割り当てた資源を解放する。
シグネチャ
// MSVFW32.dll
#include <windows.h>
void ICCompressorFree(
COMPVARS* pc
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pc | COMPVARS* | in |
戻り値の型: void
各言語での呼び出し定義
// MSVFW32.dll
#include <windows.h>
void ICCompressorFree(
COMPVARS* pc
);[DllImport("MSVFW32.dll", ExactSpelling = true)]
static extern void ICCompressorFree(
IntPtr pc // COMPVARS*
);<DllImport("MSVFW32.dll", ExactSpelling:=True)>
Public Shared Sub ICCompressorFree(
pc As IntPtr ' COMPVARS*
)
End Sub' pc : COMPVARS*
Declare PtrSafe Sub ICCompressorFree Lib "msvfw32" ( _
ByVal pc As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
ICCompressorFree = ctypes.windll.msvfw32.ICCompressorFree
ICCompressorFree.restype = None
ICCompressorFree.argtypes = [
ctypes.c_void_p, # pc : COMPVARS*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MSVFW32.dll')
ICCompressorFree = Fiddle::Function.new(
lib['ICCompressorFree'],
[
Fiddle::TYPE_VOIDP, # pc : COMPVARS*
],
Fiddle::TYPE_VOID)#[link(name = "msvfw32")]
extern "system" {
fn ICCompressorFree(
pc: *mut COMPVARS // COMPVARS*
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("MSVFW32.dll")]
public static extern void ICCompressorFree(IntPtr pc);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSVFW32_ICCompressorFree' -Namespace Win32 -PassThru
# $api::ICCompressorFree(pc)#uselib "MSVFW32.dll"
#func global ICCompressorFree "ICCompressorFree" sptr
; ICCompressorFree varptr(pc)
; pc : COMPVARS* -> "sptr"出力引数:
#uselib "MSVFW32.dll" #func global ICCompressorFree "ICCompressorFree" var ; ICCompressorFree pc ; pc : COMPVARS* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "MSVFW32.dll" #func global ICCompressorFree "ICCompressorFree" sptr ; ICCompressorFree varptr(pc) ; pc : COMPVARS* -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; void ICCompressorFree(COMPVARS* pc) #uselib "MSVFW32.dll" #func global ICCompressorFree "ICCompressorFree" var ; ICCompressorFree pc ; pc : COMPVARS* -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; void ICCompressorFree(COMPVARS* pc) #uselib "MSVFW32.dll" #func global ICCompressorFree "ICCompressorFree" intptr ; ICCompressorFree varptr(pc) ; pc : COMPVARS* -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
msvfw32 = windows.NewLazySystemDLL("MSVFW32.dll")
procICCompressorFree = msvfw32.NewProc("ICCompressorFree")
)
// pc (COMPVARS*)
r1, _, err := procICCompressorFree.Call(
uintptr(pc),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure ICCompressorFree(
pc: Pointer // COMPVARS*
); stdcall;
external 'MSVFW32.dll' name 'ICCompressorFree';result := DllCall("MSVFW32\ICCompressorFree"
, "Ptr", pc ; COMPVARS*
, "Int") ; return: void●ICCompressorFree(pc) = DLL("MSVFW32.dll", "int ICCompressorFree(void*)")
# 呼び出し: ICCompressorFree(pc)
# pc : COMPVARS* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。