Skip to content

Latest commit

 

History

History
133 lines (85 loc) · 5.18 KB

nf-cfgmgr32-cm_modify_res_des_ex.md

File metadata and controls

133 lines (85 loc) · 5.18 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_Modify_Res_Des_Ex
CM_Modify_Res_Des_Ex function (cfgmgr32.h)
The CM_Modify_Res_Des_Ex function modifies a specified resource descriptor on a local or a remote machine.
CM_Modify_Res_Des_Ex
CM_Modify_Res_Des_Ex function [Device and Driver Installation]
cfgmgr32/CM_Modify_Res_Des_Ex
cfgmgrfn_62acb8c0-8f2c-4475-8f66-deed331699ba.xml
devinst.cm_modify_res_des_ex
devinst\cm_modify_res_des_ex.htm
devinst
6bb4af46-995e-4487-9c5f-89c72abb0ec5
12/05/2018
CM_Modify_Res_Des_Ex, CM_Modify_Res_Des_Ex function [Device and Driver Installation], cfgmgr32/CM_Modify_Res_Des_Ex, cfgmgrfn_62acb8c0-8f2c-4475-8f66-deed331699ba.xml, devinst.cm_modify_res_des_ex
cfgmgr32.h
Cfgmgr32.h
Desktop
Available in Microsoft Windows 2000 and later versions of Windows.
Cfgmgr32.lib
Cfgmgr32.dll
Windows
19H1
CM_Modify_Res_Des_Ex
cfgmgr32/CM_Modify_Res_Des_Ex
c++
APIRef
kbSyntax
DllExport
Cfgmgr32.dll
CM_Modify_Res_Des_Ex

CM_Modify_Res_Des_Ex function

-description

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

The CM_Modify_Res_Des_Ex function modifies a specified resource descriptor on a local or a remote machine.

-parameters

-param prdResDes [out]

Pointer to a location to receive a handle to the modified resource descriptor.

-param rdResDes [in]

Caller-supplied handle to the resource descriptor to be modified. This handle must have been previously obtained by calling one of the following functions:

CM_Add_Res_Des

CM_Add_Res_Des_Ex

CM_Get_Next_Res_Des

CM_Get_Next_Res_Des_Ex

CM_Modify_Res_Des

CM_Modify_Res_Des_Ex

-param ResourceID [in]

Caller-supplied resource type identifier. This must be one of the ResType_-prefixed constants defined in Cfgmgr32.h.

-param ResourceData [in]

Caller-supplied pointer to a resource descriptor, which can be one of the structures listed under the CM_Add_Res_Des_Ex function's description of ResourceData.

-param ResourceLen [in]

Caller-supplied length of the structure pointed to by ResourceData.

-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.

Note  Starting with Windows 8, CM_Modify_Res_Des_Ex returns CR_CALL_NOT_IMPLEMENTED when used in a Wow64 scenario. To request information about the hardware resources on a local machine it is necessary implement an architecture-native version of the application using the hardware resource APIs. For example: An AMD64 application for AMD64 systems.
 

-remarks

The caller-supplied resource descriptor data replaces the existing data. The values specified for ResourceID and ResourceLen do not have to match the existing resource descriptor.

If the value specified for ResourceID is ResType_ClassSpecific, then the specified resource descriptor must be the last one associated with the logical configuration.

Callers of CM_Modify_Res_Des_Ex must call CM_Free_Res_Des_Handle to deallocate the resource descriptor handle, after it is no longer needed.

Callers of this function must have SeLoadDriverPrivilege. (Privileges are described in the Microsoft Windows SDK documentation.)

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_Modify_Res_Des