@carlo
if and when you are finished with compiling that sample warning /
error free you should run it with verifier enabled and fix these too
an article that might help in fixing the issues might be
http://www.osronline.com/article.cfm?article=21
verifier stops follow
*******************************************************************************
*
* This is the string you add to your checkin description
* Driver Verifier: Enabled for EDriverEntry Called
Example_Create Called
***********************************************************************
* THIS VALIDATION BUG IS FATAL AND WILL CAUSE THE VERIFIER TO HALT *
* WINDOWS (BUGCHECK) WHEN THE MACHINE IS NOT UNDER A KERNEL DEBUGGER! *
***********************************************************************
WDM DRIVER ERROR: [Example.sys @ 0xFCA18B20] An IRP dispatch handler has
returned without passing down or completing this Irp or
someone forgot to return STATUS_PENDING. (Irp = 82748F68
).
IRP_MJ_CREATE
[ DevObj=00000000, FileObject=FFB4BAC8, Parameters=F93CDA88 01000060
00000000 00000000 ]
http://www.microsoft.com/hwdq/bc/default.asp?os=5.1.2600&major=0xc9&minor=0x226&lang=0x9
Break, Ignore, Zap, Remove, Disable all (bizrd)? i
i
Example_WriteNeither Called
Hello from user mode!
***********************************************************************
* THIS VALIDATION BUG IS FATAL AND WILL CAUSE THE VERIFIER TO HALT *
* WINDOWS (BUGCHECK) WHEN THE MACHINE IS NOT UNDER A KERNEL DEBUGGER! *
***********************************************************************
WDM DRIVER ERROR: [Example.sys @ 0xFCA18CE0] An IRP dispatch handler has
returned without passing down or completing this Irp or
someone forgot to return STATUS_PENDING. (Irp = 82768F68
).
IRP_MJ_WRITE
[ DevObj=00000000, FileObject=FFB4BAC8, Parameters=00000016 00000000
00000000 00000000 ]
http://www.microsoft.com/hwdq/bc/default.asp?os=5.1.2600&major=0xc9&minor=0x226&lang=0x9
Break, Ignore, Zap, Remove, Disable all (bizrd)? i
i
Example_UnSupportedFunction Called
***********************************************************************
* THIS VALIDATION BUG IS FATAL AND WILL CAUSE THE VERIFIER TO HALT *
* WINDOWS (BUGCHECK) WHEN THE MACHINE IS NOT UNDER A KERNEL DEBUGGER! *
***********************************************************************
WDM DRIVER ERROR: [Example.sys @ 0xFCA18E20] An IRP dispatch handler has
returned without passing down or completing this Irp or
someone forgot to return STATUS_PENDING. (Irp = 826E4F68
).
IRP_MJ_CLEANUP
[ DevObj=00000000, FileObject=FFB4BAC8, Parameters=00000000 00000000
00000000 00000000 ]
http://www.microsoft.com/hwdq/bc/default.asp?os=5.1.2600&major=0xc9&minor=0x226&lang=0x9
Break, Ignore, Zap, Remove, Disable all (bizrd)? i
i
Example_Close Called
***********************************************************************
* THIS VALIDATION BUG IS FATAL AND WILL CAUSE THE VERIFIER TO HALT *
* WINDOWS (BUGCHECK) WHEN THE MACHINE IS NOT UNDER A KERNEL DEBUGGER! *
***********************************************************************
WDM DRIVER ERROR: [Example.sys @ 0xFCA18B90] An IRP dispatch handler has
returned without passing down or completing this Irp or
someone forgot to return STATUS_PENDING. (Irp = 82740F68
).
IRP_MJ_CLOSE
[ DevObj=00000000, FileObject=FFB4BAC8, Parameters=00000000 00000000
00000000 00000000 ]
http://www.microsoft.com/hwdq/bc/default.asp?os=5.1.2600&major=0xc9&minor=0x226&lang=0x9
Break, Ignore, Zap, Remove, Disable all (bizrd)? i
i
watchdog!WdUpdateRecoveryState: Recovery enabled.
On 1/31/13, raj_r wrote:
> in one of the earlier post i asked about the way the Dispatch
> Functions Should be annotated
> and posted that the way the doc has a named them sint available in wd7
>
> it seems the annotation is specific to windows 8 and wdk 8 and sal 2
>
> though it doesnt seem to be clear on first sight
>
> the cancel.h in wdk samples that are online
> http://code.msdn.microsoft.com/windowshardware/Cancel-127e43b6/sourcecode?fileId=42716&pathId=1536758034
>
> is annotated with
>
> Dispatch_type(IRP_MJ_CREATE)
> Dispatch_type(IRP_MJ_CLOSE)
> DRIVER_DISPATCH CsampCreateClose;
>
> while
>
> in wdk it is named differently
> well an indication somewhere in that page that this applies only to
> wdk8 and for all other old crap go here link would have been helpful
> and might have saved a google trips to me
>
> one small wrinkle still exist
>
> is _Dispatch_type_other
> or __drv_dispatch_type_other
> the right annotation to lump all the unhandled IRP_MJ_XXXX
>
>
>
> On 1/31/13, raj_r wrote:
>> On 1/31/13, Wilkinson, Alex wrote:
>>> Do you mean this one:
>>>
>>> http://www.osronline.com/article.cfm?article=390
>>
>> yes
>>
>