ホーム › UI.Accessibility › UiaDisconnectAllProviders
UiaDisconnectAllProviders
関数すべてのUIAプロバイダーを切断する。
シグネチャ
// UIAutomationCore.dll
#include <windows.h>
HRESULT UiaDisconnectAllProviders(void);パラメーターなし。戻り値: HRESULT
各言語での呼び出し定義
// UIAutomationCore.dll
#include <windows.h>
HRESULT UiaDisconnectAllProviders(void);[DllImport("UIAutomationCore.dll", ExactSpelling = true)]
static extern int UiaDisconnectAllProviders();<DllImport("UIAutomationCore.dll", ExactSpelling:=True)>
Public Shared Function UiaDisconnectAllProviders() As Integer
End FunctionDeclare PtrSafe Function UiaDisconnectAllProviders Lib "uiautomationcore" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
UiaDisconnectAllProviders = ctypes.windll.uiautomationcore.UiaDisconnectAllProviders
UiaDisconnectAllProviders.restype = ctypes.c_int
UiaDisconnectAllProviders.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('UIAutomationCore.dll')
UiaDisconnectAllProviders = Fiddle::Function.new(
lib['UiaDisconnectAllProviders'],
[],
Fiddle::TYPE_INT)#[link(name = "uiautomationcore")]
extern "system" {
fn UiaDisconnectAllProviders() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("UIAutomationCore.dll")]
public static extern int UiaDisconnectAllProviders();
"@
$api = Add-Type -MemberDefinition $sig -Name 'UIAutomationCore_UiaDisconnectAllProviders' -Namespace Win32 -PassThru
# $api::UiaDisconnectAllProviders()#uselib "UIAutomationCore.dll"
#func global UiaDisconnectAllProviders "UiaDisconnectAllProviders"
; UiaDisconnectAllProviders ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "UIAutomationCore.dll"
#cfunc global UiaDisconnectAllProviders "UiaDisconnectAllProviders"
; res = UiaDisconnectAllProviders(); HRESULT UiaDisconnectAllProviders()
#uselib "UIAutomationCore.dll"
#cfunc global UiaDisconnectAllProviders "UiaDisconnectAllProviders"
; res = UiaDisconnectAllProviders()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
uiautomationcore = windows.NewLazySystemDLL("UIAutomationCore.dll")
procUiaDisconnectAllProviders = uiautomationcore.NewProc("UiaDisconnectAllProviders")
)
r1, _, err := procUiaDisconnectAllProviders.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction UiaDisconnectAllProviders: Integer; stdcall;
external 'UIAutomationCore.dll' name 'UiaDisconnectAllProviders';result := DllCall("UIAutomationCore\UiaDisconnectAllProviders", "Int")●UiaDisconnectAllProviders() = DLL("UIAutomationCore.dll", "int UiaDisconnectAllProviders()")
# 呼び出し: UiaDisconnectAllProviders()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。