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

alljoyn_getnumericversion

関数
AllJoynライブラリのバージョンを数値形式で取得する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

DWORD alljoyn_getnumericversion(void);

パラメーターなし。戻り値: DWORD

各言語での呼び出し定義

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

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

alljoyn_getnumericversion = ctypes.windll.msajapi.alljoyn_getnumericversion
alljoyn_getnumericversion.restype = wintypes.DWORD
alljoyn_getnumericversion.argtypes = []
require 'fiddle'
require 'fiddle/import'

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

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_getnumericversion = msajapi.NewProc("alljoyn_getnumericversion")
)

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