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