[Beginning with Windows 8 and Windows Server 2012, this function has been deprecated and should not be used.]
The CM_Get_Version function returns version 4.0 of the Plug and Play (PnP) Configuration Manager DLL (Cfgmgr32.dll) for a local machine.
CMAPI WORD CM_Get_Version( );
This function has no parameters.
If the function succeeds, it returns the major revision number in the high-order byte, and the minor revision number in the low-order byte. Version 4.0 is returned as 0x0400. By default, version 4.0 is supported by Microsoft Windows 2000 and later versions of Windows. If an internal error occurs, the function returns 0x0000. Call GetLastError to obtain the error code for the failure.
This function returns version 4.0 of the configuration manager to ensure compatibility with version 4.0 and all later versions of the configuration manager, and to ensure compatibility with all applications that require version 4.0 of the configuration manager.
|Minimum supported client||Available in Microsoft Windows 2000 and later versions of Windows.|
|Header||cfgmgr32.h (include Cfgmgr32.h)|