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