DEVPKEY_Device_Exclusive

The DEVPKEY_Device_Exclusive device property represents a Boolean value that determines whether a device instance can be opened for exclusive use.

Attribute Value

Property key

DEVPKEY_Device_Exclusive

Property-data-type identifier

DEVPROP_TYPE_BOOLEAN

Property access

Read and write access by installation applications and installers

Corresponding SPDRP_Xxx identifier

SPDRP_EXCLUSIVE

Localized?

No

Remarks

The value of the DEVPKEY_Device_Exclusive property is DEVPROP_TRUE if the device can be opened for exclusive use. Otherwise, the value of the property is DEVPROP_FALSE.

You can set the value of DEVPKEY_Device_Exclusive by using an INF AddReg directive that is included in the INF DDInstall.HW section that installs a device.

You can retrieve or set the value of DEVPKEY_Device_Exclusive by calling SetupDiGetDeviceProperty and SetupDiSetDeviceProperty.

Windows Server 2003, Windows XP, and Windows 2000 support this property, but do not support the DEVPKEY_Device_Exclusive property key. Instead, you can use the corresponding SPDRP_EXCLUSIVE identifier to access the value of the property on these earlier versions of Windows. For information about how to access this property value on these earlier versions of Windows, see Accessing Device Instance SPDRP_Xxx Properties.

Requirements

Version: Windows Vista and later versions of Windows Header: Devpkey.h (include Devpkey.h)

See also

INF AddReg Directive

INF DDInstall.HW Section

SetupDiGetDeviceProperty

SetupDiSetDeviceProperty