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

alljoyn_proxybusobject_getchildren

関数
プロキシバスオブジェクトの子オブジェクト一覧を取得する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

UINT_PTR alljoyn_proxybusobject_getchildren(
    alljoyn_proxybusobject proxyObj,
    alljoyn_proxybusobject* children,
    UINT_PTR numChildren
);

パラメーター

名前方向
proxyObjalljoyn_proxybusobjectin
childrenalljoyn_proxybusobject*inout
numChildrenUINT_PTRin

戻り値の型: UINT_PTR

各言語での呼び出し定義

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

UINT_PTR alljoyn_proxybusobject_getchildren(
    alljoyn_proxybusobject proxyObj,
    alljoyn_proxybusobject* children,
    UINT_PTR numChildren
);
[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern UIntPtr alljoyn_proxybusobject_getchildren(
    IntPtr proxyObj,   // alljoyn_proxybusobject
    ref IntPtr children,   // alljoyn_proxybusobject* in/out
    UIntPtr numChildren   // UINT_PTR
);
<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Function alljoyn_proxybusobject_getchildren(
    proxyObj As IntPtr,   ' alljoyn_proxybusobject
    ByRef children As IntPtr,   ' alljoyn_proxybusobject* in/out
    numChildren As UIntPtr   ' UINT_PTR
) As UIntPtr
End Function
' proxyObj : alljoyn_proxybusobject
' children : alljoyn_proxybusobject* in/out
' numChildren : UINT_PTR
Declare PtrSafe Function alljoyn_proxybusobject_getchildren Lib "msajapi" ( _
    ByVal proxyObj As LongPtr, _
    ByRef children As LongPtr, _
    ByVal numChildren As LongPtr) As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

alljoyn_proxybusobject_getchildren = ctypes.windll.msajapi.alljoyn_proxybusobject_getchildren
alljoyn_proxybusobject_getchildren.restype = ctypes.c_size_t
alljoyn_proxybusobject_getchildren.argtypes = [
    ctypes.c_ssize_t,  # proxyObj : alljoyn_proxybusobject
    ctypes.c_void_p,  # children : alljoyn_proxybusobject* in/out
    ctypes.c_size_t,  # numChildren : UINT_PTR
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_proxybusobject_getchildren = Fiddle::Function.new(
  lib['alljoyn_proxybusobject_getchildren'],
  [
    Fiddle::TYPE_INTPTR_T,  # proxyObj : alljoyn_proxybusobject
    Fiddle::TYPE_VOIDP,  # children : alljoyn_proxybusobject* in/out
    Fiddle::TYPE_UINTPTR_T,  # numChildren : UINT_PTR
  ],
  Fiddle::TYPE_UINTPTR_T)
#[link(name = "msajapi")]
extern "system" {
    fn alljoyn_proxybusobject_getchildren(
        proxyObj: isize,  // alljoyn_proxybusobject
        children: *mut isize,  // alljoyn_proxybusobject* in/out
        numChildren: usize  // UINT_PTR
    ) -> usize;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSAJApi.dll")]
public static extern UIntPtr alljoyn_proxybusobject_getchildren(IntPtr proxyObj, ref IntPtr children, UIntPtr numChildren);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_proxybusobject_getchildren' -Namespace Win32 -PassThru
# $api::alljoyn_proxybusobject_getchildren(proxyObj, children, numChildren)
#uselib "MSAJApi.dll"
#func global alljoyn_proxybusobject_getchildren "alljoyn_proxybusobject_getchildren" sptr, sptr, sptr
; alljoyn_proxybusobject_getchildren proxyObj, children, numChildren   ; 戻り値は stat
; proxyObj : alljoyn_proxybusobject -> "sptr"
; children : alljoyn_proxybusobject* in/out -> "sptr"
; numChildren : UINT_PTR -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "MSAJApi.dll"
#cfunc global alljoyn_proxybusobject_getchildren "alljoyn_proxybusobject_getchildren" sptr, int, sptr
; res = alljoyn_proxybusobject_getchildren(proxyObj, children, numChildren)
; proxyObj : alljoyn_proxybusobject -> "sptr"
; children : alljoyn_proxybusobject* in/out -> "int"
; numChildren : UINT_PTR -> "sptr"
; UINT_PTR alljoyn_proxybusobject_getchildren(alljoyn_proxybusobject proxyObj, alljoyn_proxybusobject* children, UINT_PTR numChildren)
#uselib "MSAJApi.dll"
#cfunc global alljoyn_proxybusobject_getchildren "alljoyn_proxybusobject_getchildren" intptr, int, intptr
; res = alljoyn_proxybusobject_getchildren(proxyObj, children, numChildren)
; proxyObj : alljoyn_proxybusobject -> "intptr"
; children : alljoyn_proxybusobject* in/out -> "int"
; numChildren : UINT_PTR -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_proxybusobject_getchildren = msajapi.NewProc("alljoyn_proxybusobject_getchildren")
)

// proxyObj (alljoyn_proxybusobject), children (alljoyn_proxybusobject* in/out), numChildren (UINT_PTR)
r1, _, err := procalljoyn_proxybusobject_getchildren.Call(
	uintptr(proxyObj),
	uintptr(children),
	uintptr(numChildren),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // UINT_PTR
function alljoyn_proxybusobject_getchildren(
  proxyObj: NativeInt;   // alljoyn_proxybusobject
  children: Pointer;   // alljoyn_proxybusobject* in/out
  numChildren: NativeUInt   // UINT_PTR
): NativeUInt; stdcall;
  external 'MSAJApi.dll' name 'alljoyn_proxybusobject_getchildren';
result := DllCall("MSAJApi\alljoyn_proxybusobject_getchildren"
    , "Ptr", proxyObj   ; alljoyn_proxybusobject
    , "Ptr", children   ; alljoyn_proxybusobject* in/out
    , "UPtr", numChildren   ; UINT_PTR
    , "UPtr")   ; return: UINT_PTR
●alljoyn_proxybusobject_getchildren(proxyObj, children, numChildren) = DLL("MSAJApi.dll", "int alljoyn_proxybusobject_getchildren(int, void*, int)")
# 呼び出し: alljoyn_proxybusobject_getchildren(proxyObj, children, numChildren)
# proxyObj : alljoyn_proxybusobject -> "int"
# children : alljoyn_proxybusobject* in/out -> "void*"
# numChildren : UINT_PTR -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。