Topic: How correctly to stop a video-flow from KsMiniFilter the driver.
Good time of days. Kick in the correct direction. A train of thought: Application causes IMediaControl-> Run () to start to read a flow from the device. In the driver are caused : AVStrMiniPinSetDeviceState (KSSTATE_ACQUIRE, KSSTATE_RUN) - for adjustment of the beginning of an announcement of flow AVStrMiniPinProcess () - actually function in which happens output of the buffer of a flow to application. When it is required to application stops it is caused IMediaControl-> Stop (), and again went : AVStrMiniPinSetDeviceState (KSSTATE_PAUSE, KSSTATE_STOP) And so a question how correctly to organize a stop from the minifilter? Clearly that it is possible to cease to plan AVStrMiniPinProcess () through function invocation KsPinAttemptProcessing (), but application still is able Run. Who faced prompt as to inform before application something like EC_ERRORABORT or other "correct" code from the driver? There are functions of type KsAddEvent (), but that that with the documentation very poorly. Who can kicks towards a good example?