An AI Agent that interacts with Windows OS at GUI level.
Python
UiaProviderCallback
UiaProviderCallback callback function (uiautomationcoreapi.h)
Note This function is deprecated. Client applications should use the Microsoft UI Automation Component Object Model (COM) interfaces instead.
An application-defined function that is called by UI Automation to obtain a client-side provider for an element.
Syntax
UiaProviderCallback Uiaprovidercallback;
SAFEARRAY * Uiaprovidercallback(
[in] HWND hwnd,
[in] ProviderType providerType
)
{...}
Parameters
[in] hwnd
Type: HWND
The handle of the window served by the provider.
[in] providerType
Type: ProviderType
A value from the ProviderType enumerated type specifying the type of provider that is being requested.
Return value
Type: SAFEARRAY
A SAFEARRAY containing the requested provider.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | uiautomationcoreapi.h |