RE: NdisMCreateLog() & DeviceIoControl(). Whoops

Sorry Gavin,

Nothing to do with the overlapped, I should have taken a closer look…

Rod.

-----Original Message-----
From: Gavin Button [mailto:xxxxx@panasonic-pmdc.co.uk]
Sent: Friday, 3 November 2000 3:52 am
To: NT Developers Interest List
Subject: [ntdev] NdisMCreateLog() & DeviceIoControl().

Hi,

I have written a Windows 2000 NDIS Intermediate driver which creates a log
file with NdisMCreateLog() to be accessed from a Windows 2000 application.

In the windows 200 application I want to access this data and so use the
following calls:

hDevice=CreateFile(TEXT(“\\.\mhost”), GENERIC_WRITE | GENERIC_READ, 0,
NULL,OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0);

if(DeviceIoControl(hDevice, IOCTL_NDIS_GET_LOG_DATA , NULL, 0,
&Value,BufferSize, BytesReturned, &Overlapped)==0)
{
OutputDebugString(“DeviceIoControl Failed\n”);
}

But CreateFile() returns INVALID_HANDLE_VALUE. Has anyone any ideas on what
I may be doing wrong?

Thanks

Gavin


You are currently subscribed to ntdev as: xxxxx@mobilesoft.com.au
To unsubscribe send a blank email to $subst(‘Email.Unsub’)