Win32 API 日本語リファレンス
ホームDevices.Tapi › lineDeallocateCall

lineDeallocateCall

関数
通話ハンドルを解放してリソースを開放する。
DLLTAPI32.dll呼出規約winapi

シグネチャ

// TAPI32.dll
#include <windows.h>

INT lineDeallocateCall(
    DWORD hCall
);

パラメーター

名前方向
hCallDWORDin

戻り値の型: INT

各言語での呼び出し定義

// TAPI32.dll
#include <windows.h>

INT lineDeallocateCall(
    DWORD hCall
);
[DllImport("TAPI32.dll", ExactSpelling = true)]
static extern int lineDeallocateCall(
    uint hCall   // DWORD
);
<DllImport("TAPI32.dll", ExactSpelling:=True)>
Public Shared Function lineDeallocateCall(
    hCall As UInteger   ' DWORD
) As Integer
End Function
' hCall : DWORD
Declare PtrSafe Function lineDeallocateCall 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

lineDeallocateCall = ctypes.windll.tapi32.lineDeallocateCall
lineDeallocateCall.restype = ctypes.c_int
lineDeallocateCall.argtypes = [
    wintypes.DWORD,  # hCall : DWORD
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('TAPI32.dll')
lineDeallocateCall = Fiddle::Function.new(
  lib['lineDeallocateCall'],
  [
    -Fiddle::TYPE_INT,  # hCall : DWORD
  ],
  Fiddle::TYPE_INT)
#[link(name = "tapi32")]
extern "system" {
    fn lineDeallocateCall(
        hCall: u32  // DWORD
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("TAPI32.dll")]
public static extern int lineDeallocateCall(uint hCall);
"@
$api = Add-Type -MemberDefinition $sig -Name 'TAPI32_lineDeallocateCall' -Namespace Win32 -PassThru
# $api::lineDeallocateCall(hCall)
#uselib "TAPI32.dll"
#func global lineDeallocateCall "lineDeallocateCall" sptr
; lineDeallocateCall hCall   ; 戻り値は stat
; hCall : DWORD -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "TAPI32.dll"
#cfunc global lineDeallocateCall "lineDeallocateCall" int
; res = lineDeallocateCall(hCall)
; hCall : DWORD -> "int"
; INT lineDeallocateCall(DWORD hCall)
#uselib "TAPI32.dll"
#cfunc global lineDeallocateCall "lineDeallocateCall" int
; res = lineDeallocateCall(hCall)
; hCall : DWORD -> "int"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	tapi32 = windows.NewLazySystemDLL("TAPI32.dll")
	proclineDeallocateCall = tapi32.NewProc("lineDeallocateCall")
)

// hCall (DWORD)
r1, _, err := proclineDeallocateCall.Call(
	uintptr(hCall),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // INT
function lineDeallocateCall(
  hCall: DWORD   // DWORD
): Integer; stdcall;
  external 'TAPI32.dll' name 'lineDeallocateCall';
result := DllCall("TAPI32\lineDeallocateCall"
    , "UInt", hCall   ; DWORD
    , "Int")   ; return: INT
●lineDeallocateCall(hCall) = DLL("TAPI32.dll", "int lineDeallocateCall(dword)")
# 呼び出し: lineDeallocateCall(hCall)
# hCall : DWORD -> "dword"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。