Prev: DTM Studio 1.5 New Submission Fails
Next: Handle info using NtQuerySystemInformation: How to differentiate files from folders
From: VM on 22 Feb 2010 16:32 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 22 Feb 2010 20:38 > 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 23 Feb 2010 11:15
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. |