6#include <wrl/implements.h>
13 Microsoft::WRL::ComPtr<IUIAutomationRegistrar> registrar;
14 if (
FAILED(CoCreateInstance(CLSID_CUIAutomationRegistrar,
nullptr,
15 CLSCTX_INPROC_SERVER, IID_IUIAutomationRegistrar,
21 UIAutomationPropertyInfo unique_id_property_info = {
23 registrar->RegisterProperty(&unique_id_property_info,
24 &uia_unique_id_property_id_);
28 UIAutomationEventInfo test_complete_event_info = {
30 registrar->RegisterEvent(&test_complete_event_info,
31 &uia_test_complete_event_id_);
37 return uia_unique_id_property_id_;
41 return uia_test_complete_event_id_;
PROPERTYID GetUiaUniqueIdPropertyId() const
EVENTID GetUiaTestCompleteEventId() const
static const UiaRegistrarWin & GetInstance()
static const GUID kUiaEventTestCompleteSentinelGuid
static const GUID kUiaPropertyUniqueIdGuid