ホーム › UI.Accessibility › UiaGetReservedNotSupportedValue
UiaGetReservedNotSupportedValue
関数未サポートを表すUIオートメーション予約値を取得する。
シグネチャ
// UIAutomationCore.dll
#include <windows.h>
HRESULT UiaGetReservedNotSupportedValue(
IUnknown** punkNotSupportedValue
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| punkNotSupportedValue | IUnknown** | out | 未サポート値を表す予約済みIUnknownオブジェクトを受け取る出力先。プロパティ非対応の判定に用いる。 |
戻り値の型: HRESULT
各言語での呼び出し定義
// UIAutomationCore.dll
#include <windows.h>
HRESULT UiaGetReservedNotSupportedValue(
IUnknown** punkNotSupportedValue
);[DllImport("UIAutomationCore.dll", ExactSpelling = true)]
static extern int UiaGetReservedNotSupportedValue(
IntPtr punkNotSupportedValue // IUnknown** out
);<DllImport("UIAutomationCore.dll", ExactSpelling:=True)>
Public Shared Function UiaGetReservedNotSupportedValue(
punkNotSupportedValue As IntPtr ' IUnknown** out
) As Integer
End Function' punkNotSupportedValue : IUnknown** out
Declare PtrSafe Function UiaGetReservedNotSupportedValue Lib "uiautomationcore" ( _
ByVal punkNotSupportedValue As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
UiaGetReservedNotSupportedValue = ctypes.windll.uiautomationcore.UiaGetReservedNotSupportedValue
UiaGetReservedNotSupportedValue.restype = ctypes.c_int
UiaGetReservedNotSupportedValue.argtypes = [
ctypes.c_void_p, # punkNotSupportedValue : IUnknown** out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('UIAutomationCore.dll')
UiaGetReservedNotSupportedValue = Fiddle::Function.new(
lib['UiaGetReservedNotSupportedValue'],
[
Fiddle::TYPE_VOIDP, # punkNotSupportedValue : IUnknown** out
],
Fiddle::TYPE_INT)#[link(name = "uiautomationcore")]
extern "system" {
fn UiaGetReservedNotSupportedValue(
punkNotSupportedValue: *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 UiaGetReservedNotSupportedValue(IntPtr punkNotSupportedValue);
"@
$api = Add-Type -MemberDefinition $sig -Name 'UIAutomationCore_UiaGetReservedNotSupportedValue' -Namespace Win32 -PassThru
# $api::UiaGetReservedNotSupportedValue(punkNotSupportedValue)#uselib "UIAutomationCore.dll"
#func global UiaGetReservedNotSupportedValue "UiaGetReservedNotSupportedValue" sptr
; UiaGetReservedNotSupportedValue punkNotSupportedValue ; 戻り値は stat
; punkNotSupportedValue : IUnknown** out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "UIAutomationCore.dll"
#cfunc global UiaGetReservedNotSupportedValue "UiaGetReservedNotSupportedValue" sptr
; res = UiaGetReservedNotSupportedValue(punkNotSupportedValue)
; punkNotSupportedValue : IUnknown** out -> "sptr"; HRESULT UiaGetReservedNotSupportedValue(IUnknown** punkNotSupportedValue)
#uselib "UIAutomationCore.dll"
#cfunc global UiaGetReservedNotSupportedValue "UiaGetReservedNotSupportedValue" intptr
; res = UiaGetReservedNotSupportedValue(punkNotSupportedValue)
; punkNotSupportedValue : IUnknown** out -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
uiautomationcore = windows.NewLazySystemDLL("UIAutomationCore.dll")
procUiaGetReservedNotSupportedValue = uiautomationcore.NewProc("UiaGetReservedNotSupportedValue")
)
// punkNotSupportedValue (IUnknown** out)
r1, _, err := procUiaGetReservedNotSupportedValue.Call(
uintptr(punkNotSupportedValue),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction UiaGetReservedNotSupportedValue(
punkNotSupportedValue: Pointer // IUnknown** out
): Integer; stdcall;
external 'UIAutomationCore.dll' name 'UiaGetReservedNotSupportedValue';result := DllCall("UIAutomationCore\UiaGetReservedNotSupportedValue"
, "Ptr", punkNotSupportedValue ; IUnknown** out
, "Int") ; return: HRESULT●UiaGetReservedNotSupportedValue(punkNotSupportedValue) = DLL("UIAutomationCore.dll", "int UiaGetReservedNotSupportedValue(void*)")
# 呼び出し: UiaGetReservedNotSupportedValue(punkNotSupportedValue)
# punkNotSupportedValue : IUnknown** out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。const std = @import("std");
extern "uiautomationcore" fn UiaGetReservedNotSupportedValue(
punkNotSupportedValue: ?*anyopaque // IUnknown** out
) callconv(std.os.windows.WINAPI) i32;proc UiaGetReservedNotSupportedValue(
punkNotSupportedValue: pointer # IUnknown** out
): int32 {.importc: "UiaGetReservedNotSupportedValue", stdcall, dynlib: "UIAutomationCore.dll".}pragma(lib, "uiautomationcore");
extern(Windows)
int UiaGetReservedNotSupportedValue(
void* punkNotSupportedValue // IUnknown** out
);ccall((:UiaGetReservedNotSupportedValue, "UIAutomationCore.dll"), stdcall, Int32,
(Ptr{Cvoid},),
punkNotSupportedValue)
# punkNotSupportedValue : IUnknown** out -> Ptr{Cvoid}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。local ffi = require("ffi")
ffi.cdef[[
int32_t UiaGetReservedNotSupportedValue(
void* punkNotSupportedValue);
]]
local uiautomationcore = ffi.load("uiautomationcore")
-- uiautomationcore.UiaGetReservedNotSupportedValue(punkNotSupportedValue)
-- punkNotSupportedValue : IUnknown** out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。const koffi = require('koffi');
const lib = koffi.load('UIAutomationCore.dll');
const UiaGetReservedNotSupportedValue = lib.func('__stdcall', 'UiaGetReservedNotSupportedValue', 'int32_t', ['void *']);
// UiaGetReservedNotSupportedValue(punkNotSupportedValue)
// punkNotSupportedValue : IUnknown** out -> 'void *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("UIAutomationCore.dll", {
UiaGetReservedNotSupportedValue: { parameters: ["pointer"], result: "i32" },
});
// lib.symbols.UiaGetReservedNotSupportedValue(punkNotSupportedValue)
// punkNotSupportedValue : IUnknown** out -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
int32_t UiaGetReservedNotSupportedValue(
void* punkNotSupportedValue);
C, "UIAutomationCore.dll");
// $ffi->UiaGetReservedNotSupportedValue(punkNotSupportedValue);
// punkNotSupportedValue : IUnknown** out
// 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
// WINAPI(stdcall): x64 では呼出規約が統一されるため問題なし。x86 では __stdcall 対応のラッパが必要な場合あり。import com.sun.jna.*;
import com.sun.jna.ptr.*;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;
public interface Uiautomationcore extends StdCallLibrary {
Uiautomationcore INSTANCE = Native.load("uiautomationcore", Uiautomationcore.class);
int UiaGetReservedNotSupportedValue(
Pointer punkNotSupportedValue // IUnknown** out
);
}@[Link("uiautomationcore")]
lib LibUIAutomationCore
fun UiaGetReservedNotSupportedValue = UiaGetReservedNotSupportedValue(
punkNotSupportedValue : Void* # IUnknown** out
) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。import 'dart:ffi';
import 'package:ffi/ffi.dart';
typedef UiaGetReservedNotSupportedValueNative = Int32 Function(Pointer<Void>);
typedef UiaGetReservedNotSupportedValueDart = int Function(Pointer<Void>);
final UiaGetReservedNotSupportedValue = DynamicLibrary.open('UIAutomationCore.dll')
.lookupFunction<UiaGetReservedNotSupportedValueNative, UiaGetReservedNotSupportedValueDart>('UiaGetReservedNotSupportedValue');
// punkNotSupportedValue : IUnknown** out -> Pointer<Void>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
function UiaGetReservedNotSupportedValue(
punkNotSupportedValue: Pointer // IUnknown** out
): Integer; stdcall;
external 'UIAutomationCore.dll' name 'UiaGetReservedNotSupportedValue';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "UiaGetReservedNotSupportedValue"
c_UiaGetReservedNotSupportedValue :: Ptr () -> IO Int32
-- punkNotSupportedValue : IUnknown** out -> Ptr ()
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let uiagetreservednotsupportedvalue =
foreign "UiaGetReservedNotSupportedValue"
((ptr void) @-> returning int32_t)
(* punkNotSupportedValue : IUnknown** out -> (ptr void) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library uiautomationcore (t "UIAutomationCore.dll"))
(cffi:use-foreign-library uiautomationcore)
(cffi:defcfun ("UiaGetReservedNotSupportedValue" uia-get-reserved-not-supported-value :convention :stdcall) :int32
(punk-not-supported-value :pointer)) ; IUnknown** out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $UiaGetReservedNotSupportedValue = Win32::API::More->new('UIAutomationCore',
'int UiaGetReservedNotSupportedValue(LPVOID punkNotSupportedValue)');
# my $ret = $UiaGetReservedNotSupportedValue->Call($punkNotSupportedValue);
# punkNotSupportedValue : IUnknown** out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。関連項目
使用する型