Win32 API 日本語リファレンス
ホームDevices.AllJoyn › alljoyn_busattachment_gettimestamp

alljoyn_busattachment_gettimestamp

関数
AllJoynの内部クロックによる現在のタイムスタンプを取得する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

// MSAJApi.dll
#include <windows.h>

DWORD alljoyn_busattachment_gettimestamp(void);

パラメーターなし。戻り値: DWORD

各言語での呼び出し定義

// MSAJApi.dll
#include <windows.h>

DWORD alljoyn_busattachment_gettimestamp(void);
[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern uint alljoyn_busattachment_gettimestamp();
<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Function alljoyn_busattachment_gettimestamp() As UInteger
End Function
Declare PtrSafe Function alljoyn_busattachment_gettimestamp Lib "msajapi" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

alljoyn_busattachment_gettimestamp = ctypes.windll.msajapi.alljoyn_busattachment_gettimestamp
alljoyn_busattachment_gettimestamp.restype = wintypes.DWORD
alljoyn_busattachment_gettimestamp.argtypes = []
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_busattachment_gettimestamp = Fiddle::Function.new(
  lib['alljoyn_busattachment_gettimestamp'],
  [],
  -Fiddle::TYPE_INT)
#[link(name = "msajapi")]
extern "system" {
    fn alljoyn_busattachment_gettimestamp() -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSAJApi.dll")]
public static extern uint alljoyn_busattachment_gettimestamp();
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_busattachment_gettimestamp' -Namespace Win32 -PassThru
# $api::alljoyn_busattachment_gettimestamp()
#uselib "MSAJApi.dll"
#func global alljoyn_busattachment_gettimestamp "alljoyn_busattachment_gettimestamp"
; alljoyn_busattachment_gettimestamp   ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "MSAJApi.dll"
#cfunc global alljoyn_busattachment_gettimestamp "alljoyn_busattachment_gettimestamp"
; res = alljoyn_busattachment_gettimestamp()
; DWORD alljoyn_busattachment_gettimestamp()
#uselib "MSAJApi.dll"
#cfunc global alljoyn_busattachment_gettimestamp "alljoyn_busattachment_gettimestamp"
; res = alljoyn_busattachment_gettimestamp()
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_busattachment_gettimestamp = msajapi.NewProc("alljoyn_busattachment_gettimestamp")
)

r1, _, err := procalljoyn_busattachment_gettimestamp.Call()
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // DWORD
function alljoyn_busattachment_gettimestamp: DWORD; stdcall;
  external 'MSAJApi.dll' name 'alljoyn_busattachment_gettimestamp';
result := DllCall("MSAJApi\alljoyn_busattachment_gettimestamp", "UInt")
●alljoyn_busattachment_gettimestamp() = DLL("MSAJApi.dll", "dword alljoyn_busattachment_gettimestamp()")
# 呼び出し: alljoyn_busattachment_gettimestamp()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。