ホーム › Media.MediaFoundation › MFUnlockDXGIDeviceManager
MFUnlockDXGIDeviceManager
関数DXGIデバイスマネージャーのロックを解除する。
シグネチャ
// MFPlat.dll
#include <windows.h>
HRESULT MFUnlockDXGIDeviceManager(void);パラメーターなし。戻り値: HRESULT
各言語での呼び出し定義
// MFPlat.dll
#include <windows.h>
HRESULT MFUnlockDXGIDeviceManager(void);[DllImport("MFPlat.dll", ExactSpelling = true)]
static extern int MFUnlockDXGIDeviceManager();<DllImport("MFPlat.dll", ExactSpelling:=True)>
Public Shared Function MFUnlockDXGIDeviceManager() As Integer
End FunctionDeclare PtrSafe Function MFUnlockDXGIDeviceManager Lib "mfplat" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
MFUnlockDXGIDeviceManager = ctypes.windll.mfplat.MFUnlockDXGIDeviceManager
MFUnlockDXGIDeviceManager.restype = ctypes.c_int
MFUnlockDXGIDeviceManager.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MFPlat.dll')
MFUnlockDXGIDeviceManager = Fiddle::Function.new(
lib['MFUnlockDXGIDeviceManager'],
[],
Fiddle::TYPE_INT)#[link(name = "mfplat")]
extern "system" {
fn MFUnlockDXGIDeviceManager() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("MFPlat.dll")]
public static extern int MFUnlockDXGIDeviceManager();
"@
$api = Add-Type -MemberDefinition $sig -Name 'MFPlat_MFUnlockDXGIDeviceManager' -Namespace Win32 -PassThru
# $api::MFUnlockDXGIDeviceManager()#uselib "MFPlat.dll"
#func global MFUnlockDXGIDeviceManager "MFUnlockDXGIDeviceManager"
; MFUnlockDXGIDeviceManager ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "MFPlat.dll"
#cfunc global MFUnlockDXGIDeviceManager "MFUnlockDXGIDeviceManager"
; res = MFUnlockDXGIDeviceManager(); HRESULT MFUnlockDXGIDeviceManager()
#uselib "MFPlat.dll"
#cfunc global MFUnlockDXGIDeviceManager "MFUnlockDXGIDeviceManager"
; res = MFUnlockDXGIDeviceManager()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
mfplat = windows.NewLazySystemDLL("MFPlat.dll")
procMFUnlockDXGIDeviceManager = mfplat.NewProc("MFUnlockDXGIDeviceManager")
)
r1, _, err := procMFUnlockDXGIDeviceManager.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction MFUnlockDXGIDeviceManager: Integer; stdcall;
external 'MFPlat.dll' name 'MFUnlockDXGIDeviceManager';result := DllCall("MFPlat\MFUnlockDXGIDeviceManager", "Int")●MFUnlockDXGIDeviceManager() = DLL("MFPlat.dll", "int MFUnlockDXGIDeviceManager()")
# 呼び出し: MFUnlockDXGIDeviceManager()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。