Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Milx

Reply
 
 
Junior Member
Join Date: Sep 2010
Posts: 8

 
      09-25-2010
Hello Everyone!

I wanted to create a timer in the NDIS protocol driver, however, could not get it to work.
See, what I have written:

//---------------------------------------------------------------------------------------------------------------
Status = NdisAllocateTimerObject(
Globals.NdisProtocolHandle,
&AdvertisementTimerChar, //timer characteristics
&AdvertisementTimerObject);

if(Status)
{
__try
{
NdisSetTimerObject(&AdvertisementTimerObject,DueTi me,0,NULL);
}
__except(EXCEPTION_EXECUTE_HANDLER)
{

NtStatus = GetExceptionCode();
//here goes "ndisfreetimerobject"
}
}
//--------------------------------------------------------------------------------------------------------------------

All the time I get the exception: "Program could not open Device Object [NIC]".
Maybe I have omitted some other required functions? Maybe sth is wrongly initialized? (the protocol handle is valid)


Thank you for any help.
Milx
 
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




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