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