1 | //////////////////////////////////////////////////////////// |
---|
2 | // Copyright (C) Roman Ryltsov, 2008-2011 |
---|
3 | // Created by Roman Ryltsov roman@alax.info |
---|
4 | |
---|
5 | #pragma once |
---|
6 | |
---|
7 | #include <mmdeviceapi.h> |
---|
8 | #include <functiondiscoverykeys.h> |
---|
9 | #include <propkey.h> |
---|
10 | #include <devpkey.h> |
---|
11 | #include "AboutDialog.h" |
---|
12 | |
---|
13 | //////////////////////////////////////////////////////////// |
---|
14 | // CMainDialog |
---|
15 | |
---|
16 | class CMainDialog : |
---|
17 | public CDialogImpl<CMainDialog>, |
---|
18 | public CDialogResize<CMainDialog> |
---|
19 | { |
---|
20 | public: |
---|
21 | enum { IDD = IDD_MAIN }; |
---|
22 | |
---|
23 | BEGIN_MSG_MAP_EX(CMainDialog) |
---|
24 | //CHAIN_MSG_MAP(CMainDialog) |
---|
25 | CHAIN_MSG_MAP(CDialogResize<CMainDialog>) |
---|
26 | MSG_WM_INITDIALOG(OnInitDialog) |
---|
27 | MSG_WM_SYSCOMMAND(OnSysCommand) |
---|
28 | COMMAND_ID_HANDLER_EX(IDCANCEL, OnCommand) |
---|
29 | COMMAND_ID_HANDLER_EX(IDOK, OnCommand) |
---|
30 | END_MSG_MAP() |
---|
31 | |
---|
32 | BEGIN_DLGRESIZE_MAP(CMainDialog) |
---|
33 | DLGRESIZE_CONTROL(IDC_TEXT, DLSZ_SIZE_X | DLSZ_SIZE_Y) |
---|
34 | DLGRESIZE_CONTROL(IDOK, DLSZ_MOVE_X | DLSZ_MOVE_Y) |
---|
35 | END_DLGRESIZE_MAP() |
---|
36 | |
---|
37 | private: |
---|
38 | CRoEdit m_TextEdit; |
---|
39 | |
---|
40 | public: |
---|
41 | // CMainDialog |
---|
42 | |
---|
43 | // Window message handelrs |
---|
44 | LRESULT OnInitDialog(HWND, LPARAM) throw() |
---|
45 | { |
---|
46 | SetIcon(AtlLoadIcon(IDI_MODULE), TRUE); |
---|
47 | SetIcon(AtlLoadIconImage(IDI_MODULE, LR_DEFAULTCOLOR, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON)), FALSE); |
---|
48 | CMenuHandle Menu = GetSystemMenu(FALSE); |
---|
49 | _W(Menu.AppendMenu(MF_SEPARATOR)); |
---|
50 | _W(Menu.AppendMenu(MF_STRING, ID_APP_ABOUT, _T("&About..."))); |
---|
51 | DlgResize_Init(); |
---|
52 | _W(CenterWindow()); |
---|
53 | _ATLTRY |
---|
54 | { |
---|
55 | CWaitCursor WaitCursor; |
---|
56 | CString sText; |
---|
57 | #pragma region The Enumeration |
---|
58 | _ATLTRY |
---|
59 | { |
---|
60 | CComPtr<IMMDeviceEnumerator> pMmDeviceEnumerator; |
---|
61 | __C(pMmDeviceEnumerator.CoCreateInstance(__uuidof(MMDeviceEnumerator))); |
---|
62 | CComPtr<IMMDeviceCollection> pMmDeviceCollection; |
---|
63 | __C(pMmDeviceEnumerator->EnumAudioEndpoints(eAll, DEVICE_STATEMASK_ALL, &pMmDeviceCollection)); |
---|
64 | UINT nDeviceCount = 0; |
---|
65 | __C(pMmDeviceCollection->GetCount(&nDeviceCount)); |
---|
66 | for(UINT nDeviceIndex = 0; nDeviceIndex < nDeviceCount; nDeviceIndex++) |
---|
67 | _ATLTRY |
---|
68 | { |
---|
69 | sText.AppendFormat(_T("Device %d:\r\n"), nDeviceIndex); |
---|
70 | CComPtr<IMMDevice> pMmDevice; |
---|
71 | __C(pMmDeviceCollection->Item(nDeviceIndex, &pMmDevice)); |
---|
72 | CComHeapPtr<WCHAR> pszIdentifier; |
---|
73 | __C(pMmDevice->GetId(&pszIdentifier)); |
---|
74 | sText.AppendFormat(_T("\t") _T("Identifier\t%ls\r\n"), pszIdentifier); |
---|
75 | DWORD nState = 0; |
---|
76 | __C(pMmDevice->GetState(&nState)); |
---|
77 | CRoArrayT<CString> StateStringArray; |
---|
78 | #pragma region State Strings |
---|
79 | const DWORD& nValue = nState; |
---|
80 | static const struct |
---|
81 | { |
---|
82 | DWORD nValue; |
---|
83 | LPCTSTR pszName; |
---|
84 | } g_pMap[] = |
---|
85 | { |
---|
86 | { DEVICE_STATE_ACTIVE, _T("DEVICE_STATE_ACTIVE") }, |
---|
87 | { DEVICE_STATE_DISABLED, _T("DEVICE_STATE_DISABLED") }, |
---|
88 | { DEVICE_STATE_NOTPRESENT, _T("DEVICE_STATE_NOTPRESENT") }, |
---|
89 | { DEVICE_STATE_UNPLUGGED, _T("DEVICE_STATE_UNPLUGGED") }, |
---|
90 | }; |
---|
91 | DWORD nMask = 0; |
---|
92 | for(SIZE_T nIndex = 0; nIndex < DIM(g_pMap); nIndex++) |
---|
93 | { |
---|
94 | if(nValue & g_pMap[nIndex].nValue) |
---|
95 | _W(StateStringArray.Add(g_pMap[nIndex].pszName) >= 0); |
---|
96 | nMask |= g_pMap[nIndex].nValue; |
---|
97 | } |
---|
98 | if(nValue & ~nMask) |
---|
99 | _W(StateStringArray.Add(AtlFormatString(_T("0x%x"), nValue & ~nMask)) >= 0); |
---|
100 | #pragma endregion |
---|
101 | sText.AppendFormat(_T("\t") _T("State\t%s\t0x%02x\r\n"), _StringHelper::Join(StateStringArray, _T(" | ")), nState); |
---|
102 | #pragma region Property Store |
---|
103 | sText.AppendFormat(_T("\t") _T("Properties:\r\n")); |
---|
104 | CComPtr<IPropertyStore> pPropertyStore; |
---|
105 | __C(pMmDevice->OpenPropertyStore(STGM_READ, &pPropertyStore)); |
---|
106 | DWORD nPropertyCount = 0; |
---|
107 | __C(pPropertyStore->GetCount(&nPropertyCount)); |
---|
108 | for(DWORD nPropertyIndex = 0; nPropertyIndex < nPropertyCount; nPropertyIndex++) |
---|
109 | _ATLTRY |
---|
110 | { |
---|
111 | PROPERTYKEY Key; |
---|
112 | __C(pPropertyStore->GetAt(nPropertyIndex, &Key)); |
---|
113 | PROPVARIANT Value; |
---|
114 | PropVariantInit(&Value); |
---|
115 | __C(pPropertyStore->GetValue(Key, &Value)); |
---|
116 | _ATLTRY |
---|
117 | { |
---|
118 | CString sKeyName; |
---|
119 | // NOTE: This is brought to you by regexp .+{PKEY_[^,]+}.+ -> A(\1) |
---|
120 | #pragma region Named SDK constants |
---|
121 | #define A(x) { &x, #x }, |
---|
122 | #define B(x) { &reinterpret_cast<const PROPERTYKEY&>(x), #x }, |
---|
123 | static const struct { const PROPERTYKEY* pKey; LPCSTR pszName; } g_pMap[] = { |
---|
124 | #pragma region functiondiscoverykeys.h |
---|
125 | A(PKEY_NAME) |
---|
126 | A(PKEY_Device_DeviceDesc) |
---|
127 | A(PKEY_Device_HardwareIds) |
---|
128 | A(PKEY_Device_CompatibleIds) |
---|
129 | A(PKEY_Device_Service) |
---|
130 | A(PKEY_Device_Class) |
---|
131 | A(PKEY_Device_ClassGuid) |
---|
132 | A(PKEY_Device_Driver) |
---|
133 | A(PKEY_Device_ConfigFlags) |
---|
134 | A(PKEY_Device_Manufacturer) |
---|
135 | A(PKEY_Device_FriendlyName) |
---|
136 | A(PKEY_Device_LocationInfo) |
---|
137 | A(PKEY_Device_PDOName) |
---|
138 | A(PKEY_Device_Capabilities) |
---|
139 | A(PKEY_Device_UINumber) |
---|
140 | A(PKEY_Device_UpperFilters) |
---|
141 | A(PKEY_Device_LowerFilters) |
---|
142 | A(PKEY_Device_BusTypeGuid) |
---|
143 | A(PKEY_Device_LegacyBusType) |
---|
144 | A(PKEY_Device_BusNumber) |
---|
145 | A(PKEY_Device_EnumeratorName) |
---|
146 | A(PKEY_Device_Security) |
---|
147 | A(PKEY_Device_SecuritySDS) |
---|
148 | A(PKEY_Device_DevType) |
---|
149 | A(PKEY_Device_Exclusive) |
---|
150 | A(PKEY_Device_Characteristics) |
---|
151 | A(PKEY_Device_Address) |
---|
152 | A(PKEY_Device_UINumberDescFormat) |
---|
153 | A(PKEY_Device_PowerData) |
---|
154 | A(PKEY_Device_RemovalPolicy) |
---|
155 | A(PKEY_Device_RemovalPolicyDefault) |
---|
156 | A(PKEY_Device_RemovalPolicyOverride) |
---|
157 | A(PKEY_Device_InstallState) |
---|
158 | A(PKEY_Device_LocationPaths) |
---|
159 | A(PKEY_Device_BaseContainerId) |
---|
160 | A(PKEY_Device_DevNodeStatus) |
---|
161 | A(PKEY_Device_ProblemCode) |
---|
162 | A(PKEY_Device_EjectionRelations) |
---|
163 | A(PKEY_Device_RemovalRelations) |
---|
164 | A(PKEY_Device_PowerRelations) |
---|
165 | A(PKEY_Device_BusRelations) |
---|
166 | A(PKEY_Device_Parent) |
---|
167 | A(PKEY_Device_Children) |
---|
168 | A(PKEY_Device_Siblings) |
---|
169 | A(PKEY_Device_TransportRelations) |
---|
170 | A(PKEY_Device_Reported) |
---|
171 | A(PKEY_Device_Legacy) |
---|
172 | A(PKEY_Device_InstanceId) |
---|
173 | A(PKEY_Device_ContainerId) |
---|
174 | A(PKEY_Device_ModelId) |
---|
175 | A(PKEY_Device_FriendlyNameAttributes) |
---|
176 | A(PKEY_Device_ManufacturerAttributes) |
---|
177 | A(PKEY_Device_PresenceNotForDevice) |
---|
178 | A(PKEY_Numa_Proximity_Domain) |
---|
179 | A(PKEY_Device_DHP_Rebalance_Policy) |
---|
180 | A(PKEY_Device_Numa_Node) |
---|
181 | A(PKEY_Device_BusReportedDeviceDesc) |
---|
182 | A(PKEY_Device_InstallInProgress) |
---|
183 | A(PKEY_Device_DriverDate) |
---|
184 | A(PKEY_Device_DriverVersion) |
---|
185 | A(PKEY_Device_DriverDesc) |
---|
186 | A(PKEY_Device_DriverInfPath) |
---|
187 | A(PKEY_Device_DriverInfSection) |
---|
188 | A(PKEY_Device_DriverInfSectionExt) |
---|
189 | A(PKEY_Device_MatchingDeviceId) |
---|
190 | A(PKEY_Device_DriverProvider) |
---|
191 | A(PKEY_Device_DriverPropPageProvider) |
---|
192 | A(PKEY_Device_DriverCoInstallers) |
---|
193 | A(PKEY_Device_ResourcePickerTags) |
---|
194 | A(PKEY_Device_ResourcePickerExceptions) |
---|
195 | A(PKEY_Device_DriverRank) |
---|
196 | A(PKEY_Device_DriverLogoLevel) |
---|
197 | A(PKEY_Device_NoConnectSound) |
---|
198 | A(PKEY_Device_GenericDriverInstalled) |
---|
199 | A(PKEY_Device_AdditionalSoftwareRequested) |
---|
200 | A(PKEY_Device_SafeRemovalRequired) |
---|
201 | A(PKEY_Device_SafeRemovalRequiredOverride) |
---|
202 | A(PKEY_DrvPkg_Model) |
---|
203 | A(PKEY_DrvPkg_VendorWebSite) |
---|
204 | A(PKEY_DrvPkg_DetailedDescription) |
---|
205 | A(PKEY_DrvPkg_DocumentationLink) |
---|
206 | A(PKEY_DrvPkg_Icon) |
---|
207 | A(PKEY_DrvPkg_BrandingIcon) |
---|
208 | A(PKEY_DeviceClass_UpperFilters) |
---|
209 | A(PKEY_DeviceClass_LowerFilters) |
---|
210 | A(PKEY_DeviceClass_Security) |
---|
211 | A(PKEY_DeviceClass_SecuritySDS) |
---|
212 | A(PKEY_DeviceClass_DevType) |
---|
213 | A(PKEY_DeviceClass_Exclusive) |
---|
214 | A(PKEY_DeviceClass_Characteristics) |
---|
215 | A(PKEY_DeviceClass_Name) |
---|
216 | A(PKEY_DeviceClass_ClassName) |
---|
217 | A(PKEY_DeviceClass_Icon) |
---|
218 | A(PKEY_DeviceClass_ClassInstaller) |
---|
219 | A(PKEY_DeviceClass_PropPageProvider) |
---|
220 | A(PKEY_DeviceClass_NoInstallClass) |
---|
221 | A(PKEY_DeviceClass_NoDisplayClass) |
---|
222 | A(PKEY_DeviceClass_SilentInstall) |
---|
223 | A(PKEY_DeviceClass_NoUseClass) |
---|
224 | A(PKEY_DeviceClass_DefaultService) |
---|
225 | A(PKEY_DeviceClass_IconPath) |
---|
226 | A(PKEY_DeviceClass_ClassCoInstallers) |
---|
227 | A(PKEY_DeviceInterface_FriendlyName) |
---|
228 | A(PKEY_DeviceInterface_Enabled) |
---|
229 | A(PKEY_DeviceInterface_ClassGuid) |
---|
230 | A(PKEY_DeviceInterfaceClass_DefaultInterface) |
---|
231 | #pragma endregion |
---|
232 | #pragma region functiondiscoverykeys_devpkey.h |
---|
233 | A(PKEY_NAME) |
---|
234 | A(PKEY_Device_DeviceDesc) |
---|
235 | A(PKEY_Device_HardwareIds) |
---|
236 | A(PKEY_Device_CompatibleIds) |
---|
237 | A(PKEY_Device_Service) |
---|
238 | A(PKEY_Device_Class) |
---|
239 | A(PKEY_Device_ClassGuid) |
---|
240 | A(PKEY_Device_Driver) |
---|
241 | A(PKEY_Device_ConfigFlags) |
---|
242 | A(PKEY_Device_Manufacturer) |
---|
243 | A(PKEY_Device_FriendlyName) |
---|
244 | A(PKEY_Device_LocationInfo) |
---|
245 | A(PKEY_Device_PDOName) |
---|
246 | A(PKEY_Device_Capabilities) |
---|
247 | A(PKEY_Device_UINumber) |
---|
248 | A(PKEY_Device_UpperFilters) |
---|
249 | A(PKEY_Device_LowerFilters) |
---|
250 | A(PKEY_Device_BusTypeGuid) |
---|
251 | A(PKEY_Device_LegacyBusType) |
---|
252 | A(PKEY_Device_BusNumber) |
---|
253 | A(PKEY_Device_EnumeratorName) |
---|
254 | A(PKEY_Device_Security) |
---|
255 | A(PKEY_Device_SecuritySDS) |
---|
256 | A(PKEY_Device_DevType) |
---|
257 | A(PKEY_Device_Exclusive) |
---|
258 | A(PKEY_Device_Characteristics) |
---|
259 | A(PKEY_Device_Address) |
---|
260 | A(PKEY_Device_UINumberDescFormat) |
---|
261 | A(PKEY_Device_PowerData) |
---|
262 | A(PKEY_Device_RemovalPolicy) |
---|
263 | A(PKEY_Device_RemovalPolicyDefault) |
---|
264 | A(PKEY_Device_RemovalPolicyOverride) |
---|
265 | A(PKEY_Device_InstallState) |
---|
266 | A(PKEY_Device_LocationPaths) |
---|
267 | A(PKEY_Device_BaseContainerId) |
---|
268 | A(PKEY_Device_DevNodeStatus) |
---|
269 | A(PKEY_Device_ProblemCode) |
---|
270 | A(PKEY_Device_EjectionRelations) |
---|
271 | A(PKEY_Device_RemovalRelations) |
---|
272 | A(PKEY_Device_PowerRelations) |
---|
273 | A(PKEY_Device_BusRelations) |
---|
274 | A(PKEY_Device_Parent) |
---|
275 | A(PKEY_Device_Children) |
---|
276 | A(PKEY_Device_Siblings) |
---|
277 | A(PKEY_Device_TransportRelations) |
---|
278 | A(PKEY_Device_Reported) |
---|
279 | A(PKEY_Device_Legacy) |
---|
280 | A(PKEY_Device_InstanceId) |
---|
281 | A(PKEY_Device_ContainerId) |
---|
282 | A(PKEY_Device_ModelId) |
---|
283 | A(PKEY_Device_FriendlyNameAttributes) |
---|
284 | A(PKEY_Device_ManufacturerAttributes) |
---|
285 | A(PKEY_Device_PresenceNotForDevice) |
---|
286 | A(PKEY_Numa_Proximity_Domain) |
---|
287 | A(PKEY_Device_DHP_Rebalance_Policy) |
---|
288 | A(PKEY_Device_Numa_Node) |
---|
289 | A(PKEY_Device_BusReportedDeviceDesc) |
---|
290 | A(PKEY_Device_InstallInProgress) |
---|
291 | A(PKEY_Device_DriverDate) |
---|
292 | A(PKEY_Device_DriverVersion) |
---|
293 | A(PKEY_Device_DriverDesc) |
---|
294 | A(PKEY_Device_DriverInfPath) |
---|
295 | A(PKEY_Device_DriverInfSection) |
---|
296 | A(PKEY_Device_DriverInfSectionExt) |
---|
297 | A(PKEY_Device_MatchingDeviceId) |
---|
298 | A(PKEY_Device_DriverProvider) |
---|
299 | A(PKEY_Device_DriverPropPageProvider) |
---|
300 | A(PKEY_Device_DriverCoInstallers) |
---|
301 | A(PKEY_Device_ResourcePickerTags) |
---|
302 | A(PKEY_Device_ResourcePickerExceptions) |
---|
303 | A(PKEY_Device_DriverRank) |
---|
304 | A(PKEY_Device_DriverLogoLevel) |
---|
305 | A(PKEY_Device_NoConnectSound) |
---|
306 | A(PKEY_Device_GenericDriverInstalled) |
---|
307 | A(PKEY_Device_AdditionalSoftwareRequested) |
---|
308 | A(PKEY_Device_SafeRemovalRequired) |
---|
309 | A(PKEY_Device_SafeRemovalRequiredOverride) |
---|
310 | A(PKEY_DrvPkg_Model) |
---|
311 | A(PKEY_DrvPkg_VendorWebSite) |
---|
312 | A(PKEY_DrvPkg_DetailedDescription) |
---|
313 | A(PKEY_DrvPkg_DocumentationLink) |
---|
314 | A(PKEY_DrvPkg_Icon) |
---|
315 | A(PKEY_DrvPkg_BrandingIcon) |
---|
316 | A(PKEY_DeviceClass_UpperFilters) |
---|
317 | A(PKEY_DeviceClass_LowerFilters) |
---|
318 | A(PKEY_DeviceClass_Security) |
---|
319 | A(PKEY_DeviceClass_SecuritySDS) |
---|
320 | A(PKEY_DeviceClass_DevType) |
---|
321 | A(PKEY_DeviceClass_Exclusive) |
---|
322 | A(PKEY_DeviceClass_Characteristics) |
---|
323 | A(PKEY_DeviceClass_Name) |
---|
324 | A(PKEY_DeviceClass_ClassName) |
---|
325 | A(PKEY_DeviceClass_Icon) |
---|
326 | A(PKEY_DeviceClass_ClassInstaller) |
---|
327 | A(PKEY_DeviceClass_PropPageProvider) |
---|
328 | A(PKEY_DeviceClass_NoInstallClass) |
---|
329 | A(PKEY_DeviceClass_NoDisplayClass) |
---|
330 | A(PKEY_DeviceClass_SilentInstall) |
---|
331 | A(PKEY_DeviceClass_NoUseClass) |
---|
332 | A(PKEY_DeviceClass_DefaultService) |
---|
333 | A(PKEY_DeviceClass_IconPath) |
---|
334 | A(PKEY_DeviceClass_ClassCoInstallers) |
---|
335 | A(PKEY_DeviceInterface_FriendlyName) |
---|
336 | A(PKEY_DeviceInterface_Enabled) |
---|
337 | A(PKEY_DeviceInterface_ClassGuid) |
---|
338 | A(PKEY_DeviceInterfaceClass_DefaultInterface) |
---|
339 | #pragma endregion |
---|
340 | #pragma region mmdeviceapi.h |
---|
341 | A(PKEY_AudioEndpoint_FormFactor) |
---|
342 | A(PKEY_AudioEndpoint_ControlPanelPageProvider) |
---|
343 | A(PKEY_AudioEndpoint_Association) |
---|
344 | A(PKEY_AudioEndpoint_PhysicalSpeakers) |
---|
345 | A(PKEY_AudioEndpoint_GUID) |
---|
346 | A(PKEY_AudioEndpoint_Disable_SysFx) |
---|
347 | A(PKEY_AudioEndpoint_FullRangeSpeakers) |
---|
348 | A(PKEY_AudioEndpoint_Supports_EventDriven_Mode) |
---|
349 | A(PKEY_AudioEndpoint_JackSubType) |
---|
350 | A(PKEY_AudioEngine_DeviceFormat) |
---|
351 | A(PKEY_AudioEngine_OEMFormat) |
---|
352 | #pragma endregion |
---|
353 | #pragma region propkey.h |
---|
354 | A(PKEY_Audio_ChannelCount) |
---|
355 | A(PKEY_Audio_Compression) |
---|
356 | A(PKEY_Audio_EncodingBitrate) |
---|
357 | A(PKEY_Audio_Format) |
---|
358 | A(PKEY_Audio_IsVariableBitRate) |
---|
359 | A(PKEY_Audio_PeakValue) |
---|
360 | A(PKEY_Audio_SampleRate) |
---|
361 | A(PKEY_Audio_SampleSize) |
---|
362 | A(PKEY_Audio_StreamName) |
---|
363 | A(PKEY_Audio_StreamNumber) |
---|
364 | A(PKEY_Calendar_Duration) |
---|
365 | A(PKEY_Calendar_IsOnline) |
---|
366 | A(PKEY_Calendar_IsRecurring) |
---|
367 | A(PKEY_Calendar_Location) |
---|
368 | A(PKEY_Calendar_OptionalAttendeeAddresses) |
---|
369 | A(PKEY_Calendar_OptionalAttendeeNames) |
---|
370 | A(PKEY_Calendar_OrganizerAddress) |
---|
371 | A(PKEY_Calendar_OrganizerName) |
---|
372 | A(PKEY_Calendar_ReminderTime) |
---|
373 | A(PKEY_Calendar_RequiredAttendeeAddresses) |
---|
374 | A(PKEY_Calendar_RequiredAttendeeNames) |
---|
375 | A(PKEY_Calendar_Resources) |
---|
376 | A(PKEY_Calendar_ResponseStatus) |
---|
377 | A(PKEY_Calendar_ShowTimeAs) |
---|
378 | A(PKEY_Calendar_ShowTimeAsText) |
---|
379 | A(PKEY_Communication_AccountName) |
---|
380 | A(PKEY_Communication_DateItemExpires) |
---|
381 | A(PKEY_Communication_FollowupIconIndex) |
---|
382 | A(PKEY_Communication_HeaderItem) |
---|
383 | A(PKEY_Communication_PolicyTag) |
---|
384 | A(PKEY_Communication_SecurityFlags) |
---|
385 | A(PKEY_Communication_Suffix) |
---|
386 | A(PKEY_Communication_TaskStatus) |
---|
387 | A(PKEY_Communication_TaskStatusText) |
---|
388 | A(PKEY_Computer_DecoratedFreeSpace) |
---|
389 | A(PKEY_Contact_Anniversary) |
---|
390 | A(PKEY_Contact_AssistantName) |
---|
391 | A(PKEY_Contact_AssistantTelephone) |
---|
392 | A(PKEY_Contact_Birthday) |
---|
393 | A(PKEY_Contact_BusinessAddress) |
---|
394 | A(PKEY_Contact_BusinessAddressCity) |
---|
395 | A(PKEY_Contact_BusinessAddressCountry) |
---|
396 | A(PKEY_Contact_BusinessAddressPostalCode) |
---|
397 | A(PKEY_Contact_BusinessAddressPostOfficeBox) |
---|
398 | A(PKEY_Contact_BusinessAddressState) |
---|
399 | A(PKEY_Contact_BusinessAddressStreet) |
---|
400 | A(PKEY_Contact_BusinessFaxNumber) |
---|
401 | A(PKEY_Contact_BusinessHomePage) |
---|
402 | A(PKEY_Contact_BusinessTelephone) |
---|
403 | A(PKEY_Contact_CallbackTelephone) |
---|
404 | A(PKEY_Contact_CarTelephone) |
---|
405 | A(PKEY_Contact_Children) |
---|
406 | A(PKEY_Contact_CompanyMainTelephone) |
---|
407 | A(PKEY_Contact_Department) |
---|
408 | A(PKEY_Contact_EmailAddress) |
---|
409 | A(PKEY_Contact_EmailAddress2) |
---|
410 | A(PKEY_Contact_EmailAddress3) |
---|
411 | A(PKEY_Contact_EmailAddresses) |
---|
412 | A(PKEY_Contact_EmailName) |
---|
413 | A(PKEY_Contact_FileAsName) |
---|
414 | A(PKEY_Contact_FirstName) |
---|
415 | A(PKEY_Contact_FullName) |
---|
416 | A(PKEY_Contact_Gender) |
---|
417 | A(PKEY_Contact_GenderValue) |
---|
418 | A(PKEY_Contact_Hobbies) |
---|
419 | A(PKEY_Contact_HomeAddress) |
---|
420 | A(PKEY_Contact_HomeAddressCity) |
---|
421 | A(PKEY_Contact_HomeAddressCountry) |
---|
422 | A(PKEY_Contact_HomeAddressPostalCode) |
---|
423 | A(PKEY_Contact_HomeAddressPostOfficeBox) |
---|
424 | A(PKEY_Contact_HomeAddressState) |
---|
425 | A(PKEY_Contact_HomeAddressStreet) |
---|
426 | A(PKEY_Contact_HomeFaxNumber) |
---|
427 | A(PKEY_Contact_HomeTelephone) |
---|
428 | A(PKEY_Contact_IMAddress) |
---|
429 | A(PKEY_Contact_Initials) |
---|
430 | A(PKEY_Contact_JA_CompanyNamePhonetic) |
---|
431 | A(PKEY_Contact_JA_FirstNamePhonetic) |
---|
432 | A(PKEY_Contact_JA_LastNamePhonetic) |
---|
433 | A(PKEY_Contact_JobTitle) |
---|
434 | A(PKEY_Contact_Label) |
---|
435 | A(PKEY_Contact_LastName) |
---|
436 | A(PKEY_Contact_MailingAddress) |
---|
437 | A(PKEY_Contact_MiddleName) |
---|
438 | A(PKEY_Contact_MobileTelephone) |
---|
439 | A(PKEY_Contact_NickName) |
---|
440 | A(PKEY_Contact_OfficeLocation) |
---|
441 | A(PKEY_Contact_OtherAddress) |
---|
442 | A(PKEY_Contact_OtherAddressCity) |
---|
443 | A(PKEY_Contact_OtherAddressCountry) |
---|
444 | A(PKEY_Contact_OtherAddressPostalCode) |
---|
445 | A(PKEY_Contact_OtherAddressPostOfficeBox) |
---|
446 | A(PKEY_Contact_OtherAddressState) |
---|
447 | A(PKEY_Contact_OtherAddressStreet) |
---|
448 | A(PKEY_Contact_PagerTelephone) |
---|
449 | A(PKEY_Contact_PersonalTitle) |
---|
450 | A(PKEY_Contact_PrimaryAddressCity) |
---|
451 | A(PKEY_Contact_PrimaryAddressCountry) |
---|
452 | A(PKEY_Contact_PrimaryAddressPostalCode) |
---|
453 | A(PKEY_Contact_PrimaryAddressPostOfficeBox) |
---|
454 | A(PKEY_Contact_PrimaryAddressState) |
---|
455 | A(PKEY_Contact_PrimaryAddressStreet) |
---|
456 | A(PKEY_Contact_PrimaryEmailAddress) |
---|
457 | A(PKEY_Contact_PrimaryTelephone) |
---|
458 | A(PKEY_Contact_Profession) |
---|
459 | A(PKEY_Contact_SpouseName) |
---|
460 | A(PKEY_Contact_Suffix) |
---|
461 | A(PKEY_Contact_TelexNumber) |
---|
462 | A(PKEY_Contact_TTYTDDTelephone) |
---|
463 | A(PKEY_Contact_WebPage) |
---|
464 | A(PKEY_AcquisitionID) |
---|
465 | A(PKEY_ApplicationName) |
---|
466 | A(PKEY_Author) |
---|
467 | A(PKEY_Capacity) |
---|
468 | A(PKEY_Category) |
---|
469 | A(PKEY_Comment) |
---|
470 | A(PKEY_Company) |
---|
471 | A(PKEY_ComputerName) |
---|
472 | A(PKEY_ContainedItems) |
---|
473 | A(PKEY_ContentStatus) |
---|
474 | A(PKEY_ContentType) |
---|
475 | A(PKEY_Copyright) |
---|
476 | A(PKEY_DateAccessed) |
---|
477 | A(PKEY_DateAcquired) |
---|
478 | A(PKEY_DateArchived) |
---|
479 | A(PKEY_DateCompleted) |
---|
480 | A(PKEY_DateCreated) |
---|
481 | A(PKEY_DateImported) |
---|
482 | A(PKEY_DateModified) |
---|
483 | A(PKEY_DueDate) |
---|
484 | A(PKEY_EndDate) |
---|
485 | A(PKEY_FileAllocationSize) |
---|
486 | A(PKEY_FileAttributes) |
---|
487 | A(PKEY_FileCount) |
---|
488 | A(PKEY_FileDescription) |
---|
489 | A(PKEY_FileExtension) |
---|
490 | A(PKEY_FileFRN) |
---|
491 | A(PKEY_FileName) |
---|
492 | A(PKEY_FileOwner) |
---|
493 | A(PKEY_FileVersion) |
---|
494 | A(PKEY_FindData) |
---|
495 | A(PKEY_FlagColor) |
---|
496 | A(PKEY_FlagColorText) |
---|
497 | A(PKEY_FlagStatus) |
---|
498 | A(PKEY_FlagStatusText) |
---|
499 | A(PKEY_FreeSpace) |
---|
500 | A(PKEY_FullText) |
---|
501 | A(PKEY_Identity) |
---|
502 | A(PKEY_Identity_Blob) |
---|
503 | A(PKEY_Identity_DisplayName) |
---|
504 | A(PKEY_Identity_IsMeIdentity) |
---|
505 | A(PKEY_Identity_PrimaryEmailAddress) |
---|
506 | A(PKEY_Identity_ProviderID) |
---|
507 | A(PKEY_Identity_UniqueID) |
---|
508 | A(PKEY_Identity_UserName) |
---|
509 | A(PKEY_IdentityProvider_Name) |
---|
510 | A(PKEY_IdentityProvider_Picture) |
---|
511 | A(PKEY_ImageParsingName) |
---|
512 | A(PKEY_Importance) |
---|
513 | A(PKEY_ImportanceText) |
---|
514 | A(PKEY_IsAttachment) |
---|
515 | A(PKEY_IsDefaultNonOwnerSaveLocation) |
---|
516 | A(PKEY_IsDefaultSaveLocation) |
---|
517 | A(PKEY_IsDeleted) |
---|
518 | A(PKEY_IsEncrypted) |
---|
519 | A(PKEY_IsFlagged) |
---|
520 | A(PKEY_IsFlaggedComplete) |
---|
521 | A(PKEY_IsIncomplete) |
---|
522 | A(PKEY_IsLocationSupported) |
---|
523 | A(PKEY_IsPinnedToNameSpaceTree) |
---|
524 | A(PKEY_IsRead) |
---|
525 | A(PKEY_IsSearchOnlyItem) |
---|
526 | A(PKEY_IsSendToTarget) |
---|
527 | A(PKEY_IsShared) |
---|
528 | A(PKEY_ItemAuthors) |
---|
529 | A(PKEY_ItemClassType) |
---|
530 | A(PKEY_ItemDate) |
---|
531 | A(PKEY_ItemFolderNameDisplay) |
---|
532 | A(PKEY_ItemFolderPathDisplay) |
---|
533 | A(PKEY_ItemFolderPathDisplayNarrow) |
---|
534 | A(PKEY_ItemName) |
---|
535 | A(PKEY_ItemNameDisplay) |
---|
536 | A(PKEY_ItemNamePrefix) |
---|
537 | A(PKEY_ItemParticipants) |
---|
538 | A(PKEY_ItemPathDisplay) |
---|
539 | A(PKEY_ItemPathDisplayNarrow) |
---|
540 | A(PKEY_ItemType) |
---|
541 | A(PKEY_ItemTypeText) |
---|
542 | A(PKEY_ItemUrl) |
---|
543 | A(PKEY_Keywords) |
---|
544 | A(PKEY_Kind) |
---|
545 | A(PKEY_KindText) |
---|
546 | A(PKEY_Language) |
---|
547 | A(PKEY_MileageInformation) |
---|
548 | A(PKEY_MIMEType) |
---|
549 | A(PKEY_Null) |
---|
550 | A(PKEY_OfflineAvailability) |
---|
551 | A(PKEY_OfflineStatus) |
---|
552 | A(PKEY_OriginalFileName) |
---|
553 | A(PKEY_OwnerSID) |
---|
554 | A(PKEY_ParentalRating) |
---|
555 | A(PKEY_ParentalRatingReason) |
---|
556 | A(PKEY_ParentalRatingsOrganization) |
---|
557 | A(PKEY_ParsingBindContext) |
---|
558 | A(PKEY_ParsingName) |
---|
559 | A(PKEY_ParsingPath) |
---|
560 | A(PKEY_PerceivedType) |
---|
561 | A(PKEY_PercentFull) |
---|
562 | A(PKEY_Priority) |
---|
563 | A(PKEY_PriorityText) |
---|
564 | A(PKEY_Project) |
---|
565 | A(PKEY_ProviderItemID) |
---|
566 | A(PKEY_Rating) |
---|
567 | A(PKEY_RatingText) |
---|
568 | A(PKEY_Sensitivity) |
---|
569 | A(PKEY_SensitivityText) |
---|
570 | A(PKEY_SFGAOFlags) |
---|
571 | A(PKEY_SharedWith) |
---|
572 | A(PKEY_ShareUserRating) |
---|
573 | A(PKEY_SharingStatus) |
---|
574 | A(PKEY_Shell_OmitFromView) |
---|
575 | A(PKEY_SimpleRating) |
---|
576 | A(PKEY_Size) |
---|
577 | A(PKEY_SoftwareUsed) |
---|
578 | A(PKEY_SourceItem) |
---|
579 | A(PKEY_StartDate) |
---|
580 | A(PKEY_Status) |
---|
581 | A(PKEY_Subject) |
---|
582 | A(PKEY_Thumbnail) |
---|
583 | A(PKEY_ThumbnailCacheId) |
---|
584 | A(PKEY_ThumbnailStream) |
---|
585 | A(PKEY_Title) |
---|
586 | A(PKEY_TotalFileSize) |
---|
587 | A(PKEY_Trademarks) |
---|
588 | A(PKEY_Device_PrinterURL) |
---|
589 | A(PKEY_DeviceInterface_PrinterDriverDirectory) |
---|
590 | A(PKEY_DeviceInterface_PrinterDriverName) |
---|
591 | A(PKEY_DeviceInterface_PrinterName) |
---|
592 | A(PKEY_DeviceInterface_PrinterPortName) |
---|
593 | A(PKEY_Devices_BatteryLife) |
---|
594 | A(PKEY_Devices_BatteryPlusCharging) |
---|
595 | A(PKEY_Devices_BatteryPlusChargingText) |
---|
596 | A(PKEY_Devices_Category_Desc_Singular) |
---|
597 | A(PKEY_Devices_CategoryGroup_Desc) |
---|
598 | A(PKEY_Devices_Category_Desc_Plural) |
---|
599 | A(PKEY_Devices_ChargingState) |
---|
600 | A(PKEY_Devices_IsConnected) |
---|
601 | A(PKEY_Devices_ContainerId) |
---|
602 | A(PKEY_Devices_DefaultTooltip) |
---|
603 | A(PKEY_Devices_DeviceDescription1) |
---|
604 | A(PKEY_Devices_DeviceDescription2) |
---|
605 | A(PKEY_Devices_DiscoveryMethod) |
---|
606 | A(PKEY_Devices_FriendlyName) |
---|
607 | A(PKEY_Devices_FunctionPaths) |
---|
608 | A(PKEY_Devices_InterfacePaths) |
---|
609 | A(PKEY_Devices_IsDefaultDevice) |
---|
610 | A(PKEY_Devices_IsNetworkDevice) |
---|
611 | A(PKEY_Devices_IsSharedDevice) |
---|
612 | A(PKEY_Devices_IsSoftwareInstalling) |
---|
613 | A(PKEY_Devices_LaunchDeviceStageFromExplorer) |
---|
614 | A(PKEY_Devices_IsLocalMachine) |
---|
615 | A(PKEY_Devices_Manufacturer) |
---|
616 | A(PKEY_Devices_MissedCalls) |
---|
617 | A(PKEY_Devices_ModelName) |
---|
618 | A(PKEY_Devices_ModelNumber) |
---|
619 | A(PKEY_Devices_NetworkedTooltip) |
---|
620 | A(PKEY_Devices_NetworkName) |
---|
621 | A(PKEY_Devices_NetworkType) |
---|
622 | A(PKEY_Devices_NewPictures) |
---|
623 | A(PKEY_Devices_Notification) |
---|
624 | A(PKEY_Devices_Notification_LowBattery) |
---|
625 | A(PKEY_Devices_Notification_MissedCall) |
---|
626 | A(PKEY_Devices_Notification_NewMessage) |
---|
627 | A(PKEY_Devices_Notification_NewVoicemail) |
---|
628 | A(PKEY_Devices_Notification_StorageFull) |
---|
629 | A(PKEY_Devices_Notification_StorageFullLinkText) |
---|
630 | A(PKEY_Devices_NotificationStore) |
---|
631 | A(PKEY_Devices_IsNotWorkingProperly) |
---|
632 | A(PKEY_Devices_IsPaired) |
---|
633 | A(PKEY_Devices_PrimaryCategory) |
---|
634 | A(PKEY_Devices_Roaming) |
---|
635 | A(PKEY_Devices_SafeRemovalRequired) |
---|
636 | A(PKEY_Devices_SharedTooltip) |
---|
637 | A(PKEY_Devices_SignalStrength) |
---|
638 | A(PKEY_Devices_Status1) |
---|
639 | A(PKEY_Devices_Status2) |
---|
640 | A(PKEY_Devices_StorageCapacity) |
---|
641 | A(PKEY_Devices_StorageFreeSpace) |
---|
642 | A(PKEY_Devices_StorageFreeSpacePercent) |
---|
643 | A(PKEY_Devices_TextMessages) |
---|
644 | A(PKEY_Devices_Voicemail) |
---|
645 | A(PKEY_Document_ByteCount) |
---|
646 | A(PKEY_Document_CharacterCount) |
---|
647 | A(PKEY_Document_ClientID) |
---|
648 | A(PKEY_Document_Contributor) |
---|
649 | A(PKEY_Document_DateCreated) |
---|
650 | A(PKEY_Document_DatePrinted) |
---|
651 | A(PKEY_Document_DateSaved) |
---|
652 | A(PKEY_Document_Division) |
---|
653 | A(PKEY_Document_DocumentID) |
---|
654 | A(PKEY_Document_HiddenSlideCount) |
---|
655 | A(PKEY_Document_LastAuthor) |
---|
656 | A(PKEY_Document_LineCount) |
---|
657 | A(PKEY_Document_Manager) |
---|
658 | A(PKEY_Document_MultimediaClipCount) |
---|
659 | A(PKEY_Document_NoteCount) |
---|
660 | A(PKEY_Document_PageCount) |
---|
661 | A(PKEY_Document_ParagraphCount) |
---|
662 | A(PKEY_Document_PresentationFormat) |
---|
663 | A(PKEY_Document_RevisionNumber) |
---|
664 | A(PKEY_Document_Security) |
---|
665 | A(PKEY_Document_SlideCount) |
---|
666 | A(PKEY_Document_Template) |
---|
667 | A(PKEY_Document_TotalEditingTime) |
---|
668 | A(PKEY_Document_Version) |
---|
669 | A(PKEY_Document_WordCount) |
---|
670 | A(PKEY_DRM_DatePlayExpires) |
---|
671 | A(PKEY_DRM_DatePlayStarts) |
---|
672 | A(PKEY_DRM_Description) |
---|
673 | A(PKEY_DRM_IsProtected) |
---|
674 | A(PKEY_DRM_PlayCount) |
---|
675 | A(PKEY_GPS_Altitude) |
---|
676 | A(PKEY_GPS_AltitudeDenominator) |
---|
677 | A(PKEY_GPS_AltitudeNumerator) |
---|
678 | A(PKEY_GPS_AltitudeRef) |
---|
679 | A(PKEY_GPS_AreaInformation) |
---|
680 | A(PKEY_GPS_Date) |
---|
681 | A(PKEY_GPS_DestBearing) |
---|
682 | A(PKEY_GPS_DestBearingDenominator) |
---|
683 | A(PKEY_GPS_DestBearingNumerator) |
---|
684 | A(PKEY_GPS_DestBearingRef) |
---|
685 | A(PKEY_GPS_DestDistance) |
---|
686 | A(PKEY_GPS_DestDistanceDenominator) |
---|
687 | A(PKEY_GPS_DestDistanceNumerator) |
---|
688 | A(PKEY_GPS_DestDistanceRef) |
---|
689 | A(PKEY_GPS_DestLatitude) |
---|
690 | A(PKEY_GPS_DestLatitudeDenominator) |
---|
691 | A(PKEY_GPS_DestLatitudeNumerator) |
---|
692 | A(PKEY_GPS_DestLatitudeRef) |
---|
693 | A(PKEY_GPS_DestLongitude) |
---|
694 | A(PKEY_GPS_DestLongitudeDenominator) |
---|
695 | A(PKEY_GPS_DestLongitudeNumerator) |
---|
696 | A(PKEY_GPS_DestLongitudeRef) |
---|
697 | A(PKEY_GPS_Differential) |
---|
698 | A(PKEY_GPS_DOP) |
---|
699 | A(PKEY_GPS_DOPDenominator) |
---|
700 | A(PKEY_GPS_DOPNumerator) |
---|
701 | A(PKEY_GPS_ImgDirection) |
---|
702 | A(PKEY_GPS_ImgDirectionDenominator) |
---|
703 | A(PKEY_GPS_ImgDirectionNumerator) |
---|
704 | A(PKEY_GPS_ImgDirectionRef) |
---|
705 | A(PKEY_GPS_Latitude) |
---|
706 | A(PKEY_GPS_LatitudeDenominator) |
---|
707 | A(PKEY_GPS_LatitudeNumerator) |
---|
708 | A(PKEY_GPS_LatitudeRef) |
---|
709 | A(PKEY_GPS_Longitude) |
---|
710 | A(PKEY_GPS_LongitudeDenominator) |
---|
711 | A(PKEY_GPS_LongitudeNumerator) |
---|
712 | A(PKEY_GPS_LongitudeRef) |
---|
713 | A(PKEY_GPS_MapDatum) |
---|
714 | A(PKEY_GPS_MeasureMode) |
---|
715 | A(PKEY_GPS_ProcessingMethod) |
---|
716 | A(PKEY_GPS_Satellites) |
---|
717 | A(PKEY_GPS_Speed) |
---|
718 | A(PKEY_GPS_SpeedDenominator) |
---|
719 | A(PKEY_GPS_SpeedNumerator) |
---|
720 | A(PKEY_GPS_SpeedRef) |
---|
721 | A(PKEY_GPS_Status) |
---|
722 | A(PKEY_GPS_Track) |
---|
723 | A(PKEY_GPS_TrackDenominator) |
---|
724 | A(PKEY_GPS_TrackNumerator) |
---|
725 | A(PKEY_GPS_TrackRef) |
---|
726 | A(PKEY_GPS_VersionID) |
---|
727 | A(PKEY_Image_BitDepth) |
---|
728 | A(PKEY_Image_ColorSpace) |
---|
729 | A(PKEY_Image_CompressedBitsPerPixel) |
---|
730 | A(PKEY_Image_CompressedBitsPerPixelDenominator) |
---|
731 | A(PKEY_Image_CompressedBitsPerPixelNumerator) |
---|
732 | A(PKEY_Image_Compression) |
---|
733 | A(PKEY_Image_CompressionText) |
---|
734 | A(PKEY_Image_Dimensions) |
---|
735 | A(PKEY_Image_HorizontalResolution) |
---|
736 | A(PKEY_Image_HorizontalSize) |
---|
737 | A(PKEY_Image_ImageID) |
---|
738 | A(PKEY_Image_ResolutionUnit) |
---|
739 | A(PKEY_Image_VerticalResolution) |
---|
740 | A(PKEY_Image_VerticalSize) |
---|
741 | A(PKEY_Journal_Contacts) |
---|
742 | A(PKEY_Journal_EntryType) |
---|
743 | A(PKEY_LayoutPattern_ContentViewModeForBrowse) |
---|
744 | A(PKEY_LayoutPattern_ContentViewModeForSearch) |
---|
745 | A(PKEY_Link_Arguments) |
---|
746 | A(PKEY_Link_Comment) |
---|
747 | A(PKEY_Link_DateVisited) |
---|
748 | A(PKEY_Link_Description) |
---|
749 | A(PKEY_Link_Status) |
---|
750 | A(PKEY_Link_TargetExtension) |
---|
751 | A(PKEY_Link_TargetParsingPath) |
---|
752 | A(PKEY_Link_TargetSFGAOFlags) |
---|
753 | A(PKEY_Media_AuthorUrl) |
---|
754 | A(PKEY_Media_AverageLevel) |
---|
755 | A(PKEY_Media_ClassPrimaryID) |
---|
756 | A(PKEY_Media_ClassSecondaryID) |
---|
757 | A(PKEY_Media_CollectionGroupID) |
---|
758 | A(PKEY_Media_CollectionID) |
---|
759 | A(PKEY_Media_ContentDistributor) |
---|
760 | A(PKEY_Media_ContentID) |
---|
761 | A(PKEY_Media_CreatorApplication) |
---|
762 | A(PKEY_Media_CreatorApplicationVersion) |
---|
763 | A(PKEY_Media_DateEncoded) |
---|
764 | A(PKEY_Media_DateReleased) |
---|
765 | A(PKEY_Media_Duration) |
---|
766 | A(PKEY_Media_DVDID) |
---|
767 | A(PKEY_Media_EncodedBy) |
---|
768 | A(PKEY_Media_EncodingSettings) |
---|
769 | A(PKEY_Media_FrameCount) |
---|
770 | A(PKEY_Media_MCDI) |
---|
771 | A(PKEY_Media_MetadataContentProvider) |
---|
772 | A(PKEY_Media_Producer) |
---|
773 | A(PKEY_Media_PromotionUrl) |
---|
774 | A(PKEY_Media_ProtectionType) |
---|
775 | A(PKEY_Media_ProviderRating) |
---|
776 | A(PKEY_Media_ProviderStyle) |
---|
777 | A(PKEY_Media_Publisher) |
---|
778 | A(PKEY_Media_SubscriptionContentId) |
---|
779 | A(PKEY_Media_SubTitle) |
---|
780 | A(PKEY_Media_UniqueFileIdentifier) |
---|
781 | A(PKEY_Media_UserNoAutoInfo) |
---|
782 | A(PKEY_Media_UserWebUrl) |
---|
783 | A(PKEY_Media_Writer) |
---|
784 | A(PKEY_Media_Year) |
---|
785 | A(PKEY_Message_AttachmentContents) |
---|
786 | A(PKEY_Message_AttachmentNames) |
---|
787 | A(PKEY_Message_BccAddress) |
---|
788 | A(PKEY_Message_BccName) |
---|
789 | A(PKEY_Message_CcAddress) |
---|
790 | A(PKEY_Message_CcName) |
---|
791 | A(PKEY_Message_ConversationID) |
---|
792 | A(PKEY_Message_ConversationIndex) |
---|
793 | A(PKEY_Message_DateReceived) |
---|
794 | A(PKEY_Message_DateSent) |
---|
795 | A(PKEY_Message_Flags) |
---|
796 | A(PKEY_Message_FromAddress) |
---|
797 | A(PKEY_Message_FromName) |
---|
798 | A(PKEY_Message_HasAttachments) |
---|
799 | A(PKEY_Message_IsFwdOrReply) |
---|
800 | A(PKEY_Message_MessageClass) |
---|
801 | A(PKEY_Message_ProofInProgress) |
---|
802 | A(PKEY_Message_SenderAddress) |
---|
803 | A(PKEY_Message_SenderName) |
---|
804 | A(PKEY_Message_Store) |
---|
805 | A(PKEY_Message_ToAddress) |
---|
806 | A(PKEY_Message_ToDoFlags) |
---|
807 | A(PKEY_Message_ToDoTitle) |
---|
808 | A(PKEY_Message_ToName) |
---|
809 | A(PKEY_Music_AlbumArtist) |
---|
810 | A(PKEY_Music_AlbumID) |
---|
811 | A(PKEY_Music_AlbumTitle) |
---|
812 | A(PKEY_Music_Artist) |
---|
813 | A(PKEY_Music_BeatsPerMinute) |
---|
814 | A(PKEY_Music_Composer) |
---|
815 | A(PKEY_Music_Conductor) |
---|
816 | A(PKEY_Music_ContentGroupDescription) |
---|
817 | A(PKEY_Music_DisplayArtist) |
---|
818 | A(PKEY_Music_Genre) |
---|
819 | A(PKEY_Music_InitialKey) |
---|
820 | A(PKEY_Music_IsCompilation) |
---|
821 | A(PKEY_Music_Lyrics) |
---|
822 | A(PKEY_Music_Mood) |
---|
823 | A(PKEY_Music_PartOfSet) |
---|
824 | A(PKEY_Music_Period) |
---|
825 | A(PKEY_Music_SynchronizedLyrics) |
---|
826 | A(PKEY_Music_TrackNumber) |
---|
827 | A(PKEY_Note_Color) |
---|
828 | A(PKEY_Note_ColorText) |
---|
829 | A(PKEY_Photo_Aperture) |
---|
830 | A(PKEY_Photo_ApertureDenominator) |
---|
831 | A(PKEY_Photo_ApertureNumerator) |
---|
832 | A(PKEY_Photo_Brightness) |
---|
833 | A(PKEY_Photo_BrightnessDenominator) |
---|
834 | A(PKEY_Photo_BrightnessNumerator) |
---|
835 | A(PKEY_Photo_CameraManufacturer) |
---|
836 | A(PKEY_Photo_CameraModel) |
---|
837 | A(PKEY_Photo_CameraSerialNumber) |
---|
838 | A(PKEY_Photo_Contrast) |
---|
839 | A(PKEY_Photo_ContrastText) |
---|
840 | A(PKEY_Photo_DateTaken) |
---|
841 | A(PKEY_Photo_DigitalZoom) |
---|
842 | A(PKEY_Photo_DigitalZoomDenominator) |
---|
843 | A(PKEY_Photo_DigitalZoomNumerator) |
---|
844 | A(PKEY_Photo_Event) |
---|
845 | A(PKEY_Photo_EXIFVersion) |
---|
846 | A(PKEY_Photo_ExposureBias) |
---|
847 | A(PKEY_Photo_ExposureBiasDenominator) |
---|
848 | A(PKEY_Photo_ExposureBiasNumerator) |
---|
849 | A(PKEY_Photo_ExposureIndex) |
---|
850 | A(PKEY_Photo_ExposureIndexDenominator) |
---|
851 | A(PKEY_Photo_ExposureIndexNumerator) |
---|
852 | A(PKEY_Photo_ExposureProgram) |
---|
853 | A(PKEY_Photo_ExposureProgramText) |
---|
854 | A(PKEY_Photo_ExposureTime) |
---|
855 | A(PKEY_Photo_ExposureTimeDenominator) |
---|
856 | A(PKEY_Photo_ExposureTimeNumerator) |
---|
857 | A(PKEY_Photo_Flash) |
---|
858 | A(PKEY_Photo_FlashEnergy) |
---|
859 | A(PKEY_Photo_FlashEnergyDenominator) |
---|
860 | A(PKEY_Photo_FlashEnergyNumerator) |
---|
861 | A(PKEY_Photo_FlashManufacturer) |
---|
862 | A(PKEY_Photo_FlashModel) |
---|
863 | A(PKEY_Photo_FlashText) |
---|
864 | A(PKEY_Photo_FNumber) |
---|
865 | A(PKEY_Photo_FNumberDenominator) |
---|
866 | A(PKEY_Photo_FNumberNumerator) |
---|
867 | A(PKEY_Photo_FocalLength) |
---|
868 | A(PKEY_Photo_FocalLengthDenominator) |
---|
869 | A(PKEY_Photo_FocalLengthInFilm) |
---|
870 | A(PKEY_Photo_FocalLengthNumerator) |
---|
871 | A(PKEY_Photo_FocalPlaneXResolution) |
---|
872 | A(PKEY_Photo_FocalPlaneXResolutionDenominator) |
---|
873 | A(PKEY_Photo_FocalPlaneXResolutionNumerator) |
---|
874 | A(PKEY_Photo_FocalPlaneYResolution) |
---|
875 | A(PKEY_Photo_FocalPlaneYResolutionDenominator) |
---|
876 | A(PKEY_Photo_FocalPlaneYResolutionNumerator) |
---|
877 | A(PKEY_Photo_GainControl) |
---|
878 | A(PKEY_Photo_GainControlDenominator) |
---|
879 | A(PKEY_Photo_GainControlNumerator) |
---|
880 | A(PKEY_Photo_GainControlText) |
---|
881 | A(PKEY_Photo_ISOSpeed) |
---|
882 | A(PKEY_Photo_LensManufacturer) |
---|
883 | A(PKEY_Photo_LensModel) |
---|
884 | A(PKEY_Photo_LightSource) |
---|
885 | A(PKEY_Photo_MakerNote) |
---|
886 | A(PKEY_Photo_MakerNoteOffset) |
---|
887 | A(PKEY_Photo_MaxAperture) |
---|
888 | A(PKEY_Photo_MaxApertureDenominator) |
---|
889 | A(PKEY_Photo_MaxApertureNumerator) |
---|
890 | A(PKEY_Photo_MeteringMode) |
---|
891 | A(PKEY_Photo_MeteringModeText) |
---|
892 | A(PKEY_Photo_Orientation) |
---|
893 | A(PKEY_Photo_OrientationText) |
---|
894 | A(PKEY_Photo_PeopleNames) |
---|
895 | A(PKEY_Photo_PhotometricInterpretation) |
---|
896 | A(PKEY_Photo_PhotometricInterpretationText) |
---|
897 | A(PKEY_Photo_ProgramMode) |
---|
898 | A(PKEY_Photo_ProgramModeText) |
---|
899 | A(PKEY_Photo_RelatedSoundFile) |
---|
900 | A(PKEY_Photo_Saturation) |
---|
901 | A(PKEY_Photo_SaturationText) |
---|
902 | A(PKEY_Photo_Sharpness) |
---|
903 | A(PKEY_Photo_SharpnessText) |
---|
904 | A(PKEY_Photo_ShutterSpeed) |
---|
905 | A(PKEY_Photo_ShutterSpeedDenominator) |
---|
906 | A(PKEY_Photo_ShutterSpeedNumerator) |
---|
907 | A(PKEY_Photo_SubjectDistance) |
---|
908 | A(PKEY_Photo_SubjectDistanceDenominator) |
---|
909 | A(PKEY_Photo_SubjectDistanceNumerator) |
---|
910 | A(PKEY_Photo_TagViewAggregate) |
---|
911 | A(PKEY_Photo_TranscodedForSync) |
---|
912 | A(PKEY_Photo_WhiteBalance) |
---|
913 | A(PKEY_Photo_WhiteBalanceText) |
---|
914 | A(PKEY_PropGroup_Advanced) |
---|
915 | A(PKEY_PropGroup_Audio) |
---|
916 | A(PKEY_PropGroup_Calendar) |
---|
917 | A(PKEY_PropGroup_Camera) |
---|
918 | A(PKEY_PropGroup_Contact) |
---|
919 | A(PKEY_PropGroup_Content) |
---|
920 | A(PKEY_PropGroup_Description) |
---|
921 | A(PKEY_PropGroup_FileSystem) |
---|
922 | A(PKEY_PropGroup_General) |
---|
923 | A(PKEY_PropGroup_GPS) |
---|
924 | A(PKEY_PropGroup_Image) |
---|
925 | A(PKEY_PropGroup_Media) |
---|
926 | A(PKEY_PropGroup_MediaAdvanced) |
---|
927 | A(PKEY_PropGroup_Message) |
---|
928 | A(PKEY_PropGroup_Music) |
---|
929 | A(PKEY_PropGroup_Origin) |
---|
930 | A(PKEY_PropGroup_PhotoAdvanced) |
---|
931 | A(PKEY_PropGroup_RecordedTV) |
---|
932 | A(PKEY_PropGroup_Video) |
---|
933 | A(PKEY_InfoTipText) |
---|
934 | A(PKEY_PropList_ConflictPrompt) |
---|
935 | A(PKEY_PropList_ContentViewModeForBrowse) |
---|
936 | A(PKEY_PropList_ContentViewModeForSearch) |
---|
937 | A(PKEY_PropList_ExtendedTileInfo) |
---|
938 | A(PKEY_PropList_FileOperationPrompt) |
---|
939 | A(PKEY_PropList_FullDetails) |
---|
940 | A(PKEY_PropList_InfoTip) |
---|
941 | A(PKEY_PropList_NonPersonal) |
---|
942 | A(PKEY_PropList_PreviewDetails) |
---|
943 | A(PKEY_PropList_PreviewTitle) |
---|
944 | A(PKEY_PropList_QuickTip) |
---|
945 | A(PKEY_PropList_TileInfo) |
---|
946 | A(PKEY_PropList_XPDetailsPanel) |
---|
947 | A(PKEY_RecordedTV_ChannelNumber) |
---|
948 | A(PKEY_RecordedTV_Credits) |
---|
949 | A(PKEY_RecordedTV_DateContentExpires) |
---|
950 | A(PKEY_RecordedTV_EpisodeName) |
---|
951 | A(PKEY_RecordedTV_IsATSCContent) |
---|
952 | A(PKEY_RecordedTV_IsClosedCaptioningAvailable) |
---|
953 | A(PKEY_RecordedTV_IsDTVContent) |
---|
954 | A(PKEY_RecordedTV_IsHDContent) |
---|
955 | A(PKEY_RecordedTV_IsRepeatBroadcast) |
---|
956 | A(PKEY_RecordedTV_IsSAP) |
---|
957 | A(PKEY_RecordedTV_NetworkAffiliation) |
---|
958 | A(PKEY_RecordedTV_OriginalBroadcastDate) |
---|
959 | A(PKEY_RecordedTV_ProgramDescription) |
---|
960 | A(PKEY_RecordedTV_RecordingTime) |
---|
961 | A(PKEY_RecordedTV_StationCallSign) |
---|
962 | A(PKEY_RecordedTV_StationName) |
---|
963 | A(PKEY_Search_AutoSummary) |
---|
964 | A(PKEY_Search_ContainerHash) |
---|
965 | A(PKEY_Search_Contents) |
---|
966 | A(PKEY_Search_EntryID) |
---|
967 | A(PKEY_Search_ExtendedProperties) |
---|
968 | A(PKEY_Search_GatherTime) |
---|
969 | A(PKEY_Search_HitCount) |
---|
970 | A(PKEY_Search_IsClosedDirectory) |
---|
971 | A(PKEY_Search_IsFullyContained) |
---|
972 | A(PKEY_Search_QueryFocusedSummary) |
---|
973 | A(PKEY_Search_QueryFocusedSummaryWithFallback) |
---|
974 | A(PKEY_Search_Rank) |
---|
975 | A(PKEY_Search_Store) |
---|
976 | A(PKEY_Search_UrlToIndex) |
---|
977 | A(PKEY_Search_UrlToIndexWithModificationTime) |
---|
978 | A(PKEY_DescriptionID) |
---|
979 | A(PKEY_InternalName) |
---|
980 | A(PKEY_Link_TargetSFGAOFlagsStrings) |
---|
981 | A(PKEY_Link_TargetUrl) |
---|
982 | A(PKEY_NamespaceCLSID) |
---|
983 | A(PKEY_Shell_SFGAOFlagsStrings) |
---|
984 | A(PKEY_AppUserModel_ExcludeFromShowInNewInstall) |
---|
985 | A(PKEY_AppUserModel_ID) |
---|
986 | A(PKEY_AppUserModel_IsDestListSeparator) |
---|
987 | A(PKEY_AppUserModel_PreventPinning) |
---|
988 | A(PKEY_AppUserModel_RelaunchCommand) |
---|
989 | A(PKEY_AppUserModel_RelaunchDisplayNameResource) |
---|
990 | A(PKEY_AppUserModel_RelaunchIconResource) |
---|
991 | A(PKEY_Software_DateLastUsed) |
---|
992 | A(PKEY_Software_ProductName) |
---|
993 | A(PKEY_Sync_Comments) |
---|
994 | A(PKEY_Sync_ConflictDescription) |
---|
995 | A(PKEY_Sync_ConflictFirstLocation) |
---|
996 | A(PKEY_Sync_ConflictSecondLocation) |
---|
997 | A(PKEY_Sync_HandlerCollectionID) |
---|
998 | A(PKEY_Sync_HandlerID) |
---|
999 | A(PKEY_Sync_HandlerName) |
---|
1000 | A(PKEY_Sync_HandlerType) |
---|
1001 | A(PKEY_Sync_HandlerTypeLabel) |
---|
1002 | A(PKEY_Sync_ItemID) |
---|
1003 | A(PKEY_Sync_ItemName) |
---|
1004 | A(PKEY_Sync_ProgressPercentage) |
---|
1005 | A(PKEY_Sync_State) |
---|
1006 | A(PKEY_Sync_Status) |
---|
1007 | A(PKEY_Task_BillingInformation) |
---|
1008 | A(PKEY_Task_CompletionStatus) |
---|
1009 | A(PKEY_Task_Owner) |
---|
1010 | A(PKEY_Video_Compression) |
---|
1011 | A(PKEY_Video_Director) |
---|
1012 | A(PKEY_Video_EncodingBitrate) |
---|
1013 | A(PKEY_Video_FourCC) |
---|
1014 | A(PKEY_Video_FrameHeight) |
---|
1015 | A(PKEY_Video_FrameRate) |
---|
1016 | A(PKEY_Video_FrameWidth) |
---|
1017 | A(PKEY_Video_HorizontalAspectRatio) |
---|
1018 | A(PKEY_Video_SampleSize) |
---|
1019 | A(PKEY_Video_StreamName) |
---|
1020 | A(PKEY_Video_StreamNumber) |
---|
1021 | A(PKEY_Video_TotalBitrate) |
---|
1022 | A(PKEY_Video_TranscodedForSync) |
---|
1023 | A(PKEY_Video_VerticalAspectRatio) |
---|
1024 | A(PKEY_Volume_FileSystem) |
---|
1025 | A(PKEY_Volume_IsMappedDrive) |
---|
1026 | A(PKEY_Volume_IsRoot) |
---|
1027 | #pragma endregion |
---|
1028 | #pragma region devpkey.h |
---|
1029 | B(DEVPKEY_NAME) |
---|
1030 | B(DEVPKEY_Device_DeviceDesc) |
---|
1031 | B(DEVPKEY_Device_HardwareIds) |
---|
1032 | B(DEVPKEY_Device_CompatibleIds) |
---|
1033 | B(DEVPKEY_Device_Service) |
---|
1034 | B(DEVPKEY_Device_Class) |
---|
1035 | B(DEVPKEY_Device_ClassGuid) |
---|
1036 | B(DEVPKEY_Device_Driver) |
---|
1037 | B(DEVPKEY_Device_ConfigFlags) |
---|
1038 | B(DEVPKEY_Device_Manufacturer) |
---|
1039 | B(DEVPKEY_Device_FriendlyName) |
---|
1040 | B(DEVPKEY_Device_LocationInfo) |
---|
1041 | B(DEVPKEY_Device_PDOName) |
---|
1042 | B(DEVPKEY_Device_Capabilities) |
---|
1043 | B(DEVPKEY_Device_UINumber) |
---|
1044 | B(DEVPKEY_Device_UpperFilters) |
---|
1045 | B(DEVPKEY_Device_LowerFilters) |
---|
1046 | B(DEVPKEY_Device_BusTypeGuid) |
---|
1047 | B(DEVPKEY_Device_LegacyBusType) |
---|
1048 | B(DEVPKEY_Device_BusNumber) |
---|
1049 | B(DEVPKEY_Device_EnumeratorName) |
---|
1050 | B(DEVPKEY_Device_Security) |
---|
1051 | B(DEVPKEY_Device_SecuritySDS) |
---|
1052 | B(DEVPKEY_Device_DevType) |
---|
1053 | B(DEVPKEY_Device_Exclusive) |
---|
1054 | B(DEVPKEY_Device_Characteristics) |
---|
1055 | B(DEVPKEY_Device_Address) |
---|
1056 | B(DEVPKEY_Device_UINumberDescFormat) |
---|
1057 | B(DEVPKEY_Device_PowerData) |
---|
1058 | B(DEVPKEY_Device_RemovalPolicy) |
---|
1059 | B(DEVPKEY_Device_RemovalPolicyDefault) |
---|
1060 | B(DEVPKEY_Device_RemovalPolicyOverride) |
---|
1061 | B(DEVPKEY_Device_InstallState) |
---|
1062 | B(DEVPKEY_Device_LocationPaths) |
---|
1063 | B(DEVPKEY_Device_BaseContainerId) |
---|
1064 | B(DEVPKEY_Device_DevNodeStatus) |
---|
1065 | B(DEVPKEY_Device_ProblemCode) |
---|
1066 | B(DEVPKEY_Device_EjectionRelations) |
---|
1067 | B(DEVPKEY_Device_RemovalRelations) |
---|
1068 | B(DEVPKEY_Device_PowerRelations) |
---|
1069 | B(DEVPKEY_Device_BusRelations) |
---|
1070 | B(DEVPKEY_Device_Parent) |
---|
1071 | B(DEVPKEY_Device_Children) |
---|
1072 | B(DEVPKEY_Device_Siblings) |
---|
1073 | B(DEVPKEY_Device_TransportRelations) |
---|
1074 | B(DEVPKEY_Device_Reported) |
---|
1075 | B(DEVPKEY_Device_Legacy) |
---|
1076 | B(DEVPKEY_Device_InstanceId) |
---|
1077 | B(DEVPKEY_Device_ContainerId) |
---|
1078 | B(DEVPKEY_Device_ModelId) |
---|
1079 | B(DEVPKEY_Device_FriendlyNameAttributes) |
---|
1080 | B(DEVPKEY_Device_ManufacturerAttributes) |
---|
1081 | B(DEVPKEY_Device_PresenceNotForDevice) |
---|
1082 | B(DEVPKEY_Numa_Proximity_Domain) |
---|
1083 | B(DEVPKEY_Device_DHP_Rebalance_Policy) |
---|
1084 | B(DEVPKEY_Device_Numa_Node) |
---|
1085 | B(DEVPKEY_Device_BusReportedDeviceDesc) |
---|
1086 | B(DEVPKEY_Device_SessionId) |
---|
1087 | B(DEVPKEY_Device_InstallDate) |
---|
1088 | B(DEVPKEY_Device_FirstInstallDate) |
---|
1089 | B(DEVPKEY_Device_DriverDate) |
---|
1090 | B(DEVPKEY_Device_DriverVersion) |
---|
1091 | B(DEVPKEY_Device_DriverDesc) |
---|
1092 | B(DEVPKEY_Device_DriverInfPath) |
---|
1093 | B(DEVPKEY_Device_DriverInfSection) |
---|
1094 | B(DEVPKEY_Device_DriverInfSectionExt) |
---|
1095 | B(DEVPKEY_Device_MatchingDeviceId) |
---|
1096 | B(DEVPKEY_Device_DriverProvider) |
---|
1097 | B(DEVPKEY_Device_DriverPropPageProvider) |
---|
1098 | B(DEVPKEY_Device_DriverCoInstallers) |
---|
1099 | B(DEVPKEY_Device_ResourcePickerTags) |
---|
1100 | B(DEVPKEY_Device_ResourcePickerExceptions) |
---|
1101 | B(DEVPKEY_Device_DriverRank) |
---|
1102 | B(DEVPKEY_Device_DriverLogoLevel) |
---|
1103 | B(DEVPKEY_Device_NoConnectSound) |
---|
1104 | B(DEVPKEY_Device_GenericDriverInstalled) |
---|
1105 | B(DEVPKEY_Device_AdditionalSoftwareRequested) |
---|
1106 | B(DEVPKEY_Device_SafeRemovalRequired) |
---|
1107 | B(DEVPKEY_Device_SafeRemovalRequiredOverride) |
---|
1108 | B(DEVPKEY_DrvPkg_Model) |
---|
1109 | B(DEVPKEY_DrvPkg_VendorWebSite) |
---|
1110 | B(DEVPKEY_DrvPkg_DetailedDescription) |
---|
1111 | B(DEVPKEY_DrvPkg_DocumentationLink) |
---|
1112 | B(DEVPKEY_DrvPkg_Icon) |
---|
1113 | B(DEVPKEY_DrvPkg_BrandingIcon) |
---|
1114 | B(DEVPKEY_DeviceClass_UpperFilters) |
---|
1115 | B(DEVPKEY_DeviceClass_LowerFilters) |
---|
1116 | B(DEVPKEY_DeviceClass_Security) |
---|
1117 | B(DEVPKEY_DeviceClass_SecuritySDS) |
---|
1118 | B(DEVPKEY_DeviceClass_DevType) |
---|
1119 | B(DEVPKEY_DeviceClass_Exclusive) |
---|
1120 | B(DEVPKEY_DeviceClass_Characteristics) |
---|
1121 | B(DEVPKEY_DeviceClass_Name) |
---|
1122 | B(DEVPKEY_DeviceClass_ClassName) |
---|
1123 | B(DEVPKEY_DeviceClass_Icon) |
---|
1124 | B(DEVPKEY_DeviceClass_ClassInstaller) |
---|
1125 | B(DEVPKEY_DeviceClass_PropPageProvider) |
---|
1126 | B(DEVPKEY_DeviceClass_NoInstallClass) |
---|
1127 | B(DEVPKEY_DeviceClass_NoDisplayClass) |
---|
1128 | B(DEVPKEY_DeviceClass_SilentInstall) |
---|
1129 | B(DEVPKEY_DeviceClass_NoUseClass) |
---|
1130 | B(DEVPKEY_DeviceClass_DefaultService) |
---|
1131 | B(DEVPKEY_DeviceClass_IconPath) |
---|
1132 | B(DEVPKEY_DeviceClass_DHPRebalanceOptOut) |
---|
1133 | B(DEVPKEY_DeviceClass_ClassCoInstallers) |
---|
1134 | B(DEVPKEY_DeviceInterface_FriendlyName) |
---|
1135 | B(DEVPKEY_DeviceInterface_Enabled) |
---|
1136 | B(DEVPKEY_DeviceInterface_ClassGuid) |
---|
1137 | B(DEVPKEY_DeviceInterfaceClass_DefaultInterface) |
---|
1138 | B(DEVPKEY_DeviceDisplay_IsShowInDisconnectedState) |
---|
1139 | B(DEVPKEY_DeviceDisplay_IsNotInterestingForDisplay) |
---|
1140 | B(DEVPKEY_DeviceDisplay_Category) |
---|
1141 | B(DEVPKEY_DeviceDisplay_UnpairUninstall) |
---|
1142 | B(DEVPKEY_DeviceDisplay_RequiresUninstallElevation) |
---|
1143 | B(DEVPKEY_DeviceDisplay_AlwaysShowDeviceAsConnected) |
---|
1144 | #pragma endregion |
---|
1145 | }; |
---|
1146 | #undef A |
---|
1147 | #undef B |
---|
1148 | #pragma endregion |
---|
1149 | for(SIZE_T nIndex = 0; nIndex < DIM(g_pMap); nIndex++) |
---|
1150 | if(g_pMap[nIndex].pKey->fmtid == Key.fmtid && g_pMap[nIndex].pKey->pid == Key.pid) |
---|
1151 | { |
---|
1152 | sKeyName = CA2CT(g_pMap[nIndex].pszName); |
---|
1153 | break; |
---|
1154 | } |
---|
1155 | if(sKeyName.IsEmpty()) |
---|
1156 | sKeyName = AtlFormatString(_T("%ls, %d"), _PersistHelper::StringFromIdentifier(Key.fmtid), Key.pid); |
---|
1157 | #pragma region String Value |
---|
1158 | CString sValue; |
---|
1159 | HRESULT nChangeTypeResult = E_FAIL; |
---|
1160 | // NOTE: See http://msdn.microsoft.com/en-us/library/cc235506%28v=prot.10%29.aspx |
---|
1161 | switch(Value.vt) |
---|
1162 | { |
---|
1163 | case VT_LPSTR: |
---|
1164 | sValue = CA2CT(Value.pszVal); |
---|
1165 | nChangeTypeResult = S_OK; |
---|
1166 | break; |
---|
1167 | case VT_LPWSTR: |
---|
1168 | sValue = CW2CT(Value.pwszVal); |
---|
1169 | nChangeTypeResult = S_OK; |
---|
1170 | break; |
---|
1171 | case VT_BLOB: |
---|
1172 | sValue = AtlFormatString(_T("%d bytes of BLOB"), Value.blob.cbSize); |
---|
1173 | if(Value.blob.cbSize) |
---|
1174 | { |
---|
1175 | sValue += _T(", "); |
---|
1176 | CRoArrayT<CString> Array; |
---|
1177 | static const SIZE_T g_nMaximalSize = 128; |
---|
1178 | if(Value.blob.cbSize <= g_nMaximalSize) |
---|
1179 | { |
---|
1180 | for(ULONG nIndex = 0; nIndex < Value.blob.cbSize; nIndex++) |
---|
1181 | _W(Array.Add(AtlFormatString(_T("%02X"), Value.blob.pBlobData[nIndex])) >= 0); |
---|
1182 | } else |
---|
1183 | { |
---|
1184 | for(ULONG nIndex = 0; nIndex < g_nMaximalSize - 8; nIndex++) |
---|
1185 | _W(Array.Add(AtlFormatString(_T("%02X"), Value.blob.pBlobData[nIndex])) >= 0); |
---|
1186 | _W(Array.Add(_T("...")) >= 0); |
---|
1187 | for(ULONG nIndex = 0; nIndex < 4; nIndex++) |
---|
1188 | _W(Array.Add(AtlFormatString(_T("%02X"), Value.blob.pBlobData[Value.blob.cbSize - 4 + nIndex])) >= 0); |
---|
1189 | } |
---|
1190 | sValue += _StringHelper::Join(Array, _T(" ")); |
---|
1191 | } |
---|
1192 | nChangeTypeResult = S_OK; |
---|
1193 | break; |
---|
1194 | case VT_CLSID: |
---|
1195 | sValue = CW2CT(_PersistHelper::StringFromIdentifier(*Value.puuid)); |
---|
1196 | nChangeTypeResult = S_OK; |
---|
1197 | break; |
---|
1198 | } |
---|
1199 | #pragma region Variant as String |
---|
1200 | CComVariant vValue; |
---|
1201 | if(FAILED(nChangeTypeResult)) |
---|
1202 | { |
---|
1203 | nChangeTypeResult = vValue.ChangeType(VT_BSTR, &reinterpret_cast<VARIANT&>(Value)); |
---|
1204 | if(SUCCEEDED(nChangeTypeResult)) |
---|
1205 | sValue = CW2CT(vValue.bstrVal); |
---|
1206 | else |
---|
1207 | sValue = _T("???"); |
---|
1208 | } |
---|
1209 | #pragma endregion |
---|
1210 | #pragma endregion |
---|
1211 | static const CEnumerationNameT<VARTYPE> g_pVarTypeMap[] = |
---|
1212 | { |
---|
1213 | #define A(x) { x, #x }, |
---|
1214 | A(VT_EMPTY) |
---|
1215 | A(VT_NULL) |
---|
1216 | A(VT_I2) |
---|
1217 | A(VT_I4) |
---|
1218 | A(VT_R4) |
---|
1219 | A(VT_R8) |
---|
1220 | A(VT_CY) |
---|
1221 | A(VT_DATE) |
---|
1222 | A(VT_BSTR) |
---|
1223 | A(VT_DISPATCH) |
---|
1224 | A(VT_ERROR) |
---|
1225 | A(VT_BOOL) |
---|
1226 | A(VT_VARIANT) |
---|
1227 | A(VT_UNKNOWN) |
---|
1228 | A(VT_DECIMAL) |
---|
1229 | A(VT_I1) |
---|
1230 | A(VT_UI1) |
---|
1231 | A(VT_UI2) |
---|
1232 | A(VT_UI4) |
---|
1233 | A(VT_I8) |
---|
1234 | A(VT_UI8) |
---|
1235 | A(VT_INT) |
---|
1236 | A(VT_UINT) |
---|
1237 | A(VT_VOID) |
---|
1238 | A(VT_HRESULT) |
---|
1239 | A(VT_PTR) |
---|
1240 | A(VT_SAFEARRAY) |
---|
1241 | A(VT_CARRAY) |
---|
1242 | A(VT_USERDEFINED) |
---|
1243 | A(VT_LPSTR) |
---|
1244 | A(VT_LPWSTR) |
---|
1245 | A(VT_RECORD) |
---|
1246 | A(VT_INT_PTR) |
---|
1247 | A(VT_UINT_PTR) |
---|
1248 | A(VT_FILETIME) |
---|
1249 | A(VT_BLOB) |
---|
1250 | A(VT_STREAM) |
---|
1251 | A(VT_STORAGE) |
---|
1252 | A(VT_STREAMED_OBJECT) |
---|
1253 | A(VT_STORED_OBJECT) |
---|
1254 | A(VT_BLOB_OBJECT) |
---|
1255 | A(VT_CF) |
---|
1256 | A(VT_CLSID) |
---|
1257 | A(VT_VERSIONED_STREAM) |
---|
1258 | #undef A |
---|
1259 | }; |
---|
1260 | sText.Append(_StringHelper::Join<CString>(5, _T("\t"), |
---|
1261 | _T(""), |
---|
1262 | _T(""), |
---|
1263 | sKeyName, |
---|
1264 | sValue, |
---|
1265 | FormatEnumerationT(g_pVarTypeMap, Value.vt), |
---|
1266 | 0) + _T("\r\n")); |
---|
1267 | } |
---|
1268 | _ATLCATCHALL() |
---|
1269 | { |
---|
1270 | _V(PropVariantClear(&Value)); |
---|
1271 | _ATLRETHROW; |
---|
1272 | } |
---|
1273 | __C(PropVariantClear(&Value)); |
---|
1274 | } |
---|
1275 | _ATLCATCH(Exception) |
---|
1276 | { |
---|
1277 | _Z_ATLEXCEPTION(Exception); |
---|
1278 | sText.AppendFormat(_T("\t\t") _T("Error 0x%08x\r\n"), (HRESULT) Exception); |
---|
1279 | } |
---|
1280 | #pragma endregion |
---|
1281 | } |
---|
1282 | _ATLCATCH(Exception) |
---|
1283 | { |
---|
1284 | _Z_ATLEXCEPTION(Exception); |
---|
1285 | sText.AppendFormat(_T("\t") _T("Error 0x%08x\r\n"), (HRESULT) Exception); |
---|
1286 | } |
---|
1287 | } |
---|
1288 | _ATLCATCH(Exception) |
---|
1289 | { |
---|
1290 | _Z_ATLEXCEPTION(Exception); |
---|
1291 | sText.AppendFormat(_T("Error 0x%08x\r\n"), (HRESULT) Exception); |
---|
1292 | } |
---|
1293 | #pragma endregion |
---|
1294 | m_TextEdit = GetDlgItem(IDC_TEXT); |
---|
1295 | m_TextEdit.SetValue(sText); |
---|
1296 | } |
---|
1297 | _ATLCATCHALL() |
---|
1298 | { |
---|
1299 | _Z_EXCEPTION(); |
---|
1300 | } |
---|
1301 | return TRUE; |
---|
1302 | } |
---|
1303 | LRESULT OnSysCommand(UINT nCommand, CPoint) |
---|
1304 | { |
---|
1305 | switch(nCommand) |
---|
1306 | { |
---|
1307 | case ID_APP_ABOUT: |
---|
1308 | { |
---|
1309 | CAboutDialog Dialog; |
---|
1310 | Dialog.DoModal(m_hWnd); |
---|
1311 | } |
---|
1312 | break; |
---|
1313 | default: |
---|
1314 | SetMsgHandled(FALSE); |
---|
1315 | } |
---|
1316 | return 0; |
---|
1317 | } |
---|
1318 | LRESULT OnCommand(UINT, INT nIdentifier, HWND) |
---|
1319 | { |
---|
1320 | _W(EndDialog(nIdentifier)); |
---|
1321 | return 0; |
---|
1322 | } |
---|
1323 | }; |
---|