Export (0) Print
Expand All
Expand Minimize

CM_Get_HW_Prof_Flags function

The CM_Get_HW_Prof_Flags function retrieves the hardware profile-specific configuration flags for a device instance on a local machine.

Syntax


CMAPI
CONFIGRET
WINAPI CM_Get_HW_Prof_Flags(
  _In_   DEVINSTID_W pDeviceID,
  _In_   ULONG ulHardwareProfile,
  _Out_  PULONG pulValue,
  _In_   ULONG ulFlags
);

Parameters

pDeviceID [in]

Pointer to a NULL-terminated string that contains the device instance ID of the device for which to retrieve hardware profile-specific configuration flags.

ulHardwareProfile [in]

A variable of ULONG type that specifies the identifier of the hardware profile for which to retrieve configuration flags. If this parameter is zero, this function retrieves the configuration flags for the current hardware profile.

pulValue [out]

Pointer to a caller-supplied variable of ULONG type that receives zero or a bitwise OR of the following configuration flags that are defined in Regstr.h:

CSCONFIGFLAG_BITS

Bitwise OR of the other CSCONFIGFLAG_Xxx flags.

CSCONFIGFLAG_DISABLE

The device instance is disabled in the specified hardware profile.

CSCONFIGFLAG_DO_NOT_CREATE

The hardware profile does not support the specified device instance.

CSCONFIGFLAG_DO_NOT_START

The device cannot be started in the specified hardware profile.

ulFlags [in]

Reserved for internal use. Must be set to zero.

Return value

If the operation succeeds, CM_Get_HW_Prof_Flags returns CR_SUCCESS. Otherwise, the function returns one of the CR_Xxx error codes that are defined in Cfgmgr32.h.

Remarks

To retrieve a list of hardware profile IDs that are currently defined on a local machine, call SetupDiGetHwProfileList.

To retrieve configuration flags for a device instance on a remote machine, call CM_Get_HW_Prof_Flags_Ex.

Requirements

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib

See also

CM_Get_HW_Prof_Flags_Ex
SetupDiGetHwProfileFriendlyName
SetupDiGetHwProfileList

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft