Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 4.38 KB

nf-cfgmgr32-cm_enumerate_enumerators_exw.md

File metadata and controls

98 lines (73 loc) · 4.38 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_Enumerate_Enumerators_ExW
CM_Enumerate_Enumerators_ExW function (cfgmgr32.h)
The CM_Enumerate_Enumerators_Ex function enumerates a local or a remote machine's device enumerators, by supplying each enumerator's name. (Unicode)
CM_Enumerate_Enumerators_Ex
CM_Enumerate_Enumerators_Ex function [Device and Driver Installation]
CM_Enumerate_Enumerators_ExW
cfgmgr32/CM_Enumerate_Enumerators_Ex
cfgmgr32/CM_Enumerate_Enumerators_ExW
cfgmgrfn_56f59835-4383-4d6f-aaa5-e7e1cb4a3b56.xml
devinst.cm_enumerate_enumerators_ex
devinst\cm_enumerate_enumerators_ex.htm
devinst
9d44b1be-96b1-493a-94b7-a6bd883fd570
12/05/2018
CM_Enumerate_Enumerators_Ex, CM_Enumerate_Enumerators_Ex function [Device and Driver Installation], CM_Enumerate_Enumerators_ExW, cfgmgr32/CM_Enumerate_Enumerators_Ex, cfgmgr32/CM_Enumerate_Enumerators_ExW, cfgmgrfn_56f59835-4383-4d6f-aaa5-e7e1cb4a3b56.xml, devinst.cm_enumerate_enumerators_ex
cfgmgr32.h
Cfgmgr32.h
Desktop
Available in Microsoft Windows 2000 and later versions of Windows.
CM_Enumerate_Enumerators_ExW (Unicode)
Cfgmgr32.lib
Windows
19H1
CM_Enumerate_Enumerators_ExW
cfgmgr32/CM_Enumerate_Enumerators_ExW
c++
APIRef
kbSyntax
LibDef
Cfgmgr32.lib
Cfgmgr32.dll
CM_Enumerate_Enumerators_Ex
CM_Enumerate_Enumerators_ExW

CM_Enumerate_Enumerators_ExW function

-description

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

The CM_Enumerate_Enumerators_Ex function enumerates a local or a remote machine's device enumerators, by supplying each enumerator's name.

-parameters

-param ulEnumIndex [in]

Caller-supplied index into the machine's list of device enumerators. For more information, see the following Remarks section.

-param Buffer [out]

Address of a buffer to receive an enumerator name. This buffer should be MAX_DEVICE_ID_LEN-sized (or, set Buffer to zero and obtain the actual name length in the location referenced by puLength).

-param pulLength [in, out]

Caller-supplied address of a location to hold the buffer size. The caller supplies the length of the buffer pointed to by Buffer. The function replaces this value with the actual size of the enumerator's name string. If the caller-supplied buffer length is too small, the function supplies the required buffer size and returns CR_BUFFER_SMALL.

-param ulFlags [in]

Not used, must be zero.

-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

To enumerate the local or a remote machine's device enumerators, call CM_Enumerate_Enumerators_Ex repeatedly, starting with a ulEnumIndex index value of zero, and incrementing the index value with each subsequent call until the function returns CR_NO_SUCH_VALUE.

After enumerator names have been obtained, the names can be used as input to CM_Get_Device_ID_List.

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_Enumerate_Enumerators