Share via


IUIAutomation5::AddNotificationEventHandler 메서드(uiautomationclient.h)

알림 이벤트를 처리하는 메서드를 등록합니다.

참고 이벤트 처리기를 구현하기 전에 스레딩 문제 이해에 설명된 스레딩 문제를 잘 알고 있어야 합니다.
 

구문

HRESULT AddNotificationEventHandler(
  [in] IUIAutomationElement                  *element,
       TreeScope                             scope,
  [in] IUIAutomationCacheRequest             *cacheRequest,
  [in] IUIAutomationNotificationEventHandler *handler
);

매개 변수

[in] element

형식: IUIAutomationElement*

이벤트 처리기와 연결된 UI 자동화 요소에 대한 포인터입니다.

scope

[in] cacheRequest

형식: IUIAutomationCacheRequest*

캐시 요청에 대한 포인터이거나 캐싱이 필요하지 않은 경우 NULL 입니다.

[in] handler

형식: IUIAutomationNotificationEventHandler*

알림 이벤트를 처리하는 개체에 대한 포인터입니다.

반환 값

형식: HRESULT

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

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 10 버전 1709 [데스크톱 앱만 해당]
지원되는 최소 서버 Windows Server 버전 1709 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 uiautomationclient.h(UIAutomation.h 포함)

추가 정보

IUIAutomation5

RemoveAllEventHandlers