Hi,

Is there some kind of light weight framework for COM programming in the
kernel ?

I know some KS samples rely on the CUnknown class defined in <stdunk.h>
(in the /inc/ddk/xxx directory) but after a quick look at the
implementation in "stdunk.cpp" (in /src/wdm/audio/stdunk), I noticed
quite a few oddities (dynamic_cast<>, cascaded casts, ...) I am sure it
works but ... well

I also noticed a CBaseUnknown in <kcom.h> with implementation of
INonDelegatedUnknown and IIndirectedUnknown. What is the purpose of the
later ? Is the class useful for a miniport ?

What is the prefered method ?

Re: Regarding COM in the kernel by Peter

Peter
Thu Oct 12 20:15:10 CDT 2006

What do you want to use COM for in the kernel?

-
"Guillaume Mureu" <user@example.com> wrote in message
news:452e2378$0$13130$426a74cc@news.free.fr...
> Hi,
>
> Is there some kind of light weight framework for COM programming in the
> kernel ?
>
> I know some KS samples rely on the CUnknown class defined in <stdunk.h>
> (in the /inc/ddk/xxx directory) but after a quick look at the
> implementation in "stdunk.cpp" (in /src/wdm/audio/stdunk), I noticed quite
> a few oddities (dynamic_cast<>, cascaded casts, ...) I am sure it works
> but ... well
>
> I also noticed a CBaseUnknown in <kcom.h> with implementation of
> INonDelegatedUnknown and IIndirectedUnknown. What is the purpose of the
> later ? Is the class useful for a miniport ?
>
> What is the prefered method ?


Re: Regarding COM in the kernel by Guillaume

Guillaume
Fri Oct 13 01:12:03 CDT 2006

Peter Wieland [MSFT] a écrit :
> What do you want to use COM for in the kernel?
>
> -
> "Guillaume Mureu" <user@example.com> wrote in message
> news:452e2378$0$13130$426a74cc@news.free.fr...
>> Hi,
>>
>> Is there some kind of light weight framework for COM programming in
>> the kernel ?
>>
>> I know some KS samples rely on the CUnknown class defined in
>> <stdunk.h> (in the /inc/ddk/xxx directory) but after a quick look at
>> the implementation in "stdunk.cpp" (in /src/wdm/audio/stdunk), I
>> noticed quite a few oddities (dynamic_cast<>, cascaded casts, ...) I
>> am sure it works but ... well
>>
>> I also noticed a CBaseUnknown in <kcom.h> with implementation of
>> INonDelegatedUnknown and IIndirectedUnknown. What is the purpose of
>> the later ? Is the class useful for a miniport ?
>>
>> What is the prefered method ?
>

To write an audio adapter + filter miniport.