[英]How can I get the accessible name using win32 from c#?
How can I get the accessible name using win32 from c#? 如何从C#中使用Win32获得可访问的名称? (the accessible name was set using the standard win form designer)
(可访问名称是使用标准的win表单设计器设置的)
You Must use the Windows Automation API ( sounds strange for accesibility). 您必须使用Windows Automation API(对于可访问性来说听起来很奇怪)。 Call
呼叫
STDAPI AccessibleObjectFromWindow(
__in HWND hwnd,
__in DWORD dwObjectID,
__in REFIID riid,
__out void **ppvObject
);
with the REFIID IAccessible. 与REFIID IAccessible。 Cast ppvObject into IAccessible and read the member get_accName.
将ppvObject强制转换为IAccessible并读取成员get_accName。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.