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

alljoyn_interfacedescription_property_getannotationscount

関数
インターフェイスプロパティに付与された注釈の総数を取得する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

UINT_PTR alljoyn_interfacedescription_property_getannotationscount(
    alljoyn_interfacedescription_property property
);

パラメーター

名前方向
propertyalljoyn_interfacedescription_propertyin

戻り値の型: UINT_PTR

各言語での呼び出し定義

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

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

alljoyn_interfacedescription_property_getannotationscount = ctypes.windll.msajapi.alljoyn_interfacedescription_property_getannotationscount
alljoyn_interfacedescription_property_getannotationscount.restype = ctypes.c_size_t
alljoyn_interfacedescription_property_getannotationscount.argtypes = [
    alljoyn_interfacedescription_property,  # property : alljoyn_interfacedescription_property
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_interfacedescription_property_getannotationscount = Fiddle::Function.new(
  lib['alljoyn_interfacedescription_property_getannotationscount'],
  [
    Fiddle::TYPE_VOIDP,  # property : alljoyn_interfacedescription_property
  ],
  Fiddle::TYPE_UINTPTR_T)
#[link(name = "msajapi")]
extern "system" {
    fn alljoyn_interfacedescription_property_getannotationscount(
        property: alljoyn_interfacedescription_property  // alljoyn_interfacedescription_property
    ) -> usize;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSAJApi.dll")]
public static extern UIntPtr alljoyn_interfacedescription_property_getannotationscount(alljoyn_interfacedescription_property property);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_interfacedescription_property_getannotationscount' -Namespace Win32 -PassThru
# $api::alljoyn_interfacedescription_property_getannotationscount(property)
#uselib "MSAJApi.dll"
#func global alljoyn_interfacedescription_property_getannotationscount "alljoyn_interfacedescription_property_getannotationscount" sptr
; alljoyn_interfacedescription_property_getannotationscount property   ; 戻り値は stat
; property : alljoyn_interfacedescription_property -> "sptr"
; ※値渡し構造体は直接渡せません。intにパック、または var で構造体変数を渡してください。
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "MSAJApi.dll"
#cfunc global alljoyn_interfacedescription_property_getannotationscount "alljoyn_interfacedescription_property_getannotationscount" int
; res = alljoyn_interfacedescription_property_getannotationscount(property)
; property : alljoyn_interfacedescription_property -> "int"
; ※値渡し構造体は直接渡せません。intにパック、または var で構造体変数を渡してください。
; UINT_PTR alljoyn_interfacedescription_property_getannotationscount(alljoyn_interfacedescription_property property)
#uselib "MSAJApi.dll"
#cfunc global alljoyn_interfacedescription_property_getannotationscount "alljoyn_interfacedescription_property_getannotationscount" int
; res = alljoyn_interfacedescription_property_getannotationscount(property)
; property : alljoyn_interfacedescription_property -> "int"
; ※値渡し構造体は直接渡せません。intにパック、または var で構造体変数を渡してください。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_interfacedescription_property_getannotationscount = msajapi.NewProc("alljoyn_interfacedescription_property_getannotationscount")
)

// property (alljoyn_interfacedescription_property)
r1, _, err := procalljoyn_interfacedescription_property_getannotationscount.Call(
	uintptr(property),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // UINT_PTR
function alljoyn_interfacedescription_property_getannotationscount(
  property: alljoyn_interfacedescription_property   // alljoyn_interfacedescription_property
): NativeUInt; stdcall;
  external 'MSAJApi.dll' name 'alljoyn_interfacedescription_property_getannotationscount';
result := DllCall("MSAJApi\alljoyn_interfacedescription_property_getannotationscount"
    , "Ptr", property   ; alljoyn_interfacedescription_property
    , "UPtr")   ; return: UINT_PTR
●alljoyn_interfacedescription_property_getannotationscount(property) = DLL("MSAJApi.dll", "int alljoyn_interfacedescription_property_getannotationscount(void*)")
# 呼び出し: alljoyn_interfacedescription_property_getannotationscount(property)
# property : alljoyn_interfacedescription_property -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。