hi....
Thanks a lot for your quick responses
I am explaining a little more about my Ndis driver.
I have used "passthru" sample of DDK. In passthru
there is a file miniport.c In miniport.c there is a
function MPSend( ). In this function i call my function
named CopySendPacket( ) which is using NdisOpenFile( ). When
this function is called BSOD appears. Using stack command, SoftIce
displays following (hope this may help)

8053B438 80574AC1 ntoskrnl!ExInterLockedAddLargeStatistic
8053B480 80578F0D ntoskrnl!IoCreateFile+0036
8053B4C0 804D4E91 ntoskrnl!IoCreateFile+002E
8053B4F4 00000000 ntoskrnl!KeInitializeInterrupt+0A7C

Re: NdisOpenFile( ) gives blue screen by Maxim

Maxim
Mon Dec 06 13:06:41 CST 2004

You cannot open files from send path - it runs on DISPATCH_LEVEL, and files
can be opened only on PASSIVE_LEVEL.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Umer Khan" <umer.zafar@gmail.com> wrote in message
news:d11819d8.0412060707.52466f3@posting.google.com...
> hi....
> Thanks a lot for your quick responses
> I am explaining a little more about my Ndis driver.
> I have used "passthru" sample of DDK. In passthru
> there is a file miniport.c In miniport.c there is a
> function MPSend( ). In this function i call my function
> named CopySendPacket( ) which is using NdisOpenFile( ). When
> this function is called BSOD appears. Using stack command, SoftIce
> displays following (hope this may help)
>
> 8053B438 80574AC1 ntoskrnl!ExInterLockedAddLargeStatistic
> 8053B480 80578F0D ntoskrnl!IoCreateFile+0036
> 8053B4C0 804D4E91 ntoskrnl!IoCreateFile+002E
> 8053B4F4 00000000 ntoskrnl!KeInitializeInterrupt+0A7C