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