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