Windows Driver Kit: Device Installation
CM_Is_Version_Available
The CM_Is_Version_Available function indicates whether a specified version of the configuration manager DLL (cfgmgr32.dll) is supported by a local machine.
CMAPI
BOOL
WINAPI
CM_Is_Version_Available(
IN WORD wVersion
);
Parameters
- wVersion
- Identifies a version of the configuration manager. The supported version of the configuration manager corresponds directly to the operating system version. The major version is specified by the high-order byte and the minor version is specified by the low-order byte. For example, 0x0400 specifies version 4.0, which is supported by default by Microsoft Windows NT 4.0 and later versions of Windows. Version 0x0501 specifies version 5.1, which is supported by Windows XP and later versions of Windows.
Return Value
The function returns TRUE if the local machine supports the specified version of the configuration manager. Otherwise, the function returns FALSE.
Comments
Use this function to determine whether a specified version of the configuration manager is supported by a local machine. If the specified version is supported, all versions earlier and including this version are supported by the machine. You can also use CM_Is_Version_Available_Ex to determine if a local or a remote machine supports a specific version of the configuration manager.
Requirements
Versions: The CM_Is_Version_Available function is available in Windows XP and later versions of Windows.
Headers: Declared in Cfgmgr32.h. Include Cfgmgr32.h.
See Also
CM_Get_Version, CM_Get_Version_Ex, CM_Is_Version_Available_Ex