ホーム › UI.Accessibility › UiaGetReservedMixedAttributeValue
UiaGetReservedMixedAttributeValue
関数属性混在を表すUIオートメーション予約値を取得する。
シグネチャ
// UIAutomationCore.dll
#include <windows.h>
HRESULT UiaGetReservedMixedAttributeValue(
IUnknown** punkMixedAttributeValue
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| punkMixedAttributeValue | IUnknown** | out |
戻り値の型: HRESULT
各言語での呼び出し定義
// UIAutomationCore.dll
#include <windows.h>
HRESULT UiaGetReservedMixedAttributeValue(
IUnknown** punkMixedAttributeValue
);[DllImport("UIAutomationCore.dll", ExactSpelling = true)]
static extern int UiaGetReservedMixedAttributeValue(
IntPtr punkMixedAttributeValue // IUnknown** out
);<DllImport("UIAutomationCore.dll", ExactSpelling:=True)>
Public Shared Function UiaGetReservedMixedAttributeValue(
punkMixedAttributeValue As IntPtr ' IUnknown** out
) As Integer
End Function' punkMixedAttributeValue : IUnknown** out
Declare PtrSafe Function UiaGetReservedMixedAttributeValue Lib "uiautomationcore" ( _
ByVal punkMixedAttributeValue As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
UiaGetReservedMixedAttributeValue = ctypes.windll.uiautomationcore.UiaGetReservedMixedAttributeValue
UiaGetReservedMixedAttributeValue.restype = ctypes.c_int
UiaGetReservedMixedAttributeValue.argtypes = [
ctypes.c_void_p, # punkMixedAttributeValue : IUnknown** out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('UIAutomationCore.dll')
UiaGetReservedMixedAttributeValue = Fiddle::Function.new(
lib['UiaGetReservedMixedAttributeValue'],
[
Fiddle::TYPE_VOIDP, # punkMixedAttributeValue : IUnknown** out
],
Fiddle::TYPE_INT)#[link(name = "uiautomationcore")]
extern "system" {
fn UiaGetReservedMixedAttributeValue(
punkMixedAttributeValue: *mut *mut core::ffi::c_void // IUnknown** out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("UIAutomationCore.dll")]
public static extern int UiaGetReservedMixedAttributeValue(IntPtr punkMixedAttributeValue);
"@
$api = Add-Type -MemberDefinition $sig -Name 'UIAutomationCore_UiaGetReservedMixedAttributeValue' -Namespace Win32 -PassThru
# $api::UiaGetReservedMixedAttributeValue(punkMixedAttributeValue)#uselib "UIAutomationCore.dll"
#func global UiaGetReservedMixedAttributeValue "UiaGetReservedMixedAttributeValue" sptr
; UiaGetReservedMixedAttributeValue punkMixedAttributeValue ; 戻り値は stat
; punkMixedAttributeValue : IUnknown** out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "UIAutomationCore.dll"
#cfunc global UiaGetReservedMixedAttributeValue "UiaGetReservedMixedAttributeValue" sptr
; res = UiaGetReservedMixedAttributeValue(punkMixedAttributeValue)
; punkMixedAttributeValue : IUnknown** out -> "sptr"; HRESULT UiaGetReservedMixedAttributeValue(IUnknown** punkMixedAttributeValue)
#uselib "UIAutomationCore.dll"
#cfunc global UiaGetReservedMixedAttributeValue "UiaGetReservedMixedAttributeValue" intptr
; res = UiaGetReservedMixedAttributeValue(punkMixedAttributeValue)
; punkMixedAttributeValue : IUnknown** out -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
uiautomationcore = windows.NewLazySystemDLL("UIAutomationCore.dll")
procUiaGetReservedMixedAttributeValue = uiautomationcore.NewProc("UiaGetReservedMixedAttributeValue")
)
// punkMixedAttributeValue (IUnknown** out)
r1, _, err := procUiaGetReservedMixedAttributeValue.Call(
uintptr(punkMixedAttributeValue),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction UiaGetReservedMixedAttributeValue(
punkMixedAttributeValue: Pointer // IUnknown** out
): Integer; stdcall;
external 'UIAutomationCore.dll' name 'UiaGetReservedMixedAttributeValue';result := DllCall("UIAutomationCore\UiaGetReservedMixedAttributeValue"
, "Ptr", punkMixedAttributeValue ; IUnknown** out
, "Int") ; return: HRESULT●UiaGetReservedMixedAttributeValue(punkMixedAttributeValue) = DLL("UIAutomationCore.dll", "int UiaGetReservedMixedAttributeValue(void*)")
# 呼び出し: UiaGetReservedMixedAttributeValue(punkMixedAttributeValue)
# punkMixedAttributeValue : IUnknown** out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。