NDIS-WDM USB WLAN Miniport driver: WdfUsbTargetDeviceCreate error

Posted: 01-17-2007, 11:27 AM
I'm porting my NDIS 5.1 based WLAN Miniport driver with WDM-USB
lower edge on KMDF, the call's to WdfUsbTargetDeviceCreate always
fail with status STATUS_NOT_SUPPORTED.The function
WdfUsbTargetDeviceCreate is called from my MiniportInitialize routine.
Please let me know what might be the possible problem. Also, below is
snapshot of same code from my MiniportInitalize function.


WDF_OBJECT_ATTRIBUTES attributes;
WDFDEVICE WdfDevice;
WDFUSBDEVICE WdfUsbTargetDevice;
WDF_OBJECT_ATTRIBUTES_INIT(&attributes);

NdisMGetDeviceProperty(MiniportAdapterHandle,
&Pdo,
&Fdo,
&NextDeviceObject,
NULL,
NULL);


Status = WdfDeviceMiniportCreate(WdfGetDriver(),
& attributes,
Pdo,
Fdo,
NextDeviceObject,
&WdfDevice);
if (!NT_SUCCESS (Status)){...........}

Status = WdfUsbTargetDeviceCreate(WdfDevice,
WDF_NO_OBJECT_ATTRIBUTES,
&WdfUsbTargetDevice);
if (!NT_SUCCESS(Status)) {.............}



Thanks in Advance.

Reply With Quote

Responses to "NDIS-WDM USB WLAN Miniport driver: WdfUsbTargetDeviceCreate error"

Doron Holan [MS]
Guest
Posts: n/a
 
Re: NDIS-WDM USB WLAN Miniport driver: WdfUsbTargetDeviceCreate error
Posted: 01-20-2007, 03:38 AM
after the error, what does !wdfkd.wdflogdump <your driver name> say?

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Neeraj" <neeraj.kandwal@gmail.com> wrote in message
news:1169033242.132398.184020@s34g2000cwa.googlegr oups.com...
> I'm porting my NDIS 5.1 based WLAN Miniport driver with WDM-USB
> lower edge on KMDF, the call's to WdfUsbTargetDeviceCreate always
> fail with status STATUS_NOT_SUPPORTED.The function
> WdfUsbTargetDeviceCreate is called from my MiniportInitialize routine.
> Please let me know what might be the possible problem. Also, below is
> snapshot of same code from my MiniportInitalize function.
>
>
> WDF_OBJECT_ATTRIBUTES attributes;
> WDFDEVICE WdfDevice;
> WDFUSBDEVICE WdfUsbTargetDevice;
> WDF_OBJECT_ATTRIBUTES_INIT(&attributes);
>
> NdisMGetDeviceProperty(MiniportAdapterHandle,
> &Pdo,
> &Fdo,
> &NextDeviceObject,
> NULL,
> NULL);
>
>
> Status = WdfDeviceMiniportCreate(WdfGetDriver(),
> & attributes,
> Pdo,
> Fdo,
> NextDeviceObject,
> &WdfDevice);
> if (!NT_SUCCESS (Status)){...........}
>
> Status = WdfUsbTargetDeviceCreate(WdfDevice,
> WDF_NO_OBJECT_ATTRIBUTES,
> &WdfUsbTargetDevice);
> if (!NT_SUCCESS(Status)) {.............}
>
>
>
> Thanks in Advance.
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to export functions from Ndis miniport driver for a smart carddriver to use ? Eshanye_kp Windows XP Device Drivers 2 08-23-2006 01:22 PM
More than one NDIS IM driver? Angel Tsankov Windows XP Device Drivers 2 01-16-2006 02:11 AM
NDIS 5.0 driver Ajay Agrawal Windows XP Device Drivers 2 05-27-2005 11:52 PM
How to resolve WAN Miniport driver conflicts Peter Davis Windows XP Device Drivers 3 03-31-2005 03:05 PM
Microsoft tun miniport driver caronebc@hotmail.com Windows XP Device Drivers 0 04-04-2004 06:48 AM