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