NdisWriteErrorLogEntry

92 views
Skip to first unread message

Erez Bar-Tal

unread,
Dec 2, 1998, 3:00:00 AM12/2/98
to
I am writing a NIC drive using NDIS 4.0
I would like to make an entrance to the NT event viewer
I have a key in the registry under .....\eventlog\system\mydriver\ with
EventMessagefile
%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\mydriver.sys
TypeSupproted 7

now,
while using NdisWriteErrorLogEntry I can see that a new entry was made to
the event viewer but with
the following message
The description for Event ID ( <####> ) in Source (<application name>)
could not be found. It contains the following insertion string(s): <the
text of the message logged by ReportEvent>.

what is that mean, all the sys, dll mention above are in the right path. And
I restarted the computer after adding this key to the registry.

What r exactly the ULONG's parameters for NdisWriteErrorLogEntry ?

for example I use in my code

NdisWriteErrorLogEntry(
pAdapter->MiniportAdapterHandle,
NDIS_STATUS_FAILURE,
0
);

Any help will be appreciated

dhee...@gmail.com

unread,
Apr 23, 2015, 6:44:56 AM4/23/15
to
Hi, You need to send the NDIS specific ErrorCodes (NDIS_ERRROR_CODE_XXX). Please go through the following link

https://msdn.microsoft.com/en-us/library/windows/hardware/ff564663%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Reply all
Reply to author
Forward
0 new messages