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