ホーム › Devices.AllJoyn › alljoyn_autopinger_destroy
alljoyn_autopinger_destroy
関数自動pingerを破棄してリソースを解放する。
シグネチャ
// MSAJApi.dll
#include <windows.h>
void alljoyn_autopinger_destroy(
alljoyn_autopinger autopinger
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| autopinger | alljoyn_autopinger | in |
戻り値の型: void
各言語での呼び出し定義
// MSAJApi.dll
#include <windows.h>
void alljoyn_autopinger_destroy(
alljoyn_autopinger autopinger
);[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern void alljoyn_autopinger_destroy(
IntPtr autopinger // alljoyn_autopinger
);<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Sub alljoyn_autopinger_destroy(
autopinger As IntPtr ' alljoyn_autopinger
)
End Sub' autopinger : alljoyn_autopinger
Declare PtrSafe Sub alljoyn_autopinger_destroy Lib "msajapi" ( _
ByVal autopinger As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
alljoyn_autopinger_destroy = ctypes.windll.msajapi.alljoyn_autopinger_destroy
alljoyn_autopinger_destroy.restype = None
alljoyn_autopinger_destroy.argtypes = [
ctypes.c_ssize_t, # autopinger : alljoyn_autopinger
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_autopinger_destroy = Fiddle::Function.new(
lib['alljoyn_autopinger_destroy'],
[
Fiddle::TYPE_INTPTR_T, # autopinger : alljoyn_autopinger
],
Fiddle::TYPE_VOID)#[link(name = "msajapi")]
extern "system" {
fn alljoyn_autopinger_destroy(
autopinger: isize // alljoyn_autopinger
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("MSAJApi.dll")]
public static extern void alljoyn_autopinger_destroy(IntPtr autopinger);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_autopinger_destroy' -Namespace Win32 -PassThru
# $api::alljoyn_autopinger_destroy(autopinger)#uselib "MSAJApi.dll"
#func global alljoyn_autopinger_destroy "alljoyn_autopinger_destroy" sptr
; alljoyn_autopinger_destroy autopinger
; autopinger : alljoyn_autopinger -> "sptr"#uselib "MSAJApi.dll"
#func global alljoyn_autopinger_destroy "alljoyn_autopinger_destroy" sptr
; alljoyn_autopinger_destroy autopinger
; autopinger : alljoyn_autopinger -> "sptr"; void alljoyn_autopinger_destroy(alljoyn_autopinger autopinger)
#uselib "MSAJApi.dll"
#func global alljoyn_autopinger_destroy "alljoyn_autopinger_destroy" intptr
; alljoyn_autopinger_destroy autopinger
; autopinger : alljoyn_autopinger -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
procalljoyn_autopinger_destroy = msajapi.NewProc("alljoyn_autopinger_destroy")
)
// autopinger (alljoyn_autopinger)
r1, _, err := procalljoyn_autopinger_destroy.Call(
uintptr(autopinger),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure alljoyn_autopinger_destroy(
autopinger: NativeInt // alljoyn_autopinger
); stdcall;
external 'MSAJApi.dll' name 'alljoyn_autopinger_destroy';result := DllCall("MSAJApi\alljoyn_autopinger_destroy"
, "Ptr", autopinger ; alljoyn_autopinger
, "Int") ; return: void●alljoyn_autopinger_destroy(autopinger) = DLL("MSAJApi.dll", "int alljoyn_autopinger_destroy(int)")
# 呼び出し: alljoyn_autopinger_destroy(autopinger)
# autopinger : alljoyn_autopinger -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。