Microsoft KB Archive/268743

= PRB: Passing DeviceObject to HalAssignSlotResources is mandatory =

Article ID: 268743

Article Last Modified on 8/17/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Win32 Device Driver Kit for Windows 2000
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Home Edition
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)

-



This article was previously published under Q268743



SYMPTOMS
HalAssignSlotResources returns STATUS_INVALID_PARAMETER_3 if the DeviceObject parameter is NULL.



CAUSE
HalAssignSlotResources is obsolete and is exported only to support existing drivers. Drivers of Plug and Play (PnP) devices are assigned resources by the PnP Manager, which passes resource lists with each IRP_MN_START_DEVICE request.

On a computer running Windows 2000, Windows XP, or Windows Server 2003 all the bus-related hardware abstraction layer (HAL) functions are patched to call the actual bus driver. Because the bus driver tracks resources on a PDO basis, the system needs a device object to simulate (fake) a PDO.



RESOLUTION
You must specify a device object when you use HalAssignSlotResources.



STATUS
This behavior is by design.

Keywords: kbkmode kbprb KB268743

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.