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