Under Windows 2000, IoCreateDevice does not seem to create the requested
device extension. I.e., DeviceObject->DeviceExtension is null. Is there
something I should know about?
Thanks.
Neil
Under Windows 2000, IoCreateDevice does not seem to create the requested
device extension. I.e., DeviceObject->DeviceExtension is null. Is there
something I should know about?
Thanks.
Neil
Neil Weicher
> Under Windows 2000, IoCreateDevice does not seem to create
> the requested device extension. I.e.,
DeviceObject->DeviceExtension
> is null. Is there something I should know about?
As I recall from a bug I observed a couple of months ago, NT 4.0
and Windows 2000 behave differently when you pass in a device
extension size of 0. On sets the device extension pointer to NULL,
the other passes a non-NULL pointer to a 0 bytes structure, not
sure which was which… Don’t rely on the value of the device
extension pointer allocated when requesting a 0 bytes extension.
Hope that helps
Joe
Thanks, that was it. NT4 seems to create some DeviceExtension structure if
the parameter is NULL. Windows 2000 does not.
Neil
Subject: Re: bug in IoCreateDevice under Windows 2000?
From: “Joe Wein”
> Date: Fri, 1 Sep 2000 16:45:58 +0900
>
> As I recall from a bug I observed a couple of months ago, NT 4.0
> and Windows 2000 behave differently when you pass in a device
> extension size of 0. On sets the device extension pointer to NULL,
> the other passes a non-NULL pointer to a 0 bytes structure, not
> sure which was which… Don’t rely on the value of the device
> extension pointer allocated when requesting a 0 bytes extension.
>
> Hope that helps
>
> Joe