Hi Tim,
I am building the IRP using …
Irp = IoBuildSynchronousFsdRequest(
IRP_MJ_WRITE,
DeviceObject,
Buffer,
Length,
Offset,
&Event,
&IoStatus
);
It’s an upper disk filter driver.I am trying to write to s softpedia ramdisk device.i created a 500 mb of this ramdisk.
The call is always returning with status STATUS_ACCESS_DENIED.
I checked the ramdisk attributes and it is not in readonly mode.
VOLUME - Manipulate volume attributes.
DISK - Manipulate disk attributes.
DISKPART> attribute disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
thanks for your help.
Thanks,
regards…kiran
Date: Mon, 8 Sep 2014 10:02:47 -0700
From: xxxxx@probo.com
To: xxxxx@lists.osr.com
Subject: Re: [ntdev] IoBuildSynchronousFsdRequest + STATUS_ACCESS_DENIED with RAMDISK
kiran k wrote:
Hi I am trying to write a block of data (1MB) from my driver to the softpedia ramdisk but
getting Status as STATUS_ACCESS_DENIED.
$B!!(B
Status = IoCallDriver(DeviceObject, Irp);
if (Status == STATUS_PENDING)
{
KeWaitForSingleObject(
&Event,
Executive,
KernelMode,
FALSE,
NULL
);
Status = IoStatus.Status;
}What could be wrong?
A hundred things could be wrong. You haven’t shown us a single useful thing here. What kind of driver is this? Where did you get the DeviceObject? How did you build the IRP?
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer