ホーム › Devices.AllJoyn › alljoyn_proxybusobject_introspectremoteobjectasync
alljoyn_proxybusobject_introspectremoteobjectasync
関数リモートオブジェクトのイントロスペクションを非同期で実行する。
シグネチャ
// MSAJApi.dll
#include <windows.h>
QStatus alljoyn_proxybusobject_introspectremoteobjectasync(
alljoyn_proxybusobject proxyObj,
alljoyn_proxybusobject_listener_introspectcb_ptr callback,
void* context
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| proxyObj | alljoyn_proxybusobject | in | リモートオブジェクトを非同期にイントロスペクトする対象のプロキシハンドル。 |
| callback | alljoyn_proxybusobject_listener_introspectcb_ptr | in | イントロスペクション完了時に呼ばれるコールバック関数へのポインター。 |
| context | void* | inout | コールバックに渡される任意のユーザーコンテキスト。NULL可。 |
戻り値の型: QStatus
各言語での呼び出し定義
// MSAJApi.dll
#include <windows.h>
QStatus alljoyn_proxybusobject_introspectremoteobjectasync(
alljoyn_proxybusobject proxyObj,
alljoyn_proxybusobject_listener_introspectcb_ptr callback,
void* context
);[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern int alljoyn_proxybusobject_introspectremoteobjectasync(
IntPtr proxyObj, // alljoyn_proxybusobject
IntPtr callback, // alljoyn_proxybusobject_listener_introspectcb_ptr
IntPtr context // void* in/out
);<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Function alljoyn_proxybusobject_introspectremoteobjectasync(
proxyObj As IntPtr, ' alljoyn_proxybusobject
callback As IntPtr, ' alljoyn_proxybusobject_listener_introspectcb_ptr
context As IntPtr ' void* in/out
) As Integer
End Function' proxyObj : alljoyn_proxybusobject
' callback : alljoyn_proxybusobject_listener_introspectcb_ptr
' context : void* in/out
Declare PtrSafe Function alljoyn_proxybusobject_introspectremoteobjectasync Lib "msajapi" ( _
ByVal proxyObj As LongPtr, _
ByVal callback As LongPtr, _
ByVal context As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
alljoyn_proxybusobject_introspectremoteobjectasync = ctypes.windll.msajapi.alljoyn_proxybusobject_introspectremoteobjectasync
alljoyn_proxybusobject_introspectremoteobjectasync.restype = ctypes.c_int
alljoyn_proxybusobject_introspectremoteobjectasync.argtypes = [
ctypes.c_ssize_t, # proxyObj : alljoyn_proxybusobject
ctypes.c_void_p, # callback : alljoyn_proxybusobject_listener_introspectcb_ptr
ctypes.POINTER(None), # context : void* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_proxybusobject_introspectremoteobjectasync = Fiddle::Function.new(
lib['alljoyn_proxybusobject_introspectremoteobjectasync'],
[
Fiddle::TYPE_INTPTR_T, # proxyObj : alljoyn_proxybusobject
Fiddle::TYPE_VOIDP, # callback : alljoyn_proxybusobject_listener_introspectcb_ptr
Fiddle::TYPE_VOIDP, # context : void* in/out
],
Fiddle::TYPE_INT)#[link(name = "msajapi")]
extern "system" {
fn alljoyn_proxybusobject_introspectremoteobjectasync(
proxyObj: isize, // alljoyn_proxybusobject
callback: *const core::ffi::c_void, // alljoyn_proxybusobject_listener_introspectcb_ptr
context: *mut () // void* in/out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("MSAJApi.dll")]
public static extern int alljoyn_proxybusobject_introspectremoteobjectasync(IntPtr proxyObj, IntPtr callback, IntPtr context);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_proxybusobject_introspectremoteobjectasync' -Namespace Win32 -PassThru
# $api::alljoyn_proxybusobject_introspectremoteobjectasync(proxyObj, callback, context)#uselib "MSAJApi.dll"
#func global alljoyn_proxybusobject_introspectremoteobjectasync "alljoyn_proxybusobject_introspectremoteobjectasync" sptr, sptr, sptr
; alljoyn_proxybusobject_introspectremoteobjectasync proxyObj, callback, context ; 戻り値は stat
; proxyObj : alljoyn_proxybusobject -> "sptr"
; callback : alljoyn_proxybusobject_listener_introspectcb_ptr -> "sptr"
; context : void* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "MSAJApi.dll"
#cfunc global alljoyn_proxybusobject_introspectremoteobjectasync "alljoyn_proxybusobject_introspectremoteobjectasync" sptr, sptr, sptr
; res = alljoyn_proxybusobject_introspectremoteobjectasync(proxyObj, callback, context)
; proxyObj : alljoyn_proxybusobject -> "sptr"
; callback : alljoyn_proxybusobject_listener_introspectcb_ptr -> "sptr"
; context : void* in/out -> "sptr"; QStatus alljoyn_proxybusobject_introspectremoteobjectasync(alljoyn_proxybusobject proxyObj, alljoyn_proxybusobject_listener_introspectcb_ptr callback, void* context)
#uselib "MSAJApi.dll"
#cfunc global alljoyn_proxybusobject_introspectremoteobjectasync "alljoyn_proxybusobject_introspectremoteobjectasync" intptr, intptr, intptr
; res = alljoyn_proxybusobject_introspectremoteobjectasync(proxyObj, callback, context)
; proxyObj : alljoyn_proxybusobject -> "intptr"
; callback : alljoyn_proxybusobject_listener_introspectcb_ptr -> "intptr"
; context : void* in/out -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
procalljoyn_proxybusobject_introspectremoteobjectasync = msajapi.NewProc("alljoyn_proxybusobject_introspectremoteobjectasync")
)
// proxyObj (alljoyn_proxybusobject), callback (alljoyn_proxybusobject_listener_introspectcb_ptr), context (void* in/out)
r1, _, err := procalljoyn_proxybusobject_introspectremoteobjectasync.Call(
uintptr(proxyObj),
uintptr(callback),
uintptr(context),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // QStatusfunction alljoyn_proxybusobject_introspectremoteobjectasync(
proxyObj: NativeInt; // alljoyn_proxybusobject
callback: Pointer; // alljoyn_proxybusobject_listener_introspectcb_ptr
context: Pointer // void* in/out
): Integer; stdcall;
external 'MSAJApi.dll' name 'alljoyn_proxybusobject_introspectremoteobjectasync';result := DllCall("MSAJApi\alljoyn_proxybusobject_introspectremoteobjectasync"
, "Ptr", proxyObj ; alljoyn_proxybusobject
, "Ptr", callback ; alljoyn_proxybusobject_listener_introspectcb_ptr
, "Ptr", context ; void* in/out
, "Int") ; return: QStatus●alljoyn_proxybusobject_introspectremoteobjectasync(proxyObj, callback, context) = DLL("MSAJApi.dll", "int alljoyn_proxybusobject_introspectremoteobjectasync(int, void*, void*)")
# 呼び出し: alljoyn_proxybusobject_introspectremoteobjectasync(proxyObj, callback, context)
# proxyObj : alljoyn_proxybusobject -> "int"
# callback : alljoyn_proxybusobject_listener_introspectcb_ptr -> "void*"
# context : void* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。