winpnp 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winpnp/__init__.py +1 -0
- winpnp/_setupapi.py +208 -0
- winpnp/info/__init__.py +1 -0
- winpnp/info/_pnp_property_mapping.py +126 -0
- winpnp/info/device.py +171 -0
- winpnp/info/setup_class.py +110 -0
- winpnp/properties/__init__.py +1 -0
- winpnp/properties/decoding.py +137 -0
- winpnp/properties/keys/__init__.py +18 -0
- winpnp/properties/keys/bluetooth.py +88 -0
- winpnp/properties/keys/dev_query.py +11 -0
- winpnp/properties/keys/device.py +742 -0
- winpnp/properties/keys/device_class.py +144 -0
- winpnp/properties/keys/device_container.py +358 -0
- winpnp/properties/keys/device_interface.py +53 -0
- winpnp/properties/keys/device_interface_class.py +18 -0
- winpnp/properties/keys/driver_package.py +43 -0
- winpnp/properties/kinds.py +284 -0
- winpnp/properties/pnp_property.py +141 -0
- winpnp-0.0.1.dist-info/METADATA +45 -0
- winpnp-0.0.1.dist-info/RECORD +23 -0
- winpnp-0.0.1.dist-info/WHEEL +4 -0
- winpnp-0.0.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
3
|
+
from winpnp.properties import kinds
|
|
4
|
+
from winpnp.properties.pnp_property import PnpPropertyKey
|
|
5
|
+
|
|
6
|
+
UPPER_FILTERS = PnpPropertyKey.register_new(
|
|
7
|
+
UUID("{4321918b-f69e-470d-a5de4d88c75ad24b}"),
|
|
8
|
+
19,
|
|
9
|
+
"DeviceClass_UpperFilters",
|
|
10
|
+
(kinds.STRING_LIST,),
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
LOWER_FILTERS = PnpPropertyKey.register_new(
|
|
14
|
+
UUID("{4321918b-f69e-470d-a5de4d88c75ad24b}"),
|
|
15
|
+
20,
|
|
16
|
+
"DeviceClass_LowerFilters",
|
|
17
|
+
(kinds.STRING_LIST,),
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
SECURITY = PnpPropertyKey.register_new(
|
|
21
|
+
UUID("{4321918b-f69e-470d-a5de4d88c75ad24b}"),
|
|
22
|
+
25,
|
|
23
|
+
"DeviceClass_Security",
|
|
24
|
+
(kinds.SECURITY_DESCRIPTOR,),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
SECURITY_SDS = PnpPropertyKey.register_new(
|
|
28
|
+
UUID("{4321918b-f69e-470d-a5de4d88c75ad24b}"),
|
|
29
|
+
26,
|
|
30
|
+
"DeviceClass_SecuritySDS",
|
|
31
|
+
(kinds.SECURITY_DESCRIPTOR_STRING,),
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
DEV_TYPE = PnpPropertyKey.register_new(
|
|
35
|
+
UUID("{4321918b-f69e-470d-a5de4d88c75ad24b}"),
|
|
36
|
+
27,
|
|
37
|
+
"DeviceClass_DevType",
|
|
38
|
+
(kinds.UINT32,),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
EXCLUSIVE = PnpPropertyKey.register_new(
|
|
42
|
+
UUID("{4321918b-f69e-470d-a5de4d88c75ad24b}"),
|
|
43
|
+
28,
|
|
44
|
+
"DeviceClass_Exclusive",
|
|
45
|
+
(kinds.BOOLEAN,),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
CHARACTERISTICS = PnpPropertyKey.register_new(
|
|
49
|
+
UUID("{4321918b-f69e-470d-a5de4d88c75ad24b}"),
|
|
50
|
+
29,
|
|
51
|
+
"DeviceClass_Characteristics",
|
|
52
|
+
(kinds.UINT32,),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
NAME = PnpPropertyKey.register_new(
|
|
56
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
57
|
+
2,
|
|
58
|
+
"DeviceClass_Name",
|
|
59
|
+
(kinds.STRING,),
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
CLASS_NAME = PnpPropertyKey.register_new(
|
|
63
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
64
|
+
3,
|
|
65
|
+
"DeviceClass_ClassName",
|
|
66
|
+
(kinds.STRING,),
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
ICON = PnpPropertyKey.register_new(
|
|
70
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
71
|
+
4,
|
|
72
|
+
"DeviceClass_Icon",
|
|
73
|
+
(kinds.STRING,),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
CLASS_INSTALLER = PnpPropertyKey.register_new(
|
|
77
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
78
|
+
5,
|
|
79
|
+
"DeviceClass_ClassInstaller",
|
|
80
|
+
(kinds.STRING,),
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
PROP_PAGE_PROVIDER = PnpPropertyKey.register_new(
|
|
84
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
85
|
+
6,
|
|
86
|
+
"DeviceClass_PropPageProvider",
|
|
87
|
+
(kinds.STRING,),
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
NO_INSTALL_CLASS = PnpPropertyKey.register_new(
|
|
91
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
92
|
+
7,
|
|
93
|
+
"DeviceClass_NoInstallClass",
|
|
94
|
+
(kinds.BOOLEAN,),
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
NO_DISPLAY_CLASS = PnpPropertyKey.register_new(
|
|
98
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
99
|
+
8,
|
|
100
|
+
"DeviceClass_NoDisplayClass",
|
|
101
|
+
(kinds.BOOLEAN,),
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
SILENT_INSTALL = PnpPropertyKey.register_new(
|
|
105
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
106
|
+
9,
|
|
107
|
+
"DeviceClass_SilentInstall",
|
|
108
|
+
(kinds.BOOLEAN,),
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
NO_USE_CLASS = PnpPropertyKey.register_new(
|
|
112
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
113
|
+
10,
|
|
114
|
+
"DeviceClass_NoUseClass",
|
|
115
|
+
(kinds.BOOLEAN,),
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
DEFAULT_SERVICE = PnpPropertyKey.register_new(
|
|
119
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
120
|
+
11,
|
|
121
|
+
"DeviceClass_DefaultService",
|
|
122
|
+
(kinds.STRING,),
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
ICON_PATH = PnpPropertyKey.register_new(
|
|
126
|
+
UUID("{259abffc-50a7-47ce-af0868c9a7d73366}"),
|
|
127
|
+
12,
|
|
128
|
+
"DeviceClass_IconPath",
|
|
129
|
+
(kinds.STRING_LIST,),
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
DHP_REBALANCE_OPT_OUT = PnpPropertyKey.register_new(
|
|
133
|
+
UUID("{d14d3ef3-66cf-4ba2-9d380ddb37ab4701}"),
|
|
134
|
+
2,
|
|
135
|
+
"DeviceClass_DHPRebalanceOptOut",
|
|
136
|
+
(kinds.BOOLEAN,),
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
CLASS_CO_INSTALLERS = PnpPropertyKey.register_new(
|
|
140
|
+
UUID("{713d1703-a2e2-49f5-921456472ef3da5c}"),
|
|
141
|
+
2,
|
|
142
|
+
"DeviceClass_ClassCoInstallers",
|
|
143
|
+
(kinds.STRING_LIST,),
|
|
144
|
+
)
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
from typing import Union, cast
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
|
|
4
|
+
from winpnp.properties import kinds
|
|
5
|
+
from winpnp.properties.pnp_property import PnpPropertyKey, PnpPropertyType
|
|
6
|
+
|
|
7
|
+
ADDRESS = PnpPropertyKey.register_new(
|
|
8
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
9
|
+
51,
|
|
10
|
+
"DeviceContainer_Address",
|
|
11
|
+
(
|
|
12
|
+
cast(PnpPropertyType[Union[str, list[str]]], kinds.STRING),
|
|
13
|
+
cast(PnpPropertyType[Union[str, list[str]]], kinds.STRING_LIST),
|
|
14
|
+
),
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
DISCOVERY_METHOD = PnpPropertyKey.register_new(
|
|
18
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
19
|
+
52,
|
|
20
|
+
"DeviceContainer_DiscoveryMethod",
|
|
21
|
+
(kinds.STRING_LIST,),
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
IS_ENCRYPTED = PnpPropertyKey.register_new(
|
|
25
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
26
|
+
53,
|
|
27
|
+
"DeviceContainer_IsEncrypted",
|
|
28
|
+
(kinds.BOOLEAN,),
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
IS_AUTHENTICATED = PnpPropertyKey.register_new(
|
|
32
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
33
|
+
54,
|
|
34
|
+
"DeviceContainer_IsAuthenticated",
|
|
35
|
+
(kinds.BOOLEAN,),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
IS_CONNECTED = PnpPropertyKey.register_new(
|
|
39
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
40
|
+
55,
|
|
41
|
+
"DeviceContainer_IsConnected",
|
|
42
|
+
(kinds.BOOLEAN,),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
IS_PAIRED = PnpPropertyKey.register_new(
|
|
46
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
47
|
+
56,
|
|
48
|
+
"DeviceContainer_IsPaired",
|
|
49
|
+
(kinds.BOOLEAN,),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
ICON = PnpPropertyKey.register_new(
|
|
53
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
54
|
+
57,
|
|
55
|
+
"DeviceContainer_Icon",
|
|
56
|
+
(kinds.STRING,),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
VERSION = PnpPropertyKey.register_new(
|
|
60
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
61
|
+
65,
|
|
62
|
+
"DeviceContainer_Version",
|
|
63
|
+
(kinds.STRING,),
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
LAST_SEEN = PnpPropertyKey.register_new(
|
|
67
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
68
|
+
66,
|
|
69
|
+
"DeviceContainer_Last_Seen",
|
|
70
|
+
(kinds.FILETIME,),
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
LAST_CONNECTED = PnpPropertyKey.register_new(
|
|
74
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
75
|
+
67,
|
|
76
|
+
"DeviceContainer_Last_Connected",
|
|
77
|
+
(kinds.FILETIME,),
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
IS_SHOW_IN_DISCONNECTED_STATE = PnpPropertyKey.register_new(
|
|
81
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
82
|
+
68,
|
|
83
|
+
"DeviceContainer_IsShowInDisconnectedState",
|
|
84
|
+
(kinds.BOOLEAN,),
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
IS_LOCAL_MACHINE = PnpPropertyKey.register_new(
|
|
88
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
89
|
+
70,
|
|
90
|
+
"DeviceContainer_IsLocalMachine",
|
|
91
|
+
(kinds.BOOLEAN,),
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
METADATA_PATH = PnpPropertyKey.register_new(
|
|
95
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
96
|
+
71,
|
|
97
|
+
"DeviceContainer_MetadataPath",
|
|
98
|
+
(kinds.STRING,),
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
IS_METADATA_SEARCH_IN_PROGRESS = PnpPropertyKey.register_new(
|
|
102
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
103
|
+
72,
|
|
104
|
+
"DeviceContainer_IsMetadataSearchInProgress",
|
|
105
|
+
(kinds.BOOLEAN,),
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
METADATA_CHECKSUM = PnpPropertyKey.register_new(
|
|
109
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
110
|
+
73,
|
|
111
|
+
"DeviceContainer_MetadataChecksum",
|
|
112
|
+
(kinds.BYTE_ARRAY,),
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
IS_NOT_INTERESTING_FOR_DISPLAY = PnpPropertyKey.register_new(
|
|
116
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
117
|
+
74,
|
|
118
|
+
"DeviceContainer_IsNotInterestingForDisplay",
|
|
119
|
+
(kinds.BOOLEAN,),
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
LAUNCH_DEVICE_STAGE_ON_DEVICE_CONNECT = PnpPropertyKey.register_new(
|
|
123
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
124
|
+
76,
|
|
125
|
+
"DeviceContainer_LaunchDeviceStageOnDeviceConnect",
|
|
126
|
+
(kinds.BOOLEAN,),
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
LAUNCH_DEVICE_STAGE_FROM_EXPLORER = PnpPropertyKey.register_new(
|
|
130
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
131
|
+
77,
|
|
132
|
+
"DeviceContainer_LaunchDeviceStageFromExplorer",
|
|
133
|
+
(kinds.BOOLEAN,),
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
BASELINE_EXPERIENCE_ID = PnpPropertyKey.register_new(
|
|
137
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
138
|
+
78,
|
|
139
|
+
"DeviceContainer_BaselineExperienceId",
|
|
140
|
+
(kinds.GUID,),
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
IS_DEVICE_UNIQUELY_IDENTIFIABLE = PnpPropertyKey.register_new(
|
|
144
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
145
|
+
79,
|
|
146
|
+
"DeviceContainer_IsDeviceUniquelyIdentifiable",
|
|
147
|
+
(kinds.BOOLEAN,),
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
ASSOCIATION_ARRAY = PnpPropertyKey.register_new(
|
|
151
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
152
|
+
80,
|
|
153
|
+
"DeviceContainer_AssociationArray",
|
|
154
|
+
(kinds.STRING_LIST,),
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
DEVICE_DESCRIPTION1 = PnpPropertyKey.register_new(
|
|
158
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
159
|
+
81,
|
|
160
|
+
"DeviceContainer_DeviceDescription1",
|
|
161
|
+
(kinds.STRING,),
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
DEVICE_DESCRIPTION2 = PnpPropertyKey.register_new(
|
|
165
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
166
|
+
82,
|
|
167
|
+
"DeviceContainer_DeviceDescription2",
|
|
168
|
+
(kinds.STRING,),
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
HAS_PROBLEM = PnpPropertyKey.register_new(
|
|
172
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
173
|
+
83,
|
|
174
|
+
"DeviceContainer_HasProblem",
|
|
175
|
+
(kinds.BOOLEAN,),
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
IS_SHARED_DEVICE = PnpPropertyKey.register_new(
|
|
179
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
180
|
+
84,
|
|
181
|
+
"DeviceContainer_IsSharedDevice",
|
|
182
|
+
(kinds.BOOLEAN,),
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
IS_NETWORK_DEVICE = PnpPropertyKey.register_new(
|
|
186
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
187
|
+
85,
|
|
188
|
+
"DeviceContainer_IsNetworkDevice",
|
|
189
|
+
(kinds.BOOLEAN,),
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
IS_DEFAULT_DEVICE = PnpPropertyKey.register_new(
|
|
193
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
194
|
+
86,
|
|
195
|
+
"DeviceContainer_IsDefaultDevice",
|
|
196
|
+
(kinds.BOOLEAN,),
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
METADATA_CABINET = PnpPropertyKey.register_new(
|
|
200
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
201
|
+
87,
|
|
202
|
+
"DeviceContainer_MetadataCabinet",
|
|
203
|
+
(kinds.STRING,),
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
REQUIRES_PAIRING_ELEVATION = PnpPropertyKey.register_new(
|
|
207
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
208
|
+
88,
|
|
209
|
+
"DeviceContainer_RequiresPairingElevation",
|
|
210
|
+
(kinds.BOOLEAN,),
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
EXPERIENCE_ID = PnpPropertyKey.register_new(
|
|
214
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
215
|
+
89,
|
|
216
|
+
"DeviceContainer_ExperienceId",
|
|
217
|
+
(kinds.GUID,),
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
CATEGORY = PnpPropertyKey.register_new(
|
|
221
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
222
|
+
90,
|
|
223
|
+
"DeviceContainer_Category",
|
|
224
|
+
(kinds.STRING_LIST,),
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
CATEGORY_DESC_SINGULAR = PnpPropertyKey.register_new(
|
|
228
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
229
|
+
91,
|
|
230
|
+
"DeviceContainer_Category_Desc_Singular",
|
|
231
|
+
(kinds.STRING_LIST,),
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
CATEGORY_DESC_PLURAL = PnpPropertyKey.register_new(
|
|
235
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
236
|
+
92,
|
|
237
|
+
"DeviceContainer_Category_Desc_Plural",
|
|
238
|
+
(kinds.STRING_LIST,),
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
CATEGORY_ICON = PnpPropertyKey.register_new(
|
|
242
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
243
|
+
93,
|
|
244
|
+
"DeviceContainer_Category_Icon",
|
|
245
|
+
(kinds.STRING,),
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
CATEGORY_GROUP_DESC = PnpPropertyKey.register_new(
|
|
249
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
250
|
+
94,
|
|
251
|
+
"DeviceContainer_CategoryGroup_Desc",
|
|
252
|
+
(kinds.STRING_LIST,),
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
CATEGORY_GROUP_ICON = PnpPropertyKey.register_new(
|
|
256
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
257
|
+
95,
|
|
258
|
+
"DeviceContainer_CategoryGroup_Icon",
|
|
259
|
+
(kinds.STRING,),
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
PRIMARY_CATEGORY = PnpPropertyKey.register_new(
|
|
263
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
264
|
+
97,
|
|
265
|
+
"DeviceContainer_PrimaryCategory",
|
|
266
|
+
(kinds.STRING,),
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
UNPAIR_UNINSTALL = PnpPropertyKey.register_new(
|
|
270
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
271
|
+
98,
|
|
272
|
+
"DeviceContainer_UnpairUninstall",
|
|
273
|
+
(kinds.BOOLEAN,),
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
REQUIRES_UNINSTALL_ELEVATION = PnpPropertyKey.register_new(
|
|
277
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
278
|
+
99,
|
|
279
|
+
"DeviceContainer_RequiresUninstallElevation",
|
|
280
|
+
(kinds.BOOLEAN,),
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
DEVICE_FUNCTION_SUB_RANK = PnpPropertyKey.register_new(
|
|
284
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
285
|
+
100,
|
|
286
|
+
"DeviceContainer_DeviceFunctionSubRank",
|
|
287
|
+
(kinds.UINT32,),
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
ALWAYS_SHOW_DEVICE_AS_CONNECTED = PnpPropertyKey.register_new(
|
|
291
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
292
|
+
101,
|
|
293
|
+
"DeviceContainer_AlwaysShowDeviceAsConnected",
|
|
294
|
+
(kinds.BOOLEAN,),
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
CONFIG_FLAGS = PnpPropertyKey.register_new(
|
|
298
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
299
|
+
105,
|
|
300
|
+
"DeviceContainer_ConfigFlags",
|
|
301
|
+
(kinds.UINT32,),
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
PRIVILEGED_PACKAGE_FAMILY_NAMES = PnpPropertyKey.register_new(
|
|
305
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
306
|
+
106,
|
|
307
|
+
"DeviceContainer_PrivilegedPackageFamilyNames",
|
|
308
|
+
(kinds.STRING_LIST,),
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
CUSTOM_PRIVILEGED_PACKAGE_FAMILY_NAMES = PnpPropertyKey.register_new(
|
|
312
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
313
|
+
107,
|
|
314
|
+
"DeviceContainer_CustomPrivilegedPackageFamilyNames",
|
|
315
|
+
(kinds.STRING_LIST,),
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
IS_REBOOT_REQUIRED = PnpPropertyKey.register_new(
|
|
319
|
+
UUID("{78c34fc8-104a-4aca-9ea4524d52996e57}"),
|
|
320
|
+
108,
|
|
321
|
+
"DeviceContainer_IsRebootRequired",
|
|
322
|
+
(kinds.BOOLEAN,),
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
FRIENDLY_NAME = PnpPropertyKey.register_new(
|
|
326
|
+
UUID("{656A3BB3-ECC0-43FD-84774AE0404A96CD}"),
|
|
327
|
+
12288,
|
|
328
|
+
"DeviceContainer_FriendlyName",
|
|
329
|
+
(kinds.STRING,),
|
|
330
|
+
)
|
|
331
|
+
|
|
332
|
+
MANUFACTURER = PnpPropertyKey.register_new(
|
|
333
|
+
UUID("{656A3BB3-ECC0-43FD-84774AE0404A96CD}"),
|
|
334
|
+
8192,
|
|
335
|
+
"DeviceContainer_Manufacturer",
|
|
336
|
+
(kinds.STRING,),
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
MODEL_NAME = PnpPropertyKey.register_new(
|
|
340
|
+
UUID("{656A3BB3-ECC0-43FD-84774AE0404A96CD}"),
|
|
341
|
+
8194,
|
|
342
|
+
"DeviceContainer_ModelName",
|
|
343
|
+
(kinds.STRING,),
|
|
344
|
+
)
|
|
345
|
+
|
|
346
|
+
MODEL_NUMBER = PnpPropertyKey.register_new(
|
|
347
|
+
UUID("{656A3BB3-ECC0-43FD-84774AE0404A96CD}"),
|
|
348
|
+
8195,
|
|
349
|
+
"DeviceContainer_ModelNumber",
|
|
350
|
+
(kinds.STRING,),
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
INSTALL_IN_PROGRESS = PnpPropertyKey.register_new(
|
|
354
|
+
UUID("{83da6326-97a6-4088-9453a1923f573b29}"),
|
|
355
|
+
9,
|
|
356
|
+
"DeviceContainer_InstallInProgress",
|
|
357
|
+
(kinds.BOOLEAN,),
|
|
358
|
+
)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
3
|
+
from winpnp.properties import kinds
|
|
4
|
+
from winpnp.properties.pnp_property import PnpPropertyKey
|
|
5
|
+
|
|
6
|
+
FRIENDLY_NAME = PnpPropertyKey.register_new(
|
|
7
|
+
UUID("{026e516e-b814-414b-83cd856d6fef4822}"),
|
|
8
|
+
2,
|
|
9
|
+
"DeviceInterface_FriendlyName",
|
|
10
|
+
(kinds.STRING,),
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
ENABLED = PnpPropertyKey.register_new(
|
|
14
|
+
UUID("{026e516e-b814-414b-83cd856d6fef4822}"),
|
|
15
|
+
3,
|
|
16
|
+
"DeviceInterface_Enabled",
|
|
17
|
+
(kinds.BOOLEAN,),
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
CLASS_GUID = PnpPropertyKey.register_new(
|
|
21
|
+
UUID("{026e516e-b814-414b-83cd856d6fef4822}"),
|
|
22
|
+
4,
|
|
23
|
+
"DeviceInterface_ClassGuid",
|
|
24
|
+
(kinds.GUID,),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
REFERENCE_STRING = PnpPropertyKey.register_new(
|
|
28
|
+
UUID("{026e516e-b814-414b-83cd856d6fef4822}"),
|
|
29
|
+
5,
|
|
30
|
+
"DeviceInterface_ReferenceString",
|
|
31
|
+
(kinds.STRING,),
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
RESTRICTED = PnpPropertyKey.register_new(
|
|
35
|
+
UUID("{026e516e-b814-414b-83cd856d6fef4822}"),
|
|
36
|
+
6,
|
|
37
|
+
"DeviceInterface_Restricted",
|
|
38
|
+
(kinds.BOOLEAN,),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
UNRESTRICTED_APP_CAPABILITIES = PnpPropertyKey.register_new(
|
|
42
|
+
UUID("{026e516e-b814-414b-83cd856d6fef4822}"),
|
|
43
|
+
8,
|
|
44
|
+
"DeviceInterface_UnrestrictedAppCapabilities",
|
|
45
|
+
(kinds.STRING_LIST,),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
SCHEMATIC_NAME = PnpPropertyKey.register_new(
|
|
49
|
+
UUID("{026e516e-b814-414b-83cd856d6fef4822}"),
|
|
50
|
+
9,
|
|
51
|
+
"DeviceInterface_SchematicName",
|
|
52
|
+
(kinds.STRING,),
|
|
53
|
+
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
3
|
+
from winpnp.properties import kinds
|
|
4
|
+
from winpnp.properties.pnp_property import PnpPropertyKey
|
|
5
|
+
|
|
6
|
+
DEFAULT_INTERFACE = PnpPropertyKey.register_new(
|
|
7
|
+
UUID("{14c83a99-0b3f-44b7-be4ca178d3990564}"),
|
|
8
|
+
2,
|
|
9
|
+
"DeviceInterfaceClass_DefaultInterface",
|
|
10
|
+
(kinds.STRING,),
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
NAME = PnpPropertyKey.register_new(
|
|
14
|
+
UUID("{14c83a99-0b3f-44b7-be4ca178d3990564}"),
|
|
15
|
+
3,
|
|
16
|
+
"DeviceInterfaceClass_Name",
|
|
17
|
+
(kinds.STRING,),
|
|
18
|
+
)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
3
|
+
from winpnp.properties import kinds
|
|
4
|
+
from winpnp.properties.pnp_property import PnpPropertyKey
|
|
5
|
+
|
|
6
|
+
MODEL = PnpPropertyKey.register_new(
|
|
7
|
+
UUID("{cf73bb51-3abf-44a2-85e09a3dc7a12132}"), 2, "DrvPkg_Model", (kinds.STRING,)
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
VENDOR_WEB_SITE = PnpPropertyKey.register_new(
|
|
11
|
+
UUID("{cf73bb51-3abf-44a2-85e09a3dc7a12132}"),
|
|
12
|
+
3,
|
|
13
|
+
"DrvPkg_VendorWebSite",
|
|
14
|
+
(kinds.STRING,),
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
DETAILED_DESCRIPTION = PnpPropertyKey.register_new(
|
|
18
|
+
UUID("{cf73bb51-3abf-44a2-85e09a3dc7a12132}"),
|
|
19
|
+
4,
|
|
20
|
+
"DrvPkg_DetailedDescription",
|
|
21
|
+
(kinds.STRING,),
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
DOCUMENTATION_LINK = PnpPropertyKey.register_new(
|
|
25
|
+
UUID("{cf73bb51-3abf-44a2-85e09a3dc7a12132}"),
|
|
26
|
+
5,
|
|
27
|
+
"DrvPkg_DocumentationLink",
|
|
28
|
+
(kinds.STRING,),
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
ICON = PnpPropertyKey.register_new(
|
|
32
|
+
UUID("{cf73bb51-3abf-44a2-85e09a3dc7a12132}"),
|
|
33
|
+
6,
|
|
34
|
+
"DrvPkg_Icon",
|
|
35
|
+
(kinds.STRING_LIST,),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
BRANDING_ICON = PnpPropertyKey.register_new(
|
|
39
|
+
UUID("{cf73bb51-3abf-44a2-85e09a3dc7a12132}"),
|
|
40
|
+
7,
|
|
41
|
+
"DrvPkg_BrandingIcon",
|
|
42
|
+
(kinds.STRING_LIST,),
|
|
43
|
+
)
|