10 {
11
12
13 Microsoft::WRL::ComPtr<IUIAutomationRegistrar> registrar;
14 if (
FAILED(CoCreateInstance(CLSID_CUIAutomationRegistrar,
nullptr,
15 CLSCTX_INPROC_SERVER, IID_IUIAutomationRegistrar,
16 ®istrar)))
17 return;
18
19
20
21 UIAutomationPropertyInfo unique_id_property_info = {
23 registrar->RegisterProperty(&unique_id_property_info,
24 &uia_unique_id_property_id_);
25
26
27
28 UIAutomationEventInfo test_complete_event_info = {
30 registrar->RegisterEvent(&test_complete_event_info,
31 &uia_test_complete_event_id_);
32}
static const GUID kUiaEventTestCompleteSentinelGuid
static const GUID kUiaPropertyUniqueIdGuid