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
|