MgslGetAssignedResources


Prototype  
ULONG MgslGetAssignedResources( HANDLE hDevice,
                                PMGSL_ASSIGNED_RESOURCES pResources );
Parameters  
hDevice
handle to open device
pResources
pointer to buffer to hold returned MGSL_ASSIGNED_RESOURCES structure for device
Return Value  
ERROR_SUCCESS (0)
success
ERROR_INVALID_HANDLE
hDevice is invalid
ERROR_INVALID_PARAMETER
pResources pointer invalid
ERROR_GEN_FAILURE
call failed for unspecified reason

Return the assigned resources for the open port. Use this function to determine the specific resources, such as I/O address and interrupt level, assigned to an open port device. This is necessary to determine resource usage for automatically configured devices such as PCI adapters. The function will work with all ports regardless of the expansion bus type.

Not all MGSL_ASSIGNED_RESOURCES members are used for every adapter. The used members are determined by the adapter type (PCI or ISA). See the MGSL_ASSIGNED_RESOURCES section for details on the structure contents.

See also: MGSL_ASSIGNED_RESOURCES Structure


Previous Contents Next