Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category.

WdfIoTargetOpen failed with NTSTATUS=80070005 (ACCESS_DENIED)

Jithin_PJithin_P Posts: 3
Hi,

I am facing NTSTATUS=80070005 (ACCESS_DENIED) while calling WdfIoTargetOpen with symbolic name. Calling this WdfIoTargetOpen from UMDF driver with the symbolic name of a KMDF driver. Does any permissions required through inf .??

Below is the code snip ,,

....
....
cr = CM_Get_Device_Interface_List((LPGUID)&KMDF_driver_GUID,
NULL,
DeviceInterfaceList,
DeviceInterfaceListLength,
CM_GET_DEVICE_INTERFACE_LIST_PRESENT);
...
...

//obtained symbolic link
//create and open IO target

status = WdfIoTargetCreate(
device,
WDF_NO_OBJECT_ATTRIBUTES,
&iotarget
);
if (!NT_SUCCESS(status)) {
TraceInfo(DBG_INFO_HIGH, "%!FILE!::%!FUNC!:: WdfIoTargetCreate FAILED:%!status!", status);
return FALSE;
}

TraceInfo(DBG_INFO_HIGH, "%!FILE!::%!FUNC!:: SymbolicLink:%ws", PublisherSymbolicLinkName.Buffer);

WDF_IO_TARGET_OPEN_PARAMS_INIT_OPEN_BY_NAME(
&openParams,
&PublisherSymbolicLinkName,
STANDARD_RIGHTS_ALL
);

status = WdfIoTargetOpen(
iotarget,
&openParams
);
if (!NT_SUCCESS(status)) {
WdfObjectDelete(iotarget);
TraceInfo(DBG_INFO_HIGH, "%!FILE!::%!FUNC!:: WdfIoTargetOpen FAILED:%!STATUS! ", status);
return FALSE;
}
.....
...

Please help me to identify what I am missing here.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!