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