From: VM on
I am working with DDK 3790.1830 driver development kit in particular
the KbFiltr sample located here http://msdn.microsoft.com/en-us/library/ms793259.aspx.
I am also very new to DDK and driver development as I have spent most
of my time working with Visual C++ and Visual Basic. Please let me
know if anyone would like to have the source code produced.

My question is as follows with respect to this sample source code:

1. Why does the DDK sample code use the following code to register a
call back connectData->ClassService = KbFilter_ServiceCallback;
as opposed to simply using pDriverObject->MajorFunction[IRP_MJ_READ] =
DispatchRead; in the DriverEntry function ?

Thanks in advance

Victor
From: Maxim S. Shatskih on
> 1. Why does the DDK sample code use the following code to register a
> call back connectData->ClassService = KbFilter_ServiceCallback;

Because KbFilter communicates more to KbdClass and lesser to IO manager itself.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: VM on
On Feb 22, 8:38 pm, "Maxim S. Shatskih"
<ma...(a)storagecraft.com.no.spam> wrote:
> > 1. Why does the DDK sample code use the following code to register a
> > call back connectData->ClassService = KbFilter_ServiceCallback;
>
> Because KbFilter communicates more to KbdClass and lesser to IO manager itself.
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> ma...(a)storagecraft.comhttp://www.storagecraft.com

Thanks for the reply. It makes more sense now. Cheers. Victor.