大网数据广告活动
Windows 系统接口

Win32_PnPDevicePropertyBoolean class

· 52CE 我爱测

Represents a PnP device property of type boolean.

Represents a PnP device property of type boolean.

The following syntax is simplified from MOF code and includes all inherited properties.

Syntax

class Win32_PnPDevicePropertyBoolean : Win32_PnPDeviceProperty
{
  string  Key;
  string  KeyName;
  Uint32  Type;
  string  DeviceID;
  boolean Data;
};

Members

The Win32_PnPDevicePropertyBoolean class has these types of members:

Properties

The Win32_PnPDevicePropertyBoolean class has these properties.

Data

Data type: boolean

Access type: Read-only

The property value.

DeviceID

Data type: string

Access type: Read-only

Identifies the PnP device.

This property is inherited from Win32_PnPDeviceProperty.

Key

Data type: string

Access type: Read-only

The value of the Key Name-Value pair that identifies the Data property.

This property is inherited from Win32_PnPDeviceProperty.

KeyName

Data type: string

Access type: Read-only

The name of the Key Name-Value pair that identifies the Data property.

This property is inherited from Win32_PnPDeviceProperty.

Type

Data type: Uint32

Access type: Read-only

The type of the Data property.

This property is inherited from Win32_PnPDeviceProperty.

The possible values are.

Empty (0)

Null (1)

SByte (2)

Byte (3)

Int16 (4)

UInt16 (5)

Int32 (6)

Uint32 (7)

Int64 (8)

UInt64 (9)

Float (10)

Double (11)

Decimal (12)

Guid (13)

Currency (14)

Date (15)

FileTime (16)

Boolean (17)

String (18)

SecurityDescriptor (19)

SecurityDescriptorString (20)

DEVPROPKEY (21)

DEVPROPTYPE (22)

Error (23)

NTStatus (24)

StringIndirect (25)

Reserved

26–4097

SByteArray (4098)

Binary (4099)

Int16Array (4100)

UInt16Array (4101)

Int64Array (4102)

UInt64Array (4103)

FloatArray (4104)

DoubleArray (4105)

DecimalArray (4106)

GuidArray (4107)

CurrencyArray (4108)

DateArray (4109)

FileTimeArray (4110)

BooleanArray (4111)

StringList (4112)

SecurityDescriptorList (4113)

SecurityDescriptorStringList (8210)

DEVPROPKEYArray (8211)

DEVPROPTYPEArray (8212)

ErrorArray (4117)

NTStatusArray (4118)

StringIndirectList (4119)

Unknown - check in devpropdef.h (4120)

TBD (8217)

Reserved

8218–4294967295

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016
Namespace Root\CIMV2
MOF Cimwin32.mof
DLL CIMWin32.dll

See also

Win32_PnPDeviceProperty

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。