Hi Tim,
I have done any changes in KSFILTER_DESCRIPTOR but I have added
one more GUID in CaptureFilterCatagories array like,
const
GUID
CaptureFilterCategories [CAPTURE_FILTER_CATEGORIES_COUNT] = {
STATICGUIDOF (KSCATEGORY_VIDEO),
STATICGUIDOF (KSCATEGORY_AUDIO),
STATICGUIDOF (KSCATEGORY_RENDER),
STATICGUIDOF (KSCATEGORY_CAPTURE)
};
and it is added in KSFILTER_DESCRIPTOR in this way ,
const
KSFILTER_DESCRIPTOR
CaptureFilterDescriptor = {
&CaptureFilterDispatch,
NULL,
KSFILTER_DESCRIPTOR_VERSION,
KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING,
&KSNAME_Filter,
DEFINE_KSFILTER_PIN_DESCRIPTORS (CaptureFilterPinDescriptors),
DEFINE_KSFILTER_CATEGORIES
(CaptureFilterCategories),//*******************************
DEFINE_KSFILTER_NODE_DESCRIPTORS_NULL,
DEFINE_KSFILTER_DEFAULT_CONNECTIONS,
NULL
};
I have also modified inf file, but that too does not work. My inf file looks
like this
[avssamp.RunOnce.AddReg]
HKLM,%RunOnce%,“avssamp.Reader.Capture”,“rundll32.exe
streamci,StreamingDeviceSetup
%avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_CAPTURE%,%17%\avssamp.inf,avssamp.Reader.Install”
HKLM,%RunOnce%,“avssamp.Reader.Video”,“rundll32.exe
streamci,StreamingDeviceSetup
%avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_VIDEO%,%17%\avssamp.inf,avssamp.Reader.Install”
HKLM,%RunOnce%,“avssamp.Reader.Audio”,“rundll32.exe
streamci,StreamingDeviceSetup
%avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_AUDIO%,%17%\avssamp.inf,avssamp.Reader.Install”
[Strings]
KSCATEGORY_AUDIO=“{6994AD04-93EF-11D0-A3CC-00A0C9223196}”
KSCATEGORY_RENDER=“{65E8773E-8F56-11D0-A3B9-00A0C9223196}”
KSCATEGORY_CAPTURE=“{65E8773D-8F56-11D0-A3B9-00A0C9223196}”
Is it the correct way to do it ? What else do we need to mention ?
On Tue, Dec 23, 2008 at 12:24 AM, wrote:
> On Mon, Dec 22, 2008 at 04:51:49PM +0530, swapnil kamble wrote:
> >
> > I want AVStream driver to be registered in the Audio Capture
> > Sources category. I made changes in .inf file and added one more catagory
> > KSCATAGORY_AUDIO/RENDER. But still it does not work. Is there something
> more
> > that I need to mention ??
>
> Did you change the data structures in the device? The KSFILTER_DESCRIPTOR
> contains a category list that gets copied to the registry when the
> filter factory is created.
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boeklheide, Inc.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
–
…Swapnil
|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama Hare Rama Rama Rama Hare Hare ||