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