The functions listed next are only available in the NIC-detection DLL, msncdet.dll. These functions report the availability of and control the allocation of bus-related and hardware platform-related resources, such as IRQs and I/O space addresses.
NcDetectResourceClaim allows the calling function to attempt to claim system hardware resources that are in use by a NIC. This is necessary to verify that NIC configuration parameters are actually available for use in the current system configuration. For example, msncdet.dll keeps a record of resources claimed by the process to which it is attached. When asked to claim or report resources later, msncdet.dll considers newly claimed resources and reports them accordingly. In other words, the information is used to augment the data extracted from the registry hardware hive.
The function prototype is as follows:
LONG NcDetectResourceClaim(
INTERFACE_TYPE ifType,
LONG lBusNumber,
LONG lType,
LONG lValue,
LONG lRange,
LONG lFlags,
BOOL fClaim
);
NcDetectResourceFree allows the calling function to release resources previously claimed through the use of NcDetectResourceClaim. The function prototype is as follows:
LONG NcDetectResourceFree(
INTERFACE_TYPE ifType,
LONG lBusNumber,
LONG lType,
LONG lValue,
LONG lRange,
LONG lFlags
);
The name of a resource (parameter) and its values must exactly match a previously claimed value, or ERROR_INVALID_PARAMETER is returned.