NdisMapFile return 0xC0000001 on Win98

Hi All,

I am opening firmware file in Ndis miniport initialize
routine using NdisOpenFile( ) and later when i use
NdisMapFile( ), the call fails with ntstatus 0xC0000001
NDIS_STATUS_FAILURE == STATUS_FAILURE on Win98 machine.

The same code works well on Win2k. I have no idea what’s
happening. Can any one let me know what is the problem.

Few inputs:

  1. My NDIS driver is 5.0
  2. Build the driver in Win98 using Win2k DDK ( Win98 doesnot
    support some of the 5.0 version calls and data structs, so
    i had to install the build env of Win2k DDK and get the
    driver built)
  3. The size of the firmware file is 65KB.
  4. IRQL = PASSIVE_LEVEL
  5. I tried to test with Win2k built driver on Win2k box with
    Win2k DDK, but this also fails.

NdisOpenFile succeeds giving proper file size and a valid
handle. I also tried to cut the size of firmware file to
see that big file (>64KB) is a problem or not, by using a
3 kb file. It still fails.

All inputs are welcomed.

Thanks a lot.

  • Jay

Hi,
Actually this was happening for me too,after some tries i concluded that
this was because of lack of memory available or if that file is already
open…try out following two ways:
1>check if that file is left open somewhere before in your code.
2>reduce the symbol file size by configuring ur debugger…like softice
3> try to reduce resources u r allocating for driver!
-Ajay
----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, August 30, 2002 4:38 PM
Subject: [ntdev] NdisMapFile return 0xC0000001 on Win98

Hi All,

I am opening firmware file in Ndis miniport initialize
routine using NdisOpenFile( ) and later when i use
NdisMapFile( ), the call fails with ntstatus 0xC0000001
NDIS_STATUS_FAILURE == STATUS_FAILURE on Win98 machine.

The same code works well on Win2k. I have no idea what’s
happening. Can any one let me know what is the problem.

Few inputs:

1. My NDIS driver is 5.0
2. Build the driver in Win98 using Win2k DDK ( Win98 doesnot
support some of the 5.0 version calls and data structs, so
i had to install the build env of Win2k DDK and get the
driver built)
3. The size of the firmware file is 65KB.
4. IRQL = PASSIVE_LEVEL
5. I tried to test with Win2k built driver on Win2k box with
Win2k DDK, but this also fails.

NdisOpenFile succeeds giving proper file size and a valid
handle. I also tried to cut the size of firmware file to
see that big file (>64KB) is a problem or not, by using a
3 kb file. It still fails.

All inputs are welcomed.

Thanks a lot.
- Jay


You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to %%email.unsub%%

One of the below:

Already mapped,
File size zero,
Heap Allocate failed,
Page Allocate failed,
No V86 memory for temporary space
Read error (ax=0x3f00, int 21h)

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@vsnl.net [mailto:xxxxx@vsnl.net]
Sent: Friday, August 30, 2002 4:09 AM
To: NT Developers Interest List
Subject: [ntdev] NdisMapFile return 0xC0000001 on Win98

Hi All,

I am opening firmware file in Ndis miniport initialize
routine using NdisOpenFile( ) and later when i use
NdisMapFile( ), the call fails with ntstatus 0xC0000001
NDIS_STATUS_FAILURE == STATUS_FAILURE on Win98 machine.

The same code works well on Win2k. I have no idea what’s
happening. Can any one let me know what is the problem.

Few inputs:

  1. My NDIS driver is 5.0
  2. Build the driver in Win98 using Win2k DDK ( Win98 doesnot
    support some of the 5.0 version calls and data structs, so
    i had to install the build env of Win2k DDK and get the
    driver built)
  3. The size of the firmware file is 65KB.
  4. IRQL = PASSIVE_LEVEL
  5. I tried to test with Win2k built driver on Win2k box with
    Win2k DDK, but this also fails.

NdisOpenFile succeeds giving proper file size and a valid
handle. I also tried to cut the size of firmware file to
see that big file (>64KB) is a problem or not, by using a
3 kb file. It still fails.

All inputs are welcomed.

Thanks a lot.

  • Jay

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to %%email.unsub%%