<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: Using Driver Verifier under W2k - report error
From: Vladimir Michl <vladimir.michl,AT,hlubocky,DOT,del,DOT,cz>
Date: Wed, 20 Nov 2002 14:13:33 +0100

On Wed, 20 Nov 2002, Damion Wilson wrote:

> I build using NT4.0 DDK which doesn't even have IRP_MJ_POWER defined. I can
> change the code so that the default behaviour is STATUS_NOT_SUPPORTED,
> though, but I'll have to see what other side effects there are.

I think that STATUS_NOT_SUPPORTED is good way. Side effects must be fixed
otherwise.
The question is, what to do if returning STATUS_NOT_SUPPORTED.
Complete Request or not or how?

May you try build debug version with this?

I try compile CIPE, but without success. I have W2k DDK with VC 5.0.

> I didn't even know about the driver verifier...

It is since W2k.

I discover it today.

> DKW
>
> On Wednesday 20 November 2002 06:28 am, Vladimir Michl wrote:
> > W2k and later versions have driver verifier (run verifier.exe from
> > WINNT\system32\).
> >
> > The page about verifier is:
> > 
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ddtools/hh
> >/ddtools/dv_962b.asp
> >
> > I try verification on cipdrvr and this is result.
> >
> > IO verification level 2:
> >  - BSOD with IO System Verification Error (WDM DRIVER ERROR 231)
> >    cipdrvr.sys+1c43 at EB4B9C43
> >    Meaning of code 231 may be read from
> > 
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ddtools/hh
> >/ddtools/bccodes_5pyf.asp and is "The caller has completed a successful
> > IRP_MJ_POWER instead of passing it down. (IRP specified.)".
> >
> > I look to cipdrvr.c and see in CipeTapDeviceHook:
> >
> >     NTSTATUS l_Status = STATUS_SUCCESS;
> >     ...
> >
> >     switch (l_IrpSp->MajorFunction)  {
> >     ...
> >
> >         default:
> >             IoCompleteRequest (p_IRP, IO_NO_INCREMENT);
> >             break;
> >            }
> >        }
> >     return l_Status;
> >    }
> >
> > It mean, that any unknown MajorFunction is reported as SUCCESS and this
> > generate previous error. I think that result for default must be
> > STATUS_NOT_SUPPORTED.
> > Good may be DbgView for all default responses.
> >
> > Vladimir
> >
> > 
>---------------------------------------------------------------------------
> > Vladimír Michl <Vladimir.Michl,AT,hlubocky,DOT,del,DOT,cz> Del a.s., 
> > Strojírenská 38,
> > &Zcaron;&dcaron;ár nad Sázavou pobo&ccaron;ka Olomoucká 355, 
> > Hlubo&ccaron;ky-Mariánské Údolí tel: +420
> > 585 353 548, fax: +420 585 352 364 http://hlubocky.del.cz

---------------------------------------------------------------------------
Vladimír Michl <Vladimir.Michl,AT,hlubocky,DOT,del,DOT,cz>
Del a.s., Strojírenská 38, &Zcaron;&dcaron;ár nad Sázavou
pobo&ccaron;ka Olomoucká 355, Hlubo&ccaron;ky-Mariánské Údolí
tel: +420 585 353 548, fax: +420 585 352 364
http://hlubocky.del.cz





<< | Thread Index | >> ]    [ << | Date Index | >> ]