Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Passing DeviceObject to HalAssignSlotResources Is Mandatory


View products that this article applies to.

This article was previously published under Q268743

↑ Back to the top


Symptoms

HalAssignSlotResources returns STATUS_INVALID_PARAMETER_3 if the DeviceObject parameter is NULL.

↑ Back to the top


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, 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.

↑ Back to the top


Resolution

You must specify a device object when you use HalAssignSlotResources.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


Keywords: KB268743, kbprb, kbkmode

↑ Back to the top

Article Info
Article ID : 268743
Revision : 5
Created on : 2/28/2007
Published on : 2/28/2007
Exists online : False
Views : 290