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