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