Microsoft KB Archive/810895

= DOC: Obtaining Device Configuration Flags by Using the CM_Get_HW_Prof_Flag Function =

PSS ID Number: 810895

Article Last Modified on 10/14/2003

-

The information in this article applies to:


 * Microsoft Windows Server 2003, Standard Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows 2000 Server
 * Microsoft Windows Small Business Server 2003, Premium Edition
 * Microsoft Windows Small Business Server 2003, Standard Edition

-



SUMMARY
The CM_Get_HW_Prof_Flags function retrieves the configuration-specific configuration flags for a device instance and a hardware profile combination.



Sample Code
CONFIGRET CM_Get_HW_Prof_Flags(  IN DEVINSTID  pDeviceID,   IN ULONG  ulHardwareProfile,   OUT PULONG  pulValue,   IN ULONG ulFlags, );

Parameters

 * pDeviceID: Supplies the address of a NULL-terminated string that specifies the name of the device instance to query.
 * ulHardwareProfile: Supplies the handle of the hardware profile to query. If 0, the API queries the current hardware profile.
 * pulValue: Supplies the address of the variable that receives the configuration-specific configuration (CSCONFIGFLAG_) flags.
 * ulFlags: Must be zero.

Return Value
If the function succeeds, the return value is CR_SUCCESS.

If the function fails, the return value is one of the following:
 * CR_INVALID_FLAG
 * CR_INVALID_POINTER
 * CR_REGISTRY_ERROR
 * CR_REMOTE_COMM_FAILURE
 * CR_MACHINE_UNAVAILABLE
 * CR_FAILURE

Keywords: kbinfo kbDDK KB810895

Technology: kbSBServ2003Pre kbSBServ2003Search kbSBServ2003St kbSBServSearch kbwin2000Search kbwin2000Serv kbwin2000ServSearch kbWinServ2003Search kbWinServ2003St kbWinXPPro kbWinXPProSearch kbWinXPSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.