How To Use Configuration Manager to Get Free Resource InfoID: Q152540
|
This article describes how to obtain free resource information on memory,
IO, DMA, and IRQ in Windows 95 by using the
CONFIGMG_Query_Arbitrator_Free_Data function. The following information is
based on documentation from the Windows 95 Device Driver Programmer's
Reference, with additional information added for completeness:
CONFIGRET CONFIGMG_Query_Arbitrator_Free_Data(PFARVOID pData, ULONG
DataLen, DEVNODE dnDevNode, RESOURCEID ResourceID, ULONG ulFlags)
Address of a buffer that receives the free information. This information is arbitrator-specific. The buffer can be of type MEMA_ARB, IOA_ARB, DMA_ARB, and IRQ_ARB. See the \ddk\inc32\configmg.h header file for more information on these structure types.
The size (in bytes) of the data buffer. Use the CONFIGMG_Query_Arbitrator_Free_Size function to obtain the correct size for the buffer.
Device node associated with the arbitrator. This is most meaningful for local arbitrators. (Although any device node can be used for global arbitrators, this parameter should specify the root or NULL in that case.)
One of the resource identifiers listed in the ResourceId parameter of the CONFIGMG_Add_Res_Des function. This function returns CR_INVALID_RESOURCEID if this value is ResType_All or ResType_None.
Must be zero.
This function succeeds even when it returns CR_BUFFER_SMALL. To avoid this error, call CONFIGMG_Query_Arbitrator_Free_Size before calling this function.
You need to call Configuration Manager functions using the correct naming scheme. The function names should begin with CM_, not CONFIGMG_.
See the Windows 95 DDK for more information on Configuration Manager and Plug and Play.
Additional query words: 4.00
Keywords : kbnokeyword kbDDK
Version : 4.00
Platform : WINDOWS
Issue type :
Last Reviewed: March 5, 1999