Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > why would ntwritefile return insufficient resources.

Reply
Thread Tools Display Modes

why would ntwritefile return insufficient resources.

 
 
Junior Member
Join Date: Jan 2011
Posts: 2

 
      01-27-2011
1>From usermode

2>my open call:
status = NtOpenFile(&filehandle,
SYNCHRONIZE | FILE_READ_DATA | FILE_WRITE_DATA,
&objattrs, &iostatus,
FILE_SHARE_READ | FILE_SHARE_WRITE,
FILE_SYNCHRONOUS_IO_ALERT);

3>My write call:
NtWriteFile(fd, (HANDLE)NULL,
(PIO_APC_ROUTINE)NULL, (PVOID)NULL,
&iostatus, buf, (ULONG)nbytes,
&nt_offset, (ULONG *)NULL);

4>the wraper function handles the sector alignment.

5> My NtWriteFile fails "0xc000009a" : “insufficient resources"
I am trying to write (approx 85K) sectors in 1 go.

-any comments appreciated.
 
Reply With Quote
 
 
 
 
Junior Member
Join Date: Jan 2011
Posts: 2

 
      01-28-2011
just fyi..
The NtWriteFile may fail if the write was on a volume, not a file.
i.e. I had initiated direct write to volume to defrag it. hence the error.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing Windows XP SP3 and other MS updates DanP Windows Update 27 08-18-2010 09:34 PM
Installation problem JohnNorth ActiveSync 0 04-19-2010 09:59 AM
insufficient system resources Zman Windows Small Business Server 1 01-26-2010 04:13 PM
Re: Cannot copy <filename>: Insufficient system resources exist Meinolf Weber [MVP-DS] Windows Server 0 01-13-2010 10:35 AM
MS Security essential Essentials is not getting installed sun Server Setup 0 12-01-2009 12:19 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59