source: trunk/Utilities/EnumerateAudioDevices/MainDialog.h @ 24

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