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

alljoyn_busattachment_getconcurrency

関数
バスアタッチメントの並行コールバック数を取得する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

DWORD alljoyn_busattachment_getconcurrency(
    alljoyn_busattachment bus
);

パラメーター

名前方向
busalljoyn_busattachmentin

戻り値の型: DWORD

各言語での呼び出し定義

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

DWORD alljoyn_busattachment_getconcurrency(
    alljoyn_busattachment bus
);
[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern uint alljoyn_busattachment_getconcurrency(
    IntPtr bus   // alljoyn_busattachment
);
<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Function alljoyn_busattachment_getconcurrency(
    bus As IntPtr   ' alljoyn_busattachment
) As UInteger
End Function
' bus : alljoyn_busattachment
Declare PtrSafe Function alljoyn_busattachment_getconcurrency Lib "msajapi" ( _
    ByVal bus As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

alljoyn_busattachment_getconcurrency = ctypes.windll.msajapi.alljoyn_busattachment_getconcurrency
alljoyn_busattachment_getconcurrency.restype = wintypes.DWORD
alljoyn_busattachment_getconcurrency.argtypes = [
    ctypes.c_ssize_t,  # bus : alljoyn_busattachment
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_busattachment_getconcurrency = Fiddle::Function.new(
  lib['alljoyn_busattachment_getconcurrency'],
  [
    Fiddle::TYPE_INTPTR_T,  # bus : alljoyn_busattachment
  ],
  -Fiddle::TYPE_INT)
#[link(name = "msajapi")]
extern "system" {
    fn alljoyn_busattachment_getconcurrency(
        bus: isize  // alljoyn_busattachment
    ) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSAJApi.dll")]
public static extern uint alljoyn_busattachment_getconcurrency(IntPtr bus);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_busattachment_getconcurrency' -Namespace Win32 -PassThru
# $api::alljoyn_busattachment_getconcurrency(bus)
#uselib "MSAJApi.dll"
#func global alljoyn_busattachment_getconcurrency "alljoyn_busattachment_getconcurrency" sptr
; alljoyn_busattachment_getconcurrency bus   ; 戻り値は stat
; bus : alljoyn_busattachment -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "MSAJApi.dll"
#cfunc global alljoyn_busattachment_getconcurrency "alljoyn_busattachment_getconcurrency" sptr
; res = alljoyn_busattachment_getconcurrency(bus)
; bus : alljoyn_busattachment -> "sptr"
; DWORD alljoyn_busattachment_getconcurrency(alljoyn_busattachment bus)
#uselib "MSAJApi.dll"
#cfunc global alljoyn_busattachment_getconcurrency "alljoyn_busattachment_getconcurrency" intptr
; res = alljoyn_busattachment_getconcurrency(bus)
; bus : alljoyn_busattachment -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_busattachment_getconcurrency = msajapi.NewProc("alljoyn_busattachment_getconcurrency")
)

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