Help needed in NdisMCreateLog

Hi all,

I received this query from a friend.

I tried to use NdisMCreateLog & NdisMWriteLogData in a Ndis Intermediate
driver for logging the packet data. The problem is in the help it is said
that win 32 application can use DeviceIoControl with IOCTL_NDIS_GET_LOG_DATA
to retrieve whatever miniport has written to log file. I tried it, it does
not work It is giving invalid parameter error. (may be because my driver
does not support it). Please tell me what additional logic i have to add to
make this work.

Thanks,
s.kamal.