ホーム › Media.Multimedia › AVIStreamGetFrameClose
AVIStreamGetFrameClose
関数フレーム取得用オブジェクトを解放する。
シグネチャ
// AVIFIL32.dll
#include <windows.h>
HRESULT AVIStreamGetFrameClose(
IGetFrame* pg
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pg | IGetFrame* | in |
戻り値の型: HRESULT
各言語での呼び出し定義
// AVIFIL32.dll
#include <windows.h>
HRESULT AVIStreamGetFrameClose(
IGetFrame* pg
);[DllImport("AVIFIL32.dll", ExactSpelling = true)]
static extern int AVIStreamGetFrameClose(
IntPtr pg // IGetFrame*
);<DllImport("AVIFIL32.dll", ExactSpelling:=True)>
Public Shared Function AVIStreamGetFrameClose(
pg As IntPtr ' IGetFrame*
) As Integer
End Function' pg : IGetFrame*
Declare PtrSafe Function AVIStreamGetFrameClose Lib "avifil32" ( _
ByVal pg As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
AVIStreamGetFrameClose = ctypes.windll.avifil32.AVIStreamGetFrameClose
AVIStreamGetFrameClose.restype = ctypes.c_int
AVIStreamGetFrameClose.argtypes = [
ctypes.c_void_p, # pg : IGetFrame*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('AVIFIL32.dll')
AVIStreamGetFrameClose = Fiddle::Function.new(
lib['AVIStreamGetFrameClose'],
[
Fiddle::TYPE_VOIDP, # pg : IGetFrame*
],
Fiddle::TYPE_INT)#[link(name = "avifil32")]
extern "system" {
fn AVIStreamGetFrameClose(
pg: *mut core::ffi::c_void // IGetFrame*
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("AVIFIL32.dll")]
public static extern int AVIStreamGetFrameClose(IntPtr pg);
"@
$api = Add-Type -MemberDefinition $sig -Name 'AVIFIL32_AVIStreamGetFrameClose' -Namespace Win32 -PassThru
# $api::AVIStreamGetFrameClose(pg)#uselib "AVIFIL32.dll"
#func global AVIStreamGetFrameClose "AVIStreamGetFrameClose" sptr
; AVIStreamGetFrameClose pg ; 戻り値は stat
; pg : IGetFrame* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "AVIFIL32.dll"
#cfunc global AVIStreamGetFrameClose "AVIStreamGetFrameClose" sptr
; res = AVIStreamGetFrameClose(pg)
; pg : IGetFrame* -> "sptr"; HRESULT AVIStreamGetFrameClose(IGetFrame* pg)
#uselib "AVIFIL32.dll"
#cfunc global AVIStreamGetFrameClose "AVIStreamGetFrameClose" intptr
; res = AVIStreamGetFrameClose(pg)
; pg : IGetFrame* -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
avifil32 = windows.NewLazySystemDLL("AVIFIL32.dll")
procAVIStreamGetFrameClose = avifil32.NewProc("AVIStreamGetFrameClose")
)
// pg (IGetFrame*)
r1, _, err := procAVIStreamGetFrameClose.Call(
uintptr(pg),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction AVIStreamGetFrameClose(
pg: Pointer // IGetFrame*
): Integer; stdcall;
external 'AVIFIL32.dll' name 'AVIStreamGetFrameClose';result := DllCall("AVIFIL32\AVIStreamGetFrameClose"
, "Ptr", pg ; IGetFrame*
, "Int") ; return: HRESULT●AVIStreamGetFrameClose(pg) = DLL("AVIFIL32.dll", "int AVIStreamGetFrameClose(void*)")
# 呼び出し: AVIStreamGetFrameClose(pg)
# pg : IGetFrame* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。