How to register video capture driver in the category "Video Capture Sources"?

I developped a video capture driver according to the sample avssamp from DDK, and I defined the filter category as:

const
GUID
CaptureFilterCategories [CAPTURE_FILTER_CATEGORIES_COUNT] = {
STATICGUIDOF (KSCATEGORY_VIDEO),
STATICGUIDOF (KSCATEGORY_CAPTURE)
};

so as I used GraphEdit to test the driver, the capture driver only showed up in the category of WDM Streaming Capture Device. I would like this driver show up in the category Video Capture Sources, what should I do? Thanks in advance for your help.

Yong

You need to use STATICGUIDOF(PINNAME_VIDEO_CAPTURE). Also, IIRC, both
the pin category and the pin name need to be set to that (although that
may be just to make AmCap happy; it’s been awhile since I did this).

And one other thing which may be necessary: you need to register some
stuff in you INF file. In the DDI section, you need this:

Include = ks.inf, kscaptur.inf
Needs = KS.Registration, KSCAPTUR.Registration.NT

There may also me more to do in the INF; it’s just been too long for me
remember exactly. Hopefully this will help you along some.

Cheers,

–mkj

xxxxx@gmail.com wrote:

I developped a video capture driver according to the sample avssamp from DDK, and I defined the filter category as:

const
GUID
CaptureFilterCategories [CAPTURE_FILTER_CATEGORIES_COUNT] = {
STATICGUIDOF (KSCATEGORY_VIDEO),
STATICGUIDOF (KSCATEGORY_CAPTURE)
};

so as I used GraphEdit to test the driver, the capture driver only showed up in the category of WDM Streaming Capture Device. I would like this driver show up in the category Video Capture Sources, what should I do? Thanks in advance for your help.

Yong


//
// Michael K. Jones
// Stone Hill Consulting, LLC
// http://www.stonehill.com
//_______________________________________________