Skip to content

Latest commit

 

History

History
96 lines (72 loc) · 4.88 KB

nf-cfgmgr32-cm_get_device_id_list_size_exw.md

File metadata and controls

96 lines (72 loc) · 4.88 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:cfgmgr32.CM_Get_Device_ID_List_Size_ExW
CM_Get_Device_ID_List_Size_ExW function (cfgmgr32.h)
The CM_Get_Device_ID_List_Size_Ex function retrieves the buffer size required to hold a list of device instance IDs for a local or a remote machine's device instances. (Unicode)
CM_Get_Device_ID_List_Size_Ex
CM_Get_Device_ID_List_Size_Ex function [Device and Driver Installation]
CM_Get_Device_ID_List_Size_ExW
cfgmgr32/CM_Get_Device_ID_List_Size_Ex
cfgmgr32/CM_Get_Device_ID_List_Size_ExW
cfgmgrfn_2e9a6787-1578-48c1-9f3b-5d1ee266f9ac.xml
devinst.cm_get_device_id_list_size_ex
devinst\cm_get_device_id_list_size_ex.htm
devinst
ed89ff61-c92b-4841-9038-3c26d8594aee
12/05/2018
CM_Get_Device_ID_List_Size_Ex, CM_Get_Device_ID_List_Size_Ex function [Device and Driver Installation], CM_Get_Device_ID_List_Size_ExW, cfgmgr32/CM_Get_Device_ID_List_Size_Ex, cfgmgr32/CM_Get_Device_ID_List_Size_ExW, cfgmgrfn_2e9a6787-1578-48c1-9f3b-5d1ee266f9ac.xml, devinst.cm_get_device_id_list_size_ex
cfgmgr32.h
Cfgmgr32.h
Desktop
Available in Microsoft Windows 2000 and later versions of Windows.
CM_Get_Device_ID_List_Size_ExW (Unicode)
Cfgmgr32.lib
Windows
19H1
CM_Get_Device_ID_List_Size_ExW
cfgmgr32/CM_Get_Device_ID_List_Size_ExW
c++
APIRef
kbSyntax
LibDef
Cfgmgr32.lib
Cfgmgr32.dll
CM_Get_Device_ID_List_Size_Ex
CM_Get_Device_ID_List_Size_ExW

CM_Get_Device_ID_List_Size_ExW function

-description

[Beginning with Windows 8 and Windows Server 2012, this function has been deprecated. Please use CM_Get_Device_ID_List_Size instead.]

The CM_Get_Device_ID_List_Size_Ex function retrieves the buffer size required to hold a list of device instance IDs for a local or a remote machine's device instances.

-parameters

-param pulLen [out]

Receives a value representing the required buffer size, in characters.

-param pszFilter [in, optional]

Caller-supplied pointer to a character string specifying a subset of the machine's device instance identifiers, or NULL. See the following description of ulFlags.

-param ulFlags [in]

One of the optional, caller-supplied bit flags that specify search filters. If no flags are specified, the function supplies the buffer size required to hold all instance identifiers for all device instances. For a list of bit flags, see the ulFlags description for CM_Get_Device_ID_List_Ex.

-param hMachine [in, optional]

Caller-supplied machine handle, obtained from a previous call to CM_Connect_Machine.

Note  Using this function to access remote machines is not supported beginning with Windows 8 and Windows Server 2012, as this functionality has been removed.
 

-returns

If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.

-remarks

The CM_Get_Device_ID_List_Size_Ex function should be called to determine the buffer size required by CM_Get_Device_ID_List_Ex.

The size value supplied in the location pointed to by pulLen is guaranteed to represent a buffer size large enough to hold all device instance identifier strings and terminating NULLs. The supplied value might actually represent a buffer size that is larger than necessary, so don't assume the value represents the true length of the character strings that CM_Get_Device_ID_List_Ex will provide.

For information about device instance IDs, see Device Identification Strings.

Functionality to access remote machines has been removed in Windows 8 and Windows Server 2012 and later operating systems thus you cannot access remote machines when running on these versions of Windows.

-see-also

CM_Get_Device_ID_List_Size