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