Prev Previous Post   Next Post Next

porting to windows vista - NdisSendPackets do not work

Posted: 12-20-2005, 03:52 PM
Someone can help me??

Andre Siqueira escreveu:
> I'm not "locking" the user buffer because I allocate memory and
> then copy the user buffer with NdisMoveMemory.
>
> I don't use NetBuffers because I want the code run in NDIS >= 5.0,
> so I can have the same driver for windows 2000/ XP/ 2003/ Vista.
>
> The problem is that when I call NdisSendPackets, the function
> SendCompleteHandler is called with the status
> NDIS_STATUS_SUCCESS, even the packet didn't go to the
> network.
>
> Thanks,
>
> Andre.
>
>
> Pavel A. escreveu:
>
>> Do you *lock* the user buffer?
>> Do you use NetBuffers instead of old ndis packets?
>>
>> --PA
>>
>>
>> "Andre Siqueira" wrote:
>>
>>> Hello,
>>>
>>> I'm porting my intermediate driver to windows vista.
>>> But I'm having I problem. The function NdisSendPackets do no work in
>>> some
>>> situation.
>>>
>>> When I'm passing packets up and down through my driver it works OK,
like
>>> passthru example. But when I want to send a packet that comes from
>>> the user
>>> level with IOCTL, the function NdisSendPackets do not work, but
>>> returns with
>>> NDIS_STATUS_SUCCESS in the SendCompleteHandler function.
>>>
>>> I create my device with NdisMRegisterDevice, and set the flag
>>> DO_BUFFERED_IO.
>>>
>>> When the user write in this device, I get the buffer with
>>> buf = irp->AssociatedIrp.SystemBuffer;
>>>
>>> then, I call NdisAllocatePacket, NdisAllocateMemoryWithTag,
>>> NdisAllocateBuffer, NdisChainBufferAtFront and NdisMoveMemory before
>>> NdisSendPackets.
>>>
>>> is there something I'm doing wrong?
>>>
>>> thanks,
>>>
>>> André.
>>
>>
>>
Reply With Quote

Responses to "porting to windows vista - NdisSendPackets do not work"

 
LinkBack Thread Tools Display Modes
 


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
List of Games that work on Windows Vista Joshua Windows Vista Games 29 10-20-2006 08:35 PM
Can't get windows vista to work kylecchh Windows Vista Install & Setup 3 06-14-2006 02:19 AM
Can't Get Windows Vista To Work. kylecchh Windows Vista Install & Setup 1 06-11-2006 01:51 AM
WDM to WinCE porting manohar Windows XP Device Drivers 0 03-04-2005 05:53 AM
porting an app to XPE Cp Windows XP Embedded 8 10-16-2003 01:34 PM