다음을 통해 공유


IUIAutomationRegistrar::RegisterEvent 메서드(uiautomationcore.h)

타사 Microsoft UI 자동화 이벤트를 등록합니다.

구문

HRESULT RegisterEvent(
  [in]  const UIAutomationEventInfo *event,
  [out] EVENTID                     *eventId
);

매개 변수

[in] event

형식: UIAutomationEventInfo*

등록할 이벤트에 대한 정보를 포함하는 구조체에 대한 포인터입니다.

[out] eventId

형식: EVENTID*

이벤트 식별자를 받습니다. 이벤트 ID 목록은 이벤트 식별자를 참조하세요.

반환 값

형식: HRESULT

메서드가 성공하면 S_OK를 반환하고, 그러지 않으면 HRESULT 오류 코드를 반환합니다.

설명

이벤트 ID는 다양한 이벤트 메서드 및 IAccessibleEx 구현의 이벤트에 대한 WinEvent 값으로 사용할 수 있습니다.

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 7, WINDOWS Vista SP2 및 Windows Vista용 플랫폼 업데이트, WINDOWS XP SP3 및 Windows Vista용 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
지원되는 최소 서버 Windows Server 2008 R2, Windows Server 2008 SP2 및 Windows Server 2008용 플랫폼 업데이트, WINDOWS Server 2003 SP2 및 Windows Server 2008용 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
대상 플랫폼 Windows
헤더 uiautomationcore.h(UIAutomation.h 포함)

추가 정보

IUIAutomationRegistrar