ホーム › Devices.AllJoyn › alljoyn_interfacedescription_eql
alljoyn_interfacedescription_eql
関数2つのインターフェイス記述が等価かどうかを比較する。
シグネチャ
// MSAJApi.dll
#include <windows.h>
INT alljoyn_interfacedescription_eql(
alljoyn_interfacedescription one,
alljoyn_interfacedescription other
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| one | alljoyn_interfacedescription | in |
| other | alljoyn_interfacedescription | in |
戻り値の型: INT
各言語での呼び出し定義
// MSAJApi.dll
#include <windows.h>
INT alljoyn_interfacedescription_eql(
alljoyn_interfacedescription one,
alljoyn_interfacedescription other
);[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern int alljoyn_interfacedescription_eql(
IntPtr one, // alljoyn_interfacedescription
IntPtr other // alljoyn_interfacedescription
);<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Function alljoyn_interfacedescription_eql(
one As IntPtr, ' alljoyn_interfacedescription
other As IntPtr ' alljoyn_interfacedescription
) As Integer
End Function' one : alljoyn_interfacedescription
' other : alljoyn_interfacedescription
Declare PtrSafe Function alljoyn_interfacedescription_eql Lib "msajapi" ( _
ByVal one As LongPtr, _
ByVal other As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
alljoyn_interfacedescription_eql = ctypes.windll.msajapi.alljoyn_interfacedescription_eql
alljoyn_interfacedescription_eql.restype = ctypes.c_int
alljoyn_interfacedescription_eql.argtypes = [
ctypes.c_ssize_t, # one : alljoyn_interfacedescription
ctypes.c_ssize_t, # other : alljoyn_interfacedescription
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_interfacedescription_eql = Fiddle::Function.new(
lib['alljoyn_interfacedescription_eql'],
[
Fiddle::TYPE_INTPTR_T, # one : alljoyn_interfacedescription
Fiddle::TYPE_INTPTR_T, # other : alljoyn_interfacedescription
],
Fiddle::TYPE_INT)#[link(name = "msajapi")]
extern "system" {
fn alljoyn_interfacedescription_eql(
one: isize, // alljoyn_interfacedescription
other: isize // alljoyn_interfacedescription
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("MSAJApi.dll")]
public static extern int alljoyn_interfacedescription_eql(IntPtr one, IntPtr other);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_interfacedescription_eql' -Namespace Win32 -PassThru
# $api::alljoyn_interfacedescription_eql(one, other)#uselib "MSAJApi.dll"
#func global alljoyn_interfacedescription_eql "alljoyn_interfacedescription_eql" sptr, sptr
; alljoyn_interfacedescription_eql one, other ; 戻り値は stat
; one : alljoyn_interfacedescription -> "sptr"
; other : alljoyn_interfacedescription -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "MSAJApi.dll"
#cfunc global alljoyn_interfacedescription_eql "alljoyn_interfacedescription_eql" sptr, sptr
; res = alljoyn_interfacedescription_eql(one, other)
; one : alljoyn_interfacedescription -> "sptr"
; other : alljoyn_interfacedescription -> "sptr"; INT alljoyn_interfacedescription_eql(alljoyn_interfacedescription one, alljoyn_interfacedescription other)
#uselib "MSAJApi.dll"
#cfunc global alljoyn_interfacedescription_eql "alljoyn_interfacedescription_eql" intptr, intptr
; res = alljoyn_interfacedescription_eql(one, other)
; one : alljoyn_interfacedescription -> "intptr"
; other : alljoyn_interfacedescription -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
procalljoyn_interfacedescription_eql = msajapi.NewProc("alljoyn_interfacedescription_eql")
)
// one (alljoyn_interfacedescription), other (alljoyn_interfacedescription)
r1, _, err := procalljoyn_interfacedescription_eql.Call(
uintptr(one),
uintptr(other),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // INTfunction alljoyn_interfacedescription_eql(
one: NativeInt; // alljoyn_interfacedescription
other: NativeInt // alljoyn_interfacedescription
): Integer; stdcall;
external 'MSAJApi.dll' name 'alljoyn_interfacedescription_eql';result := DllCall("MSAJApi\alljoyn_interfacedescription_eql"
, "Ptr", one ; alljoyn_interfacedescription
, "Ptr", other ; alljoyn_interfacedescription
, "Int") ; return: INT●alljoyn_interfacedescription_eql(one, other) = DLL("MSAJApi.dll", "int alljoyn_interfacedescription_eql(int, int)")
# 呼び出し: alljoyn_interfacedescription_eql(one, other)
# one : alljoyn_interfacedescription -> "int"
# other : alljoyn_interfacedescription -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。