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