WdfControlDeviceInitSetShutdownNotification 함수(wdfcontrol.h)

[KMDF에만 적용]

WdfControlDeviceInitSetShutdownNotification 메서드는 제어 디바이스 개체에 대한 종료 알림 정보를 설정합니다.

구문

void WdfControlDeviceInitSetShutdownNotification(
  [in] PWDFDEVICE_INIT                      DeviceInit,
  [in] PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification,
  [in] UCHAR                                Flags
);

매개 변수

[in] DeviceInit

WdfControlDeviceInitAllocate를 호출하여 드라이버가 가져온 WDFDEVICE_INIT 구조체에 대한 포인터입니다.

[in] Notification

드라이버의 EvtDeviceShutdownNotification 이벤트 콜백 함수에 대한 포인터입니다.

[in] Flags

EvtDeviceShutdownNotification 콜백 함수가 호출될 시기를 나타내는 하나 이상의 WDF_DEVICE_SHUTDOWN_FLAGS 형식 플래그입니다.

반환 값

없음

설명

드라이버는 WdfDeviceCreate를 호출하기 전에 WdfControlDeviceInitSetShutdownNotification 호출해야 합니다. WdfControlDeviceInitSetShutdownNotification을 호출하는 방법에 대한 자세한 내용은 제어 디바이스 개체 사용을 참조하세요.

예제

WdfControlDeviceInitSetShutdownNotification을 사용하는 코드 예제는 WdfControlDeviceInitAllocate를 참조하세요.

요구 사항

요구 사항
대상 플랫폼 유니버설
최소 KMDF 버전 1.0
머리글 wdfcontrol.h(Wdf.h 포함)
라이브러리 Wdf01000.sys(프레임워크 라이브러리 버전 관리 참조)
IRQL <= DISPATCH_LEVEL
DDI 규정 준수 규칙 ControlDeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

추가 정보

EvtDeviceShutdownNotification

WDFDEVICE_INIT

WDF_DEVICE_SHUTDOWN_FLAGS

WdfDeviceCreate