Sorry for the first post...
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"
}
}
//--------------------------------------------------------------------------------------------------------------------
While runtime I get the system fatal error.
Maybe I have omitted some other required functions?
Thank you for any help.
Milx
|