이 섹션의 명령은 디바이스 이벤트 지원을 위해 마이크로 드라이버에서 사용됩니다.
CMD_GET_INTERRUPT_EVENT
별도의 스레드에서 WIA 플랫베드 드라이버에 의해 호출되어 디바이스의 인터럽트를 사용하는 단추 이벤트의 상태를 모니터링합니다(즉, 인터럽트 파이프를 통해 이벤트를 보고하는 USB 디바이스의 경우). 디바이스에서 폴링만 지원하는 경우 이 명령을 구현할 필요가 없으며 E_NOTIMPL 반환되어야 합니다.
두 개의 이벤트 핸들이 마이크로 드라이버에 전달됩니다. The lVal member of the VAL structure holds an event handle that should be signaled by the microdriver using the SetEvent function when a button event occurs. The handle member of the VAL structure holds an event handle that will be signaled by the WIA Flatbed Driver when the driver is being unloaded or shut down.
The pGuid member of the VAL structure should be set to point to the GUID of the button that was pushed. 단추를 누르지 않은 경우 GUID_NULL 설정해야 합니다.
CMD_STI_GETSTATUS
WIA 플랫베드 드라이버에 의해 호출되어 디바이스의 온라인 상태를 얻고 디바이스에 누름 단추가 있는 경우 단추 상태를 가져옵니다.
Set the lVal member of the passed VAL structure to 1 if your device is online, and functioning properly. If lVal is set to any value other than 1, the device is considered offline, and it will fail the device test in Control Panel.
If the device supports buttons that do not use interrupts from the device and a button was pressed, the pGuid member of the passed VAL structure should be set to the GUID of the button event. If no buttons were pressed, point pGuid to the value GUID_NULL. 보류 중인 이벤트가 없음을 알 수 있습니다.
이 명령은 디바이스가 폴링된 이벤트를 지원하거나 디바이스가 온라인 상태를 표시하도록 하려는 경우에 필요합니다.