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

alljoyn_busobject_destroy

関数
AllJoynバスオブジェクトを破棄する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

void alljoyn_busobject_destroy(
    alljoyn_busobject bus
);

パラメーター

名前方向
busalljoyn_busobjectin

戻り値の型: void

各言語での呼び出し定義

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

void alljoyn_busobject_destroy(
    alljoyn_busobject bus
);
[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern void alljoyn_busobject_destroy(
    IntPtr bus   // alljoyn_busobject
);
<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Sub alljoyn_busobject_destroy(
    bus As IntPtr   ' alljoyn_busobject
)
End Sub
' bus : alljoyn_busobject
Declare PtrSafe Sub alljoyn_busobject_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_busobject_destroy = ctypes.windll.msajapi.alljoyn_busobject_destroy
alljoyn_busobject_destroy.restype = None
alljoyn_busobject_destroy.argtypes = [
    ctypes.c_ssize_t,  # bus : alljoyn_busobject
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_busobject_destroy = Fiddle::Function.new(
  lib['alljoyn_busobject_destroy'],
  [
    Fiddle::TYPE_INTPTR_T,  # bus : alljoyn_busobject
  ],
  Fiddle::TYPE_VOID)
#[link(name = "msajapi")]
extern "system" {
    fn alljoyn_busobject_destroy(
        bus: isize  // alljoyn_busobject
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSAJApi.dll")]
public static extern void alljoyn_busobject_destroy(IntPtr bus);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_busobject_destroy' -Namespace Win32 -PassThru
# $api::alljoyn_busobject_destroy(bus)
#uselib "MSAJApi.dll"
#func global alljoyn_busobject_destroy "alljoyn_busobject_destroy" sptr
; alljoyn_busobject_destroy bus
; bus : alljoyn_busobject -> "sptr"
#uselib "MSAJApi.dll"
#func global alljoyn_busobject_destroy "alljoyn_busobject_destroy" sptr
; alljoyn_busobject_destroy bus
; bus : alljoyn_busobject -> "sptr"
; void alljoyn_busobject_destroy(alljoyn_busobject bus)
#uselib "MSAJApi.dll"
#func global alljoyn_busobject_destroy "alljoyn_busobject_destroy" intptr
; alljoyn_busobject_destroy bus
; bus : alljoyn_busobject -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_busobject_destroy = msajapi.NewProc("alljoyn_busobject_destroy")
)

// bus (alljoyn_busobject)
r1, _, err := procalljoyn_busobject_destroy.Call(
	uintptr(bus),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure alljoyn_busobject_destroy(
  bus: NativeInt   // alljoyn_busobject
); stdcall;
  external 'MSAJApi.dll' name 'alljoyn_busobject_destroy';
result := DllCall("MSAJApi\alljoyn_busobject_destroy"
    , "Ptr", bus   ; alljoyn_busobject
    , "Int")   ; return: void
●alljoyn_busobject_destroy(bus) = DLL("MSAJApi.dll", "int alljoyn_busobject_destroy(int)")
# 呼び出し: alljoyn_busobject_destroy(bus)
# bus : alljoyn_busobject -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。