描述:
as title,
有谁知道啊,帮帮忙谢谢了
1.这个消息如何在filter中定义
2.如何通知application
3.application如何获取这个消息
解决方案1:
下面是DirectShow例子中对发送消息的警告!
// The sample grabber is calling us back on its deliver thread.
// This is NOT the main app thread!
//
// !!!!! WARNING WARNING WARNING !!!!!
//
// On Windows 9x systems, you are not allowed to call most of the
// Windows API functions in this callback. Why not? Because the
// video renderer might hold the global Win16 lock so that the video
// surface can be locked while you copy its data. This is not an
// issue on Windows 2000, but is a limitation on Win95,98,98SE, and ME.
// Calling a 16-bit legacy function could lock the system, because
// it would wait forever for the Win16 lock, which would be forever
// held by the video renderer.
//
// As a workaround, we will copy the bitmap data during the callback,
// post a message to our app, and write the data later.
//