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