Tim
Wed Dec 12 21:52:37 PST 2007
grapwang <grapwang@discussions.microsoft.com> wrote:
>
>The application uses an user-mode dll provided by microsoft in msdn
>"
http://msdn2.microsoft.com/en-us/library/ms803127.aspx" to communicate with
>the UVC device which has descriptors of extension units.
>But the application sample of microsoft was incomplete. I even don't know
>how to obtain "pUnkOuter" in the first line of it.
You are writing a ksproxy plugin. Your class factory method will look like
this:
CUnknown*
CMyPluginClass::CreateInstance(
LPUNKNOWN piOuterUnknown,
HRESULT* phResult
);
The first parameter you are given is the IUnknown pointer for the ksproxy
filter for usbvideo.sys. You probably need to keep that around, so you can
communicate with the driver. You usually do that by passing it to the
constructor when you create your instance.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.