Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2014-03-19 17:31:15 +0400
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2014-03-19 17:31:15 +0400
commita70e767b46c3e2299d08f0a8033e4f913ccc67e5 (patch)
tree960d4940eb404694e3736f8866c44bfd7d3d4a78
parent2c735a7b0747f6a39e0079d9f81e247f569fc27c (diff)
[WindowsPlatform] Initial binary replacement with sources.
-rw-r--r--main/Main.sln950
-rw-r--r--main/configure.in6
-rw-r--r--main/src/addins/WindowsPlatform/Makefile.am4
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/CoreTests.csproj113
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/Makefile.am5
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/NetworkList/NetworkListManagerTests.cs45
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/BatteryStateTests.cs46
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/PowerManagerTests.cs189
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropVariantTests.cs179
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropertyKeyTests.cs49
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Makefile.am4
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFolderHelperTests.cs65
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFoldersTests.cs40
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/Makefile.am5
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/PropertySystem/PropertySystemTests.cs8
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellObjectWatcher/ShellObjectWatcherTests.cs165
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellTests.csproj117
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/StockIcons/StockIconsTests.cs65
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRecoveryException.cs56
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRestartRecoveryManager.cs163
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoveryData.cs54
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoverySettings.cs74
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartRestrictions.cs38
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartSettings.cs70
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj217
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/CustomDictionary.xml16
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControl.cs147
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControlCollection.cs120
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogsDefaults.cs23
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/IDialogControlHost.cs43
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialog.cs1253
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogBar.cs43
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButton.cs37
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButtonBase.cs112
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogClosingEventArgs.cs34
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogCommandLink.cs59
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogControl.cs20
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogDefaults.cs23
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogExpandedInfoMode.cs25
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogHyperlinkClickedEventArgs.cs26
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBar.cs123
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBarState.cs35
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogRadioButton.cs25
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogResult.cs50
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardButton.cs49
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardIcon.cs35
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStartupLocation.cs20
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogTickEventArgs.cs26
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/GlobalSuppressions.cs100
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/AppRestartRecovery/AppRestartRecoveryNativeMethods.cs65
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreErrorHelper.cs161
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreHelpers.cs118
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreNativeMethods.cs280
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/Dialogs/DialogShowState.cs30
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetwork.cs67
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkConnection.cs43
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkListManager.cs46
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/NetworkListManagerClass.cs47
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/PowerManagement/PowerManagementNativeMethods.cs227
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialog.cs612
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialogSettings.cs58
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/TaskDialogNativeMethods.cs233
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/WindowMessage.cs234
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Makefile.am5
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/Network.cs201
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkCollection.cs60
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnection.cs115
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnectionCollection.cs60
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListEnums.cs124
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListManager.cs132
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/BatteryState.cs113
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/EventManager.cs91
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/ExecutionState.cs41
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/MessageManager.cs180
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PersonalityGuids.cs27
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/Power.cs72
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManager.cs404
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManagerException.cs48
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerPersonality.cs33
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerSource.cs34
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Properties/AssemblyInfo.cs43
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariant.cs808
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariantNativeMethods.cs107
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropertyKey.cs150
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.Designer.cs675
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.resx324
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeIconHandle.cs26
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeRegionHandle.cs27
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeWindowHandle.cs32
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/ZeroInvalidHandle.cs32
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Makefile.am4
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/DefaultShellImageSizes.cs68
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EnumUnknown.cs63
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EventHandlerExtensionMethods.cs53
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/IconReference.cs168
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativePoint.cs78
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativeRect.cs96
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchCondition.cs181
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchConditionFactory.cs481
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellEnums.cs535
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellException.cs81
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFile.cs64
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFileSystemFolder.cs75
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolder.cs12
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolderItems.cs117
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellHelper.cs91
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellItemArray.cs70
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLibrary.cs901
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLink.cs143
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemFolder.cs25
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemItem.cs15
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObject.cs532
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectCollection.cs396
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectContainer.cs120
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectFactory.cs220
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSavedSearchCollection.cs18
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchCollection.cs16
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchConnector.cs40
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchFolder.cs266
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnail.cs357
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnailEnums.cs56
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SortColumn.cs89
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs1349
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogButton.cs59
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogCheckBox.cs106
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogComboBox.cs174
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControl.cs116
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControlCollection.cs168
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilter.cs167
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilterCollection.cs29
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFolderChangeEventArgs.cs28
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogGroupBox.cs93
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogLabel.cs45
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogMenu.cs102
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogProminentControl.cs47
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogRadioButtonList.cs153
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogResult.cs25
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogSeperator.cs27
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogStandardFilters.cs62
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogTextBox.cs101
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonOpenFileDialog.cs193
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonSaveFileDialog.cs305
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/ICommonFileDialogIndexedControls.cs23
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml171
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml.cs132
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWinforms.cs152
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CustomDictionary.xml58
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellObjects.cd130
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellThumbnailClassDiagram.cd39
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/DesktopWindowManagerNativeMethods.cs65
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassEvents.cs22
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassForm.cs144
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassWindow.cs150
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/CommonControlException.cs61
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml8
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml.cs987
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs889
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserContentOptions.cs334
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserDiagram.cd94
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEnums.cs162
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEvents.cs47
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserPaneVisibility.cs57
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserViewEvents.cs161
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLog.cs262
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEnums.cs21
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEvents.cs27
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationOptions.cs105
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/GlobalSuppressions.cs871
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/IntPtrExtensions.cs16
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMClasses.cs22
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMGuids.cs85
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMInterfaces.cs880
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeMethods.cs690
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeStructs.cs129
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/WindowUtilities.cs222
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMClasses.cs51
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMInterfaces.cs507
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMGuids.cs51
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMInterfaces.cs796
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserNativeMethods.cs33
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMGuids.cs25
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMInterfaces.cs185
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersNativeMethods.cs43
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemCOMInterfaces.cs345
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemNativeMethods.cs62
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellExtensions/HandlerNativeMethods.cs226
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellObjectWatcher/ShellObjectWatcherNativeMethods.cs198
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/StockIcons/StockIconsNativeMethods.cs83
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TabbedThumbnailNativeMethods.cs210
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarCOMInterfaces.cs154
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarNativeMethods.cs210
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/DefinitionOptions.cs32
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FileSystemKnownFolder.cs282
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderCategory.cs45
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderProperties.cs43
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderTypes.cs227
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FoldersIdentifiers.cs592
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/IKnownFolder.cs117
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderHelper.cs204
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderSettings.cs295
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolders.cs1331
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/NonFileSystemKnownFolder.cs282
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RedirectionCapabilities.cs45
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RetrievalOptions.cs21
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Makefile.am5
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Properties/AssemblyInfo.cs42
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/IShellProperty.cs59
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/PropertySystemException.cs54
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperties.cs168
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperty.cs447
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyCollection.cs246
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescription.cs565
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescriptionsCache.cs39
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnumType.cs131
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnums.cs737
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyFactory.cs189
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyWriter.cs251
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/StronglyTypedProperties.cs16343
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/SystemProperties.cs12306
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/WindowProperties.cs37
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.Designer.cs1251
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.resx516
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj385
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyEventManager.cs107
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyLock.cs90
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs216
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListenerFilter.cs126
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectNotificationEventArgs.cs79
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcher.cs561
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcherEnums.cs190
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcon.cs270
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIconEnums.cs419
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcons.cs631
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpList.cs575
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategory.cs92
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategoryCollection.cs135
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItem.cs39
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItemCollection.cs126
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListLink.cs201
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListSeparator.cs99
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnail.cs566
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailBitmapRequestedEventArgs.cs42
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailClosedEventArgs.cs29
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailEventArgs.cs46
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailManager.cs464
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailProxyWindow.cs90
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailScreenCapture.cs181
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarEnums.cs65
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarInterfaces.cs25
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarList.cs33
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarManager.cs317
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindow.cs214
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindowManager.cs794
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButton.cs362
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButtonClickedEventArgs.cs55
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarManager.cs77
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarProxyWindow.cs125
-rw-r--r--main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/UserRemovedJumpListItemsEventArg.cs29
-rw-r--r--main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.Shell.dllbin542720 -> 0 bytes
-rw-r--r--main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.dllbin105984 -> 0 bytes
-rw-r--r--main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.csproj14
261 files changed, 75295 insertions, 7 deletions
diff --git a/main/Main.sln b/main/Main.sln
index 2ca9b12ef4..c0c03069a0 100644
--- a/main/Main.sln
+++ b/main/Main.sln
@@ -175,6 +175,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WindowsPlatform", "WindowsP
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsPlatform", "src\addins\WindowsPlatform\WindowsPlatform\WindowsPlatform.csproj", "{459868D2-54DC-415B-B1AB-BE39BDBD352F}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WindowsAPICodePack", "WindowsAPICodePack", "{6DD5F9E5-09D3-4763-A91B-E824812285CB}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "src\addins\WindowsPlatform\WindowsAPICodePack\Core\Core.csproj", "{2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shell", "src\addins\WindowsPlatform\WindowsAPICodePack\Shell\Shell.csproj", "{AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WindowsAPICodePack.Tests", "WindowsAPICodePack.Tests", "{38B21258-233E-423D-8AFB-63E3B5619707}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreTests", "src\addins\WindowsPlatform\WindowsAPICodePack.Tests\Core\CoreTests.csproj", "{605A0E8A-E237-4240-9727-73D927556862}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShellTests", "src\addins\WindowsPlatform\WindowsAPICodePack.Tests\Shell\ShellTests.csproj", "{69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "contrib", "contrib", "{F12939F1-D55A-4CE9-9F33-8D959BFC7D6C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Debugger.Soft", "external\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft.csproj", "{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}"
@@ -282,10 +294,20 @@ Global
Release|Any CPU = Release|Any CPU
Debug|x86 = Debug|x86
Release|x86 = Release|x86
+ Debug|x64 = Debug|x64
+ Release|x64 = Release|x64
+ CodeAnalysisDebug|Any CPU = CodeAnalysisDebug|Any CPU
+ CodeAnalysisDebug|x64 = CodeAnalysisDebug|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.Debug|x64.Build.0 = Debug|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.Debug|x86.ActiveCfg = Debug|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.Debug|x86.Build.0 = Debug|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -293,10 +315,18 @@ Global
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.Release|x64.ActiveCfg = Release|Any CPU
+ {0413DB7D-8B35-423F-9752-D75C9225E7DE}.Release|x64.Build.0 = Release|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.Release|x86.ActiveCfg = Release|Any CPU
{0413DB7D-8B35-423F-9752-D75C9225E7DE}.Release|x86.Build.0 = Release|Any CPU
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|x86
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|x86
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x86
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.CodeAnalysisDebug|x64.Build.0 = Debug|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Debug|Any CPU.ActiveCfg = Debug|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Debug|Any CPU.Build.0 = Debug|x86
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Debug|x64.ActiveCfg = Debug|x86
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Debug|x64.Build.0 = Debug|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Debug|x86.ActiveCfg = Debug|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Debug|x86.Build.0 = Debug|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.DebugMac|Any CPU.ActiveCfg = Debug|x86
@@ -304,10 +334,18 @@ Global
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.DebugWin32|Any CPU.ActiveCfg = Debug|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.DebugWin32|Any CPU.Build.0 = Debug|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Release|Any CPU.ActiveCfg = Release|x86
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Release|x64.ActiveCfg = Release|x86
+ {05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Release|x64.Build.0 = Release|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Release|x86.ActiveCfg = Release|x86
{05EDFE55-C8D1-47E4-BB61-0BC809CD82E2}.Release|x86.Build.0 = Release|x86
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.Debug|x64.Build.0 = Debug|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.Debug|x86.ActiveCfg = Debug|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.Debug|x86.Build.0 = Debug|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -315,10 +353,18 @@ Global
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.Release|x64.ActiveCfg = Release|Any CPU
+ {07CC7654-27D6-421D-A64C-0FFA40456FA2}.Release|x64.Build.0 = Release|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.Release|x86.ActiveCfg = Release|Any CPU
{07CC7654-27D6-421D-A64C-0FFA40456FA2}.Release|x86.Build.0 = Release|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.Debug|x64.Build.0 = Debug|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.Debug|x86.ActiveCfg = Debug|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.Debug|x86.Build.0 = Debug|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -326,10 +372,18 @@ Global
{07F55155-51A8-4072-9F80-FA473666F086}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.Release|x64.ActiveCfg = Release|Any CPU
+ {07F55155-51A8-4072-9F80-FA473666F086}.Release|x64.Build.0 = Release|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.Release|x86.ActiveCfg = Release|Any CPU
{07F55155-51A8-4072-9F80-FA473666F086}.Release|x86.Build.0 = Release|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.Debug|x64.Build.0 = Debug|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.Debug|x86.ActiveCfg = Debug|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.Debug|x86.Build.0 = Debug|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -337,10 +391,18 @@ Global
{0AF16AF1-0876-413E-9803-08BD33C19E00}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.Release|x64.ActiveCfg = Release|Any CPU
+ {0AF16AF1-0876-413E-9803-08BD33C19E00}.Release|x64.Build.0 = Release|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.Release|x86.ActiveCfg = Release|Any CPU
{0AF16AF1-0876-413E-9803-08BD33C19E00}.Release|x86.Build.0 = Release|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Debug|x64.Build.0 = Debug|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Debug|x86.ActiveCfg = Debug|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Debug|x86.Build.0 = Debug|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -348,10 +410,18 @@ Global
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Release|x64.ActiveCfg = Release|Any CPU
+ {0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Release|x64.Build.0 = Release|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Release|x86.ActiveCfg = Release|Any CPU
{0EA3AD14-404A-4D3F-979B-F087E2E70C82}.Release|x86.Build.0 = Release|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.Debug|x64.Build.0 = Debug|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.Debug|x86.ActiveCfg = Debug|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.Debug|x86.Build.0 = Debug|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -359,9 +429,17 @@ Global
{100568FC-F4E8-439B-94AD-41D11724E45B}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.Release|x64.ActiveCfg = Release|Any CPU
+ {100568FC-F4E8-439B-94AD-41D11724E45B}.Release|x64.Build.0 = Release|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.Release|x86.ActiveCfg = Release|Any CPU
{100568FC-F4E8-439B-94AD-41D11724E45B}.Release|x86.Build.0 = Release|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.Debug|x64.Build.0 = Debug|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.Debug|x86.ActiveCfg = Debug|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.Debug|x86.Build.0 = Debug|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -369,10 +447,18 @@ Global
{1038FBD8-750E-4081-BC65-D89FFED3C881}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.Release|x64.ActiveCfg = Release|Any CPU
+ {1038FBD8-750E-4081-BC65-D89FFED3C881}.Release|x64.Build.0 = Release|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.Release|x86.ActiveCfg = Release|Any CPU
{1038FBD8-750E-4081-BC65-D89FFED3C881}.Release|x86.Build.0 = Release|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Debug|x64.Build.0 = Debug|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Debug|x86.ActiveCfg = Debug|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Debug|x86.Build.0 = Debug|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -380,10 +466,18 @@ Global
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Release|x64.ActiveCfg = Release|Any CPU
+ {1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Release|x64.Build.0 = Release|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Release|x86.ActiveCfg = Release|Any CPU
{1497D0A8-AFF1-4938-BC22-BE79B358BA5B}.Release|x86.Build.0 = Release|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Debug|x64.Build.0 = Debug|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Debug|x86.ActiveCfg = Debug|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Debug|x86.Build.0 = Debug|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -391,10 +485,18 @@ Global
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Release|x64.ActiveCfg = Release|Any CPU
+ {174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Release|x64.Build.0 = Release|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Release|x86.ActiveCfg = Release|Any CPU
{174E6044-DD3A-49AB-9A5C-2A1F341B7B4F}.Release|x86.Build.0 = Release|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Debug|x64.Build.0 = Debug|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Debug|x86.ActiveCfg = Debug|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Debug|x86.Build.0 = Debug|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -402,10 +504,18 @@ Global
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Release|x64.ActiveCfg = Release|Any CPU
+ {183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Release|x64.Build.0 = Release|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Release|x86.ActiveCfg = Release|Any CPU
{183E084F-2C3B-4A6D-A8CE-6CDF3DC499AC}.Release|x86.Build.0 = Release|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Debug|x64.Build.0 = Debug|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Debug|x86.ActiveCfg = Debug|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Debug|x86.Build.0 = Debug|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -413,10 +523,18 @@ Global
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Release|x64.ActiveCfg = Release|Any CPU
+ {19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Release|x64.Build.0 = Release|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Release|x86.ActiveCfg = Release|Any CPU
{19DE0F35-D204-4FD8-A553-A19ECE05E24D}.Release|x86.Build.0 = Release|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Debug|x64.Build.0 = Debug|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Debug|x86.ActiveCfg = Debug|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Debug|x86.Build.0 = Debug|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -424,10 +542,18 @@ Global
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Release|x64.ActiveCfg = Release|Any CPU
+ {1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Release|x64.Build.0 = Release|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Release|x86.ActiveCfg = Release|Any CPU
{1CF94D07-5480-4D10-A3CD-2EBD5E87B02E}.Release|x86.Build.0 = Release|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Debug|x64.Build.0 = Debug|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Debug|x86.ActiveCfg = Debug|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Debug|x86.Build.0 = Debug|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -435,10 +561,18 @@ Global
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Release|x64.ActiveCfg = Release|Any CPU
+ {1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Release|x64.Build.0 = Release|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Release|x86.ActiveCfg = Release|Any CPU
{1F29B0A7-458F-4093-85DE-52E36EA2FC0E}.Release|x86.Build.0 = Release|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Debug|x64.Build.0 = Debug|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Debug|x86.ActiveCfg = Debug|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Debug|x86.Build.0 = Debug|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -446,9 +580,17 @@ Global
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Release|x64.ActiveCfg = Release|Any CPU
+ {2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Release|x64.Build.0 = Release|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Release|x86.ActiveCfg = Release|Any CPU
{2357AABD-08C7-4808-A495-8FF2D3CDFDB0}.Release|x86.Build.0 = Release|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Debug|x64.Build.0 = Debug|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Debug|x86.ActiveCfg = Debug|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Debug|x86.Build.0 = Debug|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -456,10 +598,18 @@ Global
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Release|x64.ActiveCfg = Release|Any CPU
+ {252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Release|x64.Build.0 = Release|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Release|x86.ActiveCfg = Release|Any CPU
{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}.Release|x86.Build.0 = Release|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Debug|x64.Build.0 = Debug|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Debug|x86.ActiveCfg = Debug|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Debug|x86.Build.0 = Debug|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -468,10 +618,18 @@ Global
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Release|x64.ActiveCfg = Release|Any CPU
+ {2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Release|x64.Build.0 = Release|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Release|x86.ActiveCfg = Release|Any CPU
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B}.Release|x86.Build.0 = Release|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.Debug|x64.Build.0 = Debug|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.Debug|x86.ActiveCfg = Debug|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.Debug|x86.Build.0 = Debug|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -479,10 +637,18 @@ Global
{27096E7F-C91C-4AC6-B289-6897A701DF21}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.Release|x64.ActiveCfg = Release|Any CPU
+ {27096E7F-C91C-4AC6-B289-6897A701DF21}.Release|x64.Build.0 = Release|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.Release|x86.ActiveCfg = Release|Any CPU
{27096E7F-C91C-4AC6-B289-6897A701DF21}.Release|x86.Build.0 = Release|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.Debug|x64.Build.0 = Debug|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.Debug|x86.ActiveCfg = Debug|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.Debug|x86.Build.0 = Debug|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -490,10 +656,18 @@ Global
{2A00A871-C641-4116-ADFD-29B7799952B4}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.Release|x64.ActiveCfg = Release|Any CPU
+ {2A00A871-C641-4116-ADFD-29B7799952B4}.Release|x64.Build.0 = Release|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.Release|x86.ActiveCfg = Release|Any CPU
{2A00A871-C641-4116-ADFD-29B7799952B4}.Release|x86.Build.0 = Release|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.CodeAnalysisDebug|Any CPU.ActiveCfg = Release|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.CodeAnalysisDebug|Any CPU.Build.0 = Release|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.CodeAnalysisDebug|x64.ActiveCfg = Release|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.CodeAnalysisDebug|x64.Build.0 = Release|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Debug|x64.Build.0 = Debug|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Debug|x86.ActiveCfg = Debug|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Debug|x86.Build.0 = Debug|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -502,10 +676,18 @@ Global
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Release|x64.ActiveCfg = Release|Any CPU
+ {2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Release|x64.Build.0 = Release|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Release|x86.ActiveCfg = Release|Any CPU
{2A705FC6-1A9E-4941-9E47-254D79F2D9D5}.Release|x86.Build.0 = Release|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Debug|x64.Build.0 = Debug|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Debug|x86.ActiveCfg = Debug|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Debug|x86.Build.0 = Debug|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -514,10 +696,18 @@ Global
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Release|x64.ActiveCfg = Release|Any CPU
+ {2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Release|x64.Build.0 = Release|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Release|x86.ActiveCfg = Release|Any CPU
{2B8F4F83-C2B3-4E84-A27B-8DEE1BE0E006}.Release|x86.Build.0 = Release|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.Debug|x64.Build.0 = Debug|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.Debug|x86.ActiveCfg = Debug|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.Debug|x86.Build.0 = Debug|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -525,10 +715,38 @@ Global
{2C24D515-4A2C-445C-8419-C09231913CFA}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.Release|x64.ActiveCfg = Release|Any CPU
+ {2C24D515-4A2C-445C-8419-C09231913CFA}.Release|x64.Build.0 = Release|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.Release|x86.ActiveCfg = Release|Any CPU
{2C24D515-4A2C-445C-8419-C09231913CFA}.Release|x86.Build.0 = Release|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x64
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.CodeAnalysisDebug|x64.Build.0 = Debug|x64
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Debug|x64.ActiveCfg = Debug|x64
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Debug|x64.Build.0 = Debug|x64
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Debug|x86.Build.0 = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Release|x64.ActiveCfg = Release|x64
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Release|x64.Build.0 = Release|x64
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Release|x86.ActiveCfg = Release|Any CPU
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}.Release|x86.Build.0 = Release|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Debug|x64.Build.0 = Debug|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Debug|x86.ActiveCfg = Debug|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Debug|x86.Build.0 = Debug|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -536,20 +754,36 @@ Global
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Release|x64.ActiveCfg = Release|Any CPU
+ {372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Release|x64.Build.0 = Release|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Release|x86.ActiveCfg = Release|Any CPU
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E}.Release|x86.Build.0 = Release|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.Debug|x64.Build.0 = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.Debug|x86.ActiveCfg = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.Debug|x86.Build.0 = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.Release|x64.ActiveCfg = Release|Any CPU
+ {376889B5-6504-46A1-9D18-A9E4B4A50F49}.Release|x64.Build.0 = Release|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.Release|x86.ActiveCfg = Release|Any CPU
{376889B5-6504-46A1-9D18-A9E4B4A50F49}.Release|x86.Build.0 = Release|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|x64.Build.0 = Debug|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|x86.ActiveCfg = Debug|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|x86.Build.0 = Debug|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -557,10 +791,18 @@ Global
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|x64.ActiveCfg = Release|Any CPU
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|x64.Build.0 = Release|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|x86.ActiveCfg = Release|Any CPU
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|x86.Build.0 = Release|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.Debug|x64.Build.0 = Debug|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.Debug|x86.ActiveCfg = Debug|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.Debug|x86.Build.0 = Debug|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -568,10 +810,18 @@ Global
{3D363F0C-5731-42AA-9022-B7F4657F298A}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.Release|x64.ActiveCfg = Release|Any CPU
+ {3D363F0C-5731-42AA-9022-B7F4657F298A}.Release|x64.Build.0 = Release|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.Release|x86.ActiveCfg = Release|Any CPU
{3D363F0C-5731-42AA-9022-B7F4657F298A}.Release|x86.Build.0 = Release|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.Debug|x64.Build.0 = Debug|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.Debug|x86.ActiveCfg = Debug|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.Debug|x86.Build.0 = Debug|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -579,9 +829,17 @@ Global
{42D1CE65-A14B-4218-B787-58AD7AA68513}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.Release|x64.ActiveCfg = Release|Any CPU
+ {42D1CE65-A14B-4218-B787-58AD7AA68513}.Release|x64.Build.0 = Release|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.Release|x86.ActiveCfg = Release|Any CPU
{42D1CE65-A14B-4218-B787-58AD7AA68513}.Release|x86.Build.0 = Release|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.Debug|x64.Build.0 = Debug|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.Debug|x86.ActiveCfg = Debug|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.Debug|x86.Build.0 = Debug|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -589,10 +847,18 @@ Global
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.Release|x64.ActiveCfg = Release|Any CPU
+ {459868D2-54DC-415B-B1AB-BE39BDBD352F}.Release|x64.Build.0 = Release|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.Release|x86.ActiveCfg = Release|Any CPU
{459868D2-54DC-415B-B1AB-BE39BDBD352F}.Release|x86.Build.0 = Release|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Debug|x64.Build.0 = Debug|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Debug|x86.ActiveCfg = Debug|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Debug|x86.Build.0 = Debug|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -601,10 +867,18 @@ Global
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Release|x64.ActiveCfg = Release|Any CPU
+ {495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Release|x64.Build.0 = Release|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Release|x86.ActiveCfg = Release|Any CPU
{495E53B3-F3AF-4C4F-BAAF-865EFAA2F4A9}.Release|x86.Build.0 = Release|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Debug|x64.Build.0 = Debug|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Debug|x86.ActiveCfg = Debug|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Debug|x86.Build.0 = Debug|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -612,19 +886,35 @@ Global
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Release|x64.ActiveCfg = Release|Any CPU
+ {4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Release|x64.Build.0 = Release|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Release|x86.ActiveCfg = Release|Any CPU
{4CB170EF-DFE6-4A56-9E1B-A85449E827A7}.Release|x86.Build.0 = Release|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.Debug|x64.Build.0 = Debug|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.Debug|x86.ActiveCfg = Debug|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.Debug|x86.Build.0 = Debug|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.Release|x64.ActiveCfg = Release|Any CPU
+ {50D6768C-C072-4E79-AFC5-C1C40767EF45}.Release|x64.Build.0 = Release|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.Release|x86.ActiveCfg = Release|Any CPU
{50D6768C-C072-4E79-AFC5-C1C40767EF45}.Release|x86.Build.0 = Release|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.CodeAnalysisDebug|Any CPU.ActiveCfg = Release|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.CodeAnalysisDebug|Any CPU.Build.0 = Release|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.CodeAnalysisDebug|x64.ActiveCfg = Release|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.CodeAnalysisDebug|x64.Build.0 = Release|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.Debug|x64.Build.0 = Debug|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.Debug|x86.ActiveCfg = Debug|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.Debug|x86.Build.0 = Debug|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -632,10 +922,38 @@ Global
{53DCA265-3C3C-42F9-B647-F72BA678122B}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.Release|x64.ActiveCfg = Release|Any CPU
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}.Release|x64.Build.0 = Release|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.Release|x86.ActiveCfg = Release|Any CPU
{53DCA265-3C3C-42F9-B647-F72BA678122B}.Release|x86.Build.0 = Release|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Debug|x64.Build.0 = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Debug|x86.Build.0 = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Release|Any CPU.Build.0 = Release|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Release|x64.ActiveCfg = Release|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Release|x64.Build.0 = Release|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Release|x86.ActiveCfg = Release|Any CPU
+ {605A0E8A-E237-4240-9727-73D927556862}.Release|x86.Build.0 = Release|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.CodeAnalysisDebug|Any CPU.ActiveCfg = Release|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.CodeAnalysisDebug|Any CPU.Build.0 = Release|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.CodeAnalysisDebug|x64.ActiveCfg = Release|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.CodeAnalysisDebug|x64.Build.0 = Release|Any CPU
{63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|x64.Build.0 = Debug|Any CPU
{63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|x86.ActiveCfg = Debug|x86
{63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|x86.Build.0 = Debug|x86
{63D3B27A-D966-4902-90B3-30290E1692F1}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -644,10 +962,18 @@ Global
{63D3B27A-D966-4902-90B3-30290E1692F1}.DebugWin32|Any CPU.Build.0 = Debug|x86
{63D3B27A-D966-4902-90B3-30290E1692F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{63D3B27A-D966-4902-90B3-30290E1692F1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.Release|x64.ActiveCfg = Release|Any CPU
+ {63D3B27A-D966-4902-90B3-30290E1692F1}.Release|x64.Build.0 = Release|Any CPU
{63D3B27A-D966-4902-90B3-30290E1692F1}.Release|x86.ActiveCfg = Release|x86
{63D3B27A-D966-4902-90B3-30290E1692F1}.Release|x86.Build.0 = Release|x86
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.CodeAnalysisDebug|Any CPU.ActiveCfg = net_2_0_Debug|Any CPU
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.CodeAnalysisDebug|Any CPU.Build.0 = net_2_0_Debug|Any CPU
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.CodeAnalysisDebug|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.CodeAnalysisDebug|x64.Build.0 = net_2_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Debug|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Debug|Any CPU.Build.0 = net_4_0_Debug|Any CPU
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Debug|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Debug|x64.Build.0 = net_2_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Debug|x86.ActiveCfg = net_2_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Debug|x86.Build.0 = net_2_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.DebugMac|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
@@ -655,19 +981,55 @@ Global
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.DebugWin32|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.DebugWin32|Any CPU.Build.0 = net_4_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Release|Any CPU.ActiveCfg = net_4_0_Release|Any CPU
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Release|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Release|x64.Build.0 = net_2_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Release|x86.ActiveCfg = net_2_0_Debug|Any CPU
{63E6915C-7EA4-4D76-AB28-0D7191EEA626}.Release|x86.Build.0 = net_2_0_Debug|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.Debug|x64.Build.0 = Debug|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.Debug|x86.ActiveCfg = Debug|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.Debug|x86.Build.0 = Debug|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.Release|x64.ActiveCfg = Release|Any CPU
+ {69136056-BFD3-4CEC-BB41-D9991C79593C}.Release|x64.Build.0 = Release|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.Release|x86.ActiveCfg = Release|Any CPU
{69136056-BFD3-4CEC-BB41-D9991C79593C}.Release|x86.Build.0 = Release|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Debug|x64.Build.0 = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Debug|x86.Build.0 = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Release|Any CPU.Build.0 = Release|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Release|x64.ActiveCfg = Release|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Release|x64.Build.0 = Release|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Release|x86.ActiveCfg = Release|Any CPU
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}.Release|x86.Build.0 = Release|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Debug|x64.Build.0 = Debug|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Debug|x86.ActiveCfg = Debug|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Debug|x86.Build.0 = Debug|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -675,10 +1037,18 @@ Global
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Release|x64.ActiveCfg = Release|Any CPU
+ {72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Release|x64.Build.0 = Release|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Release|x86.ActiveCfg = Release|Any CPU
{72944A6C-45FF-4EF8-B349-8C9CABF519D4}.Release|x86.Build.0 = Release|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Debug|x64.Build.0 = Debug|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Debug|x86.ActiveCfg = Debug|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Debug|x86.Build.0 = Debug|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -687,10 +1057,18 @@ Global
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Release|Any CPU.ActiveCfg = Release|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Release|Any CPU.Build.0 = Release|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Release|x64.ActiveCfg = Release|Any CPU
+ {73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Release|x64.Build.0 = Release|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Release|x86.ActiveCfg = Release|Any CPU
{73D4CC8B-BAB9-4A29-841B-F25C6311F067}.Release|x86.Build.0 = Release|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.Debug|x64.Build.0 = Debug|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.Debug|x86.ActiveCfg = Debug|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.Debug|x86.Build.0 = Debug|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -698,10 +1076,18 @@ Global
{7525BB88-6142-4A26-93B9-A30C6983390A}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.Release|x64.ActiveCfg = Release|Any CPU
+ {7525BB88-6142-4A26-93B9-A30C6983390A}.Release|x64.Build.0 = Release|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.Release|x86.ActiveCfg = Release|Any CPU
{7525BB88-6142-4A26-93B9-A30C6983390A}.Release|x86.Build.0 = Release|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.Debug|x64.Build.0 = Debug|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.Debug|x86.ActiveCfg = Debug|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.Debug|x86.Build.0 = Debug|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -709,10 +1095,18 @@ Global
{75B9F2DF-4DEA-4007-965D-339563735EBE}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.Release|x64.ActiveCfg = Release|Any CPU
+ {75B9F2DF-4DEA-4007-965D-339563735EBE}.Release|x64.Build.0 = Release|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.Release|x86.ActiveCfg = Release|Any CPU
{75B9F2DF-4DEA-4007-965D-339563735EBE}.Release|x86.Build.0 = Release|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Debug|x64.Build.0 = Debug|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Debug|x86.ActiveCfg = Debug|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Debug|x86.Build.0 = Debug|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -720,29 +1114,53 @@ Global
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Release|x64.ActiveCfg = Release|Any CPU
+ {7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Release|x64.Build.0 = Release|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Release|x86.ActiveCfg = Release|Any CPU
{7926DB5B-96A7-47A7-9870-DB42FA5C3548}.Release|x86.Build.0 = Release|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.Debug|x64.Build.0 = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.Debug|x86.ActiveCfg = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.Debug|x86.Build.0 = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.Release|x64.ActiveCfg = Release|Any CPU
+ {7B57882B-AD46-469B-84E7-06DF98D11468}.Release|x64.Build.0 = Release|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.Release|x86.ActiveCfg = Release|Any CPU
{7B57882B-AD46-469B-84E7-06DF98D11468}.Release|x86.Build.0 = Release|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Debug|x64.Build.0 = Debug|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Debug|x86.ActiveCfg = Debug|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Debug|x86.Build.0 = Debug|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Release|x64.ActiveCfg = Release|Any CPU
+ {7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Release|x64.Build.0 = Release|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Release|x86.ActiveCfg = Release|Any CPU
{7E4B15FB-E8C4-419A-A31C-9310FD9062BD}.Release|x86.Build.0 = Release|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Debug|x64.Build.0 = Debug|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Debug|x86.ActiveCfg = Debug|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Debug|x86.Build.0 = Debug|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -750,10 +1168,18 @@ Global
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Release|x64.ActiveCfg = Release|Any CPU
+ {7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Release|x64.Build.0 = Release|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Release|x86.ActiveCfg = Release|Any CPU
{7FCDB0D9-AA7D-44E4-BE74-55312B432389}.Release|x86.Build.0 = Release|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Debug|x64.Build.0 = Debug|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Debug|x86.ActiveCfg = Debug|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Debug|x86.Build.0 = Debug|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -761,10 +1187,18 @@ Global
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Release|x64.ActiveCfg = Release|Any CPU
+ {849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Release|x64.Build.0 = Release|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Release|x86.ActiveCfg = Release|Any CPU
{849AE05D-0058-4A8C-A0E8-77DC6BB12E52}.Release|x86.Build.0 = Release|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.CodeAnalysisDebug|Any CPU.ActiveCfg = net_2_0_Debug|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.CodeAnalysisDebug|Any CPU.Build.0 = net_2_0_Debug|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.CodeAnalysisDebug|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.CodeAnalysisDebug|x64.Build.0 = net_2_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Debug|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Debug|Any CPU.Build.0 = net_4_0_Debug|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Debug|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Debug|x64.Build.0 = net_2_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Debug|x86.ActiveCfg = net_2_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Debug|x86.Build.0 = net_2_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.DebugMac|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
@@ -772,10 +1206,18 @@ Global
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.DebugWin32|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.DebugWin32|Any CPU.Build.0 = net_4_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Release|Any CPU.ActiveCfg = net_4_0_Release|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Release|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Release|x64.Build.0 = net_2_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Release|x86.ActiveCfg = net_2_0_Debug|Any CPU
{8559DD7F-A16F-46D0-A05A-9139FAEBA8FD}.Release|x86.Build.0 = net_2_0_Debug|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Debug|x64.Build.0 = Debug|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Debug|x86.ActiveCfg = Debug|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Debug|x86.Build.0 = Debug|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -783,10 +1225,18 @@ Global
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Release|x64.ActiveCfg = Release|Any CPU
+ {86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Release|x64.Build.0 = Release|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Release|x86.ActiveCfg = Release|Any CPU
{86DFC74A-B0B6-4C73-9E05-9098DA8FA5F1}.Release|x86.Build.0 = Release|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.Debug|x64.Build.0 = Debug|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.Debug|x86.ActiveCfg = Debug|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.Debug|x86.Build.0 = Debug|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -794,10 +1244,18 @@ Global
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.Release|x64.ActiveCfg = Release|Any CPU
+ {875D389F-48D1-4D46-BFC6-998837DD6AE0}.Release|x64.Build.0 = Release|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.Release|x86.ActiveCfg = Release|Any CPU
{875D389F-48D1-4D46-BFC6-998837DD6AE0}.Release|x86.Build.0 = Release|Any CPU
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|x86
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|x86
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x86
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.CodeAnalysisDebug|x64.Build.0 = Debug|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Debug|Any CPU.ActiveCfg = Debug|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Debug|Any CPU.Build.0 = Debug|x86
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Debug|x64.ActiveCfg = Debug|x86
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Debug|x64.Build.0 = Debug|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Debug|x86.ActiveCfg = Debug|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Debug|x86.Build.0 = Debug|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.DebugMac|Any CPU.ActiveCfg = Debug|x86
@@ -805,10 +1263,18 @@ Global
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.DebugWin32|Any CPU.ActiveCfg = Debug|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.DebugWin32|Any CPU.Build.0 = Debug|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Release|Any CPU.ActiveCfg = Release|x86
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Release|x64.ActiveCfg = Release|x86
+ {8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Release|x64.Build.0 = Release|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Release|x86.ActiveCfg = Release|x86
{8A04FF99-5DFE-4E3D-A24F-72A621C8DDC6}.Release|x86.Build.0 = Release|x86
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Debug|x64.Build.0 = Debug|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Debug|x86.ActiveCfg = Debug|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Debug|x86.Build.0 = Debug|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -816,9 +1282,17 @@ Global
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Release|x64.ActiveCfg = Release|Any CPU
+ {8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Release|x64.Build.0 = Release|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Release|x86.ActiveCfg = Release|Any CPU
{8CCA39DD-8412-4547-BE7F-0C3D3ACC6FAC}.Release|x86.Build.0 = Release|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.Debug|x64.Build.0 = Debug|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.Debug|x86.ActiveCfg = Debug|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.Debug|x86.Build.0 = Debug|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -826,10 +1300,18 @@ Global
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.Release|x64.ActiveCfg = Release|Any CPU
+ {8E47B77A-A649-494C-9BF2-B845E39CADE9}.Release|x64.Build.0 = Release|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.Release|x86.ActiveCfg = Release|Any CPU
{8E47B77A-A649-494C-9BF2-B845E39CADE9}.Release|x86.Build.0 = Release|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Debug|x64.Build.0 = Debug|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Debug|x86.ActiveCfg = Debug|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Debug|x86.Build.0 = Debug|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -837,10 +1319,18 @@ Global
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Release|x64.ActiveCfg = Release|Any CPU
+ {8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Release|x64.Build.0 = Release|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Release|x86.ActiveCfg = Release|Any CPU
{8EE34CBC-5D7C-4BB3-8B19-26D5522770F6}.Release|x86.Build.0 = Release|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Debug|x64.Build.0 = Debug|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Debug|x86.ActiveCfg = Debug|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Debug|x86.Build.0 = Debug|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -848,10 +1338,18 @@ Global
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Release|x64.ActiveCfg = Release|Any CPU
+ {90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Release|x64.Build.0 = Release|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Release|x86.ActiveCfg = Release|Any CPU
{90C99ADB-7D4B-4EB4-98C2-40BD1B14C7D2}.Release|x86.Build.0 = Release|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Debug|x64.Build.0 = Debug|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Debug|x86.ActiveCfg = Debug|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Debug|x86.Build.0 = Debug|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -859,10 +1357,18 @@ Global
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Release|x64.ActiveCfg = Release|Any CPU
+ {91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Release|x64.Build.0 = Release|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Release|x86.ActiveCfg = Release|Any CPU
{91DD5A2D-9FE3-4C3C-9253-876141874DAD}.Release|x86.Build.0 = Release|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Debug|x64.Build.0 = Debug|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Debug|x86.ActiveCfg = Debug|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Debug|x86.Build.0 = Debug|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -870,10 +1376,18 @@ Global
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Release|x64.ActiveCfg = Release|Any CPU
+ {92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Release|x64.Build.0 = Release|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Release|x86.ActiveCfg = Release|Any CPU
{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}.Release|x86.Build.0 = Release|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.Debug|x64.Build.0 = Debug|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.Debug|x86.ActiveCfg = Debug|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.Debug|x86.Build.0 = Debug|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -881,10 +1395,18 @@ Global
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.Release|x64.ActiveCfg = Release|Any CPU
+ {961B9266-C44A-42B6-BA3D-3FB229C9C417}.Release|x64.Build.0 = Release|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.Release|x86.ActiveCfg = Release|Any CPU
{961B9266-C44A-42B6-BA3D-3FB229C9C417}.Release|x86.Build.0 = Release|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.CodeAnalysisDebug|Any CPU.ActiveCfg = Release|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.CodeAnalysisDebug|Any CPU.Build.0 = Release|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.CodeAnalysisDebug|x64.ActiveCfg = Release|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.CodeAnalysisDebug|x64.Build.0 = Release|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.Debug|x64.Build.0 = Debug|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.Debug|x86.ActiveCfg = Debug|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.Debug|x86.Build.0 = Debug|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -892,20 +1414,36 @@ Global
{984CC812-9470-4A13-AFF9-CC44068D666C}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.Release|x64.ActiveCfg = Release|Any CPU
+ {984CC812-9470-4A13-AFF9-CC44068D666C}.Release|x64.Build.0 = Release|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.Release|x86.ActiveCfg = Release|Any CPU
{984CC812-9470-4A13-AFF9-CC44068D666C}.Release|x86.Build.0 = Release|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.Debug|x64.Build.0 = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.Debug|x86.ActiveCfg = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.Debug|x86.Build.0 = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.Release|x64.ActiveCfg = Release|Any CPU
+ {9A415695-CF80-4845-AA80-0DA26CF1E256}.Release|x64.Build.0 = Release|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.Release|x86.ActiveCfg = Release|Any CPU
{9A415695-CF80-4845-AA80-0DA26CF1E256}.Release|x86.Build.0 = Release|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.Debug|x64.Build.0 = Debug|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.Debug|x86.ActiveCfg = Debug|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.Debug|x86.Build.0 = Debug|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -913,10 +1451,18 @@ Global
{9BC670A8-1851-40EC-9685-279F4C98433D}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.Release|x64.ActiveCfg = Release|Any CPU
+ {9BC670A8-1851-40EC-9685-279F4C98433D}.Release|x64.Build.0 = Release|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.Release|x86.ActiveCfg = Release|Any CPU
{9BC670A8-1851-40EC-9685-279F4C98433D}.Release|x86.Build.0 = Release|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.Debug|x64.Build.0 = Debug|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.Debug|x86.ActiveCfg = Debug|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.Debug|x86.Build.0 = Debug|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -924,19 +1470,35 @@ Global
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.Release|x64.ActiveCfg = Release|Any CPU
+ {9E4BA410-8338-42EC-AF9C-422C35ECED81}.Release|x64.Build.0 = Release|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.Release|x86.ActiveCfg = Release|Any CPU
{9E4BA410-8338-42EC-AF9C-422C35ECED81}.Release|x86.Build.0 = Release|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Debug|x64.Build.0 = Debug|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Debug|x86.ActiveCfg = Debug|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Debug|x86.Build.0 = Debug|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Release|x64.ActiveCfg = Release|Any CPU
+ {9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Release|x64.Build.0 = Release|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Release|x86.ActiveCfg = Release|Any CPU
{9FBCC262-10DC-4E84-A5C4-17230BBF8862}.Release|x86.Build.0 = Release|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Debug|x64.Build.0 = Debug|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Debug|x86.ActiveCfg = Debug|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Debug|x86.Build.0 = Debug|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -944,10 +1506,18 @@ Global
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Release|x64.ActiveCfg = Release|Any CPU
+ {A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Release|x64.Build.0 = Release|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Release|x86.ActiveCfg = Release|Any CPU
{A19E6F3F-A25B-4B01-8922-CF0CC35C781D}.Release|x86.Build.0 = Release|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.Debug|x64.Build.0 = Debug|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.Debug|x86.ActiveCfg = Debug|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.Debug|x86.Build.0 = Debug|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -955,10 +1525,18 @@ Global
{A2329308-3751-4DBD-9A75-5F7B8B024625}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.Release|x64.ActiveCfg = Release|Any CPU
+ {A2329308-3751-4DBD-9A75-5F7B8B024625}.Release|x64.Build.0 = Release|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.Release|x86.ActiveCfg = Release|Any CPU
{A2329308-3751-4DBD-9A75-5F7B8B024625}.Release|x86.Build.0 = Release|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.Debug|x64.Build.0 = Debug|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.Debug|x86.ActiveCfg = Debug|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.Debug|x86.Build.0 = Debug|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -966,10 +1544,18 @@ Global
{A2364D6A-00EF-417C-80A6-815726C70032}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.Release|x64.ActiveCfg = Release|Any CPU
+ {A2364D6A-00EF-417C-80A6-815726C70032}.Release|x64.Build.0 = Release|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.Release|x86.ActiveCfg = Release|Any CPU
{A2364D6A-00EF-417C-80A6-815726C70032}.Release|x86.Build.0 = Release|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x64.Build.0 = Debug|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x86.ActiveCfg = Debug|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x86.Build.0 = Debug|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -977,10 +1563,18 @@ Global
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x64.ActiveCfg = Release|Any CPU
+ {A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x64.Build.0 = Release|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x86.ActiveCfg = Release|Any CPU
{A437F1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x86.Build.0 = Release|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.Debug|x64.Build.0 = Debug|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Debug|x86.ActiveCfg = Debug|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Debug|x86.Build.0 = Debug|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -989,10 +1583,18 @@ Global
{A727169F-D94F-443F-B305-B057D7F3B420}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.Release|x64.ActiveCfg = Release|Any CPU
+ {A727169F-D94F-443F-B305-B057D7F3B420}.Release|x64.Build.0 = Release|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Release|x86.ActiveCfg = Release|Any CPU
{A727169F-D94F-443F-B305-B057D7F3B420}.Release|x86.Build.0 = Release|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Debug|x64.Build.0 = Debug|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Debug|x86.ActiveCfg = Debug|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Debug|x86.Build.0 = Debug|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1000,10 +1602,18 @@ Global
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Release|x64.ActiveCfg = Release|Any CPU
+ {A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Release|x64.Build.0 = Release|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Release|x86.ActiveCfg = Release|Any CPU
{A7A4246D-CEC4-42DF-A3C1-C31B9F51C4EC}.Release|x86.Build.0 = Release|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.Debug|x64.Build.0 = Debug|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.Debug|x86.ActiveCfg = Debug|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.Debug|x86.Build.0 = Debug|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1011,10 +1621,18 @@ Global
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.Release|x64.ActiveCfg = Release|Any CPU
+ {A85C9721-C054-4BD8-A1F3-0227615F0A36}.Release|x64.Build.0 = Release|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.Release|x86.ActiveCfg = Release|Any CPU
{A85C9721-C054-4BD8-A1F3-0227615F0A36}.Release|x86.Build.0 = Release|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Debug|x64.Build.0 = Debug|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Debug|x86.ActiveCfg = Debug|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Debug|x86.Build.0 = Debug|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1022,10 +1640,38 @@ Global
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Release|x64.ActiveCfg = Release|Any CPU
+ {A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Release|x64.Build.0 = Release|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Release|x86.ActiveCfg = Release|Any CPU
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}.Release|x86.Build.0 = Release|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.CodeAnalysisDebug|Any CPU.ActiveCfg = CodeAnalysisDebug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.CodeAnalysisDebug|Any CPU.Build.0 = CodeAnalysisDebug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.CodeAnalysisDebug|x64.ActiveCfg = CodeAnalysisDebug|x64
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.CodeAnalysisDebug|x64.Build.0 = CodeAnalysisDebug|x64
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Debug|x64.ActiveCfg = Debug|x64
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Debug|x64.Build.0 = Debug|x64
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Debug|x86.Build.0 = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Release|x64.ActiveCfg = Release|x64
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Release|x64.Build.0 = Release|x64
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Release|x86.ActiveCfg = Release|Any CPU
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}.Release|x86.Build.0 = Release|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Debug|x64.Build.0 = Debug|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Debug|x86.ActiveCfg = Debug|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Debug|x86.Build.0 = Debug|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1033,19 +1679,35 @@ Global
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Release|x64.ActiveCfg = Release|Any CPU
+ {ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Release|x64.Build.0 = Release|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Release|x86.ActiveCfg = Release|Any CPU
{ABB21D58-6EFA-49EA-9555-EDDEC8123DD6}.Release|x86.Build.0 = Release|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.Debug|x64.Build.0 = Debug|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.Debug|x86.ActiveCfg = Debug|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.Debug|x86.Build.0 = Debug|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.Release|x64.ActiveCfg = Release|Any CPU
+ {AC7D119C-980B-4712-8811-5368C14412D7}.Release|x64.Build.0 = Release|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.Release|x86.ActiveCfg = Release|Any CPU
{AC7D119C-980B-4712-8811-5368C14412D7}.Release|x86.Build.0 = Release|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Debug|x64.Build.0 = Debug|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Debug|x86.ActiveCfg = Debug|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Debug|x86.Build.0 = Debug|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1053,19 +1715,35 @@ Global
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Release|x64.ActiveCfg = Release|Any CPU
+ {ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Release|x64.Build.0 = Release|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Release|x86.ActiveCfg = Release|Any CPU
{ADDC9D20-83C5-4245-9B46-2C5F6642CFBC}.Release|x86.Build.0 = Release|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Debug|x64.Build.0 = Debug|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Debug|x86.ActiveCfg = Debug|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Debug|x86.Build.0 = Debug|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Release|x64.ActiveCfg = Release|Any CPU
+ {AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Release|x64.Build.0 = Release|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Release|x86.ActiveCfg = Release|Any CPU
{AE84B4A7-E6B1-4565-8904-16284DCE41B6}.Release|x86.Build.0 = Release|Any CPU
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|x86
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|x86
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x86
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.CodeAnalysisDebug|x64.Build.0 = Debug|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|Any CPU.ActiveCfg = Debug|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|Any CPU.Build.0 = Debug|x86
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x64.ActiveCfg = Debug|x86
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x64.Build.0 = Debug|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x86.ActiveCfg = Debug|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Debug|x86.Build.0 = Debug|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.DebugMac|Any CPU.ActiveCfg = Debug|x86
@@ -1073,10 +1751,18 @@ Global
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.DebugWin32|Any CPU.ActiveCfg = Debug|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.DebugWin32|Any CPU.Build.0 = Debug|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Release|Any CPU.ActiveCfg = Release|x86
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x64.ActiveCfg = Release|x86
+ {B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x64.Build.0 = Release|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x86.ActiveCfg = Release|x86
{B257A1A3-78DF-4F00-8053-D32A8B1EB679}.Release|x86.Build.0 = Release|x86
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Debug|x64.Build.0 = Debug|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Debug|x86.ActiveCfg = Debug|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Debug|x86.Build.0 = Debug|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1084,29 +1770,53 @@ Global
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Release|x64.ActiveCfg = Release|Any CPU
+ {B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Release|x64.Build.0 = Release|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Release|x86.ActiveCfg = Release|Any CPU
{B32AD0DD-5247-437B-A2EF-1A4676C1B072}.Release|x86.Build.0 = Release|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Debug|x64.Build.0 = Debug|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Debug|x86.ActiveCfg = Debug|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Debug|x86.Build.0 = Debug|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Release|x64.ActiveCfg = Release|Any CPU
+ {B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Release|x64.Build.0 = Release|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Release|x86.ActiveCfg = Release|Any CPU
{B7C1673E-5124-4BE5-8D21-EC8B12F85B6B}.Release|x86.Build.0 = Release|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.Debug|x64.Build.0 = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.Debug|x86.ActiveCfg = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.Debug|x86.Build.0 = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.Release|x64.ActiveCfg = Release|Any CPU
+ {B841F25D-4F6D-4E0D-885F-212B54381F28}.Release|x64.Build.0 = Release|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.Release|x86.ActiveCfg = Release|Any CPU
{B841F25D-4F6D-4E0D-885F-212B54381F28}.Release|x86.Build.0 = Release|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.Debug|x64.Build.0 = Debug|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.Debug|x86.ActiveCfg = Debug|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.Debug|x86.Build.0 = Debug|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1114,10 +1824,18 @@ Global
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.Release|x64.ActiveCfg = Release|Any CPU
+ {BA9020AD-A2D1-47C8-9A7C-756162C38296}.Release|x64.Build.0 = Release|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.Release|x86.ActiveCfg = Release|Any CPU
{BA9020AD-A2D1-47C8-9A7C-756162C38296}.Release|x86.Build.0 = Release|Any CPU
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|x86
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|x86
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x86
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.CodeAnalysisDebug|x64.Build.0 = Debug|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.Debug|Any CPU.ActiveCfg = Debug|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.Debug|Any CPU.Build.0 = Debug|x86
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.Debug|x64.ActiveCfg = Debug|x86
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.Debug|x64.Build.0 = Debug|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.Debug|x86.ActiveCfg = Debug|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.Debug|x86.Build.0 = Debug|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.DebugMac|Any CPU.ActiveCfg = Debug|x86
@@ -1125,19 +1843,35 @@ Global
{BFE8691A-D323-4622-9021-7B8B27F81599}.DebugWin32|Any CPU.ActiveCfg = Debug|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.DebugWin32|Any CPU.Build.0 = Debug|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.Release|Any CPU.ActiveCfg = Release|x86
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.Release|x64.ActiveCfg = Release|x86
+ {BFE8691A-D323-4622-9021-7B8B27F81599}.Release|x64.Build.0 = Release|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.Release|x86.ActiveCfg = Release|x86
{BFE8691A-D323-4622-9021-7B8B27F81599}.Release|x86.Build.0 = Release|x86
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.Debug|x64.Build.0 = Debug|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.Debug|x86.ActiveCfg = Debug|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.Debug|x86.Build.0 = Debug|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.Release|x64.ActiveCfg = Release|Any CPU
+ {C05AAB7A-523F-4109-966B-6675BE0975BA}.Release|x64.Build.0 = Release|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.Release|x86.ActiveCfg = Release|Any CPU
{C05AAB7A-523F-4109-966B-6675BE0975BA}.Release|x86.Build.0 = Release|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Debug|x64.Build.0 = Debug|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Debug|x86.ActiveCfg = Debug|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Debug|x86.Build.0 = Debug|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1145,28 +1879,52 @@ Global
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Release|x64.ActiveCfg = Release|Any CPU
+ {C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Release|x64.Build.0 = Release|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Release|x86.ActiveCfg = Release|Any CPU
{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}.Release|x86.Build.0 = Release|Any CPU
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|x86
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|x86
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x86
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.CodeAnalysisDebug|x64.Build.0 = Debug|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.Debug|x64.ActiveCfg = Debug|x86
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.Debug|x64.Build.0 = Debug|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.Debug|x86.ActiveCfg = Debug|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.Debug|x86.Build.0 = Debug|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.DebugMac|Any CPU.ActiveCfg = Debug|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.DebugWin32|Any CPU.ActiveCfg = Debug|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.DebugWin32|Any CPU.Build.0 = Debug|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.Release|Any CPU.ActiveCfg = Release|x86
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.Release|x64.ActiveCfg = Release|x86
+ {C4B0275C-37D3-43F2-927D-ABF556600804}.Release|x64.Build.0 = Release|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.Release|x86.ActiveCfg = Release|x86
{C4B0275C-37D3-43F2-927D-ABF556600804}.Release|x86.Build.0 = Release|x86
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.Debug|x64.Build.0 = Debug|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.Debug|x86.ActiveCfg = Debug|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.Debug|x86.Build.0 = Debug|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.Release|x64.ActiveCfg = Release|Any CPU
+ {C93D746E-1586-4D4F-B411-BF5A966E6A08}.Release|x64.Build.0 = Release|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.Release|x86.ActiveCfg = Release|Any CPU
{C93D746E-1586-4D4F-B411-BF5A966E6A08}.Release|x86.Build.0 = Release|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.Debug|x64.Build.0 = Debug|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.Debug|x86.ActiveCfg = Debug|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.Debug|x86.Build.0 = Debug|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1174,10 +1932,18 @@ Global
{CB590106-8331-4CBE-8131-B154E7BF79E1}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.Release|x64.ActiveCfg = Release|Any CPU
+ {CB590106-8331-4CBE-8131-B154E7BF79E1}.Release|x64.Build.0 = Release|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.Release|x86.ActiveCfg = Release|Any CPU
{CB590106-8331-4CBE-8131-B154E7BF79E1}.Release|x86.Build.0 = Release|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Debug|x64.Build.0 = Debug|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Debug|x86.ActiveCfg = Debug|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Debug|x86.Build.0 = Debug|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1185,10 +1951,18 @@ Global
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Release|x64.ActiveCfg = Release|Any CPU
+ {CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Release|x64.Build.0 = Release|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Release|x86.ActiveCfg = Release|Any CPU
{CFC02FEC-BDF4-40B9-94D6-35E73F76A92E}.Release|x86.Build.0 = Release|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Debug|x64.Build.0 = Debug|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Debug|x86.ActiveCfg = Debug|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Debug|x86.Build.0 = Debug|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1196,10 +1970,18 @@ Global
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Release|x64.ActiveCfg = Release|Any CPU
+ {D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Release|x64.Build.0 = Release|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Release|x86.ActiveCfg = Release|Any CPU
{D0B5AF2B-4BC1-4EB4-81D3-E5B85DDCE925}.Release|x86.Build.0 = Release|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.Debug|x64.Build.0 = Debug|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.Debug|x86.ActiveCfg = Debug|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.Debug|x86.Build.0 = Debug|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1207,10 +1989,18 @@ Global
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.Release|x64.ActiveCfg = Release|Any CPU
+ {D1D35409-C814-47F6-B038-B9B5BF0FE490}.Release|x64.Build.0 = Release|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.Release|x86.ActiveCfg = Release|Any CPU
{D1D35409-C814-47F6-B038-B9B5BF0FE490}.Release|x86.Build.0 = Release|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.CodeAnalysisDebug|Any CPU.ActiveCfg = net_2_0_Debug|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.CodeAnalysisDebug|Any CPU.Build.0 = net_2_0_Debug|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.CodeAnalysisDebug|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.CodeAnalysisDebug|x64.Build.0 = net_2_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|Any CPU.Build.0 = net_4_0_Debug|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|x64.Build.0 = net_2_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|x86.ActiveCfg = net_2_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Debug|x86.Build.0 = net_2_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.DebugMac|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
@@ -1218,10 +2008,18 @@ Global
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.DebugWin32|Any CPU.ActiveCfg = net_4_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.DebugWin32|Any CPU.Build.0 = net_4_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Release|Any CPU.ActiveCfg = net_4_0_Release|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Release|x64.ActiveCfg = net_2_0_Debug|Any CPU
+ {D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Release|x64.Build.0 = net_2_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Release|x86.ActiveCfg = net_2_0_Debug|Any CPU
{D68133BD-1E63-496E-9EDE-4FBDBF77B486}.Release|x86.Build.0 = net_2_0_Debug|Any CPU
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|x86
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|x86
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x86
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.CodeAnalysisDebug|x64.Build.0 = Debug|x86
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Debug|x64.Build.0 = Debug|Any CPU
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Debug|x86.ActiveCfg = Debug|x86
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Debug|x86.Build.0 = Debug|x86
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1229,19 +2027,35 @@ Global
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.DebugWin32|Any CPU.ActiveCfg = Debug|x86
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.DebugWin32|Any CPU.Build.0 = Debug|x86
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Release|x64.ActiveCfg = Release|Any CPU
+ {DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Release|x64.Build.0 = Release|Any CPU
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Release|x86.ActiveCfg = Release|x86
{DA8EDEA6-7DA8-435D-B1A0-F3A0CA07F424}.Release|x86.Build.0 = Release|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.CodeAnalysisDebug|x64.ActiveCfg = Debug|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.CodeAnalysisDebug|x64.Build.0 = Debug|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.Debug|x64.ActiveCfg = Debug|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.Debug|x64.Build.0 = Debug|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.Debug|x86.ActiveCfg = Debug|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.Debug|x86.Build.0 = Debug|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.DebugMac|Any CPU.ActiveCfg = Debug|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.DebugWin32|Any CPU.ActiveCfg = Debug|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.DebugWin32|Any CPU.Build.0 = Debug|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.Release|Any CPU.ActiveCfg = Release|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.Release|x64.ActiveCfg = Release|x86
+ {DB96F55E-41C5-4330-A427-15A4EC028BBE}.Release|x64.Build.0 = Release|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.Release|x86.ActiveCfg = Release|x86
{DB96F55E-41C5-4330-A427-15A4EC028BBE}.Release|x86.Build.0 = Release|x86
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.CodeAnalysisDebug|Any CPU.ActiveCfg = Release|Any CPU
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.CodeAnalysisDebug|Any CPU.Build.0 = Release|Any CPU
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.CodeAnalysisDebug|x64.ActiveCfg = Release|Any CPU
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.CodeAnalysisDebug|x64.Build.0 = Release|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Debug|x64.Build.0 = Debug|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Debug|x86.ActiveCfg = Debug|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Debug|x86.Build.0 = Debug|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1250,10 +2064,18 @@ Global
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Release|x64.ActiveCfg = Release|Any CPU
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Release|x64.Build.0 = Release|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Release|x86.ActiveCfg = Release|Any CPU
{DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6}.Release|x86.Build.0 = Release|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Debug|x64.Build.0 = Debug|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Debug|x86.ActiveCfg = Debug|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Debug|x86.Build.0 = Debug|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1261,10 +2083,18 @@ Global
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Release|x64.ActiveCfg = Release|Any CPU
+ {DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Release|x64.Build.0 = Release|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Release|x86.ActiveCfg = Release|Any CPU
{DE40756E-57F6-4AF2-B155-55E3A88CCED8}.Release|x86.Build.0 = Release|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|x64.Build.0 = Debug|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|x86.ActiveCfg = Debug|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|x86.Build.0 = Debug|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1273,9 +2103,17 @@ Global
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|x64.ActiveCfg = Release|Any CPU
+ {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|x64.Build.0 = Release|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|x86.ActiveCfg = Release|Any CPU
{E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|x86.Build.0 = Release|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.Debug|x64.Build.0 = Debug|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.Debug|x86.ActiveCfg = Debug|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.Debug|x86.Build.0 = Debug|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1283,20 +2121,36 @@ Global
{E17829B5-8EAC-4714-8798-EB8ED3540191}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.Release|x64.ActiveCfg = Release|Any CPU
+ {E17829B5-8EAC-4714-8798-EB8ED3540191}.Release|x64.Build.0 = Release|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.Release|x86.ActiveCfg = Release|Any CPU
{E17829B5-8EAC-4714-8798-EB8ED3540191}.Release|x86.Build.0 = Release|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.Debug|x64.Build.0 = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.Debug|x86.ActiveCfg = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.Debug|x86.Build.0 = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.DebugMac|Any CPU.Build.0 = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.Release|x64.ActiveCfg = Release|Any CPU
+ {E2CAB397-D00C-4D11-8F5F-E3A052092969}.Release|x64.Build.0 = Release|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.Release|x86.ActiveCfg = Release|Any CPU
{E2CAB397-D00C-4D11-8F5F-E3A052092969}.Release|x86.Build.0 = Release|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Debug|x64.Build.0 = Debug|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Debug|x86.ActiveCfg = Debug|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Debug|x86.Build.0 = Debug|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1304,9 +2158,17 @@ Global
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Release|x64.ActiveCfg = Release|Any CPU
+ {E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Release|x64.Build.0 = Release|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Release|x86.ActiveCfg = Release|Any CPU
{E3BFF8B4-189C-496A-A817-7E8B31E22B91}.Release|x86.Build.0 = Release|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.Debug|x64.Build.0 = Debug|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.Debug|x86.ActiveCfg = Debug|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.Debug|x86.Build.0 = Debug|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1314,10 +2176,18 @@ Global
{E95833C9-90AA-4366-9262-0A1BED148249}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.Release|x64.ActiveCfg = Release|Any CPU
+ {E95833C9-90AA-4366-9262-0A1BED148249}.Release|x64.Build.0 = Release|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.Release|x86.ActiveCfg = Release|Any CPU
{E95833C9-90AA-4366-9262-0A1BED148249}.Release|x86.Build.0 = Release|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Debug|x64.Build.0 = Debug|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Debug|x86.ActiveCfg = Debug|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Debug|x86.Build.0 = Debug|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1325,10 +2195,18 @@ Global
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Release|x64.ActiveCfg = Release|Any CPU
+ {EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Release|x64.Build.0 = Release|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Release|x86.ActiveCfg = Release|Any CPU
{EBFC7F90-C2E5-4A4C-A327-E35021BEC181}.Release|x86.Build.0 = Release|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.Debug|x64.Build.0 = Debug|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.Debug|x86.ActiveCfg = Debug|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.Debug|x86.Build.0 = Debug|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1336,10 +2214,18 @@ Global
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.Release|x64.ActiveCfg = Release|Any CPU
+ {EF91D0B8-53F6-4622-9F26-3ED27815878A}.Release|x64.Build.0 = Release|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.Release|x86.ActiveCfg = Release|Any CPU
{EF91D0B8-53F6-4622-9F26-3ED27815878A}.Release|x86.Build.0 = Release|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.Debug|x64.Build.0 = Debug|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Debug|x86.ActiveCfg = Debug|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Debug|x86.Build.0 = Debug|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1348,10 +2234,18 @@ Global
{F218643D-2E74-4309-820E-206A54B7133F}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.Release|x64.ActiveCfg = Release|Any CPU
+ {F218643D-2E74-4309-820E-206A54B7133F}.Release|x64.Build.0 = Release|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Release|x86.ActiveCfg = Release|Any CPU
{F218643D-2E74-4309-820E-206A54B7133F}.Release|x86.Build.0 = Release|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Debug|x64.Build.0 = Debug|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Debug|x86.ActiveCfg = Debug|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Debug|x86.Build.0 = Debug|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1360,10 +2254,18 @@ Global
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Release|x64.ActiveCfg = Release|Any CPU
+ {F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Release|x64.Build.0 = Release|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Release|x86.ActiveCfg = Release|Any CPU
{F3AC14B0-3D1F-4B9B-95E8-384056060F33}.Release|x86.Build.0 = Release|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Debug|x64.Build.0 = Debug|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Debug|x86.ActiveCfg = Debug|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Debug|x86.Build.0 = Debug|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1371,10 +2273,18 @@ Global
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Release|x64.ActiveCfg = Release|Any CPU
+ {F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Release|x64.Build.0 = Release|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Release|x86.ActiveCfg = Release|Any CPU
{F426CBB2-77FC-4E14-9E28-E667C2D1299A}.Release|x86.Build.0 = Release|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Debug|x64.Build.0 = Debug|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Debug|x86.ActiveCfg = Debug|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Debug|x86.Build.0 = Debug|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1382,10 +2292,18 @@ Global
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Release|x64.ActiveCfg = Release|Any CPU
+ {F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Release|x64.Build.0 = Release|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Release|x86.ActiveCfg = Release|Any CPU
{F5390DA4-08B7-47E3-B6F3-D50683316AB4}.Release|x86.Build.0 = Release|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Debug|x64.Build.0 = Debug|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Debug|x86.ActiveCfg = Debug|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Debug|x86.Build.0 = Debug|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1393,10 +2311,18 @@ Global
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Release|x64.ActiveCfg = Release|Any CPU
+ {F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Release|x64.Build.0 = Release|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Release|x86.ActiveCfg = Release|Any CPU
{F79A67A1-4BA2-48F8-A7DD-A72E316EF6CD}.Release|x86.Build.0 = Release|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Debug|x64.Build.0 = Debug|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Debug|x86.ActiveCfg = Debug|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Debug|x86.Build.0 = Debug|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1404,10 +2330,18 @@ Global
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Release|x64.ActiveCfg = Release|Any CPU
+ {F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Release|x64.Build.0 = Release|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Release|x86.ActiveCfg = Release|Any CPU
{F870E2E7-FA64-4B2F-968A-90B36AB7AAA9}.Release|x86.Build.0 = Release|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Debug|x64.Build.0 = Debug|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Debug|x86.ActiveCfg = Debug|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Debug|x86.Build.0 = Debug|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1415,10 +2349,18 @@ Global
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Release|x64.ActiveCfg = Release|Any CPU
+ {F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Release|x64.Build.0 = Release|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Release|x86.ActiveCfg = Release|Any CPU
{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}.Release|x86.Build.0 = Release|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.CodeAnalysisDebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.CodeAnalysisDebug|Any CPU.Build.0 = Debug|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.CodeAnalysisDebug|x64.ActiveCfg = Debug|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.CodeAnalysisDebug|x64.Build.0 = Debug|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Debug|x64.Build.0 = Debug|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Debug|x86.ActiveCfg = Debug|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Debug|x86.Build.0 = Debug|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.DebugMac|Any CPU.ActiveCfg = Debug|Any CPU
@@ -1426,6 +2368,8 @@ Global
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.DebugWin32|Any CPU.ActiveCfg = Debug|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.DebugWin32|Any CPU.Build.0 = Debug|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Release|x64.ActiveCfg = Release|Any CPU
+ {FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Release|x64.Build.0 = Release|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Release|x86.ActiveCfg = Release|Any CPU
{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
@@ -1513,6 +2457,12 @@ Global
{2645C9F3-9ED5-4806-AB09-DAD9BE90C67B} = {98F4461F-84D0-4C57-A11F-47E871BD04A0}
{F218643D-2E74-4309-820E-206A54B7133F} = {98F4461F-84D0-4C57-A11F-47E871BD04A0}
{459868D2-54DC-415B-B1AB-BE39BDBD352F} = {EA393253-E9C8-422A-8CFD-4FDB529B3F8D}
+ {6DD5F9E5-09D3-4763-A91B-E824812285CB} = {EA393253-E9C8-422A-8CFD-4FDB529B3F8D}
+ {38B21258-233E-423D-8AFB-63E3B5619707} = {EA393253-E9C8-422A-8CFD-4FDB529B3F8D}
+ {2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57} = {6DD5F9E5-09D3-4763-A91B-E824812285CB}
+ {AA0C00CB-8699-4F37-BFAE-40CA87ACC06D} = {6DD5F9E5-09D3-4763-A91B-E824812285CB}
+ {605A0E8A-E237-4240-9727-73D927556862} = {38B21258-233E-423D-8AFB-63E3B5619707}
+ {69A3898C-DD4B-4DED-B1FE-AB2F9E539E66} = {38B21258-233E-423D-8AFB-63E3B5619707}
{372E8E3E-29D5-4B4D-88A2-4711CD628C4E} = {F12939F1-D55A-4CE9-9F33-8D959BFC7D6C}
{984CC812-9470-4A13-AFF9-CC44068D666C} = {F12939F1-D55A-4CE9-9F33-8D959BFC7D6C}
{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D} = {F12939F1-D55A-4CE9-9F33-8D959BFC7D6C}
diff --git a/main/configure.in b/main/configure.in
index d6e1606e35..65c111d125 100644
--- a/main/configure.in
+++ b/main/configure.in
@@ -325,6 +325,12 @@ src/addins/CBinding/Makefile
src/addins/GnomePlatform/Makefile
src/addins/MacPlatform/Makefile
src/addins/WindowsPlatform/Makefile
+src/addins/WindowsPlatform/WindowsAPICodePack/Makefile
+src/addins/WindowsPlatform/WindowsAPICodePack/Core/Makefile
+src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Makefile
+src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Makefile
+src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/Makefile
+src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/Makefile
src/addins/WindowsPlatform/WindowsPlatform/Makefile
src/addins/MonoDevelop.AssemblyBrowser/Makefile
src/addins/MonoDevelop.SourceEditor2/Makefile
diff --git a/main/src/addins/WindowsPlatform/Makefile.am b/main/src/addins/WindowsPlatform/Makefile.am
index 5ff492aeff..eb7ccd6495 100644
--- a/main/src/addins/WindowsPlatform/Makefile.am
+++ b/main/src/addins/WindowsPlatform/Makefile.am
@@ -1,3 +1,5 @@
SUBDIRS = \
- WindowsPlatform
+ WindowsPlatform \
+ WindowsAPICodePack \
+ WindowsAPICodePack.Tests
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/CoreTests.csproj b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/CoreTests.csproj
new file mode 100644
index 0000000000..1c9b853d29
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/CoreTests.csproj
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{605A0E8A-E237-4240-9727-73D927556862}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Tests</RootNamespace>
+ <AssemblyName>Microsoft.WindowsAPICodePackTests</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="xunit, Version=1.5.0.1479, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Tools\xunit-1.5\xunit.dll</HintPath>
+ </Reference>
+ <Reference Include="xunit.extensions, Version=1.5.0.1479, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Tools\xunit-1.5\xunit.extensions.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="NetworkList\NetworkListManagerTests.cs" />
+ <Compile Include="PowerManagement\BatteryStateTests.cs" />
+ <Compile Include="PowerManagement\PowerManagerTests.cs" />
+ <Compile Include="PropertySystem\PropertyKeyTests.cs" />
+ <Compile Include="PropertySystem\PropVariantTests.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\WindowsAPICodePack\Core\Core.csproj">
+ <Project>{2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}</Project>
+ <Name>Core</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/Makefile.am b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/Makefile.am
new file mode 100644
index 0000000000..24e07e9bf5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/Makefile.am
@@ -0,0 +1,5 @@
+include $(top_srcdir)/xbuild.include
+
+if ! ENABLE_WINDOWSPLATFORM
+SKIP=y
+endif
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/NetworkList/NetworkListManagerTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/NetworkList/NetworkListManagerTests.cs
new file mode 100644
index 0000000000..a5e81e8761
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/NetworkList/NetworkListManagerTests.cs
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using Microsoft.WindowsAPICodePack.Net;
+using Xunit;
+using Xunit.Extensions;
+
+namespace Tests
+{
+ public class NetworkListManagerTests
+ {
+ [Fact]
+ public void NetworkCollectionContainsAllNetworkConnections()
+ {
+ bool isConnected = NetworkListManager.IsConnected;
+ ConnectivityStates connectivity = NetworkListManager.Connectivity;
+ bool isConnectedToInternet = NetworkListManager.IsConnectedToInternet;
+
+ NetworkCollection networks = NetworkListManager.GetNetworks(NetworkConnectivityLevels.All);
+ NetworkConnectionCollection connections = NetworkListManager.GetNetworkConnections();
+
+ // BUG: Both GetNetworks and GetNetworkConnections create new network objects, so
+ // you can't do a reference comparison.
+ // By inspection, the connections are contained in the NetworkCollection, just a different instance.
+ foreach (NetworkConnection c in connections)
+ {
+ Assert.Contains(c.Network, networks);
+ }
+ }
+
+ [Fact]
+ public void IsConnectedIsConsistentWithGetNetworkConnections()
+ {
+ bool isConnected = NetworkListManager.IsConnected;
+ bool moreThanZeroConnections = false;
+
+ foreach (NetworkConnection c in NetworkListManager.GetNetworkConnections())
+ {
+ moreThanZeroConnections = true;
+ break;
+ }
+
+ Assert.Equal(isConnected, moreThanZeroConnections);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/BatteryStateTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/BatteryStateTests.cs
new file mode 100644
index 0000000000..dfd70ce31b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/BatteryStateTests.cs
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.ApplicationServices;
+using Xunit;
+
+namespace Tests
+{
+ public class BatteryStateTests
+ {
+ [Fact]
+ public void ConfirmBatteryState()
+ {
+ BatteryState s = PowerManager.GetCurrentBatteryState();
+
+ Assert.InRange<int>(s.CurrentCharge, 0, Int32.MaxValue);
+ // TODO: add more tests with heuristics here (i.e. when not plugged in, est time remaining < a reasonable number, etc.)
+ Assert.InRange<TimeSpan>(s.EstimatedTimeRemaining, TimeSpan.MinValue, TimeSpan.MaxValue);
+ Assert.InRange<int>(s.MaxCharge, 0, Int32.MaxValue);
+
+ // The max values below are just numbers we picked.
+ Assert.InRange<int>(s.SuggestedBatteryWarningCharge, 0, 10000);
+ Assert.InRange<int>(s.SuggestedCriticalBatteryCharge, 0, 10000);
+ }
+
+ [Fact]
+ public void DischargeRateIsNonNegativeIfPluggedIn()
+ {
+ BatteryState s = PowerManager.GetCurrentBatteryState();
+ if (s.ACOnline)
+ {
+ Assert.True(s.ChargeRate >= 0);
+ }
+ }
+
+ [Fact]
+ public void DischargeRateIsNegativeIfNotPluggedIn()
+ {
+ BatteryState s = PowerManager.GetCurrentBatteryState();
+ if (!s.ACOnline)
+ {
+ Assert.True(s.ChargeRate < 0);
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/PowerManagerTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/PowerManagerTests.cs
new file mode 100644
index 0000000000..0997a368d4
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PowerManagement/PowerManagerTests.cs
@@ -0,0 +1,189 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Threading;
+using Microsoft.WindowsAPICodePack.ApplicationServices;
+using Xunit;
+using Xunit.Extensions;
+
+namespace Tests
+{
+ public class PowerManagerTests
+ {
+ [Fact]
+ public void BatteryLifePercentIsValid()
+ {
+ Assert.InRange<int>(PowerManager.BatteryLifePercent, 0, 100);
+ }
+
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public void MonitorRequiredPropertyWorks(bool newValue)
+ {
+ bool originalValue = PowerManager.MonitorRequired;
+
+ PowerManager.MonitorRequired = newValue;
+ Assert.Equal<bool>(newValue, PowerManager.MonitorRequired);
+
+ PowerManager.MonitorRequired = originalValue;
+ }
+
+ [Theory]
+ [InlineData(true)]
+ [InlineData(false)]
+ public void RequestBlockSleepPropertyWorks(bool newValue)
+ {
+ bool originalValue = PowerManager.RequestBlockSleep;
+
+ PowerManager.RequestBlockSleep = newValue;
+ Assert.Equal<bool>(newValue, PowerManager.RequestBlockSleep);
+
+ PowerManager.RequestBlockSleep = originalValue;
+ }
+
+ [Theory]
+ [InlineData(true, PowerSource.AC)]
+ [InlineData(false, PowerSource.Battery)]
+ public void PowerSourceCorrespondsToAcOnlineProperty(bool acOnlineState, PowerSource powerSourceState)
+ {
+ Assert.Equal<bool>(
+ acOnlineState == PowerManager.GetCurrentBatteryState().ACOnline,
+ powerSourceState == PowerManager.PowerSource);
+ }
+
+ [Theory]
+ [InlineData(true, PowerSource.Ups)]
+ public void PowerSourceCorrespondsToIsUpsPresentProperty(bool isUpsPresentState, PowerSource powerSourceState)
+ {
+ // BUG: It is strange that IsUpsPresent is exposed on PM, while ACOnline is exposed on the BatteryState property
+ Assert.Equal<bool>(
+ isUpsPresentState == PowerManager.IsUpsPresent,
+ powerSourceState == PowerManager.PowerSource);
+ }
+
+ [Fact]
+ public void PowerPersonalityPropertyDoesNotThrow()
+ {
+ Assert.DoesNotThrow(() =>
+ {
+ PowerPersonality pp = PowerManager.PowerPersonality;
+ });
+ }
+
+ [Theory(Skip = "Event dependent property does not return before timeout on some computers.")]
+ [InlineData(true, true)]
+ // [InlineData(false, false)] // BUG: Possible bug
+ public void IsMonitorOnPropertyWorks(bool monitorRequired, bool expectedIsMonitorOn)
+ {
+ bool monitorRequiredOriginal = PowerManager.MonitorRequired;
+
+ PowerManager.MonitorRequired = monitorRequired;
+ Assert.Equal<bool>(expectedIsMonitorOn, PowerManager.IsMonitorOn);
+
+ PowerManager.MonitorRequired = monitorRequiredOriginal;
+ }
+
+ // TODO: Remove the skip attribute when test is complete.
+ [Theory(Skip = "Not Implemented")]
+ [InlineData(true)]
+ [InlineData(false)]
+ public void IsMonitorOnChangedEventWorks(bool isMonitorOnValueToSet)
+ {
+ bool eventFired = false;
+ PowerManager.IsMonitorOnChanged += new EventHandler(
+ (object sender, EventArgs args) =>
+ {
+ eventFired = true;
+ });
+
+ // TODO: Fire PowerManager.IsMonitorOnChanged event
+
+ int secTimeout = 5; //wait 5 seconds for event to be fired.
+ for (int i = 0; i < secTimeout * 10 && !eventFired; i++)
+ {
+ Thread.Sleep(100);
+ }
+
+ Assert.True(eventFired);
+
+ }
+
+ // TODO: Remove the skip attribute when test is complete.
+ [Theory(Skip = "Not Implemented")]
+ [InlineData(PowerPersonality.Automatic)]
+ [InlineData(PowerPersonality.HighPerformance)]
+ [InlineData(PowerPersonality.PowerSaver)]
+ public void PowerPersonalityChangedEventWorks(PowerPersonality powerPersonalityToSet)
+ {
+ PowerPersonality original = PowerManager.PowerPersonality;
+ bool eventFired = false;
+
+ PowerManager.PowerPersonalityChanged += new System.EventHandler(
+ (object sender, EventArgs e) =>
+ {
+ eventFired = true;
+ }
+ );
+
+ // TODO: Change PowerManager.PowerPersonality, it is readonly.
+
+ int secTimeout = 5; //wait 5 seconds for event to be fired.
+ for (int i = 0; i < secTimeout * 10 && !eventFired; i++)
+ {
+ Thread.Sleep(100);
+ }
+
+ // TODO: PowerManager.PowerPersonality = original;
+
+ Assert.True(eventFired);
+ }
+
+ // TODO: Remove skip attribute when test is complete.
+ [Theory(Skip = "Not Implemented")]
+ [InlineData(PowerSource.AC)]
+ [InlineData(PowerSource.Battery)]
+ [InlineData(PowerSource.Ups)]
+ public void PowerSourceChangedEventWorks(PowerSource powerSourceToSet)
+ {
+ bool eventFired = false;
+ PowerManager.PowerSourceChanged += new EventHandler(
+ (object sender, EventArgs args) =>
+ {
+ eventFired = true;
+ });
+
+ // TODO: Fire Powermanager.PowerSourceChanged event.
+
+ int secTimeout = 5; //wait 5 seconds for event to be fired.
+ for (int i = 0; i < secTimeout * 10 && !eventFired; i++)
+ {
+ Thread.Sleep(100);
+ }
+
+ Assert.True(eventFired);
+ }
+
+ // TODO: Remove skip attribute when test is complete.
+ [Fact(Skip = "Not Implemented")]
+ public void SystemBusyChangedEventWorks()
+ {
+ bool eventFired = false;
+ PowerManager.SystemBusyChanged += new EventHandler(
+ (object sender, EventArgs args) =>
+ {
+ eventFired = true;
+ });
+
+ // TODO: Fire PowerManager.SystemBusyChanged event.
+
+ int secTimeout = 5; //wait 5 seconds for event to be fired.
+ for (int i = 0; i < secTimeout * 10 && !eventFired; i++)
+ {
+ Thread.Sleep(100);
+ }
+
+ Assert.True(eventFired);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropVariantTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropVariantTests.cs
new file mode 100644
index 0000000000..e9142b6309
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropVariantTests.cs
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Xunit;
+using Xunit.Extensions;
+using MS.WindowsAPICodePack.Internal;
+using System.Runtime.InteropServices;
+
+namespace Tests
+{
+ public class PropVariantTests
+ {
+ // BUG: PropVariantTests - Its comment says its intended for internal use only, however is publicly accessible.
+
+ // BUG: Xunit bug, Assert.Equal() documentation says Equal(expected, actual), when the UI
+ // actually treats it as Equal(actual, expected).
+ // This doesn't affect usability, but makes for some interesting error messages.
+
+ [Theory]
+ [PropertyData("FromObjectTestValues")]
+ public void StaticFromObjectTest(object inputObject, VarEnum expectedVarType)
+ {
+ using (PropVariant pv = PropVariant.FromObject(inputObject))
+ {
+
+ Assert.Equal(pv.Value, inputObject);
+ Assert.Equal(pv.VarType, expectedVarType);
+ Assert.False(pv.IsNullOrEmpty);
+ }
+ }
+
+ [Theory]
+ [PropertyData("InputObjectValues")]
+ public void SetEmptyValueTest(object inputObject)
+ {
+ using (PropVariant pv = PropVariant.FromObject(inputObject))
+ {
+
+ Assert.NotNull(pv.Value);
+ Assert.NotEqual(VarEnum.VT_EMPTY, pv.VarType);
+ Assert.False(pv.IsNullOrEmpty);
+
+ pv.Dispose();
+
+ Assert.Null(pv.Value);
+ Assert.Equal(VarEnum.VT_EMPTY, pv.VarType);
+ Assert.True(pv.IsNullOrEmpty);
+ }
+ }
+
+ [Theory]
+ [PropertyData("InputObjectValues")]
+ public void ClearTest(object inputObject)
+ {
+ using (PropVariant pv = PropVariant.FromObject(inputObject))
+ {
+
+ Assert.NotNull(pv.Value);
+ Assert.NotEqual(VarEnum.VT_EMPTY, pv.VarType);
+ Assert.False(pv.IsNullOrEmpty);
+
+ pv.Dispose();
+
+ Assert.Null(pv.Value);
+ Assert.Equal(VarEnum.VT_EMPTY, pv.VarType);
+ Assert.True(pv.IsNullOrEmpty);
+ }
+ }
+
+ [Fact]
+ public void FromObjectNullTest()
+ {
+ using (PropVariant pv = new PropVariant())
+ {
+
+ Assert.True(pv.IsNullOrEmpty);
+ Assert.Equal(VarEnum.VT_EMPTY, pv.VarType);
+ Assert.Null(pv.Value);
+ }
+ }
+
+ [Fact]
+ public void DefaultConstructorTest()
+ {
+ using (PropVariant pv = new PropVariant())
+ {
+
+ Assert.True(pv.IsNullOrEmpty);
+ Assert.Equal(VarEnum.VT_EMPTY, pv.VarType);
+ Assert.Null(pv.Value);
+ }
+ }
+
+ /// <summary>
+ /// Enumeration of values used for testing tht Propvariant.FromObject test.
+ /// </summary>
+ public static IEnumerable<object[]> FromObjectTestValues
+ {
+ get
+ {
+ object[] values = new object[]
+ {
+ new object[]{ "hello", VarEnum.VT_LPWSTR},
+ new object[]{ new string[] { "hello", "world" }, VarEnum.VT_VECTOR | VarEnum.VT_LPWSTR},
+ new object[]{ new bool[] { true, false }, VarEnum.VT_VECTOR | VarEnum.VT_BOOL},
+ new object[]{ new short[] { 1, 2, 3 }, VarEnum.VT_VECTOR | VarEnum.VT_I2},
+ new object[]{ new ushort[] { 1, 2, 3 }, VarEnum.VT_VECTOR | VarEnum.VT_UI2},
+ new object[]{ new int[] { 1, 2, 3 }, VarEnum.VT_VECTOR | VarEnum.VT_I4},
+ new object[]{ new uint[] { 1, 2, 3 }, VarEnum.VT_VECTOR | VarEnum.VT_UI4},
+ new object[]{ new long[] { 1, 2, 3 }, VarEnum.VT_VECTOR | VarEnum.VT_I8},
+ new object[]{ new ulong[] { 1, 2, 3 }, VarEnum.VT_VECTOR | VarEnum.VT_UI8},
+ new object[]{ new double[] { .123, 1.23, 12.3 }, VarEnum.VT_VECTOR | VarEnum.VT_R8},
+ new object[]{ new DateTime[] { new DateTime(2010,1,1), new DateTime(2000,1,1)}, VarEnum.VT_VECTOR | VarEnum.VT_FILETIME},
+ new object[]{ true, VarEnum.VT_BOOL},
+ new object[]{ DateTime.Now, VarEnum.VT_FILETIME},
+ new object[]{ (byte)123, VarEnum.VT_UI1},
+ new object[]{ (sbyte)123, VarEnum.VT_I1},
+ new object[]{ (short)123, VarEnum.VT_I2},
+ new object[]{ (ushort)123, VarEnum.VT_UI2},
+ new object[]{ 123, VarEnum.VT_I4},
+ new object[]{ (uint)123, VarEnum.VT_UI4},
+ new object[]{ (decimal)123, VarEnum.VT_DECIMAL},
+ new object[]{ (long)123, VarEnum.VT_I8},
+ new object[]{ (ulong)123, VarEnum.VT_UI8},
+ new object[]{ 12.3, VarEnum.VT_R8},
+ };
+
+ foreach (object[] value in values)
+ {
+ yield return value;
+ }
+ }
+ }
+
+ // This is for use with the PropertyData attribute, each enumeration returns a set of input values for
+ // the theory calling this from its PropertyData attribute.
+ public static IEnumerable<object[]> InputObjectValues
+ {
+ get
+ {
+ object[] values = new object[]
+ {
+ new object[]{true},
+ //new object[]{new bool[] { true, false }}, // BUG: PropVariant.SetBoolVector does not work.
+ new object[]{(byte)123},
+ new object[]{(decimal)1.23},
+ new object[]{DateTime.Now},
+ //Datetime's must be after 1970
+ new object[]{new DateTime[]{DateTime.Now, DateTime.MaxValue}},
+ new object[]{123},
+ new object[]{new int[]{1,2,3}},
+ new object[]{(long)123},
+ new object[]{new long[]{1,2,3}},
+ new object[]{(sbyte)123},
+ new object[]{(short)123},
+ new object[]{new short[]{1,2,3}},
+ new object[]{"hello"},
+ new object[]{new string[]{"hello", "world"}},
+ new object[]{(uint)123},
+ new object[]{new uint[]{1,2,3}},
+ new object[]{(ulong)123},
+ new object[]{new ulong[]{1,2,3}},
+ new object[]{(ushort)123},
+ new object[]{new ushort[]{1,2,3}}
+ };
+
+
+ foreach (object[] value in values)
+ {
+ yield return value;
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropertyKeyTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropertyKeyTests.cs
new file mode 100644
index 0000000000..846f054112
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Core/PropertySystem/PropertyKeyTests.cs
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Xunit;
+using Xunit.Extensions;
+
+namespace Tests
+{
+ public class PropertyKeyTests
+ {
+ [Theory]
+ [InlineData("00000000-0000-0000-0000-000000000000", 5)]
+ public void ConstructorWithGuid(string formatIdString, int propertyId)
+ {
+ Guid formatId = new Guid(formatIdString);
+ PropertyKey pk = new PropertyKey(formatId, propertyId);
+
+ Assert.Equal<Guid>(formatId, pk.FormatId);
+ Assert.Equal<int>(propertyId, pk.PropertyId);
+ }
+
+ [Theory]
+ [InlineData("00000000-0000-0000-0000-000000000000", 5)]
+ public void ConstructorWithString(string formatId, int propertyId)
+ {
+ PropertyKey pk = new PropertyKey(formatId, propertyId);
+
+ Assert.Equal<Guid>(new Guid(formatId), pk.FormatId);
+ Assert.Equal<int>(propertyId, pk.PropertyId);
+ }
+
+ [Fact]
+ public void ToStringReturnsExpectedString()
+ {
+ Guid guid = new Guid("00000000-1111-2222-3333-000000000000");
+ int property = 1234;
+
+ PropertyKey key = new PropertyKey(guid, property);
+
+ Assert.Equal<string>(
+ "{" + guid.ToString() + "}, " + property.ToString(),
+ key.ToString());
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Makefile.am b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Makefile.am
new file mode 100644
index 0000000000..841093782b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Makefile.am
@@ -0,0 +1,4 @@
+
+SUBDIRS = \
+ Core \
+ Shell
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFolderHelperTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFolderHelperTests.cs
new file mode 100644
index 0000000000..fc48247251
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFolderHelperTests.cs
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Collections.Generic;
+using System.Reflection;
+using Microsoft.WindowsAPICodePack.Shell;
+using Xunit;
+using Xunit.Extensions;
+
+namespace Tests
+{
+ public class KnownFolderHelperTests
+ {
+ [Theory]
+ [PropertyData("KnownFoldersFromReflection")]
+ public void FromPathNameTest(IKnownFolder folder)
+ {
+ IKnownFolder test = KnownFolderHelper.FromPath(folder.Path);
+ Assert.True(folder.FolderId == test.FolderId);
+ }
+
+ [Theory]
+ [PropertyData("KnownFoldersFromReflection")]
+ public void FromParsingNameTest(IKnownFolder folder)
+ {
+ IKnownFolder test = KnownFolderHelper.FromParsingName(folder.ParsingName);
+ Assert.True(folder.FolderId == test.FolderId);
+ }
+
+ [Theory]
+ [PropertyData("KnownFoldersFromReflection")]
+ public void FromCanonicalNameTest(IKnownFolder folder)
+ {
+ IKnownFolder test = KnownFolderHelper.FromCanonicalName(folder.CanonicalName);
+ Assert.True(folder.FolderId == test.FolderId);
+ }
+
+ public static IEnumerable<object[]> KnownFoldersFromReflection
+ {
+ get
+ {
+ PropertyInfo[] staticKnownFolders = typeof(KnownFolders).GetProperties(BindingFlags.Static | BindingFlags.Public);
+ foreach (PropertyInfo info in staticKnownFolders)
+ {
+ if (info.PropertyType == typeof(IKnownFolder))
+ {
+ IKnownFolder folder = null;
+ try
+ {
+ // the exception this can raise is caused by the path of the known folder
+ // not being found.
+ folder = (IKnownFolder)info.GetValue(null, null);
+ }
+ catch
+ {
+ continue;
+ }
+
+ yield return new object[] { folder };
+ }
+ }
+ }
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFoldersTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFoldersTests.cs
new file mode 100644
index 0000000000..d3cd117bdd
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/KnownFolders/KnownFoldersTests.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using Microsoft.WindowsAPICodePack.Shell;
+using Xunit;
+
+namespace Tests
+{
+ public class KnownFoldersTests
+ {
+ [Fact]
+ public void VerifyDefaultFoldersInAllCollection()
+ {
+ ICollection<IKnownFolder> folders = KnownFolders.All;
+
+ PropertyInfo[] properties = typeof(KnownFolders).GetProperties(BindingFlags.Static | BindingFlags.Public);
+ foreach (PropertyInfo info in properties)
+ {
+ if (info.PropertyType == typeof(IKnownFolder))
+ {
+ IKnownFolder kf = null;
+ try
+ {
+ //if an exception is thrown, the known folder does not exist on the computer.
+ kf = (IKnownFolder)info.GetValue(null, null);
+ }
+ catch
+ {
+ continue;
+ }
+
+ Assert.True(folders.Any(x => kf.FolderId == x.FolderId));
+ }
+ }
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/Makefile.am b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/Makefile.am
new file mode 100644
index 0000000000..24e07e9bf5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/Makefile.am
@@ -0,0 +1,5 @@
+include $(top_srcdir)/xbuild.include
+
+if ! ENABLE_WINDOWSPLATFORM
+SKIP=y
+endif
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/PropertySystem/PropertySystemTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/PropertySystem/PropertySystemTests.cs
new file mode 100644
index 0000000000..8bb2862825
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/PropertySystem/PropertySystemTests.cs
@@ -0,0 +1,8 @@
+
+namespace Tests
+{
+ public class PropertySystemTests
+ {
+ // TODO: Add tests.
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellObjectWatcher/ShellObjectWatcherTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellObjectWatcher/ShellObjectWatcherTests.cs
new file mode 100644
index 0000000000..0f803f2298
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellObjectWatcher/ShellObjectWatcherTests.cs
@@ -0,0 +1,165 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.IO;
+using Xunit;
+using Microsoft.WindowsAPICodePack.Shell;
+using System.Threading;
+using System.Diagnostics;
+
+namespace Tests
+{
+ public class ShellObjectWatcherTests
+ {
+ private static readonly int TimeoutMS = 5000;
+
+ [Fact]
+ public void ItemRenamedTest()
+ {
+ TestMethod("ItemRenamed", x => File.Move(x, x + "renamed"), false);
+ }
+
+ [Fact]
+ public void ItemCreatedTest()
+ {
+ TestMethod("ItemCreated", x => File.WriteAllText(Path.Combine(x, "tempFile"), "This file is created"), true);
+ }
+
+ [Fact]
+ public void ItemDeletedTest()
+ {
+ TestMethod("ItemDeleted", x => File.Delete(x), false);
+ }
+
+ [Fact]
+ public void UpdatedTest()
+ {
+ TestMethod("Updated", x => File.WriteAllText(Path.Combine(x, "tempFile"), "contents changed or created"), true);
+ }
+
+ [Fact]
+ public void DirectoryUpdatedTest()
+ {
+ TestMethod("DirectoryUpdated", x => File.WriteAllText(Path.Combine(x, "tempFile"), "Contents updated"), true);
+ }
+
+ [Fact]
+ public void DirectoryRenamedTest()
+ {
+ TestMethod("DirectoryRenamed", x => Directory.Move(x, x + "renamed"), true);
+ }
+
+ [Fact]
+ public void DirectoryCreatedTest()
+ {
+ TestMethod("DirectoryCreated", x => Directory.CreateDirectory(Path.Combine(x, "NewDir")), true);
+ }
+
+ [Fact]
+ public void DirectoryDeletedTest()
+ {
+ TestMethod("DirectoryDeleted", x => Directory.Delete(Directory.CreateDirectory(Path.Combine(x, "NewDir")).FullName), true);
+ }
+
+ [Fact(Skip = "How?")]
+ public void MediaInsertedTest() { }
+ [Fact(Skip = "How?")]
+ public void MediaRemovedTest() { }
+ [Fact(Skip = "How?")]
+ public void DriveAddedTest() { }
+ [Fact(Skip = "How?")]
+ public void DriveRemovedTest() { }
+ [Fact(Skip = "How?")]
+ public void FolderNetworkSharedTest() { }
+ [Fact(Skip = "How?")]
+ public void FolderNetworkUnsharedTest() { }
+ [Fact(Skip = "How?")]
+ public void ServerDisconnectedTest() { }
+
+ [Fact]
+ public void FreeSpaceChangedTest()
+ {
+ TestMethod("FreeSpaceChanged", x =>
+ {
+ byte[] data = new byte[2048];
+ new Random().NextBytes(data);
+ File.WriteAllBytes(Path.GetTempFileName(), data);
+ }, @"C:\");
+ }
+
+ [Fact(Skip = "How?")]
+ public void FileTypeAssociationChanged() { }
+
+ private void TestMethod(string eventName, Action<string> test, bool folder)
+ {
+ string path = folder ? CreateTempFolder() : CreateTempFile();
+ TestMethod(eventName, test, path);
+ }
+ private void TestMethod(string eventName, Action<string> test, string path)
+ {
+ var shellObject = ShellObject.FromParsingName(path);
+
+ using (AutoResetEvent evt = new AutoResetEvent(false))
+ using (ShellObjectWatcher watcher = new ShellObjectWatcher(shellObject, true))
+ {
+ bool success = false;
+
+ Action successEvent = new Action(() =>
+ {
+ success = true;
+ evt.Set();
+ });
+
+ var changedHandler = new EventHandler<ShellObjectChangedEventArgs>((sender, args) => successEvent());
+ var renamedHandler = new EventHandler<ShellObjectRenamedEventArgs>((sender, args) => successEvent());
+
+ //register for event
+ var addMethod = typeof(ShellObjectWatcher)
+ .GetEvents()
+ .FirstOrDefault(x => x.Name.Equals(eventName, StringComparison.InvariantCultureIgnoreCase))
+ .GetAddMethod();
+
+ var paramType = addMethod.GetParameters()[0].ParameterType
+ .GetGenericArguments()[0];
+ if (paramType == typeof(ShellObjectChangedEventArgs))
+ {
+ addMethod.Invoke(watcher, new object[] { changedHandler });
+ }
+ else if (paramType == typeof(ShellObjectRenamedEventArgs))
+ {
+ addMethod.Invoke(watcher, new object[] { renamedHandler });
+ }
+ else
+ {
+ throw new Exception("Unknown handler type.");
+ }
+
+ //start
+ watcher.Start();
+
+ test(path);
+
+ evt.WaitOne(TimeoutMS);
+
+ Assert.True(success);
+ }
+ }
+
+ private static string CreateTempFile()
+ {
+ //string path = string.Format("text{0}.txt", DateTime.Now.Millisecond);
+ //File.WriteAllText(path, string.Empty);
+ //return Path.GetFullPath(path);
+ var test = Path.GetTempFileName();
+ File.AppendAllText(test, "no longer an empty file");
+ return test;
+ }
+
+ private static string CreateTempFolder()
+ {
+ string path = Path.Combine(Path.GetTempPath(), "temp" + DateTime.Now.Millisecond);
+ return Directory.CreateDirectory(path).FullName;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellTests.csproj b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellTests.csproj
new file mode 100644
index 0000000000..f152d2e068
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/ShellTests.csproj
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{69A3898C-DD4B-4DED-B1FE-AB2F9E539E66}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Tests</RootNamespace>
+ <AssemblyName>ShellTests</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="xunit, Version=1.5.0.1479, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Tools\xunit-1.5\xunit.dll</HintPath>
+ </Reference>
+ <Reference Include="xunit.extensions, Version=1.5.0.1479, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\Tools\xunit-1.5\xunit.extensions.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="KnownFolders\KnownFolderHelperTests.cs" />
+ <Compile Include="KnownFolders\KnownFoldersTests.cs" />
+ <Compile Include="PropertySystem\PropertySystemTests.cs" />
+ <Compile Include="ShellObjectWatcher\ShellObjectWatcherTests.cs" />
+ <Compile Include="StockIcons\StockIconsTests.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\WindowsAPICodePack\Core\Core.csproj">
+ <Project>{2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}</Project>
+ <Name>Core</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\WindowsAPICodePack\Shell\Shell.csproj">
+ <Project>{AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}</Project>
+ <Name>Shell</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/StockIcons/StockIconsTests.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/StockIcons/StockIconsTests.cs
new file mode 100644
index 0000000000..b5bd51d9bc
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack.Tests/Shell/StockIcons/StockIconsTests.cs
@@ -0,0 +1,65 @@
+using System;
+using System.Linq;
+using System.Reflection;
+using Microsoft.WindowsAPICodePack.Shell;
+using Xunit;
+
+namespace Tests
+{
+ public class StockIconsTests
+ {
+ [Fact]
+ public void StockIconsNotNull()
+ {
+ PropertyInfo[] infos = typeof(StockIcons).GetType().GetProperties(BindingFlags.Public);
+
+ // BUG: This (StockIcons) doesn't follow the same pattern as most of the other factory style patterned classes?
+ StockIcons icons = new StockIcons();
+
+ foreach (PropertyInfo info in infos)
+ {
+ if (info.PropertyType == typeof(StockIcon))
+ {
+ Assert.DoesNotThrow(new Assert.ThrowsDelegate(() =>
+ {
+ StockIcon test = (StockIcon)info.GetValue(icons, null);
+ }));
+ }
+ }
+ }
+
+ [Fact]
+ public void StockIconsContainedInAllCollection()
+ {
+ // TODO: Redesign test, this is a pretty redundant test with the way the class is designed.
+
+ StockIcons icons = new StockIcons();
+
+ PropertyInfo[] infos = typeof(StockIcons).GetType().GetProperties(BindingFlags.Public);
+ foreach (var info in infos)
+ {
+ if (info.PropertyType != typeof(StockIcon)) continue;
+
+ StockIcon icon = null;
+ try
+ {
+ //this will throw an exception if the icon does not exist on the system
+ icon = (StockIcon)info.GetValue(icons, null);
+ }
+ catch { continue; }
+
+ Assert.Contains<StockIcon>(icon, icons.AllStockIcons);
+ }
+ }
+
+ [Fact]
+ public void VerifyAllStockIconsArePropertized()
+ {
+ PropertyInfo[] infos = typeof(StockIcons).GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
+
+ int count = infos.Count(x => x.PropertyType == typeof(StockIcon));
+
+ Assert.Equal(count, Enum.GetValues(typeof(StockIconIdentifier)).Length);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRecoveryException.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRecoveryException.cs
new file mode 100644
index 0000000000..14eb5bf166
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRecoveryException.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// This exception is thrown when there are problems with registering, unregistering or updating
+ /// applications using Application Restart Recovery.
+ /// </summary>
+ [Serializable]
+ public class ApplicationRecoveryException : ExternalException
+ {
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public ApplicationRecoveryException() { }
+
+ /// <summary>
+ /// Initializes an exception with a custom message.
+ /// </summary>
+ /// <param name="message">A custom message for the exception.</param>
+ public ApplicationRecoveryException(string message) : base(message) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and inner exception.
+ /// </summary>
+ /// <param name="message">A custom message for the exception.</param>
+ /// <param name="innerException">Inner exception.</param>
+ public ApplicationRecoveryException(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ // Empty
+ }
+
+ /// <summary>
+ /// Initializes an exception with custom message and error code.
+ /// </summary>
+ /// <param name="message">A custom message for the exception.</param>
+ /// <param name="errorCode">An error code (hresult) from which to generate the exception.</param>
+ public ApplicationRecoveryException(string message, int errorCode) : base(message, errorCode) { }
+
+ /// <summary>
+ /// Initializes an exception from serialization info and a context.
+ /// </summary>
+ /// <param name="info">Serialization info from which to create exception.</param>
+ /// <param name="context">Streaming context from which to create exception.</param>
+ protected ApplicationRecoveryException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context)
+ : base(info, context)
+ {
+ // Empty
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRestartRecoveryManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRestartRecoveryManager.cs
new file mode 100644
index 0000000000..b0d9e28c27
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRestartRecoveryManager.cs
@@ -0,0 +1,163 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Provides access to the Application Restart and Recovery
+ /// features available in Windows Vista or higher. Application Restart and Recovery lets an
+ /// application do some recovery work to save data before the process exits.
+ /// </summary>
+ public static class ApplicationRestartRecoveryManager
+ {
+ /// <summary>
+ /// Registers an application for recovery by Application Restart and Recovery.
+ /// </summary>
+ /// <param name="settings">An object that specifies
+ /// the callback method, an optional parameter to pass to the callback
+ /// method and a time interval.</param>
+ /// <exception cref="System.ArgumentException">
+ /// The registration failed due to an invalid parameter.
+ /// </exception>
+ /// <exception cref="System.ComponentModel.Win32Exception">
+ /// The registration failed.</exception>
+ /// <remarks>The time interval is the period of time within
+ /// which the recovery callback method
+ /// calls the <see cref="ApplicationRecoveryInProgress"/> method to indicate
+ /// that it is still performing recovery work.</remarks>
+ public static void RegisterForApplicationRecovery(RecoverySettings settings)
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ if (settings == null) { throw new ArgumentNullException("settings"); }
+
+ GCHandle handle = GCHandle.Alloc(settings.RecoveryData);
+
+ HResult hr = AppRestartRecoveryNativeMethods.RegisterApplicationRecoveryCallback(
+ AppRestartRecoveryNativeMethods.InternalCallback, (IntPtr)handle, settings.PingInterval, (uint)0);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ if (hr == HResult.InvalidArguments)
+ {
+ throw new ArgumentException(LocalizedMessages.ApplicationRecoveryBadParameters, "settings");
+ }
+
+ throw new ApplicationRecoveryException(LocalizedMessages.ApplicationRecoveryFailedToRegister);
+ }
+ }
+
+ /// <summary>
+ /// Removes an application's recovery registration.
+ /// </summary>
+ /// <exception cref="Microsoft.WindowsAPICodePack.ApplicationServices.ApplicationRecoveryException">
+ /// The attempt to unregister for recovery failed.</exception>
+ public static void UnregisterApplicationRecovery()
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ HResult hr = AppRestartRecoveryNativeMethods.UnregisterApplicationRecoveryCallback();
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ApplicationRecoveryException(LocalizedMessages.ApplicationRecoveryFailedToUnregister);
+ }
+ }
+
+ /// <summary>
+ /// Removes an application's restart registration.
+ /// </summary>
+ /// <exception cref="Microsoft.WindowsAPICodePack.ApplicationServices.ApplicationRecoveryException">
+ /// The attempt to unregister for restart failed.</exception>
+ public static void UnregisterApplicationRestart()
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ HResult hr = AppRestartRecoveryNativeMethods.UnregisterApplicationRestart();
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ApplicationRecoveryException(LocalizedMessages.ApplicationRecoveryFailedToUnregisterForRestart);
+ }
+ }
+
+ /// <summary>
+ /// Called by an application's <see cref="RecoveryCallback"/> method
+ /// to indicate that it is still performing recovery work.
+ /// </summary>
+ /// <returns>A <see cref="System.Boolean"/> value indicating whether the user
+ /// canceled the recovery.</returns>
+ /// <exception cref="Microsoft.WindowsAPICodePack.ApplicationServices.ApplicationRecoveryException">
+ /// This method must be called from a registered callback method.</exception>
+ public static bool ApplicationRecoveryInProgress()
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ bool canceled = false;
+ HResult hr = AppRestartRecoveryNativeMethods.ApplicationRecoveryInProgress(out canceled);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new InvalidOperationException(LocalizedMessages.ApplicationRecoveryMustBeCalledFromCallback);
+ }
+
+ return canceled;
+ }
+
+ /// <summary>
+ /// Called by an application's <see cref="RecoveryCallback"/> method to
+ /// indicate that the recovery work is complete.
+ /// </summary>
+ /// <remarks>
+ /// This should
+ /// be the last call made by the <see cref="RecoveryCallback"/> method because
+ /// Windows Error Reporting will terminate the application
+ /// after this method is invoked.
+ /// </remarks>
+ /// <param name="success"><b>true</b> to indicate the the program was able to complete its recovery
+ /// work before terminating; otherwise <b>false</b>.</param>
+ public static void ApplicationRecoveryFinished(bool success)
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ AppRestartRecoveryNativeMethods.ApplicationRecoveryFinished(success);
+ }
+
+ /// <summary>
+ /// Registers an application for automatic restart if
+ /// the application
+ /// is terminated by Windows Error Reporting.
+ /// </summary>
+ /// <param name="settings">An object that specifies
+ /// the command line arguments used to restart the
+ /// application, and
+ /// the conditions under which the application should not be
+ /// restarted.</param>
+ /// <exception cref="System.ArgumentException">Registration failed due to an invalid parameter.</exception>
+ /// <exception cref="System.InvalidOperationException">The attempt to register failed.</exception>
+ /// <remarks>A registered application will not be restarted if it executed for less than 60 seconds before terminating.</remarks>
+ public static void RegisterForApplicationRestart(RestartSettings settings)
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+ if (settings == null) { throw new ArgumentNullException("settings"); }
+
+ HResult hr = AppRestartRecoveryNativeMethods.RegisterApplicationRestart(settings.Command, settings.Restrictions);
+
+ if (hr == HResult.Fail)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ApplicationRecoveryFailedToRegisterForRestart);
+ }
+ else if (hr == HResult.InvalidArguments)
+ {
+ throw new ArgumentException(LocalizedMessages.ApplicationRecoverFailedToRegisterForRestartBadParameters);
+ }
+ }
+
+ }
+}
+
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoveryData.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoveryData.cs
new file mode 100644
index 0000000000..0989c0dcc5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoveryData.cs
@@ -0,0 +1,54 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// The <see cref="System.Delegate"/> that represents the callback method invoked
+ /// by the system when an application has registered for
+ /// application recovery.
+ /// </summary>
+ /// <param name="state">An application-defined state object that is passed to the callback method.</param>
+ /// <remarks>The callback method will be invoked
+ /// prior to the application being terminated by Windows Error Reporting (WER). To keep WER from terminating the application before
+ /// the callback method completes, the callback method must
+ /// periodically call the <see cref="ApplicationRestartRecoveryManager.ApplicationRecoveryInProgress"/> method. </remarks>
+ /// <seealso cref="ApplicationRestartRecoveryManager.RegisterForApplicationRecovery(RecoverySettings)"/>
+ public delegate int RecoveryCallback(object state);
+
+ /// <summary>
+ /// Defines a class that contains a callback delegate and properties of the application
+ /// as defined by the user.
+ /// </summary>
+ public class RecoveryData
+ {
+ /// <summary>
+ /// Initializes a recovery data wrapper with a callback method and the current
+ /// state of the application.
+ /// </summary>
+ /// <param name="callback">The callback delegate.</param>
+ /// <param name="state">The current state of the application.</param>
+ public RecoveryData(RecoveryCallback callback, object state)
+ {
+ Callback = callback;
+ State = state;
+ }
+
+ /// <summary>
+ /// Gets or sets a value that determines the recovery callback function.
+ /// </summary>
+ public RecoveryCallback Callback { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value that determines the application state.
+ /// </summary>
+ public object State { get; set; }
+
+ /// <summary>
+ /// Invokes the recovery callback function.
+ /// </summary>
+ public void Invoke()
+ {
+ if (Callback != null) { Callback(State); }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoverySettings.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoverySettings.cs
new file mode 100644
index 0000000000..95a3f2725e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RecoverySettings.cs
@@ -0,0 +1,74 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Defines methods and properties for recovery settings, and specifies options for an application that attempts
+ /// to perform final actions after a fatal event, such as an
+ /// unhandled exception.
+ /// </summary>
+ /// <remarks>This class is used to register for application recovery.
+ /// See the <see cref="ApplicationRestartRecoveryManager"/> class.
+ /// </remarks>
+ public class RecoverySettings
+ {
+ private RecoveryData recoveryData;
+ private uint pingInterval;
+
+ /// <summary>
+ /// Initializes a new instance of the <b>RecoverySettings</b> class.
+ /// </summary>
+ /// <param name="data">A recovery data object that contains the callback method (invoked by the system
+ /// before Windows Error Reporting terminates the application) and an optional state object.</param>
+ /// <param name="interval">The time interval within which the
+ /// callback method must invoke <see cref="ApplicationRestartRecoveryManager.ApplicationRecoveryInProgress"/> to
+ /// prevent WER from terminating the application.</param>
+ /// <seealso cref="ApplicationRestartRecoveryManager"/>
+ public RecoverySettings(RecoveryData data, uint interval)
+ {
+ this.recoveryData = data;
+ this.pingInterval = interval;
+ }
+
+ /// <summary>
+ /// Gets the recovery data object that contains the callback method and an optional
+ /// parameter (usually the state of the application) to be passed to the
+ /// callback method.
+ /// </summary>
+ /// <value>A <see cref="RecoveryData"/> object.</value>
+ public RecoveryData RecoveryData
+ {
+ get { return recoveryData; }
+ }
+
+ /// <summary>
+ /// Gets the time interval for notifying Windows Error Reporting.
+ /// The <see cref="RecoveryCallback"/> method must invoke <see cref="ApplicationRestartRecoveryManager.ApplicationRecoveryInProgress"/>
+ /// within this interval to prevent WER from terminating the application.
+ /// </summary>
+ /// <remarks>
+ /// The recovery ping interval is specified in milliseconds.
+ /// By default, the interval is 5 seconds.
+ /// If you specify zero, the default interval is used.
+ /// </remarks>
+ public uint PingInterval { get { return pingInterval; } }
+
+ /// <summary>
+ /// Returns a string representation of the current state
+ /// of this object.
+ /// </summary>
+ /// <returns>A <see cref="System.String"/> object.</returns>
+ public override string ToString()
+ {
+ return string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.RecoverySettingsFormatString,
+ this.recoveryData.Callback.Method.ToString(),
+ this.recoveryData.State.ToString(),
+ this.PingInterval);
+ }
+ }
+}
+
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartRestrictions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartRestrictions.cs
new file mode 100644
index 0000000000..7ea35b13a2
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartRestrictions.cs
@@ -0,0 +1,38 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Specifies the conditions when Windows Error Reporting
+ /// should not restart an application that has registered
+ /// for automatic restart.
+ /// </summary>
+ [Flags]
+ public enum RestartRestrictions
+ {
+ /// <summary>
+ /// Always restart the application.
+ /// </summary>
+ None = 0,
+ /// <summary>
+ /// Do not restart when the application has crashed.
+ /// </summary>
+ NotOnCrash = 1,
+ /// <summary>
+ /// Do not restart when the application is hung.
+ /// </summary>
+ NotOnHang = 2,
+ /// <summary>
+ /// Do not restart when the application is terminated
+ /// due to a system update.
+ /// </summary>
+ NotOnPatch = 4,
+ /// <summary>
+ /// Do not restart when the application is terminated
+ /// because of a system reboot.
+ /// </summary>
+ NotOnReboot = 8
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartSettings.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartSettings.cs
new file mode 100644
index 0000000000..2162806c5d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/AppRestartRecovery/RestartSettings.cs
@@ -0,0 +1,70 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Specifies the options for an application to be automatically
+ /// restarted by Windows Error Reporting.
+ /// </summary>
+ /// <remarks>Regardless of these
+ /// settings, the application
+ /// will not be restarted if it executed for less than 60 seconds before
+ /// terminating.</remarks>
+ public class RestartSettings
+ {
+ private string command;
+ private RestartRestrictions restrictions;
+
+ /// <summary>
+ /// Creates a new instance of the RestartSettings class.
+ /// </summary>
+ /// <param name="command">The command line arguments
+ /// used to restart the application.</param>
+ /// <param name="restrictions">A bitwise combination of the RestartRestrictions
+ /// values that specify
+ /// when the application should not be restarted.
+ /// </param>
+ public RestartSettings(string command, RestartRestrictions restrictions)
+ {
+ this.command = command;
+ this.restrictions = restrictions;
+ }
+
+ /// <summary>
+ /// Gets the command line arguments used to restart the application.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Command
+ {
+ get { return command; }
+ }
+
+ /// <summary>
+ /// Gets the set of conditions when the application
+ /// should not be restarted.
+ /// </summary>
+ /// <value>A set of <see cref="RestartRestrictions"/> values.</value>
+ public RestartRestrictions Restrictions
+ {
+ get { return restrictions; }
+ }
+
+ /// <summary>
+ /// Returns a string representation of the current state
+ /// of this object.
+ /// </summary>
+ /// <returns>A <see cref="System.String"/> that displays
+ /// the command line arguments
+ /// and restrictions for restarting the application.</returns>
+ public override string ToString()
+ {
+ return string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.RestartSettingsFormatString,
+ command, restrictions.ToString());
+ }
+ }
+}
+
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj
new file mode 100644
index 0000000000..59e67c45ea
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Core.csproj
@@ -0,0 +1,217 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Microsoft.WindowsAPICodePack</RootNamespace>
+ <AssemblyName>Microsoft.WindowsAPICodePack</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Debug\Microsoft.WindowsAPICodePack.XML</DocumentationFile>
+ <CodeAnalysisRules>
+ </CodeAnalysisRules>
+ <RunCodeAnalysis>false</RunCodeAnalysis>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>CODE_ANALYSIS;DEBUG;TRACE</DefineConstants>
+ <DocumentationFile>bin\Debug\Microsoft.WindowsAPICodePack.XML</DocumentationFile>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <CodeAnalysisLogFile>bin\Debug\Microsoft.WindowsAPICodePack.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
+ <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
+ <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSetDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
+ <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
+ <CodeAnalysisRuleDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
+ <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
+ <RunCodeAnalysis>false</RunCodeAnalysis>
+ <WarningLevel>4</WarningLevel>
+ <Optimize>false</Optimize>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <CodeAnalysisLogFile>bin\Release\Microsoft.WindowsAPICodePack.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
+ <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
+ <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSetDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
+ <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
+ <CodeAnalysisRuleDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
+ <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AppRestartRecovery\ApplicationRestartRecoveryManager.cs" />
+ <Compile Include="AppRestartRecovery\ApplicationRecoveryException.cs" />
+ <Compile Include="AppRestartRecovery\RecoveryData.cs" />
+ <Compile Include="AppRestartRecovery\RecoverySettings.cs" />
+ <Compile Include="AppRestartRecovery\RestartRestrictions.cs" />
+ <Compile Include="AppRestartRecovery\RestartSettings.cs" />
+ <Compile Include="Interop\WindowMessage.cs" />
+ <Compile Include="PowerManagement\PowerManagerException.cs" />
+ <Compile Include="Dialogs\Common\DialogControl.cs" />
+ <Compile Include="Dialogs\Common\DialogControlCollection.cs" />
+ <Compile Include="Dialogs\Common\DialogsDefaults.cs" />
+ <Compile Include="Dialogs\Common\IDialogControlHost.cs" />
+ <Compile Include="GlobalSuppressions.cs" />
+ <Compile Include="Interop\AppRestartRecovery\AppRestartRecoveryNativeMethods.cs" />
+ <Compile Include="Interop\CoreErrorHelper.cs" />
+ <Compile Include="Interop\CoreHelpers.cs" />
+ <Compile Include="Interop\CoreNativeMethods.cs" />
+ <Compile Include="Interop\Dialogs\DialogShowState.cs" />
+ <Compile Include="Interop\NetworkList\INetwork.cs" />
+ <Compile Include="Interop\NetworkList\INetworkConnection.cs" />
+ <Compile Include="Interop\NetworkList\INetworkListManager.cs" />
+ <Compile Include="Interop\NetworkList\NetworkListManagerClass.cs" />
+ <Compile Include="Interop\PowerManagement\PowerManagementNativeMethods.cs" />
+ <Compile Include="Interop\TaskDialogs\NativeTaskDialog.cs" />
+ <Compile Include="Interop\TaskDialogs\NativeTaskDialogSettings.cs" />
+ <Compile Include="Interop\TaskDialogs\TaskDialogNativeMethods.cs" />
+ <Compile Include="NetworkList\Network.cs" />
+ <Compile Include="NetworkList\NetworkCollection.cs" />
+ <Compile Include="NetworkList\NetworkConnection.cs" />
+ <Compile Include="NetworkList\NetworkConnectionCollection.cs" />
+ <Compile Include="NetworkList\NetworkListEnums.cs" />
+ <Compile Include="NetworkList\NetworkListManager.cs" />
+ <Compile Include="PowerManagement\BatteryState.cs" />
+ <Compile Include="PowerManagement\EventManager.cs" />
+ <Compile Include="PowerManagement\ExecutionState.cs" />
+ <Compile Include="PowerManagement\MessageManager.cs">
+ </Compile>
+ <Compile Include="PowerManagement\PersonalityGuids.cs" />
+ <Compile Include="PowerManagement\Power.cs" />
+ <Compile Include="PowerManagement\PowerManager.cs" />
+ <Compile Include="PowerManagement\PowerPersonality.cs" />
+ <Compile Include="PowerManagement\PowerSource.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="PropertySystem\PropertyKey.cs" />
+ <Compile Include="PropertySystem\PropVariant.cs" />
+ <Compile Include="PropertySystem\PropVariantNativeMethods.cs" />
+ <Compile Include="Resources\LocalizedMessages.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>LocalizedMessages.resx</DependentUpon>
+ </Compile>
+ <Compile Include="SafeHandles\ZeroInvalidHandle.cs" />
+ <Compile Include="SafeHandles\SafeIconHandle.cs" />
+ <Compile Include="SafeHandles\SafeRegionHandle.cs" />
+ <Compile Include="SafeHandles\SafeWindowHandle.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialog.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogBar.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogButton.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogButtonBase.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogClosingEventArgs.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogCommandLink.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogControl.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogDefaults.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogExpandedInfoMode.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogHyperlinkClickedEventArgs.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogProgressBar.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogProgressBarState.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogRadioButton.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogResult.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogStandardButton.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogStandardIcon.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogStartupLocation.cs" />
+ <Compile Include="Dialogs\TaskDialogs\TaskDialogTickEventArgs.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Resources\LocalizedMessages.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>LocalizedMessages.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup>
+ <CodeAnalysisDictionary Include="CustomDictionary.xml">
+ <SubType>Designer</SubType>
+ </CodeAnalysisDictionary>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/CustomDictionary.xml b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/CustomDictionary.xml
new file mode 100644
index 0000000000..5f690102c1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/CustomDictionary.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Dictionary>
+ <Words>
+ <Recognized>
+ <Word>IPv4</Word>
+ <Word>IPv6</Word>
+ <Word>comctl</Word>
+ <Word>Wh</Word>
+ </Recognized>
+ </Words>
+ <Acronyms>
+ <CasingExceptions>
+ <Acronym>API</Acronym>
+ </CasingExceptions>
+ </Acronyms>
+</Dictionary> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControl.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControl.cs
new file mode 100644
index 0000000000..be0049f75d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControl.cs
@@ -0,0 +1,147 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Abstract base class for all dialog controls
+ /// </summary>
+ public abstract class DialogControl
+ {
+ private static int nextId = DialogsDefaults.MinimumDialogControlId;
+
+ /// <summary>
+ /// Creates a new instance of a dialog control
+ /// </summary>
+ protected DialogControl()
+ {
+ Id = nextId;
+
+ // Support wrapping of control IDs in case you create a lot of custom controls
+ if (nextId == Int32.MaxValue) { nextId = DialogsDefaults.MinimumDialogControlId; }
+ else { nextId++; }
+ }
+
+ /// <summary>
+ /// Creates a new instance of a dialog control with the specified name.
+ /// </summary>
+ /// <param name="name">The name for this dialog.</param>
+ protected DialogControl(string name)
+ : this()
+ {
+ Name = name;
+ }
+
+ /// <summary>
+ /// The native dialog that is hosting this control. This property is null is
+ /// there is not associated dialog
+ /// </summary>
+ public IDialogControlHost HostingDialog { get; set; }
+
+ private string name;
+ /// <summary>
+ /// Gets the name for this control.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> value.</value>
+ public string Name
+ {
+ get { return name; }
+ set
+ {
+ // Names for controls need to be quite stable,
+ // as we are going to maintain a mapping between
+ // the names and the underlying Win32/COM control IDs.
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentException(LocalizedMessages.DialogControlNameCannotBeEmpty);
+ }
+
+ if (!string.IsNullOrEmpty(name))
+ {
+ throw new InvalidOperationException(LocalizedMessages.DialogControlsCannotBeRenamed);
+ }
+
+ // Note that we don't notify the hosting dialog of
+ // the change, as the initial set of name is (must be)
+ // always legal, and renames are always illegal.
+ this.name = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets the identifier for this control.
+ /// </summary>
+ /// <value>An <see cref="System.Int32"/> value.</value>
+ public int Id { get; private set; }
+
+ ///<summary>
+ /// Calls the hosting dialog, if it exists, to check whether the
+ /// property can be set in the dialog's current state.
+ /// The host should throw an exception if the change is not supported.
+ /// Note that if the dialog isn't set yet,
+ /// there are no restrictions on setting the property.
+ /// </summary>
+ /// <param name="propName">The name of the property that is changing</param>
+ protected void CheckPropertyChangeAllowed(string propName)
+ {
+ Debug.Assert(!string.IsNullOrEmpty(propName), "Property to change was not specified");
+
+ if (HostingDialog != null)
+ {
+ // This will throw if the property change is not allowed.
+ HostingDialog.IsControlPropertyChangeAllowed(propName, this);
+ }
+ }
+
+ ///<summary>
+ /// Calls the hosting dialog, if it exists, to
+ /// to indicate that a property has changed, and that
+ /// the dialog should do whatever is necessary
+ /// to propagate the change to the native control.
+ /// Note that if the dialog isn't set yet,
+ /// there are no restrictions on setting the property.
+ /// </summary>
+ /// <param name="propName">The name of the property that is changing.</param>
+ protected void ApplyPropertyChange(string propName)
+ {
+ Debug.Assert(!string.IsNullOrEmpty(propName), "Property changed was not specified");
+
+ if (HostingDialog != null)
+ {
+ HostingDialog.ApplyControlPropertyChange(propName, this);
+ }
+ }
+
+ /// <summary>
+ /// Compares two objects to determine whether they are equal
+ /// </summary>
+ /// <param name="obj">The object to compare against.</param>
+ /// <returns>A <see cref="System.Boolean"/> value.</returns>
+ public override bool Equals(object obj)
+ {
+ DialogControl control = obj as DialogControl;
+
+ if (control != null)
+ return (this.Id == control.Id);
+
+ return false;
+ }
+
+ /// <summary>
+ /// Serves as a hash function for a particular type.
+ /// </summary>
+ /// <returns>An <see cref="System.Int32"/> hash code for this control.</returns>
+ public override int GetHashCode()
+ {
+ if (Name == null)
+ {
+ return this.ToString().GetHashCode();
+ }
+
+ return Name.GetHashCode();
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControlCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControlCollection.cs
new file mode 100644
index 0000000000..7323d665f5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogControlCollection.cs
@@ -0,0 +1,120 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.ObjectModel;
+using System.Linq;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Strongly typed collection for dialog controls.
+ /// </summary>
+ /// <typeparam name="T">DialogControl</typeparam>
+ public sealed class DialogControlCollection<T> : Collection<T> where T : DialogControl
+ {
+ private IDialogControlHost hostingDialog;
+
+ internal DialogControlCollection(IDialogControlHost host)
+ {
+ hostingDialog = host;
+ }
+
+ /// <summary>
+ /// Inserts an dialog control at the specified index.
+ /// </summary>
+ /// <param name="index">The location to insert the control.</param>
+ /// <param name="control">The item to insert.</param>
+ /// <permission cref="System.InvalidOperationException">A control with
+ /// the same name already exists in this collection -or-
+ /// the control is being hosted by another dialog -or- the associated dialog is
+ /// showing and cannot be modified.</permission>
+ protected override void InsertItem(int index, T control)
+ {
+ // Check for duplicates, lack of host,
+ // and during-show adds.
+ if (Items.Contains(control))
+ {
+ throw new InvalidOperationException(LocalizedMessages.DialogCollectionCannotHaveDuplicateNames);
+ }
+ if (control.HostingDialog != null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.DialogCollectionControlAlreadyHosted);
+ }
+ if (!hostingDialog.IsCollectionChangeAllowed())
+ {
+ throw new InvalidOperationException(LocalizedMessages.DialogCollectionModifyShowingDialog);
+ }
+
+ // Reparent, add control.
+ control.HostingDialog = hostingDialog;
+ base.InsertItem(index, control);
+
+ // Notify that we've added a control.
+ hostingDialog.ApplyCollectionChanged();
+ }
+
+ /// <summary>
+ /// Removes the control at the specified index.
+ /// </summary>
+ /// <param name="index">The location of the control to remove.</param>
+ /// <permission cref="System.InvalidOperationException">
+ /// The associated dialog is
+ /// showing and cannot be modified.</permission>
+ protected override void RemoveItem(int index)
+ {
+ // Notify that we're about to remove a control.
+ // Throw if dialog showing.
+ if (!hostingDialog.IsCollectionChangeAllowed())
+ {
+ throw new InvalidOperationException(LocalizedMessages.DialogCollectionModifyShowingDialog);
+ }
+
+ DialogControl control = (DialogControl)Items[index];
+
+ // Unparent and remove.
+ control.HostingDialog = null;
+ base.RemoveItem(index);
+
+ hostingDialog.ApplyCollectionChanged();
+ }
+
+ /// <summary>
+ /// Defines the indexer that supports accessing controls by name.
+ /// </summary>
+ /// <remarks>
+ /// <para>Control names are case sensitive.</para>
+ /// <para>This indexer is useful when the dialog is created in XAML
+ /// rather than constructed in code.</para></remarks>
+ ///<exception cref="System.ArgumentException">
+ /// The name cannot be null or a zero-length string.</exception>
+ /// <remarks>If there is more than one control with the same name, only the <B>first control</B> will be returned.</remarks>
+ public T this[string name]
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(name))
+ {
+ throw new ArgumentException(LocalizedMessages.DialogCollectionControlNameNull, "name");
+ }
+
+ return Items.FirstOrDefault(x => x.Name == name);
+ }
+ }
+
+ /// <summary>
+ /// Searches for the control who's id matches the value
+ /// passed in the <paramref name="id"/> parameter.
+ /// </summary>
+ ///
+ /// <param name="id">An integer containing the identifier of the
+ /// control being searched for.</param>
+ ///
+ /// <returns>A DialogControl who's id matches the value of the
+ /// <paramref name="id"/> parameter.</returns>
+ internal DialogControl GetControlbyId(int id)
+ {
+ return Items.FirstOrDefault(x => x.Id == id);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogsDefaults.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogsDefaults.cs
new file mode 100644
index 0000000000..999f1cbe46
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/DialogsDefaults.cs
@@ -0,0 +1,23 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using Microsoft.WindowsAPICodePack.Resources;
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ internal static class DialogsDefaults
+ {
+ internal static string Caption { get { return LocalizedMessages.DialogDefaultCaption; } }
+ internal static string MainInstruction { get { return LocalizedMessages.DialogDefaultMainInstruction; } }
+ internal static string Content { get { return LocalizedMessages.DialogDefaultContent; } }
+
+ internal const int ProgressBarStartingValue = 0;
+ internal const int ProgressBarMinimumValue = 0;
+ internal const int ProgressBarMaximumValue = 100;
+
+ internal const int IdealWidth = 0;
+
+ // For generating control ID numbers that won't
+ // collide with the standard button return IDs.
+ internal const int MinimumDialogControlId =
+ (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Close + 1;
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/IDialogControlHost.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/IDialogControlHost.cs
new file mode 100644
index 0000000000..9516952453
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/Common/IDialogControlHost.cs
@@ -0,0 +1,43 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Indicates that the implementing class is a dialog that can host
+ /// customizable dialog controls (subclasses of DialogControl).
+ /// </summary>
+ public interface IDialogControlHost
+ {
+ /// <summary>
+ /// Returns if changes to the collection are allowed.
+ /// </summary>
+ /// <returns>true if collection change is allowed.</returns>
+ bool IsCollectionChangeAllowed();
+
+ /// <summary>
+ /// Applies changes to the collection.
+ /// </summary>
+ void ApplyCollectionChanged();
+
+ /// <summary>
+ /// Handle notifications of individual child
+ /// pseudo-controls' properties changing..
+ /// Prefilter should throw if the property
+ /// cannot be set in the dialog's current state.
+ /// PostProcess should pass on changes to native control,
+ /// if appropriate.
+ /// </summary>
+ /// <param name="propertyName">The name of the property.</param>
+ /// <param name="control">The control propertyName applies to.</param>
+ /// <returns>true if the property change is allowed.</returns>
+ bool IsControlPropertyChangeAllowed(string propertyName, DialogControl control);
+
+ /// <summary>
+ /// Called when a control currently in the collection
+ /// has a property changed.
+ /// </summary>
+ /// <param name="propertyName">The name of the property changed.</param>
+ /// <param name="control">The control whose property has changed.</param>
+ void ApplyControlPropertyChange(string propertyName, DialogControl control);
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialog.cs
new file mode 100644
index 0000000000..962d1a3c66
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialog.cs
@@ -0,0 +1,1253 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using Microsoft.WindowsAPICodePack.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Encapsulates a new-to-Vista Win32 TaskDialog window
+ /// - a powerful successor to the MessageBox available
+ /// in previous versions of Windows.
+ /// </summary>
+ public sealed class TaskDialog : IDialogControlHost, IDisposable
+ {
+ // Global instance of TaskDialog, to be used by static Show() method.
+ // As most parameters of a dialog created via static Show() will have
+ // identical parameters, we'll create one TaskDialog and treat it
+ // as a NativeTaskDialog generator for all static Show() calls.
+ private static TaskDialog staticDialog;
+
+ // Main current native dialog.
+ private NativeTaskDialog nativeDialog;
+
+ private List<TaskDialogButtonBase> buttons = new List<TaskDialogButtonBase>();
+ private List<TaskDialogButtonBase> radioButtons = new List<TaskDialogButtonBase>();
+ private List<TaskDialogButtonBase> commandLinks = new List<TaskDialogButtonBase>();
+ private IntPtr ownerWindow;
+
+ #region Public Properties
+ /// <summary>
+ /// Occurs when a progress bar changes.
+ /// </summary>
+ public event EventHandler<TaskDialogTickEventArgs> Tick;
+
+ /// <summary>
+ /// Occurs when a user clicks a hyperlink.
+ /// </summary>
+ public event EventHandler<TaskDialogHyperlinkClickedEventArgs> HyperlinkClick;
+
+ /// <summary>
+ /// Occurs when the TaskDialog is closing.
+ /// </summary>
+ public event EventHandler<TaskDialogClosingEventArgs> Closing;
+
+ /// <summary>
+ /// Occurs when a user clicks on Help.
+ /// </summary>
+ public event EventHandler HelpInvoked;
+
+ /// <summary>
+ /// Occurs when the TaskDialog is opened.
+ /// </summary>
+ public event EventHandler Opened;
+
+ /// <summary>
+ /// Gets or sets a value that contains the owner window's handle.
+ /// </summary>
+ public IntPtr OwnerWindowHandle
+ {
+ get { return ownerWindow; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.OwnerCannotBeChanged);
+ ownerWindow = value;
+ }
+ }
+
+ // Main content (maps to MessageBox's "message").
+ private string text;
+ /// <summary>
+ /// Gets or sets a value that contains the message text.
+ /// </summary>
+ public string Text
+ {
+ get { return text; }
+ set
+ {
+ // Set local value, then update native dialog if showing.
+ text = value;
+ if (NativeDialogShowing) { nativeDialog.UpdateText(text); }
+ }
+ }
+
+ private string instructionText;
+ /// <summary>
+ /// Gets or sets a value that contains the instruction text.
+ /// </summary>
+ public string InstructionText
+ {
+ get { return instructionText; }
+ set
+ {
+ // Set local value, then update native dialog if showing.
+ instructionText = value;
+ if (NativeDialogShowing) { nativeDialog.UpdateInstruction(instructionText); }
+ }
+ }
+
+ private string caption;
+ /// <summary>
+ /// Gets or sets a value that contains the caption text.
+ /// </summary>
+ public string Caption
+ {
+ get { return caption; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.CaptionCannotBeChanged);
+ caption = value;
+ }
+ }
+
+ private string footerText;
+ /// <summary>
+ /// Gets or sets a value that contains the footer text.
+ /// </summary>
+ public string FooterText
+ {
+ get { return footerText; }
+ set
+ {
+ // Set local value, then update native dialog if showing.
+ footerText = value;
+ if (NativeDialogShowing) { nativeDialog.UpdateFooterText(footerText); }
+ }
+ }
+
+ private string checkBoxText;
+ /// <summary>
+ /// Gets or sets a value that contains the footer check box text.
+ /// </summary>
+ public string FooterCheckBoxText
+ {
+ get { return checkBoxText; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.CheckBoxCannotBeChanged);
+ checkBoxText = value;
+ }
+ }
+
+ private string detailsExpandedText;
+ /// <summary>
+ /// Gets or sets a value that contains the expanded text in the details section.
+ /// </summary>
+ public string DetailsExpandedText
+ {
+ get { return detailsExpandedText; }
+ set
+ {
+ // Set local value, then update native dialog if showing.
+ detailsExpandedText = value;
+ if (NativeDialogShowing) { nativeDialog.UpdateExpandedText(detailsExpandedText); }
+ }
+ }
+
+ private bool detailsExpanded;
+ /// <summary>
+ /// Gets or sets a value that determines if the details section is expanded.
+ /// </summary>
+ public bool DetailsExpanded
+ {
+ get { return detailsExpanded; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.ExpandingStateCannotBeChanged);
+ detailsExpanded = value;
+ }
+ }
+
+ private string detailsExpandedLabel;
+ /// <summary>
+ /// Gets or sets a value that contains the expanded control text.
+ /// </summary>
+ public string DetailsExpandedLabel
+ {
+ get { return detailsExpandedLabel; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.ExpandedLabelCannotBeChanged);
+ detailsExpandedLabel = value;
+ }
+ }
+
+ private string detailsCollapsedLabel;
+ /// <summary>
+ /// Gets or sets a value that contains the collapsed control text.
+ /// </summary>
+ public string DetailsCollapsedLabel
+ {
+ get { return detailsCollapsedLabel; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.CollapsedTextCannotBeChanged);
+ detailsCollapsedLabel = value;
+ }
+ }
+
+ private bool cancelable;
+ /// <summary>
+ /// Gets or sets a value that determines if Cancelable is set.
+ /// </summary>
+ public bool Cancelable
+ {
+ get { return cancelable; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.CancelableCannotBeChanged);
+ cancelable = value;
+ }
+ }
+
+ private TaskDialogStandardIcon icon;
+ /// <summary>
+ /// Gets or sets a value that contains the TaskDialog main icon.
+ /// </summary>
+ public TaskDialogStandardIcon Icon
+ {
+ get { return icon; }
+ set
+ {
+ // Set local value, then update native dialog if showing.
+ icon = value;
+ if (NativeDialogShowing) { nativeDialog.UpdateMainIcon(icon); }
+ }
+ }
+
+ private TaskDialogStandardIcon footerIcon;
+ /// <summary>
+ /// Gets or sets a value that contains the footer icon.
+ /// </summary>
+ public TaskDialogStandardIcon FooterIcon
+ {
+ get { return footerIcon; }
+ set
+ {
+ // Set local value, then update native dialog if showing.
+ footerIcon = value;
+ if (NativeDialogShowing) { nativeDialog.UpdateFooterIcon(footerIcon); }
+ }
+ }
+
+ private TaskDialogStandardButtons standardButtons = TaskDialogStandardButtons.None;
+ /// <summary>
+ /// Gets or sets a value that contains the standard buttons.
+ /// </summary>
+ public TaskDialogStandardButtons StandardButtons
+ {
+ get { return standardButtons; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.StandardButtonsCannotBeChanged);
+ standardButtons = value;
+ }
+ }
+
+ private DialogControlCollection<TaskDialogControl> controls;
+ /// <summary>
+ /// Gets a value that contains the TaskDialog controls.
+ /// </summary>
+ public DialogControlCollection<TaskDialogControl> Controls
+ {
+ // "Show protection" provided by collection itself,
+ // as well as individual controls.
+ get { return controls; }
+ }
+
+ private bool hyperlinksEnabled;
+ /// <summary>
+ /// Gets or sets a value that determines if hyperlinks are enabled.
+ /// </summary>
+ public bool HyperlinksEnabled
+ {
+ get { return hyperlinksEnabled; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.HyperlinksCannotBetSet);
+ hyperlinksEnabled = value;
+ }
+ }
+
+ private bool? footerCheckBoxChecked = null;
+ /// <summary>
+ /// Gets or sets a value that indicates if the footer checkbox is checked.
+ /// </summary>
+ public bool? FooterCheckBoxChecked
+ {
+ get { return footerCheckBoxChecked.GetValueOrDefault(false); }
+ set
+ {
+ // Set local value, then update native dialog if showing.
+ footerCheckBoxChecked = value;
+ if (NativeDialogShowing) { nativeDialog.UpdateCheckBoxChecked(footerCheckBoxChecked.Value); }
+ }
+ }
+
+ private TaskDialogExpandedDetailsLocation expansionMode;
+ /// <summary>
+ /// Gets or sets a value that contains the expansion mode for this dialog.
+ /// </summary>
+ public TaskDialogExpandedDetailsLocation ExpansionMode
+ {
+ get { return expansionMode; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.ExpandedDetailsCannotBeChanged);
+ expansionMode = value;
+ }
+ }
+
+ private TaskDialogStartupLocation startupLocation;
+ /// <summary>
+ /// Gets or sets a value that contains the startup location.
+ /// </summary>
+ public TaskDialogStartupLocation StartupLocation
+ {
+ get { return startupLocation; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.StartupLocationCannotBeChanged);
+ startupLocation = value;
+ }
+ }
+
+ private TaskDialogProgressBar progressBar;
+ /// <summary>
+ /// Gets or sets the progress bar on the taskdialog. ProgressBar a visual representation
+ /// of the progress of a long running operation.
+ /// </summary>
+ public TaskDialogProgressBar ProgressBar
+ {
+ get { return progressBar; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.ProgressBarCannotBeChanged);
+ if (value != null)
+ {
+ if (value.HostingDialog != null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ProgressBarCannotBeHostedInMultipleDialogs);
+ }
+
+ value.HostingDialog = this;
+ }
+ progressBar = value;
+ }
+ }
+
+ #endregion
+
+ #region Constructors
+
+ /// <summary>
+ /// Creates a basic TaskDialog window
+ /// </summary>
+ public TaskDialog()
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ // Initialize various data structs.
+ controls = new DialogControlCollection<TaskDialogControl>(this);
+ }
+
+ #endregion
+
+ #region Static Show Methods
+
+ /// <summary>
+ /// Creates and shows a task dialog with the specified message text.
+ /// </summary>
+ /// <param name="text">The text to display.</param>
+ /// <returns>The dialog result.</returns>
+ public static TaskDialogResult Show(string text)
+ {
+ return ShowCoreStatic(
+ text,
+ TaskDialogDefaults.MainInstruction,
+ TaskDialogDefaults.Caption);
+ }
+
+ /// <summary>
+ /// Creates and shows a task dialog with the specified supporting text and main instruction.
+ /// </summary>
+ /// <param name="text">The supporting text to display.</param>
+ /// <param name="instructionText">The main instruction text to display.</param>
+ /// <returns>The dialog result.</returns>
+ public static TaskDialogResult Show(string text, string instructionText)
+ {
+ return ShowCoreStatic(
+ text,
+ instructionText,
+ TaskDialogDefaults.Caption);
+ }
+
+ /// <summary>
+ /// Creates and shows a task dialog with the specified supporting text, main instruction, and dialog caption.
+ /// </summary>
+ /// <param name="text">The supporting text to display.</param>
+ /// <param name="instructionText">The main instruction text to display.</param>
+ /// <param name="caption">The caption for the dialog.</param>
+ /// <returns>The dialog result.</returns>
+ public static TaskDialogResult Show(string text, string instructionText, string caption)
+ {
+ return ShowCoreStatic(text, instructionText, caption);
+ }
+ #endregion
+
+ #region Instance Show Methods
+
+ /// <summary>
+ /// Creates and shows a task dialog.
+ /// </summary>
+ /// <returns>The dialog result.</returns>
+ public TaskDialogResult Show()
+ {
+ return ShowCore();
+ }
+ #endregion
+
+ #region Core Show Logic
+
+ // CORE SHOW METHODS:
+ // All static Show() calls forward here -
+ // it is responsible for retrieving
+ // or creating our cached TaskDialog instance, getting it configured,
+ // and in turn calling the appropriate instance Show.
+
+ private static TaskDialogResult ShowCoreStatic(
+ string text,
+ string instructionText,
+ string caption)
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ // If no instance cached yet, create it.
+ if (staticDialog == null)
+ {
+ // New TaskDialog will automatically pick up defaults when
+ // a new config structure is created as part of ShowCore().
+ staticDialog = new TaskDialog();
+ }
+
+ // Set the few relevant properties,
+ // and go with the defaults for the others.
+ staticDialog.text = text;
+ staticDialog.instructionText = instructionText;
+ staticDialog.caption = caption;
+
+ return staticDialog.Show();
+ }
+
+ private TaskDialogResult ShowCore()
+ {
+ TaskDialogResult result;
+
+ try
+ {
+ // Populate control lists, based on current
+ // contents - note we are somewhat late-bound
+ // on our control lists, to support XAML scenarios.
+ SortDialogControls();
+
+ // First, let's make sure it even makes
+ // sense to try a show.
+ ValidateCurrentDialogSettings();
+
+ // Create settings object for new dialog,
+ // based on current state.
+ NativeTaskDialogSettings settings = new NativeTaskDialogSettings();
+ ApplyCoreSettings(settings);
+ ApplySupplementalSettings(settings);
+
+ // Show the dialog.
+ // NOTE: this is a BLOCKING call; the dialog proc callbacks
+ // will be executed by the same thread as the
+ // Show() call before the thread of execution
+ // contines to the end of this method.
+ nativeDialog = new NativeTaskDialog(settings, this);
+ nativeDialog.NativeShow();
+
+ // Build and return dialog result to public API - leaving it
+ // null after an exception is thrown is fine in this case
+ result = ConstructDialogResult(nativeDialog);
+ footerCheckBoxChecked = nativeDialog.CheckBoxChecked;
+ }
+ finally
+ {
+ CleanUp();
+ nativeDialog = null;
+ }
+
+ return result;
+ }
+
+ // Helper that looks at the current state of the TaskDialog and verifies
+ // that there aren't any abberant combinations of properties.
+ // NOTE that this method is designed to throw
+ // rather than return a bool.
+ private void ValidateCurrentDialogSettings()
+ {
+ if (footerCheckBoxChecked.HasValue &&
+ footerCheckBoxChecked.Value == true &&
+ string.IsNullOrEmpty(checkBoxText))
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogCheckBoxTextRequiredToEnableCheckBox);
+ }
+
+ // Progress bar validation.
+ // Make sure the progress bar values are valid.
+ // the Win32 API will valiantly try to rationalize
+ // bizarre min/max/value combinations, but we'll save
+ // it the trouble by validating.
+ if (progressBar != null && !progressBar.HasValidValues)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogProgressBarValueInRange);
+ }
+
+ // Validate Buttons collection.
+ // Make sure we don't have buttons AND
+ // command-links - the Win32 API treats them as different
+ // flavors of a single button struct.
+ if (buttons.Count > 0 && commandLinks.Count > 0)
+ {
+ throw new NotSupportedException(LocalizedMessages.TaskDialogSupportedButtonsAndLinks);
+ }
+ if (buttons.Count > 0 && standardButtons != TaskDialogStandardButtons.None)
+ {
+ throw new NotSupportedException(LocalizedMessages.TaskDialogSupportedButtonsAndButtons);
+ }
+ }
+
+ // Analyzes the final state of the NativeTaskDialog instance and creates the
+ // final TaskDialogResult that will be returned from the public API
+ private static TaskDialogResult ConstructDialogResult(NativeTaskDialog native)
+ {
+ Debug.Assert(native.ShowState == DialogShowState.Closed, "dialog result being constructed for unshown dialog.");
+
+ TaskDialogResult result = TaskDialogResult.Cancel;
+
+ TaskDialogStandardButtons standardButton = MapButtonIdToStandardButton(native.SelectedButtonId);
+
+ // If returned ID isn't a standard button, let's fetch
+ if (standardButton == TaskDialogStandardButtons.None)
+ {
+ result = TaskDialogResult.CustomButtonClicked;
+ }
+ else { result = (TaskDialogResult)standardButton; }
+
+ return result;
+ }
+
+ /// <summary>
+ /// Close TaskDialog
+ /// </summary>
+ /// <exception cref="InvalidOperationException">if TaskDialog is not showing.</exception>
+ public void Close()
+ {
+ if (!NativeDialogShowing)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogCloseNonShowing);
+ }
+
+ nativeDialog.NativeClose(TaskDialogResult.Cancel);
+ // TaskDialog's own cleanup code -
+ // which runs post show - will handle disposal of native dialog.
+ }
+
+ /// <summary>
+ /// Close TaskDialog with a given TaskDialogResult
+ /// </summary>
+ /// <param name="closingResult">TaskDialogResult to return from the TaskDialog.Show() method</param>
+ /// <exception cref="InvalidOperationException">if TaskDialog is not showing.</exception>
+ public void Close(TaskDialogResult closingResult)
+ {
+ if (!NativeDialogShowing)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogCloseNonShowing);
+ }
+
+ nativeDialog.NativeClose(closingResult);
+ // TaskDialog's own cleanup code -
+ // which runs post show - will handle disposal of native dialog.
+ }
+
+ #endregion
+
+ #region Configuration Construction
+
+ private void ApplyCoreSettings(NativeTaskDialogSettings settings)
+ {
+ ApplyGeneralNativeConfiguration(settings.NativeConfiguration);
+ ApplyTextConfiguration(settings.NativeConfiguration);
+ ApplyOptionConfiguration(settings.NativeConfiguration);
+ ApplyControlConfiguration(settings);
+ }
+
+ private void ApplyGeneralNativeConfiguration(TaskDialogNativeMethods.TaskDialogConfiguration dialogConfig)
+ {
+ // If an owner wasn't specifically specified,
+ // we'll use the app's main window.
+ if (ownerWindow != IntPtr.Zero)
+ {
+ dialogConfig.parentHandle = ownerWindow;
+ }
+
+ // Other miscellaneous sets.
+ dialogConfig.mainIcon = new TaskDialogNativeMethods.IconUnion((int)icon);
+ dialogConfig.footerIcon = new TaskDialogNativeMethods.IconUnion((int)footerIcon);
+ dialogConfig.commonButtons = (TaskDialogNativeMethods.TaskDialogCommonButtons)standardButtons;
+ }
+
+ /// <summary>
+ /// Sets important text properties.
+ /// </summary>
+ /// <param name="dialogConfig">An instance of a <see cref="TaskDialogNativeMethods.TaskDialogConfiguration"/> object.</param>
+ private void ApplyTextConfiguration(TaskDialogNativeMethods.TaskDialogConfiguration dialogConfig)
+ {
+ // note that nulls or empty strings are fine here.
+ dialogConfig.content = text;
+ dialogConfig.windowTitle = caption;
+ dialogConfig.mainInstruction = instructionText;
+ dialogConfig.expandedInformation = detailsExpandedText;
+ dialogConfig.expandedControlText = detailsExpandedLabel;
+ dialogConfig.collapsedControlText = detailsCollapsedLabel;
+ dialogConfig.footerText = footerText;
+ dialogConfig.verificationText = checkBoxText;
+ }
+
+ private void ApplyOptionConfiguration(TaskDialogNativeMethods.TaskDialogConfiguration dialogConfig)
+ {
+ // Handle options - start with no options set.
+ TaskDialogNativeMethods.TaskDialogOptions options = TaskDialogNativeMethods.TaskDialogOptions.None;
+ if (cancelable)
+ {
+ options |= TaskDialogNativeMethods.TaskDialogOptions.AllowCancel;
+ }
+ if (footerCheckBoxChecked.HasValue && footerCheckBoxChecked.Value)
+ {
+ options |= TaskDialogNativeMethods.TaskDialogOptions.CheckVerificationFlag;
+ }
+ if (hyperlinksEnabled)
+ {
+ options |= TaskDialogNativeMethods.TaskDialogOptions.EnableHyperlinks;
+ }
+ if (detailsExpanded)
+ {
+ options |= TaskDialogNativeMethods.TaskDialogOptions.ExpandedByDefault;
+ }
+ if (Tick != null)
+ {
+ options |= TaskDialogNativeMethods.TaskDialogOptions.UseCallbackTimer;
+ }
+ if (startupLocation == TaskDialogStartupLocation.CenterOwner)
+ {
+ options |= TaskDialogNativeMethods.TaskDialogOptions.PositionRelativeToWindow;
+ }
+
+ // Note: no validation required, as we allow this to
+ // be set even if there is no expanded information
+ // text because that could be added later.
+ // Default for Win32 API is to expand into (and after)
+ // the content area.
+ if (expansionMode == TaskDialogExpandedDetailsLocation.ExpandFooter)
+ {
+ options |= TaskDialogNativeMethods.TaskDialogOptions.ExpandFooterArea;
+ }
+
+ // Finally, apply options to config.
+ dialogConfig.taskDialogFlags = options;
+ }
+
+ // Builds the actual configuration
+ // that the NativeTaskDialog (and underlying Win32 API)
+ // expects, by parsing the various control
+ // lists, marshalling to the unmanaged heap, etc.
+
+ private void ApplyControlConfiguration(NativeTaskDialogSettings settings)
+ {
+ // Deal with progress bars/marquees.
+ if (progressBar != null)
+ {
+ if (progressBar.State == TaskDialogProgressBarState.Marquee)
+ {
+ settings.NativeConfiguration.taskDialogFlags |= TaskDialogNativeMethods.TaskDialogOptions.ShowMarqueeProgressBar;
+ }
+ else
+ {
+ settings.NativeConfiguration.taskDialogFlags |= TaskDialogNativeMethods.TaskDialogOptions.ShowProgressBar;
+ }
+ }
+
+ // Build the native struct arrays that NativeTaskDialog
+ // needs - though NTD will handle
+ // the heavy lifting marshalling to make sure
+ // all the cleanup is centralized there.
+ if (buttons.Count > 0 || commandLinks.Count > 0)
+ {
+ // These are the actual arrays/lists of
+ // the structs that we'll copy to the
+ // unmanaged heap.
+ List<TaskDialogButtonBase> sourceList = (buttons.Count > 0 ? buttons : commandLinks);
+ settings.Buttons = BuildButtonStructArray(sourceList);
+
+ // Apply option flag that forces all
+ // custom buttons to render as command links.
+ if (commandLinks.Count > 0)
+ {
+ settings.NativeConfiguration.taskDialogFlags |= TaskDialogNativeMethods.TaskDialogOptions.UseCommandLinks;
+ }
+
+ // Set default button and add elevation icons
+ // to appropriate buttons.
+ settings.NativeConfiguration.defaultButtonIndex = FindDefaultButtonId(sourceList);
+
+ ApplyElevatedIcons(settings, sourceList);
+ }
+
+ if (radioButtons.Count > 0)
+ {
+ settings.RadioButtons = BuildButtonStructArray(radioButtons);
+
+ // Set default radio button - radio buttons don't support.
+ int defaultRadioButton = FindDefaultButtonId(radioButtons);
+ settings.NativeConfiguration.defaultRadioButtonIndex = defaultRadioButton;
+
+ if (defaultRadioButton == TaskDialogNativeMethods.NoDefaultButtonSpecified)
+ {
+ settings.NativeConfiguration.taskDialogFlags |= TaskDialogNativeMethods.TaskDialogOptions.NoDefaultRadioButton;
+ }
+ }
+ }
+
+ private static TaskDialogNativeMethods.TaskDialogButton[] BuildButtonStructArray(List<TaskDialogButtonBase> controls)
+ {
+ TaskDialogNativeMethods.TaskDialogButton[] buttonStructs;
+ TaskDialogButtonBase button;
+
+ int totalButtons = controls.Count;
+ buttonStructs = new TaskDialogNativeMethods.TaskDialogButton[totalButtons];
+ for (int i = 0; i < totalButtons; i++)
+ {
+ button = controls[i];
+ buttonStructs[i] = new TaskDialogNativeMethods.TaskDialogButton(button.Id, button.ToString());
+ }
+ return buttonStructs;
+ }
+
+ // Searches list of controls and returns the ID of
+ // the default control, or 0 if no default was specified.
+ private static int FindDefaultButtonId(List<TaskDialogButtonBase> controls)
+ {
+ var defaults = controls.FindAll(control => control.Default);
+
+ if (defaults.Count == 1) { return defaults[0].Id; }
+ else if (defaults.Count > 1)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogOnlyOneDefaultControl);
+ }
+
+ return TaskDialogNativeMethods.NoDefaultButtonSpecified;
+ }
+
+ private static void ApplyElevatedIcons(NativeTaskDialogSettings settings, List<TaskDialogButtonBase> controls)
+ {
+ foreach (TaskDialogButton control in controls)
+ {
+ if (control.UseElevationIcon)
+ {
+ if (settings.ElevatedButtons == null) { settings.ElevatedButtons = new List<int>(); }
+ settings.ElevatedButtons.Add(control.Id);
+ }
+ }
+ }
+
+ private void ApplySupplementalSettings(NativeTaskDialogSettings settings)
+ {
+ if (progressBar != null)
+ {
+ if (progressBar.State != TaskDialogProgressBarState.Marquee)
+ {
+ settings.ProgressBarMinimum = progressBar.Minimum;
+ settings.ProgressBarMaximum = progressBar.Maximum;
+ settings.ProgressBarValue = progressBar.Value;
+ settings.ProgressBarState = progressBar.State;
+ }
+ }
+
+ if (HelpInvoked != null) { settings.InvokeHelp = true; }
+ }
+
+ // Here we walk our controls collection and
+ // sort the various controls by type.
+ private void SortDialogControls()
+ {
+ foreach (TaskDialogControl control in controls)
+ {
+ TaskDialogButtonBase buttonBase = control as TaskDialogButtonBase;
+ TaskDialogCommandLink commandLink = control as TaskDialogCommandLink;
+
+ if (buttonBase != null && string.IsNullOrEmpty(buttonBase.Text) &&
+ commandLink != null && string.IsNullOrEmpty(commandLink.Instruction))
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogButtonTextEmpty);
+ }
+
+ TaskDialogRadioButton radButton;
+ TaskDialogProgressBar progBar;
+
+ // Loop through child controls
+ // and sort the controls based on type.
+ if (commandLink != null)
+ {
+ commandLinks.Add(commandLink);
+ }
+ else if ((radButton = control as TaskDialogRadioButton) != null)
+ {
+ if (radioButtons == null) { radioButtons = new List<TaskDialogButtonBase>(); }
+ radioButtons.Add(radButton);
+ }
+ else if (buttonBase != null)
+ {
+ if (buttons == null) { buttons = new List<TaskDialogButtonBase>(); }
+ buttons.Add(buttonBase);
+ }
+ else if ((progBar = control as TaskDialogProgressBar) != null)
+ {
+ progressBar = progBar;
+ }
+ else
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogUnkownControl);
+ }
+ }
+ }
+
+ #endregion
+
+ #region Helpers
+
+ // Helper to map the standard button IDs returned by
+ // TaskDialogIndirect to the standard button ID enum -
+ // note that we can't just cast, as the Win32
+ // typedefs differ incoming and outgoing.
+
+ private static TaskDialogStandardButtons MapButtonIdToStandardButton(int id)
+ {
+ switch ((TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds)id)
+ {
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Ok:
+ return TaskDialogStandardButtons.Ok;
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Cancel:
+ return TaskDialogStandardButtons.Cancel;
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Abort:
+ // Included for completeness in API -
+ // we can't pass in an Abort standard button.
+ return TaskDialogStandardButtons.None;
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Retry:
+ return TaskDialogStandardButtons.Retry;
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Ignore:
+ // Included for completeness in API -
+ // we can't pass in an Ignore standard button.
+ return TaskDialogStandardButtons.None;
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Yes:
+ return TaskDialogStandardButtons.Yes;
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.No:
+ return TaskDialogStandardButtons.No;
+ case TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Close:
+ return TaskDialogStandardButtons.Close;
+ default:
+ return TaskDialogStandardButtons.None;
+ }
+ }
+
+ private void ThrowIfDialogShowing(string message)
+ {
+ if (NativeDialogShowing) { throw new NotSupportedException(message); }
+ }
+
+ private bool NativeDialogShowing
+ {
+ get
+ {
+ return (nativeDialog != null)
+ && (nativeDialog.ShowState == DialogShowState.Showing
+ || nativeDialog.ShowState == DialogShowState.Closing);
+ }
+ }
+
+ // NOTE: we are going to require names be unique
+ // across both buttons and radio buttons,
+ // even though the Win32 API allows them to be separate.
+ private TaskDialogButtonBase GetButtonForId(int id)
+ {
+ return (TaskDialogButtonBase)controls.GetControlbyId(id);
+ }
+
+ #endregion
+
+ #region IDialogControlHost Members
+
+ // We're explicitly implementing this interface
+ // as the user will never need to know about it
+ // or use it directly - it is only for the internal
+ // implementation of "pseudo controls" within
+ // the dialogs.
+
+ // Called whenever controls are being added
+ // to or removed from the dialog control collection.
+ bool IDialogControlHost.IsCollectionChangeAllowed()
+ {
+ // Only allow additions to collection if dialog is NOT showing.
+ return !NativeDialogShowing;
+ }
+
+ // Called whenever controls have been added or removed.
+ void IDialogControlHost.ApplyCollectionChanged()
+ {
+ // If we're showing, we should never get here -
+ // the changing notification would have thrown and the
+ // property would not have been changed.
+ Debug.Assert(!NativeDialogShowing,
+ "Collection changed notification received despite show state of dialog");
+ }
+
+ // Called when a control currently in the collection
+ // has a property changing - this is
+ // basically to screen out property changes that
+ // cannot occur while the dialog is showing
+ // because the Win32 API has no way for us to
+ // propagate the changes until we re-invoke the Win32 call.
+ bool IDialogControlHost.IsControlPropertyChangeAllowed(string propertyName, DialogControl control)
+ {
+ Debug.Assert(control is TaskDialogControl,
+ "Property changing for a control that is not a TaskDialogControl-derived type");
+ Debug.Assert(propertyName != "Name",
+ "Name changes at any time are not supported - public API should have blocked this");
+
+ bool canChange = false;
+
+ if (!NativeDialogShowing)
+ {
+ // Certain properties can't be changed if the dialog is not showing
+ // we need a handle created before we can set these...
+ switch (propertyName)
+ {
+ case "Enabled":
+ canChange = false;
+ break;
+ default:
+ canChange = true;
+ break;
+ }
+ }
+ else
+ {
+ // If the dialog is showing, we can only
+ // allow some properties to change.
+ switch (propertyName)
+ {
+ // Properties that CAN'T be changed while dialog is showing.
+ case "Text":
+ case "Default":
+ canChange = false;
+ break;
+
+ // Properties that CAN be changed while dialog is showing.
+ case "ShowElevationIcon":
+ case "Enabled":
+ canChange = true;
+ break;
+ default:
+ Debug.Assert(true, "Unknown property name coming through property changing handler");
+ break;
+ }
+ }
+ return canChange;
+ }
+
+ // Called when a control currently in the collection
+ // has a property changed - this handles propagating
+ // the new property values to the Win32 API.
+ // If there isn't a way to change the Win32 value, then we
+ // should have already screened out the property set
+ // in NotifyControlPropertyChanging.
+ void IDialogControlHost.ApplyControlPropertyChange(string propertyName, DialogControl control)
+ {
+ // We only need to apply changes to the
+ // native dialog when it actually exists.
+ if (NativeDialogShowing)
+ {
+ TaskDialogButton button;
+ TaskDialogRadioButton radioButton;
+ if (control is TaskDialogProgressBar)
+ {
+ if (!progressBar.HasValidValues)
+ {
+ throw new ArgumentException(LocalizedMessages.TaskDialogProgressBarValueInRange);
+ }
+
+ switch (propertyName)
+ {
+ case "State":
+ nativeDialog.UpdateProgressBarState(progressBar.State);
+ break;
+ case "Value":
+ nativeDialog.UpdateProgressBarValue(progressBar.Value);
+ break;
+ case "Minimum":
+ case "Maximum":
+ nativeDialog.UpdateProgressBarRange();
+ break;
+ default:
+ Debug.Assert(true, "Unknown property being set");
+ break;
+ }
+ }
+ else if ((button = control as TaskDialogButton) != null)
+ {
+ switch (propertyName)
+ {
+ case "ShowElevationIcon":
+ nativeDialog.UpdateElevationIcon(button.Id, button.UseElevationIcon);
+ break;
+ case "Enabled":
+ nativeDialog.UpdateButtonEnabled(button.Id, button.Enabled);
+ break;
+ default:
+ Debug.Assert(true, "Unknown property being set");
+ break;
+ }
+ }
+ else if ((radioButton = control as TaskDialogRadioButton) != null)
+ {
+ switch (propertyName)
+ {
+ case "Enabled":
+ nativeDialog.UpdateRadioButtonEnabled(radioButton.Id, radioButton.Enabled);
+ break;
+ default:
+ Debug.Assert(true, "Unknown property being set");
+ break;
+ }
+ }
+ else
+ {
+ // Do nothing with property change -
+ // note that this shouldn't ever happen, we should have
+ // either thrown on the changing event, or we handle above.
+ Debug.Assert(true, "Control property changed notification not handled properly - being ignored");
+ }
+ }
+ }
+
+ #endregion
+
+ #region Event Percolation Methods
+
+ // All Raise*() methods are called by the
+ // NativeTaskDialog when various pseudo-controls
+ // are triggered.
+ internal void RaiseButtonClickEvent(int id)
+ {
+ // First check to see if the ID matches a custom button.
+ TaskDialogButtonBase button = GetButtonForId(id);
+
+ // If a custom button was found,
+ // raise the event - if not, it's a standard button, and
+ // we don't support custom event handling for the standard buttons
+ if (button != null) { button.RaiseClickEvent(); }
+ }
+
+ internal void RaiseHyperlinkClickEvent(string link)
+ {
+ EventHandler<TaskDialogHyperlinkClickedEventArgs> handler = HyperlinkClick;
+ if (handler != null)
+ {
+ handler(this, new TaskDialogHyperlinkClickedEventArgs(link));
+ }
+ }
+
+ // Gives event subscriber a chance to prevent
+ // the dialog from closing, based on
+ // the current state of the app and the button
+ // used to commit. Note that we don't
+ // have full access at this stage to
+ // the full dialog state.
+ internal int RaiseClosingEvent(int id)
+ {
+ EventHandler<TaskDialogClosingEventArgs> handler = Closing;
+ if (handler != null)
+ {
+ TaskDialogButtonBase customButton = null;
+ TaskDialogClosingEventArgs e = new TaskDialogClosingEventArgs();
+
+ // Try to identify the button - is it a standard one?
+ TaskDialogStandardButtons buttonClicked = MapButtonIdToStandardButton(id);
+
+ // If not, it had better be a custom button...
+ if (buttonClicked == TaskDialogStandardButtons.None)
+ {
+ customButton = GetButtonForId(id);
+
+ // ... or we have a problem.
+ if (customButton == null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskDialogBadButtonId);
+ }
+
+ e.CustomButton = customButton.Name;
+ e.TaskDialogResult = TaskDialogResult.CustomButtonClicked;
+ }
+ else
+ {
+ e.TaskDialogResult = (TaskDialogResult)buttonClicked;
+ }
+
+ // Raise the event and determine how to proceed.
+ handler(this, e);
+ if (e.Cancel) { return (int)HResult.False; }
+ }
+
+ // It's okay to let the dialog close.
+ return (int)HResult.Ok;
+ }
+
+ internal void RaiseHelpInvokedEvent()
+ {
+ if (HelpInvoked != null) { HelpInvoked(this, EventArgs.Empty); }
+ }
+
+ internal void RaiseOpenedEvent()
+ {
+ if (Opened != null) { Opened(this, EventArgs.Empty); }
+ }
+
+ internal void RaiseTickEvent(int ticks)
+ {
+ if (Tick != null) { Tick(this, new TaskDialogTickEventArgs(ticks)); }
+ }
+
+ #endregion
+
+ #region Cleanup Code
+
+ // Cleans up data and structs from a single
+ // native dialog Show() invocation.
+ private void CleanUp()
+ {
+ // Reset values that would be considered
+ // 'volatile' in a given instance.
+ if (progressBar != null)
+ {
+ progressBar.Reset();
+ }
+
+ // Clean out sorted control lists -
+ // though we don't of course clear the main controls collection,
+ // so the controls are still around; we'll
+ // resort on next show, since the collection may have changed.
+ if (buttons != null) { buttons.Clear(); }
+ if (commandLinks != null) { commandLinks.Clear(); }
+ if (radioButtons != null) { radioButtons.Clear(); }
+ progressBar = null;
+
+ // Have the native dialog clean up the rest.
+ if (nativeDialog != null)
+ {
+ nativeDialog.Dispose();
+ }
+ }
+
+
+ // Dispose pattern - cleans up data and structs for
+ // a) any native dialog currently showing, and
+ // b) anything else that the outer TaskDialog has.
+ private bool disposed;
+
+ /// <summary>
+ /// Dispose TaskDialog Resources
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// TaskDialog Finalizer
+ /// </summary>
+ ~TaskDialog()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Dispose TaskDialog Resources
+ /// </summary>
+ /// <param name="disposing">If true, indicates that this is being called via Dispose rather than via the finalizer.</param>
+ public void Dispose(bool disposing)
+ {
+ if (!disposed)
+ {
+ disposed = true;
+
+ if (disposing)
+ {
+ // Clean up managed resources.
+ if (nativeDialog != null && nativeDialog.ShowState == DialogShowState.Showing)
+ {
+ nativeDialog.NativeClose(TaskDialogResult.Cancel);
+ }
+
+ buttons = null;
+ radioButtons = null;
+ commandLinks = null;
+ }
+
+ // Clean up unmanaged resources SECOND, NTD counts on
+ // being closed before being disposed.
+ if (nativeDialog != null)
+ {
+ nativeDialog.Dispose();
+ nativeDialog = null;
+ }
+
+ if (staticDialog != null)
+ {
+ staticDialog.Dispose();
+ staticDialog = null;
+ }
+
+
+ }
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ public static bool IsPlatformSupported
+ {
+ get
+ {
+ // We need Windows Vista onwards ...
+ return CoreHelpers.RunningOnVista;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogBar.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogBar.cs
new file mode 100644
index 0000000000..f812d8dd55
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogBar.cs
@@ -0,0 +1,43 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Defines a common class for all task dialog bar controls, such as the progress and marquee bars.
+ /// </summary>
+ public class TaskDialogBar : TaskDialogControl
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public TaskDialogBar() { }
+ /// <summary>
+ /// Creates a new instance of this class with the specified name.
+ /// </summary>
+ /// <param name="name">The name for this control.</param>
+ protected TaskDialogBar(string name) : base(name) { }
+
+ private TaskDialogProgressBarState state;
+ /// <summary>
+ /// Gets or sets the state of the progress bar.
+ /// </summary>
+ public TaskDialogProgressBarState State
+ {
+ get { return state; }
+ set
+ {
+ CheckPropertyChangeAllowed("State");
+ state = value;
+ ApplyPropertyChange("State");
+ }
+ }
+ /// <summary>
+ /// Resets the state of the control to normal.
+ /// </summary>
+ protected internal virtual void Reset()
+ {
+ state = TaskDialogProgressBarState.Normal;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButton.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButton.cs
new file mode 100644
index 0000000000..5a3070ea19
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButton.cs
@@ -0,0 +1,37 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Implements a button that can be hosted in a task dialog.
+ /// </summary>
+ public class TaskDialogButton : TaskDialogButtonBase
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public TaskDialogButton() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified property settings.
+ /// </summary>
+ /// <param name="name">The name of the button.</param>
+ /// <param name="text">The button label.</param>
+ public TaskDialogButton(string name, string text) : base(name, text) { }
+
+ private bool useElevationIcon;
+ /// <summary>
+ /// Gets or sets a value that controls whether the elevation icon is displayed.
+ /// </summary>
+ public bool UseElevationIcon
+ {
+ get { return useElevationIcon; }
+ set
+ {
+ CheckPropertyChangeAllowed("ShowElevationIcon");
+ useElevationIcon = value;
+ ApplyPropertyChange("ShowElevationIcon");
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButtonBase.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButtonBase.cs
new file mode 100644
index 0000000000..bc0fe8942b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogButtonBase.cs
@@ -0,0 +1,112 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ // ContentProperty allows us to specify the text
+ // of the button as the child text of
+ // a button element in XAML, as well as explicitly
+ // set with 'Text="<text>"'
+ // Note that this attribute is inherited, so it
+ // applies to command-links and radio buttons as well.
+ /// <summary>
+ /// Defines the abstract base class for task dialog buttons.
+ /// Classes that inherit from this class will inherit
+ /// the Text property defined in this class.
+ /// </summary>
+ public abstract class TaskDialogButtonBase : TaskDialogControl
+ {
+
+ /// <summary>
+ /// Creates a new instance on a task dialog button.
+ /// </summary>
+ protected TaskDialogButtonBase() { }
+ /// <summary>
+ /// Creates a new instance on a task dialog button with
+ /// the specified name and text.
+ /// </summary>
+ /// <param name="name">The name for this button.</param>
+ /// <param name="text">The label for this button.</param>
+ protected TaskDialogButtonBase(string name, string text) : base(name)
+ {
+ this.text = text;
+ }
+
+ // Note that we don't need to explicitly
+ // implement the add/remove delegate for the Click event;
+ // the hosting dialog only needs the delegate
+ // information when the Click event is
+ // raised (indirectly) by NativeTaskDialog,
+ // so the latest delegate is always available.
+ /// <summary>
+ /// Raised when the task dialog button is clicked.
+ /// </summary>
+ public event EventHandler Click;
+
+ internal void RaiseClickEvent()
+ {
+ // Only perform click if the button is enabled.
+ if (!enabled) { return; }
+
+ if (Click != null) { Click(this, EventArgs.Empty); }
+ }
+
+ private string text;
+ /// <summary>
+ /// Gets or sets the button text.
+ /// </summary>
+ public string Text
+ {
+ get { return text; }
+ set
+ {
+ CheckPropertyChangeAllowed("Text");
+ text = value;
+ ApplyPropertyChange("Text");
+ }
+ }
+
+ private bool enabled = true;
+ /// <summary>
+ /// Gets or sets a value that determines whether the
+ /// button is enabled. The enabled state can cannot be changed
+ /// before the dialog is shown.
+ /// </summary>
+ public bool Enabled
+ {
+ get { return enabled; }
+ set
+ {
+ CheckPropertyChangeAllowed("Enabled");
+ enabled = value;
+ ApplyPropertyChange("Enabled");
+ }
+ }
+
+ private bool defaultControl;
+ /// <summary>
+ /// Gets or sets a value that indicates whether
+ /// this button is the default button.
+ /// </summary>
+ public bool Default
+ {
+ get { return defaultControl; }
+ set
+ {
+ CheckPropertyChangeAllowed("Default");
+ defaultControl = value;
+ ApplyPropertyChange("Default");
+ }
+ }
+
+ /// <summary>
+ /// Returns the Text property value for this button.
+ /// </summary>
+ /// <returns>A <see cref="System.String"/>.</returns>
+ public override string ToString()
+ {
+ return text ?? string.Empty;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogClosingEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogClosingEventArgs.cs
new file mode 100644
index 0000000000..5c3aa7614b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogClosingEventArgs.cs
@@ -0,0 +1,34 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.ComponentModel;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Data associated with <see cref="TaskDialog.Closing"/> event.
+ /// </summary>
+ public class TaskDialogClosingEventArgs : CancelEventArgs
+ {
+ private TaskDialogResult taskDialogResult;
+ /// <summary>
+ /// Gets or sets the standard button that was clicked.
+ /// </summary>
+ public TaskDialogResult TaskDialogResult
+ {
+ get { return taskDialogResult; }
+ set { taskDialogResult = value; }
+ }
+
+ private string customButton;
+ /// <summary>
+ /// Gets or sets the text of the custom button that was clicked.
+ /// </summary>
+ public string CustomButton
+ {
+ get { return customButton; }
+ set { customButton = value; }
+ }
+
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogCommandLink.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogCommandLink.cs
new file mode 100644
index 0000000000..7e757306e2
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogCommandLink.cs
@@ -0,0 +1,59 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Globalization;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Represents a command-link.
+ /// </summary>
+ public class TaskDialogCommandLink : TaskDialogButton
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public TaskDialogCommandLink() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and label.
+ /// </summary>
+ /// <param name="name">The name for this button.</param>
+ /// <param name="text">The label for this button.</param>
+ public TaskDialogCommandLink(string name, string text) : base(name, text) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name,label, and instruction.
+ /// </summary>
+ /// <param name="name">The name for this button.</param>
+ /// <param name="text">The label for this button.</param>
+ /// <param name="instruction">The instruction for this command link.</param>
+ public TaskDialogCommandLink(string name, string text, string instruction)
+ : base(name, text)
+ {
+ this.instruction = instruction;
+ }
+
+ private string instruction;
+ /// <summary>
+ /// Gets or sets the instruction associated with this command link button.
+ /// </summary>
+ public string Instruction
+ {
+ get { return instruction; }
+ set { instruction = value; }
+ }
+
+ /// <summary>
+ /// Returns a string representation of this object.
+ /// </summary>
+ /// <returns>A <see cref="System.String"/></returns>
+ public override string ToString()
+ {
+ return string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}",
+ Text ?? string.Empty,
+ (!string.IsNullOrEmpty(Text) && !string.IsNullOrEmpty(instruction)) ? Environment.NewLine : string.Empty,
+ instruction ?? string.Empty);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogControl.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogControl.cs
new file mode 100644
index 0000000000..3f0ed35ed0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogControl.cs
@@ -0,0 +1,20 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Declares the abstract base class for all custom task dialog controls.
+ /// </summary>
+ public abstract class TaskDialogControl : DialogControl
+ {
+ /// <summary>
+ /// Creates a new instance of a task dialog control.
+ /// </summary>
+ protected TaskDialogControl() { }
+ /// <summary>
+ /// Creates a new instance of a task dialog control with the specified name.
+ /// </summary>
+ /// <param name="name">The name for this control.</param>
+ protected TaskDialogControl(string name) : base(name) { }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogDefaults.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogDefaults.cs
new file mode 100644
index 0000000000..e9018e526b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogDefaults.cs
@@ -0,0 +1,23 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ internal static class TaskDialogDefaults
+ {
+ public static string Caption { get { return LocalizedMessages.TaskDialogDefaultCaption; } }
+ public static string MainInstruction { get { return LocalizedMessages.TaskDialogDefaultMainInstruction; } }
+ public static string Content { get { return LocalizedMessages.TaskDialogDefaultContent; } }
+
+ public const int ProgressBarMinimumValue = 0;
+ public const int ProgressBarMaximumValue = 100;
+
+ public const int IdealWidth = 0;
+
+ // For generating control ID numbers that won't
+ // collide with the standard button return IDs.
+ public const int MinimumDialogControlId =
+ (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Close + 1;
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogExpandedInfoMode.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogExpandedInfoMode.cs
new file mode 100644
index 0000000000..d2ac518837
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogExpandedInfoMode.cs
@@ -0,0 +1,25 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Specifies the options for expand/collapse sections in dialogs.
+ /// </summary>
+ public enum TaskDialogExpandedDetailsLocation
+ {
+ /// <summary>
+ /// Do not show the content.
+ /// </summary>
+ Hide,
+
+ /// <summary>
+ /// Show the content.
+ /// </summary>
+ ExpandContent,
+
+ /// <summary>
+ /// Expand the footer content.
+ /// </summary>
+ ExpandFooter
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogHyperlinkClickedEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogHyperlinkClickedEventArgs.cs
new file mode 100644
index 0000000000..b1e72af4c2
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogHyperlinkClickedEventArgs.cs
@@ -0,0 +1,26 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Defines event data associated with a HyperlinkClick event.
+ /// </summary>
+ public class TaskDialogHyperlinkClickedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Creates a new instance of this class with the specified link text.
+ /// </summary>
+ /// <param name="linkText">The text of the hyperlink that was clicked.</param>
+ public TaskDialogHyperlinkClickedEventArgs(string linkText)
+ {
+ LinkText = linkText;
+ }
+
+ /// <summary>
+ /// Gets or sets the text of the hyperlink that was clicked.
+ /// </summary>
+ public string LinkText { get; set; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBar.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBar.cs
new file mode 100644
index 0000000000..e63236521d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBar.cs
@@ -0,0 +1,123 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Provides a visual representation of the progress of a long running operation.
+ /// </summary>
+ public class TaskDialogProgressBar : TaskDialogBar
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public TaskDialogProgressBar() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name.
+ /// And using the default values: Min = 0, Max = 100, Current = 0
+ /// </summary>
+ /// <param name="name">The name of the control.</param>
+ public TaskDialogProgressBar(string name) : base(name) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified
+ /// minimum, maximum and current values.
+ /// </summary>
+ /// <param name="minimum">The minimum value for this control.</param>
+ /// <param name="maximum">The maximum value for this control.</param>
+ /// <param name="value">The current value for this control.</param>
+ public TaskDialogProgressBar(int minimum, int maximum, int value)
+ {
+ Minimum = minimum;
+ Maximum = maximum;
+ Value = value;
+ }
+
+ private int _minimum;
+ private int _value;
+ private int _maximum = TaskDialogDefaults.ProgressBarMaximumValue;
+
+ /// <summary>
+ /// Gets or sets the minimum value for the control.
+ /// </summary>
+ public int Minimum
+ {
+ get { return _minimum; }
+ set
+ {
+ CheckPropertyChangeAllowed("Minimum");
+
+ // Check for positive numbers
+ if (value < 0)
+ {
+ throw new System.ArgumentException(LocalizedMessages.TaskDialogProgressBarMinValueGreaterThanZero, "value");
+ }
+
+ // Check if min / max differ
+ if (value >= Maximum)
+ {
+ throw new System.ArgumentException(LocalizedMessages.TaskDialogProgressBarMinValueLessThanMax, "value");
+ }
+
+ _minimum = value;
+ ApplyPropertyChange("Minimum");
+ }
+ }
+ /// <summary>
+ /// Gets or sets the maximum value for the control.
+ /// </summary>
+ public int Maximum
+ {
+ get { return _maximum; }
+ set
+ {
+ CheckPropertyChangeAllowed("Maximum");
+
+ // Check if min / max differ
+ if (value < Minimum)
+ {
+ throw new System.ArgumentException(LocalizedMessages.TaskDialogProgressBarMaxValueGreaterThanMin, "value");
+ }
+ _maximum = value;
+ ApplyPropertyChange("Maximum");
+ }
+ }
+ /// <summary>
+ /// Gets or sets the current value for the control.
+ /// </summary>
+ public int Value
+ {
+ get { return this._value; }
+ set
+ {
+ CheckPropertyChangeAllowed("Value");
+ // Check for positive numbers
+ if (value < Minimum || value > Maximum)
+ {
+ throw new System.ArgumentException(LocalizedMessages.TaskDialogProgressBarValueInRange, "value");
+ }
+ this._value = value;
+ ApplyPropertyChange("Value");
+ }
+ }
+
+ /// <summary>
+ /// Verifies that the progress bar's value is between its minimum and maximum.
+ /// </summary>
+ internal bool HasValidValues
+ {
+ get { return _minimum <= _value && _value <= _maximum; }
+ }
+
+ /// <summary>
+ /// Resets the control to its minimum value.
+ /// </summary>
+ protected internal override void Reset()
+ {
+ base.Reset();
+ _value = _minimum;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBarState.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBarState.cs
new file mode 100644
index 0000000000..6f86451820
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogProgressBarState.cs
@@ -0,0 +1,35 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Sets the state of a task dialog progress bar.
+ /// </summary>
+ public enum TaskDialogProgressBarState
+ {
+ /// <summary>
+ /// Uninitialized state, this should never occur.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// Normal state.
+ /// </summary>
+ Normal = TaskDialogNativeMethods.ProgressBarState.Normal,
+
+ /// <summary>
+ /// An error occurred.
+ /// </summary>
+ Error = TaskDialogNativeMethods.ProgressBarState.Error,
+
+ /// <summary>
+ /// The progress is paused.
+ /// </summary>
+ Paused = TaskDialogNativeMethods.ProgressBarState.Paused,
+
+ /// <summary>
+ /// Displays marquee (indeterminate) style progress
+ /// </summary>
+ Marquee
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogRadioButton.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogRadioButton.cs
new file mode 100644
index 0000000000..93333d3077
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogRadioButton.cs
@@ -0,0 +1,25 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Defines a radio button that can be hosted in by a
+ /// <see cref="TaskDialog"/> object.
+ /// </summary>
+ public class TaskDialogRadioButton : TaskDialogButtonBase
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public TaskDialogRadioButton() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with
+ /// the specified name and text.
+ /// </summary>
+ /// <param name="name">The name for this control.</param>
+ /// <param name="text">The value for this controls
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Dialogs.TaskDialogButtonBase.Text"/> property.</param>
+ public TaskDialogRadioButton(string name, string text) : base(name, text) { }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogResult.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogResult.cs
new file mode 100644
index 0000000000..fc1a81653d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogResult.cs
@@ -0,0 +1,50 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Indicates the various buttons and options clicked by the user on the task dialog.
+ /// </summary>
+ public enum TaskDialogResult
+ {
+ /// <summary>
+ /// No button was selected.
+ /// </summary>
+ None = 0x0000,
+
+ /// <summary>
+ /// "OK" button was clicked
+ /// </summary>
+ Ok = 0x0001,
+
+ /// <summary>
+ /// "Yes" button was clicked
+ /// </summary>
+ Yes = 0x0002,
+
+ /// <summary>
+ /// "No" button was clicked
+ /// </summary>
+ No = 0x0004,
+
+ /// <summary>
+ /// "Cancel" button was clicked
+ /// </summary>
+ Cancel = 0x0008,
+
+ /// <summary>
+ /// "Retry" button was clicked
+ /// </summary>
+ Retry = 0x0010,
+
+ /// <summary>
+ /// "Close" button was clicked
+ /// </summary>
+ Close = 0x0020,
+
+ /// <summary>
+ /// A custom button was clicked.
+ /// </summary>
+ CustomButtonClicked = 0x0100,
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardButton.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardButton.cs
new file mode 100644
index 0000000000..f371db8a20
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardButton.cs
@@ -0,0 +1,49 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Identifies one of the standard buttons that
+ /// can be displayed via TaskDialog.
+ /// </summary>
+ [Flags]
+ public enum TaskDialogStandardButtons
+ {
+ /// <summary>
+ /// No buttons on the dialog.
+ /// </summary>
+ None = 0x0000,
+
+ /// <summary>
+ /// An "OK" button.
+ /// </summary>
+ Ok = 0x0001,
+
+ /// <summary>
+ /// A "Yes" button.
+ /// </summary>
+ Yes = 0x0002,
+
+ /// <summary>
+ /// A "No" button.
+ /// </summary>
+ No = 0x0004,
+
+ /// <summary>
+ /// A "Cancel" button.
+ /// </summary>
+ Cancel = 0x0008,
+
+ /// <summary>
+ /// A "Retry" button.
+ /// </summary>
+ Retry = 0x0010,
+
+ /// <summary>
+ /// A "Close" button.
+ /// </summary>
+ Close = 0x0020
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardIcon.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardIcon.cs
new file mode 100644
index 0000000000..bb8b2f3f50
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStandardIcon.cs
@@ -0,0 +1,35 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Specifies the icon displayed in a task dialog.
+ /// </summary>
+ public enum TaskDialogStandardIcon
+ {
+ /// <summary>
+ /// Displays no icons (default).
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// Displays the warning icon.
+ /// </summary>
+ Warning = 65535,
+
+ /// <summary>
+ /// Displays the error icon.
+ /// </summary>
+ Error = 65534,
+
+ /// <summary>
+ /// Displays the Information icon.
+ /// </summary>
+ Information = 65533,
+
+ /// <summary>
+ /// Displays the User Account Control shield.
+ /// </summary>
+ Shield = 65532
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStartupLocation.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStartupLocation.cs
new file mode 100644
index 0000000000..592283a982
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogStartupLocation.cs
@@ -0,0 +1,20 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Specifies the initial display location for a task dialog.
+ /// </summary>
+ public enum TaskDialogStartupLocation
+ {
+ /// <summary>
+ /// The window placed in the center of the screen.
+ /// </summary>
+ CenterScreen,
+
+ /// <summary>
+ /// The window centered relative to the window that launched the dialog.
+ /// </summary>
+ CenterOwner
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogTickEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogTickEventArgs.cs
new file mode 100644
index 0000000000..ab0cbbe04f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Dialogs/TaskDialogs/TaskDialogTickEventArgs.cs
@@ -0,0 +1,26 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// The event data for a TaskDialogTick event.
+ /// </summary>
+ public class TaskDialogTickEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Initializes the data associated with the TaskDialog tick event.
+ /// </summary>
+ /// <param name="ticks">The total number of ticks since the control was activated.</param>
+ public TaskDialogTickEventArgs(int ticks)
+ {
+ Ticks = ticks;
+ }
+
+ /// <summary>
+ /// Gets a value that determines the current number of ticks.
+ /// </summary>
+ public int Ticks { get; private set; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/GlobalSuppressions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/GlobalSuppressions.cs
new file mode 100644
index 0000000000..f4e4a58576
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/GlobalSuppressions.cs
@@ -0,0 +1,100 @@
+// This file is used by Code Analysis to maintain SuppressMessage
+// attributes that are applied to this project.
+// Project-level suppressions either have no target or are given
+// a specific target and scoped to a namespace, type, member, etc.
+//
+// To add a suppression to this file, right-click the message in the
+// Error List, point to "Suppress Message(s)", and click
+// "In Project Suppression File".
+// You do not need to add suppressions to this file manually.
+
+
+#region CA1709 Identifers should use proper casing - "API" acronym chosen for clarity
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.ApplicationServices", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Net", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Dialogs", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "MS.WindowsAPICodePack.Internal", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem", MessageId = "API")]
+#endregion
+
+
+#region CA1709 - Identifiers should use proper casing - "v" for "Version" chosen for clarity
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv6Internet", MessageId = "Pv")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv6NoTraffic", MessageId = "Pv")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv4Subnet", MessageId = "Pv")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv4NoTraffic", MessageId = "Pv")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv4Internet", MessageId = "Pv")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv4LocalNetwork", MessageId = "Pv")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv6Subnet", MessageId = "Pv")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Net.ConnectivityStates.#IPv6LocalNetwork", MessageId = "Pv")]
+#endregion
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", Scope = "member", Target = "Microsoft.WindowsAPICodePack.ApplicationServices.PowerPersonalityGuids.#All")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1805:DoNotInitializeUnnecessarily", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.PropVariant.#.cctor()")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "Microsoft.WindowsAPICodePack.Resources.LocalizedMessages.resources", MessageId = "comctl")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "Microsoft.WindowsAPICodePack.Resources.LocalizedMessages.resources", MessageId = "Wh")]
+
+#region CA1811 - Potentially uncalled code
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropVariantNativeMethods.#InitPropVariantFromPropVariantVectorElem(MS.WindowsAPICodePack.Internal.PropVariant,System.UInt32,MS.WindowsAPICodePack.Internal.PropVariant)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.DialogsDefaults.#get_Caption()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.DialogsDefaults.#get_Content()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreErrorHelper.#HResultFromWin32(System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreErrorHelper.#Failed(System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods+Size.#get_Height()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods+Size.#set_Height(System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods+Size.#set_Width(System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods+Size.#get_Width()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.DialogsDefaults.#get_MainInstruction()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialogSettings.#get_InvokeHelp()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialog.#get_SelectedRadioButtonId()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.TaskDialogNativeMethods+IconUnion.#get_MainIcon()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods.#SendMessage(System.IntPtr,MS.WindowsAPICodePack.Internal.WindowMessage,System.IntPtr,System.IntPtr)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods.#SendMessage(System.IntPtr,System.UInt32,System.IntPtr,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods.#SendMessage(System.IntPtr,System.UInt32,System.Int32,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods.#GetLoWord(System.Int64)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods.#GetHiWord(System.Int64,System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods.#PostMessage(System.IntPtr,MS.WindowsAPICodePack.Internal.WindowMessage,System.IntPtr,System.IntPtr)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreNativeMethods.#SendMessage(System.IntPtr,System.UInt32,System.Int32&,System.Text.StringBuilder)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.CoreErrorHelper.#Matches(System.Int32,System.Int32)")]
+#endregion
+
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant", Justification = "There are places where unsigned values are used, which is considered not Cls compliant.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA2210:AssembliesShouldHaveValidStrongNames")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem", Justification = "Uses nested classes to organize the namespce, there is a workitem to resolve this.")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Dialogs.TaskDialogResult", Justification = "Does not represent flags.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.PropVariant.#Value", Justification = "Uses a switch statement.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Scope = "member", Justification = "These return snapshots of a state, which are likely to change between calls.", Target = "Microsoft.WindowsAPICodePack.ApplicationServices.PowerManager.#GetCurrentBatteryState()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Scope = "member", Justification = "These return snapshots of a state, which are likely to change between calls.", Target = "Microsoft.WindowsAPICodePack.Net.NetworkListManager.#GetNetworkConnections()")]
+
+#region CA2122, CA2123 - LinkDemand related
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.PropVariant.#.ctor(System.Single[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.PropVariant.#.ctor(System.Decimal[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.ApplicationServices.ApplicationRestartRecoveryManager.#RegisterForApplicationRecovery(Microsoft.WindowsAPICodePack.ApplicationServices.RecoverySettings)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialog.#AllocateAndMarshalButtons(Microsoft.WindowsAPICodePack.Dialogs.TaskDialogNativeMethods+TaskDialogButton[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialog.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialog.#FreeOldString(Microsoft.WindowsAPICodePack.Dialogs.TaskDialogNativeMethods+TaskDialogElements)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialog.#MakeNewString(System.String,Microsoft.WindowsAPICodePack.Dialogs.TaskDialogNativeMethods+TaskDialogElements)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialog.#NativeShow()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.NativeTaskDialogSettings.#.ctor()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.PropVariant.#GetBlobData()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.PropVariant.#.ctor(System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.PropVariant.#Value")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.SafeWindowHandle.#ReleaseHandle()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.ApplicationServices.Power.#GetSystemBatteryState()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.ApplicationServices.Power.#GetSystemPowerCapabilities()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.ZeroInvalidHandle.#.ctor()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.SafeIconHandle.#ReleaseHandle()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.SafeRegionHandle.#ReleaseHandle()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.SafeWindowHandle.#ReleaseHandle()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.ZeroInvalidHandle.#IsInvalid")]
+#endregion
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Interoperability", "CA1400:PInvokeEntryPointsShouldExist", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.TaskDialogNativeMethods.#TaskDialogIndirect(Microsoft.WindowsAPICodePack.Dialogs.TaskDialogNativeMethods+TaskDialogConfiguration,System.Int32&,System.Int32&,System.Boolean&)", Justification="This does exist, I believe it is caused by FxCop using the wrong version of the DLL.")]
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/AppRestartRecovery/AppRestartRecoveryNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/AppRestartRecovery/AppRestartRecoveryNativeMethods.cs
new file mode 100644
index 0000000000..a86c71224e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/AppRestartRecovery/AppRestartRecoveryNativeMethods.cs
@@ -0,0 +1,65 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ internal static class AppRestartRecoveryNativeMethods
+ {
+ #region Application Restart and Recovery Definitions
+
+ internal delegate UInt32 InternalRecoveryCallback(IntPtr state);
+
+ private static InternalRecoveryCallback internalCallback = new InternalRecoveryCallback(InternalRecoveryHandler);
+ internal static InternalRecoveryCallback InternalCallback { get { return internalCallback; } }
+
+ private static UInt32 InternalRecoveryHandler(IntPtr parameter)
+ {
+ bool cancelled = false;
+ ApplicationRecoveryInProgress(out cancelled);
+
+ GCHandle handle = GCHandle.FromIntPtr(parameter);
+ RecoveryData data = handle.Target as RecoveryData;
+ data.Invoke();
+ handle.Free();
+
+ return (0);
+ }
+
+
+
+ [DllImport("kernel32.dll")]
+ internal static extern void ApplicationRecoveryFinished(
+ [MarshalAs(UnmanagedType.Bool)] bool success);
+
+ [DllImport("kernel32.dll")]
+ [PreserveSig]
+ internal static extern HResult ApplicationRecoveryInProgress(
+ [Out, MarshalAs(UnmanagedType.Bool)] out bool canceled);
+
+ [DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
+ [PreserveSig]
+ internal static extern HResult RegisterApplicationRecoveryCallback(
+ InternalRecoveryCallback callback, IntPtr param,
+ uint pingInterval,
+ uint flags); // Unused.
+
+ [DllImport("kernel32.dll")]
+ [PreserveSig]
+ internal static extern HResult RegisterApplicationRestart(
+ [MarshalAs(UnmanagedType.BStr)] string commandLineArgs,
+ RestartRestrictions flags);
+
+ [DllImport("kernel32.dll")]
+ [PreserveSig]
+ internal static extern HResult UnregisterApplicationRecoveryCallback();
+
+ [DllImport("kernel32.dll")]
+ [PreserveSig]
+ internal static extern HResult UnregisterApplicationRestart();
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreErrorHelper.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreErrorHelper.cs
new file mode 100644
index 0000000000..ba51a70465
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreErrorHelper.cs
@@ -0,0 +1,161 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// HRESULT Wrapper
+ /// </summary>
+ public enum HResult
+ {
+ /// <summary>
+ /// S_OK
+ /// </summary>
+ Ok = 0x0000,
+
+ /// <summary>
+ /// S_FALSE
+ /// </summary>
+ False = 0x0001,
+
+ /// <summary>
+ /// E_INVALIDARG
+ /// </summary>
+ InvalidArguments = unchecked((int)0x80070057),
+
+ /// <summary>
+ /// E_OUTOFMEMORY
+ /// </summary>
+ OutOfMemory = unchecked((int)0x8007000E),
+
+ /// <summary>
+ /// E_NOINTERFACE
+ /// </summary>
+ NoInterface = unchecked((int)0x80004002),
+
+ /// <summary>
+ /// E_FAIL
+ /// </summary>
+ Fail = unchecked((int)0x80004005),
+
+ /// <summary>
+ /// E_ELEMENTNOTFOUND
+ /// </summary>
+ ElementNotFound = unchecked((int)0x80070490),
+
+ /// <summary>
+ /// TYPE_E_ELEMENTNOTFOUND
+ /// </summary>
+ TypeElementNotFound = unchecked((int)0x8002802B),
+
+ /// <summary>
+ /// NO_OBJECT
+ /// </summary>
+ NoObject = unchecked((int)0x800401E5),
+
+ /// <summary>
+ /// Win32 Error code: ERROR_CANCELLED
+ /// </summary>
+ Win32ErrorCanceled = 1223,
+
+ /// <summary>
+ /// ERROR_CANCELLED
+ /// </summary>
+ Canceled = unchecked((int)0x800704C7),
+
+ /// <summary>
+ /// The requested resource is in use
+ /// </summary>
+ ResourceInUse = unchecked((int)0x800700AA),
+
+ /// <summary>
+ /// The requested resources is read-only.
+ /// </summary>
+ AccessDenied = unchecked((int)0x80030005)
+ }
+
+ /// <summary>
+ /// Provide Error Message Helper Methods.
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ internal static class CoreErrorHelper
+ {
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ private const int FacilityWin32 = 7;
+
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ public const int Ignored = (int)HResult.Ok;
+
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ /// <param name="win32ErrorCode">The Windows API error code.</param>
+ /// <returns>The equivalent HRESULT.</returns>
+ public static int HResultFromWin32(int win32ErrorCode)
+ {
+ if (win32ErrorCode > 0)
+ {
+ win32ErrorCode =
+ (int)(((uint)win32ErrorCode & 0x0000FFFF) | (FacilityWin32 << 16) | 0x80000000);
+ }
+ return win32ErrorCode;
+
+ }
+
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ /// <param name="result">The error code.</param>
+ /// <returns>True if the error code indicates success.</returns>
+ public static bool Succeeded(int result)
+ {
+ return result >= 0;
+ }
+
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ /// <param name="result">The error code.</param>
+ /// <returns>True if the error code indicates success.</returns>
+ public static bool Succeeded(HResult result)
+ {
+ return Succeeded((int)result);
+ }
+
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ /// <param name="result">The error code.</param>
+ /// <returns>True if the error code indicates failure.</returns>
+ public static bool Failed(HResult result)
+ {
+ return !Succeeded(result);
+ }
+
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ /// <param name="result">The error code.</param>
+ /// <returns>True if the error code indicates failure.</returns>
+ public static bool Failed(int result)
+ {
+ return !Succeeded(result);
+ }
+
+ /// <summary>
+ /// This is intended for Library Internal use only.
+ /// </summary>
+ /// <param name="result">The COM error code.</param>
+ /// <param name="win32ErrorCode">The Win32 error code.</param>
+ /// <returns>Inticates that the Win32 error code corresponds to the COM error code.</returns>
+ public static bool Matches(int result, int win32ErrorCode)
+ {
+ return (result == HResultFromWin32(win32ErrorCode));
+ }
+
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreHelpers.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreHelpers.cs
new file mode 100644
index 0000000000..878803cd64
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreHelpers.cs
@@ -0,0 +1,118 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Globalization;
+using System.Text;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// Common Helper methods
+ /// </summary>
+ public static class CoreHelpers
+ {
+ /// <summary>
+ /// Determines if the application is running on XP
+ /// </summary>
+ public static bool RunningOnXP
+ {
+ get
+ {
+ return Environment.OSVersion.Platform == PlatformID.Win32NT &&
+ Environment.OSVersion.Version.Major >= 5;
+ }
+ }
+
+ /// <summary>
+ /// Throws PlatformNotSupportedException if the application is not running on Windows XP
+ /// </summary>
+ public static void ThrowIfNotXP()
+ {
+ if (!CoreHelpers.RunningOnXP)
+ {
+ throw new PlatformNotSupportedException(LocalizedMessages.CoreHelpersRunningOnXp);
+ }
+ }
+
+ /// <summary>
+ /// Determines if the application is running on Vista
+ /// </summary>
+ public static bool RunningOnVista
+ {
+ get
+ {
+ return Environment.OSVersion.Version.Major >= 6;
+ }
+ }
+
+ /// <summary>
+ /// Throws PlatformNotSupportedException if the application is not running on Windows Vista
+ /// </summary>
+ public static void ThrowIfNotVista()
+ {
+ if (!CoreHelpers.RunningOnVista)
+ {
+ throw new PlatformNotSupportedException(LocalizedMessages.CoreHelpersRunningOnVista);
+ }
+ }
+
+ /// <summary>
+ /// Determines if the application is running on Windows 7
+ /// </summary>
+ public static bool RunningOnWin7
+ {
+ get
+ {
+ // Verifies that OS version is 6.1 or greater, and the Platform is WinNT.
+ return Environment.OSVersion.Platform == PlatformID.Win32NT &&
+ Environment.OSVersion.Version.CompareTo(new Version(6, 1)) >= 0;
+ }
+ }
+
+ /// <summary>
+ /// Throws PlatformNotSupportedException if the application is not running on Windows 7
+ /// </summary>
+ public static void ThrowIfNotWin7()
+ {
+ if (!CoreHelpers.RunningOnWin7)
+ {
+ throw new PlatformNotSupportedException(LocalizedMessages.CoreHelpersRunningOn7);
+ }
+ }
+
+ /// <summary>
+ /// Get a string resource given a resource Id
+ /// </summary>
+ /// <param name="resourceId">The resource Id</param>
+ /// <returns>The string resource corresponding to the given resource Id. Returns null if the resource id
+ /// is invalid or the string cannot be retrieved for any other reason.</returns>
+ public static string GetStringResource(string resourceId)
+ {
+ string[] parts;
+ string library;
+ int index;
+
+ if (string.IsNullOrEmpty(resourceId)) { return string.Empty; }
+
+ // Known folder "Recent" has a malformed resource id
+ // for its tooltip. This causes the resource id to
+ // parse into 3 parts instead of 2 parts if we don't fix.
+ resourceId = resourceId.Replace("shell32,dll", "shell32.dll");
+ parts = resourceId.Split(new char[] { ',' });
+
+ library = parts[0];
+ library = library.Replace(@"@", string.Empty);
+ library = Environment.ExpandEnvironmentVariables(library);
+ IntPtr handle = CoreNativeMethods.LoadLibrary(library);
+
+ parts[1] = parts[1].Replace("-", string.Empty);
+ index = int.Parse(parts[1], CultureInfo.InvariantCulture);
+
+ StringBuilder stringValue = new StringBuilder(255);
+ int retval = CoreNativeMethods.LoadString(handle, index, stringValue, 255);
+
+ return retval != 0 ? stringValue.ToString() : null;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreNativeMethods.cs
new file mode 100644
index 0000000000..4a645fb75f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/CoreNativeMethods.cs
@@ -0,0 +1,280 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Text;
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// Wrappers for Native Methods and Structs.
+ /// This type is intended for internal use only
+ /// </summary>
+ internal static class CoreNativeMethods
+ {
+ #region General Definitions
+
+ /// <summary>
+ /// Places (posts) a message in the message queue associated with the thread that created
+ /// the specified window and returns without waiting for the thread to process the message.
+ /// </summary>
+ /// <param name="windowHandle">Handle to the window whose window procedure will receive the message.
+ /// If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system,
+ /// including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
+ /// but the message is not sent to child windows.
+ /// </param>
+ /// <param name="message">Specifies the message to be sent.</param>
+ /// <param name="wparam">Specifies additional message-specific information.</param>
+ /// <param name="lparam">Specifies additional message-specific information.</param>
+ /// <returns>A return code specific to the message being sent.</returns>
+ [DllImport("user32.dll", CharSet = CharSet.Auto, PreserveSig=false, SetLastError = true)]
+ public static extern void PostMessage(
+ IntPtr windowHandle,
+ WindowMessage message,
+ IntPtr wparam,
+ IntPtr lparam
+ );
+
+ /// <summary>
+ /// Sends the specified message to a window or windows. The SendMessage function calls
+ /// the window procedure for the specified window and does not return until the window
+ /// procedure has processed the message.
+ /// </summary>
+ /// <param name="windowHandle">Handle to the window whose window procedure will receive the message.
+ /// If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system,
+ /// including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
+ /// but the message is not sent to child windows.
+ /// </param>
+ /// <param name="message">Specifies the message to be sent.</param>
+ /// <param name="wparam">Specifies additional message-specific information.</param>
+ /// <param name="lparam">Specifies additional message-specific information.</param>
+ /// <returns>A return code specific to the message being sent.</returns>
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
+ public static extern IntPtr SendMessage(
+ IntPtr windowHandle,
+ WindowMessage message,
+ IntPtr wparam,
+ IntPtr lparam
+ );
+
+ /// <summary>
+ /// Sends the specified message to a window or windows. The SendMessage function calls
+ /// the window procedure for the specified window and does not return until the window
+ /// procedure has processed the message.
+ /// </summary>
+ /// <param name="windowHandle">Handle to the window whose window procedure will receive the message.
+ /// If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system,
+ /// including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
+ /// but the message is not sent to child windows.
+ /// </param>
+ /// <param name="message">Specifies the message to be sent.</param>
+ /// <param name="wparam">Specifies additional message-specific information.</param>
+ /// <param name="lparam">Specifies additional message-specific information.</param>
+ /// <returns>A return code specific to the message being sent.</returns>
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
+ public static extern IntPtr SendMessage(
+ IntPtr windowHandle,
+ uint message,
+ IntPtr wparam,
+ IntPtr lparam
+ );
+
+ /// <summary>
+ /// Sends the specified message to a window or windows. The SendMessage function calls
+ /// the window procedure for the specified window and does not return until the window
+ /// procedure has processed the message.
+ /// </summary>
+ /// <param name="windowHandle">Handle to the window whose window procedure will receive the message.
+ /// If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system,
+ /// including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
+ /// but the message is not sent to child windows.
+ /// </param>
+ /// <param name="message">Specifies the message to be sent.</param>
+ /// <param name="wparam">Specifies additional message-specific information.</param>
+ /// <param name="lparam">Specifies additional message-specific information.</param>
+ /// <returns>A return code specific to the message being sent.</returns>
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
+ public static extern IntPtr SendMessage(
+ IntPtr windowHandle,
+ uint message,
+ IntPtr wparam,
+ [MarshalAs(UnmanagedType.LPWStr)] string lparam);
+
+ /// <summary>
+ /// Sends the specified message to a window or windows. The SendMessage function calls
+ /// the window procedure for the specified window and does not return until the window
+ /// procedure has processed the message.
+ /// </summary>
+ /// <param name="windowHandle">Handle to the window whose window procedure will receive the message.
+ /// If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system,
+ /// including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
+ /// but the message is not sent to child windows.
+ /// </param>
+ /// <param name="message">Specifies the message to be sent.</param>
+ /// <param name="wparam">Specifies additional message-specific information.</param>
+ /// <param name="lparam">Specifies additional message-specific information.</param>
+ /// <returns>A return code specific to the message being sent.</returns>
+ public static IntPtr SendMessage(
+ IntPtr windowHandle,
+ uint message,
+ int wparam,
+ string lparam)
+ {
+ return SendMessage(windowHandle, message, (IntPtr)wparam, lparam);
+ }
+
+ /// <summary>
+ /// Sends the specified message to a window or windows. The SendMessage function calls
+ /// the window procedure for the specified window and does not return until the window
+ /// procedure has processed the message.
+ /// </summary>
+ /// <param name="windowHandle">Handle to the window whose window procedure will receive the message.
+ /// If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system,
+ /// including disabled or invisible unowned windows, overlapped windows, and pop-up windows;
+ /// but the message is not sent to child windows.
+ /// </param>
+ /// <param name="message">Specifies the message to be sent.</param>
+ /// <param name="wparam">Specifies additional message-specific information.</param>
+ /// <param name="lparam">Specifies additional message-specific information.</param>
+ /// <returns>A return code specific to the message being sent.</returns>
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
+ public static extern IntPtr SendMessage(
+ IntPtr windowHandle,
+ uint message,
+ ref int wparam,
+ [MarshalAs(UnmanagedType.LPWStr)] StringBuilder lparam);
+
+ // Various helpers for forcing binding to proper
+ // version of Comctl32 (v6).
+ [DllImport("kernel32.dll", SetLastError = true, ThrowOnUnmappableChar = true, BestFitMapping = false)]
+ internal static extern IntPtr LoadLibrary([MarshalAs(UnmanagedType.LPStr)] string fileName);
+
+ [DllImport("gdi32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool DeleteObject(IntPtr graphicsObjectHandle);
+
+ [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
+ internal static extern int LoadString(
+ IntPtr instanceHandle,
+ int id,
+ StringBuilder buffer,
+ int bufferSize);
+
+ [DllImport("Kernel32.dll", EntryPoint = "LocalFree")]
+ internal static extern IntPtr LocalFree(ref Guid guid);
+
+ /// <summary>
+ /// Destroys an icon and frees any memory the icon occupied.
+ /// </summary>
+ /// <param name="hIcon">Handle to the icon to be destroyed. The icon must not be in use. </param>
+ /// <returns>If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. </returns>
+ [DllImport("user32.dll", SetLastError = true)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool DestroyIcon(IntPtr hIcon);
+
+ #endregion
+
+ #region Window Handling
+
+ [DllImport("user32.dll", SetLastError = true, EntryPoint = "DestroyWindow", CallingConvention = CallingConvention.StdCall)]
+ internal static extern int DestroyWindow(IntPtr handle);
+
+ #endregion
+
+ #region General Declarations
+
+ // Various important window messages
+ internal const int UserMessage = 0x0400;
+ internal const int EnterIdleMessage = 0x0121;
+
+ // FormatMessage constants and structs.
+ internal const int FormatMessageFromSystem = 0x00001000;
+
+ // App recovery and restart return codes
+ internal const uint ResultFailed = 0x80004005;
+ internal const uint ResultInvalidArgument = 0x80070057;
+ internal const uint ResultFalse = 1;
+ internal const uint ResultNotFound = 0x80070490;
+
+ /// <summary>
+ /// Gets the HiWord
+ /// </summary>
+ /// <param name="value">The value to get the hi word from.</param>
+ /// <param name="size">Size</param>
+ /// <returns>The upper half of the dword.</returns>
+ public static int GetHiWord(long value, int size)
+ {
+ return (short)(value >> size);
+ }
+
+ /// <summary>
+ /// Gets the LoWord
+ /// </summary>
+ /// <param name="value">The value to get the low word from.</param>
+ /// <returns>The lower half of the dword.</returns>
+ public static int GetLoWord(long value)
+ {
+ return (short)(value & 0xFFFF);
+ }
+
+ #endregion
+
+ #region GDI and DWM Declarations
+
+ /// <summary>
+ /// A Wrapper for a SIZE struct
+ /// </summary>
+ [StructLayout(LayoutKind.Sequential)]
+ public struct Size
+ {
+ private int width;
+ private int height;
+
+ /// <summary>
+ /// Width
+ /// </summary>
+ public int Width { get { return width; } set { width = value; } }
+
+ /// <summary>
+ /// Height
+ /// </summary>
+ public int Height { get { return height; } set { height = value; } }
+ };
+
+ // Enable/disable non-client rendering based on window style.
+ internal const int DWMNCRP_USEWINDOWSTYLE = 0;
+
+ // Disabled non-client rendering; window style is ignored.
+ internal const int DWMNCRP_DISABLED = 1;
+
+ // Enabled non-client rendering; window style is ignored.
+ internal const int DWMNCRP_ENABLED = 2;
+
+ // Enable/disable non-client rendering Use DWMNCRP_* values.
+ internal const int DWMWA_NCRENDERING_ENABLED = 1;
+
+ // Non-client rendering policy.
+ internal const int DWMWA_NCRENDERING_POLICY = 2;
+
+ // Potentially enable/forcibly disable transitions 0 or 1.
+ internal const int DWMWA_TRANSITIONS_FORCEDISABLED = 3;
+
+ #endregion
+
+ #region Windows OS structs and consts
+
+ internal const uint StatusAccessDenied = 0xC0000022;
+
+
+
+ public delegate int WNDPROC(IntPtr hWnd,
+ uint uMessage,
+ IntPtr wParam,
+ IntPtr lParam);
+
+ #endregion
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/Dialogs/DialogShowState.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/Dialogs/DialogShowState.cs
new file mode 100644
index 0000000000..a285747f8c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/Dialogs/DialogShowState.cs
@@ -0,0 +1,30 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Dialog Show State
+ /// </summary>
+ public enum DialogShowState
+ {
+ /// <summary>
+ /// Pre Show
+ /// </summary>
+ PreShow,
+
+ /// <summary>
+ /// Currently Showing
+ /// </summary>
+ Showing,
+
+ /// <summary>
+ /// Currently Closing
+ /// </summary>
+ Closing,
+
+ /// <summary>
+ /// Closed
+ /// </summary>
+ Closed
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetwork.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetwork.cs
new file mode 100644
index 0000000000..de81e31299
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetwork.cs
@@ -0,0 +1,67 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ [ComImport]
+ [TypeLibType((short)0x1040)]
+ [Guid("DCB00002-570F-4A9B-8D69-199FDBA5723B")]
+ internal interface INetwork
+ {
+ [return: MarshalAs(UnmanagedType.BStr)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ string GetName();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetName([In, MarshalAs(UnmanagedType.BStr)] string szNetworkNewName);
+
+ [return: MarshalAs(UnmanagedType.BStr)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ string GetDescription();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDescription([In, MarshalAs(UnmanagedType.BStr)] string szDescription);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ Guid GetNetworkId();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ DomainType GetDomainType();
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ IEnumerable GetNetworkConnections();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetTimeCreatedAndConnected(
+ out uint pdwLowDateTimeCreated,
+ out uint pdwHighDateTimeCreated,
+ out uint pdwLowDateTimeConnected,
+ out uint pdwHighDateTimeConnected);
+
+ bool IsConnectedToInternet
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ get;
+ }
+
+ bool IsConnected
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ get;
+ }
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ ConnectivityStates GetConnectivity();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ NetworkCategory GetCategory();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetCategory([In] NetworkCategory NewCategory);
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkConnection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkConnection.cs
new file mode 100644
index 0000000000..05cab734f4
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkConnection.cs
@@ -0,0 +1,43 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ [ComImport]
+ [TypeLibType((short)0x1040)]
+ [Guid("DCB00005-570F-4A9B-8D69-199FDBA5723B")]
+ internal interface INetworkConnection
+ {
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ INetwork GetNetwork();
+
+ bool IsConnectedToInternet
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ get;
+ }
+
+ bool IsConnected
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ get;
+ }
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ ConnectivityStates GetConnectivity();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ Guid GetConnectionId();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ Guid GetAdapterId();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ DomainType GetDomainType();
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkListManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkListManager.cs
new file mode 100644
index 0000000000..5a7bb476bd
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/INetworkListManager.cs
@@ -0,0 +1,46 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ [ComImport]
+ [Guid("DCB00000-570F-4A9B-8D69-199FDBA5723B")]
+ [TypeLibType((short)0x1040)]
+ internal interface INetworkListManager
+ {
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ IEnumerable GetNetworks([In] NetworkConnectivityLevels Flags);
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ INetwork GetNetwork([In] Guid gdNetworkId);
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ IEnumerable GetNetworkConnections();
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ INetworkConnection GetNetworkConnection([In] Guid gdNetworkConnectionId);
+
+ bool IsConnectedToInternet
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ get;
+ }
+
+ bool IsConnected
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ get;
+ }
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ ConnectivityStates GetConnectivity();
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/NetworkListManagerClass.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/NetworkListManagerClass.cs
new file mode 100644
index 0000000000..d5b808c566
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/NetworkList/NetworkListManagerClass.cs
@@ -0,0 +1,47 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ [ComImport, ClassInterface((short)0), Guid("DCB00C01-570F-4A9B-8D69-199FDBA5723B")]
+ [ComSourceInterfaces("Microsoft.Windows.NetworkList.Internal.INetworkEvents\0Microsoft.Windows.NetworkList.Internal.INetworkConnectionEvents\0Microsoft.Windows.NetworkList.Internal.INetworkListManagerEvents\0"), TypeLibType((short)2)]
+ internal class NetworkListManagerClass : INetworkListManager
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)]
+ public virtual extern ConnectivityStates GetConnectivity();
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)]
+ public virtual extern INetwork GetNetwork([In] Guid gdNetworkId);
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
+ public virtual extern INetworkConnection GetNetworkConnection([In] Guid gdNetworkConnectionId);
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)]
+ public virtual extern IEnumerable GetNetworkConnections();
+
+ [return: MarshalAs(UnmanagedType.Interface)]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)]
+ public virtual extern IEnumerable GetNetworks([In] NetworkConnectivityLevels Flags);
+
+ [DispId(6)]
+ public virtual extern bool IsConnected
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)]
+ get;
+ }
+
+ [DispId(5)]
+ public virtual extern bool IsConnectedToInternet
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
+ get;
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/PowerManagement/PowerManagementNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/PowerManagement/PowerManagementNativeMethods.cs
new file mode 100644
index 0000000000..98fff9f33e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/PowerManagement/PowerManagementNativeMethods.cs
@@ -0,0 +1,227 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ internal static class PowerManagementNativeMethods
+ {
+ #region Power Management
+
+ internal const uint PowerBroadcastMessage = 536;
+ internal const uint PowerSettingChangeMessage = 32787;
+ internal const uint ScreenSaverSetActive = 0x0011;
+ internal const uint UpdateInFile = 0x0001;
+ internal const uint SendChange = 0x0002;
+
+ // This structure is sent when the PBT_POWERSETTINGSCHANGE message is sent.
+ // It describes the power setting that has changed and
+ // contains data about the change.
+ [StructLayout(LayoutKind.Sequential, Pack = 4)]
+ public struct PowerBroadcastSetting
+ {
+ public Guid PowerSetting;
+ public Int32 DataLength;
+ }
+
+ // This structure is used when calling CallNtPowerInformation
+ // to retrieve SystemPowerCapabilities
+ [StructLayout(LayoutKind.Sequential)]
+ public struct SystemPowerCapabilities
+ {
+ [MarshalAs(UnmanagedType.I1)]
+ public bool PowerButtonPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool SleepButtonPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool LidPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool SystemS1;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool SystemS2;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool SystemS3;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool SystemS4;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool SystemS5;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool HiberFilePresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool FullWake;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool VideoDimPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool ApmPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool UpsPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool ThermalControl;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool ProcessorThrottle;
+ public byte ProcessorMinimumThrottle;
+ public byte ProcessorMaximumThrottle;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool FastSystemS4;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
+ public byte[] spare2;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool DiskSpinDown;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
+ public byte[] spare3;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool SystemBatteriesPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool BatteriesAreShortTerm;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
+ public BatteryReportingScale[] BatteryScale;
+ public SystemPowerState AcOnlineWake;
+ public SystemPowerState SoftLidWake;
+ public SystemPowerState RtcWake;
+ public SystemPowerState MinimumDeviceWakeState;
+ public SystemPowerState DefaultLowLatencyWake;
+ }
+
+ public enum PowerInformationLevel
+ {
+ SystemPowerPolicyAc,
+ SystemPowerPolicyDc,
+ VerifySystemPolicyAc,
+ VerifySystemPolicyDc,
+ SystemPowerCapabilities,
+ SystemBatteryState,
+ SystemPowerStateHandler,
+ ProcessorStateHandler,
+ SystemPowerPolicyCurrent,
+ AdministratorPowerPolicy,
+ SystemReserveHiberFile,
+ ProcessorInformation,
+ SystemPowerInformation,
+ ProcessorStateHandler2,
+ LastWakeTime,
+ LastSleepTime,
+ SystemExecutionState,
+ SystemPowerStateNotifyHandler,
+ ProcessorPowerPolicyAc,
+ ProcessorPowerPolicyDc,
+ VerifyProcessorPowerPolicyAc,
+ VerifyProcessorPowerPolicyDc,
+ ProcessorPowerPolicyCurrent,
+ SystemPowerStateLogging,
+ SystemPowerLoggingEntry,
+ SetPowerSettingValue,
+ NotifyUserPowerSetting,
+ PowerInformationLevelUnused0,
+ PowerInformationLevelUnused1,
+ SystemVideoState,
+ TraceApplicationPowerMessage,
+ TraceApplicationPowerMessageEnd,
+ ProcessorPerfStates,
+ ProcessorIdleStates,
+ ProcessorCap,
+ SystemWakeSource,
+ SystemHiberFileInformation,
+ TraceServicePowerMessage,
+ ProcessorLoad,
+ PowerShutdownNotification,
+ MonitorCapabilities,
+ SessionPowerInit,
+ SessionDisplayState,
+ PowerRequestCreate,
+ PowerRequestAction,
+ GetPowerRequestList,
+ ProcessorInformationEx,
+ NotifyUserModeLegacyPowerEvent,
+ GroupPark,
+ ProcessorIdleDomains,
+ WakeTimerList,
+ SystemHiberFileSize,
+ PowerInformationLevelMaximum
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct BatteryReportingScale
+ {
+ public UInt32 Granularity;
+ public UInt32 Capacity;
+ }
+
+ public enum SystemPowerState
+ {
+ Unspecified = 0,
+ Working = 1,
+ Sleeping1 = 2,
+ Sleeping2 = 3,
+ Sleeping3 = 4,
+ Hibernate = 5,
+ Shutdown = 6,
+ Maximum = 7
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ public struct SystemBatteryState
+ {
+ [MarshalAs(UnmanagedType.I1)]
+ public bool AcOnLine;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool BatteryPresent;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool Charging;
+ [MarshalAs(UnmanagedType.I1)]
+ public bool Discharging;
+ public byte Spare1;
+ public byte Spare2;
+ public byte Spare3;
+ public byte Spare4;
+ public uint MaxCapacity;
+ public uint RemainingCapacity;
+ public uint Rate;
+ public uint EstimatedTime;
+ public uint DefaultAlert1;
+ public uint DefaultAlert2;
+ }
+
+ [DllImport("powrprof.dll")]
+ internal static extern UInt32 CallNtPowerInformation(
+ PowerInformationLevel informationLevel,
+ IntPtr inputBuffer,
+ UInt32 inputBufferSize,
+ out SystemPowerCapabilities outputBuffer,
+ UInt32 outputBufferSize
+ );
+
+ [DllImport("powrprof.dll")]
+ internal static extern UInt32 CallNtPowerInformation(
+ PowerInformationLevel informationLevel,
+ IntPtr inputBuffer,
+ UInt32 inputBufferSize,
+ out SystemBatteryState outputBuffer,
+ UInt32 outputBufferSize
+ );
+
+ /// <summary>
+ /// Gets the Guid relating to the currently active power scheme.
+ /// </summary>
+ /// <param name="rootPowerKey">Reserved for future use, this must be set to IntPtr.Zero</param>
+ /// <param name="activePolicy">Returns a Guid referring to the currently active power scheme.</param>
+ [DllImport("powrprof.dll")]
+ internal static extern void PowerGetActiveScheme(
+ IntPtr rootPowerKey,
+ [MarshalAs(UnmanagedType.LPStruct)]
+ out Guid activePolicy);
+
+ [DllImport("User32", SetLastError = true,
+ EntryPoint = "RegisterPowerSettingNotification",
+ CallingConvention = CallingConvention.StdCall)]
+ internal static extern int RegisterPowerSettingNotification(
+ IntPtr hRecipient,
+ ref Guid PowerSettingGuid,
+ Int32 Flags);
+
+ [DllImport("kernel32.dll", SetLastError = true)]
+ internal static extern ExecutionStates SetThreadExecutionState(ExecutionStates esFlags);
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialog.cs
new file mode 100644
index 0000000000..5a685ede5a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialog.cs
@@ -0,0 +1,612 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Encapsulates the native logic required to create,
+ /// configure, and show a TaskDialog,
+ /// via the TaskDialogIndirect() Win32 function.
+ /// </summary>
+ /// <remarks>A new instance of this class should
+ /// be created for each messagebox show, as
+ /// the HWNDs for TaskDialogs do not remain constant
+ /// across calls to TaskDialogIndirect.
+ /// </remarks>
+ internal class NativeTaskDialog : IDisposable
+ {
+ private TaskDialogNativeMethods.TaskDialogConfiguration nativeDialogConfig;
+ private NativeTaskDialogSettings settings;
+ private IntPtr hWndDialog;
+ private TaskDialog outerDialog;
+
+ private IntPtr[] updatedStrings = new IntPtr[Enum.GetNames(typeof(TaskDialogNativeMethods.TaskDialogElements)).Length];
+ private IntPtr buttonArray, radioButtonArray;
+
+ // Flag tracks whether our first radio
+ // button click event has come through.
+ private bool firstRadioButtonClicked = true;
+
+ #region Constructors
+
+ // Configuration is applied at dialog creation time.
+ internal NativeTaskDialog(NativeTaskDialogSettings settings, TaskDialog outerDialog)
+ {
+ nativeDialogConfig = settings.NativeConfiguration;
+ this.settings = settings;
+
+ // Wireup dialog proc message loop for this instance.
+ nativeDialogConfig.callback = new TaskDialogNativeMethods.TaskDialogCallback(DialogProc);
+
+ ShowState = DialogShowState.PreShow;
+
+ // Keep a reference to the outer shell, so we can notify.
+ this.outerDialog = outerDialog;
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ public DialogShowState ShowState { get; private set; }
+
+ public int SelectedButtonId { get; private set; }
+
+ public int SelectedRadioButtonId { get; private set; }
+
+ public bool CheckBoxChecked { get; private set; }
+
+ #endregion
+
+ internal void NativeShow()
+ {
+ // Applies config struct and other settings, then
+ // calls main Win32 function.
+ if (settings == null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.NativeTaskDialogConfigurationError);
+ }
+
+ // Do a last-minute parse of the various dialog control lists,
+ // and only allocate the memory at the last minute.
+
+ MarshalDialogControlStructs();
+
+ // Make the call and show the dialog.
+ // NOTE: this call is BLOCKING, though the thread
+ // WILL re-enter via the DialogProc.
+ try
+ {
+ ShowState = DialogShowState.Showing;
+
+ int selectedButtonId;
+ int selectedRadioButtonId;
+ bool checkBoxChecked;
+
+ // Here is the way we use "vanilla" P/Invoke to call TaskDialogIndirect().
+ HResult hresult = TaskDialogNativeMethods.TaskDialogIndirect(
+ nativeDialogConfig,
+ out selectedButtonId,
+ out selectedRadioButtonId,
+ out checkBoxChecked);
+
+ if (CoreErrorHelper.Failed(hresult))
+ {
+ string msg;
+ switch (hresult)
+ {
+ case HResult.InvalidArguments:
+ msg = LocalizedMessages.NativeTaskDialogInternalErrorArgs;
+ break;
+ case HResult.OutOfMemory:
+ msg = LocalizedMessages.NativeTaskDialogInternalErrorComplex;
+ break;
+ default:
+ msg = string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.NativeTaskDialogInternalErrorUnexpected,
+ hresult);
+ break;
+ }
+ Exception e = Marshal.GetExceptionForHR((int)hresult);
+ throw new Win32Exception(msg, e);
+ }
+
+ SelectedButtonId = selectedButtonId;
+ SelectedRadioButtonId = selectedRadioButtonId;
+ CheckBoxChecked = checkBoxChecked;
+ }
+ catch (EntryPointNotFoundException exc)
+ {
+ throw new NotSupportedException(LocalizedMessages.NativeTaskDialogVersionError, exc);
+ }
+ finally
+ {
+ ShowState = DialogShowState.Closed;
+ }
+ }
+
+ // The new task dialog does not support the existing
+ // Win32 functions for closing (e.g. EndDialog()); instead,
+ // a "click button" message is sent. In this case, we're
+ // abstracting out to say that the TaskDialog consumer can
+ // simply call "Close" and we'll "click" the cancel button.
+ // Note that the cancel button doesn't actually
+ // have to exist for this to work.
+ internal void NativeClose(TaskDialogResult result)
+ {
+ ShowState = DialogShowState.Closing;
+
+ int id;
+ switch (result)
+ {
+ case TaskDialogResult.Close:
+ id = (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Close;
+ break;
+ case TaskDialogResult.CustomButtonClicked:
+ id = DialogsDefaults.MinimumDialogControlId; // custom buttons
+ break;
+ case TaskDialogResult.No:
+ id = (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.No;
+ break;
+ case TaskDialogResult.Ok:
+ id = (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Ok;
+ break;
+ case TaskDialogResult.Retry:
+ id = (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Retry;
+ break;
+ case TaskDialogResult.Yes:
+ id = (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Yes;
+ break;
+ default:
+ id = (int)TaskDialogNativeMethods.TaskDialogCommonButtonReturnIds.Cancel;
+ break;
+ }
+
+ SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.ClickButton, id, 0);
+ }
+
+ #region Main Dialog Proc
+
+ private int DialogProc(
+ IntPtr windowHandle,
+ uint message,
+ IntPtr wparam,
+ IntPtr lparam,
+ IntPtr referenceData)
+ {
+ // Fetch the HWND - it may be the first time we're getting it.
+ hWndDialog = windowHandle;
+
+ // Big switch on the various notifications the
+ // dialog proc can get.
+ switch ((TaskDialogNativeMethods.TaskDialogNotifications)message)
+ {
+ case TaskDialogNativeMethods.TaskDialogNotifications.Created:
+ int result = PerformDialogInitialization();
+ outerDialog.RaiseOpenedEvent();
+ return result;
+ case TaskDialogNativeMethods.TaskDialogNotifications.ButtonClicked:
+ return HandleButtonClick((int)wparam);
+ case TaskDialogNativeMethods.TaskDialogNotifications.RadioButtonClicked:
+ return HandleRadioButtonClick((int)wparam);
+ case TaskDialogNativeMethods.TaskDialogNotifications.HyperlinkClicked:
+ return HandleHyperlinkClick(lparam);
+ case TaskDialogNativeMethods.TaskDialogNotifications.Help:
+ return HandleHelpInvocation();
+ case TaskDialogNativeMethods.TaskDialogNotifications.Timer:
+ return HandleTick((int)wparam);
+ case TaskDialogNativeMethods.TaskDialogNotifications.Destroyed:
+ return PerformDialogCleanup();
+ default:
+ break;
+ }
+ return (int)HResult.Ok;
+ }
+
+ // Once the task dialog HWND is open, we need to send
+ // additional messages to configure it.
+ private int PerformDialogInitialization()
+ {
+ // Initialize Progress or Marquee Bar.
+ if (IsOptionSet(TaskDialogNativeMethods.TaskDialogOptions.ShowProgressBar))
+ {
+ UpdateProgressBarRange();
+
+ // The order of the following is important -
+ // state is more important than value,
+ // and non-normal states turn off the bar value change
+ // animation, which is likely the intended
+ // and preferable behavior.
+ UpdateProgressBarState(settings.ProgressBarState);
+ UpdateProgressBarValue(settings.ProgressBarValue);
+
+ // Due to a bug that wasn't fixed in time for RTM of Vista,
+ // second SendMessage is required if the state is non-Normal.
+ UpdateProgressBarValue(settings.ProgressBarValue);
+ }
+ else if (IsOptionSet(TaskDialogNativeMethods.TaskDialogOptions.ShowMarqueeProgressBar))
+ {
+ // TDM_SET_PROGRESS_BAR_MARQUEE is necessary
+ // to cause the marquee to start animating.
+ // Note that this internal task dialog setting is
+ // round-tripped when the marquee is
+ // is set to different states, so it never has to
+ // be touched/sent again.
+ SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.SetProgressBarMarquee, 1, 0);
+ UpdateProgressBarState(settings.ProgressBarState);
+ }
+
+ if (settings.ElevatedButtons != null && settings.ElevatedButtons.Count > 0)
+ {
+ foreach (int id in settings.ElevatedButtons)
+ {
+ UpdateElevationIcon(id, true);
+ }
+ }
+
+ return CoreErrorHelper.Ignored;
+ }
+
+ private int HandleButtonClick(int id)
+ {
+ // First we raise a Click event, if there is a custom button
+ // However, we implement Close() by sending a cancel button, so
+ // we don't want to raise a click event in response to that.
+ if (ShowState != DialogShowState.Closing)
+ {
+ outerDialog.RaiseButtonClickEvent(id);
+ }
+
+ // Once that returns, we raise a Closing event for the dialog
+ // The Win32 API handles button clicking-and-closing
+ // as an atomic action,
+ // but it is more .NET friendly to split them up.
+ // Unfortunately, we do NOT have the return values at this stage.
+ if (id < DialogsDefaults.MinimumDialogControlId)
+ {
+ return outerDialog.RaiseClosingEvent(id);
+ }
+
+ return (int)HResult.False;
+ }
+
+ private int HandleRadioButtonClick(int id)
+ {
+ // When the dialog sets the radio button to default,
+ // it (somewhat confusingly)issues a radio button clicked event
+ // - we mask that out - though ONLY if
+ // we do have a default radio button
+ if (firstRadioButtonClicked
+ && !IsOptionSet(TaskDialogNativeMethods.TaskDialogOptions.NoDefaultRadioButton))
+ {
+ firstRadioButtonClicked = false;
+ }
+ else
+ {
+ outerDialog.RaiseButtonClickEvent(id);
+ }
+
+ // Note: we don't raise Closing, as radio
+ // buttons are non-committing buttons
+ return CoreErrorHelper.Ignored;
+ }
+
+ private int HandleHyperlinkClick(IntPtr href)
+ {
+ string link = Marshal.PtrToStringUni(href);
+ outerDialog.RaiseHyperlinkClickEvent(link);
+
+ return CoreErrorHelper.Ignored;
+ }
+
+
+ private int HandleTick(int ticks)
+ {
+ outerDialog.RaiseTickEvent(ticks);
+ return CoreErrorHelper.Ignored;
+ }
+
+ private int HandleHelpInvocation()
+ {
+ outerDialog.RaiseHelpInvokedEvent();
+ return CoreErrorHelper.Ignored;
+ }
+
+ // There should be little we need to do here,
+ // as the use of the NativeTaskDialog is
+ // that it is instantiated for a single show, then disposed of.
+ private int PerformDialogCleanup()
+ {
+ firstRadioButtonClicked = true;
+
+ return CoreErrorHelper.Ignored;
+ }
+
+ #endregion
+
+ #region Update members
+
+ internal void UpdateProgressBarValue(int i)
+ {
+ AssertCurrentlyShowing();
+ SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.SetProgressBarPosition, i, 0);
+ }
+
+ internal void UpdateProgressBarRange()
+ {
+ AssertCurrentlyShowing();
+
+ // Build range LPARAM - note it is in REVERSE intuitive order.
+ long range = NativeTaskDialog.MakeLongLParam(
+ settings.ProgressBarMaximum,
+ settings.ProgressBarMinimum);
+
+ SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.SetProgressBarRange, 0, range);
+ }
+
+ internal void UpdateProgressBarState(TaskDialogProgressBarState state)
+ {
+ AssertCurrentlyShowing();
+ SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.SetProgressBarState, (int)state, 0);
+ }
+
+ internal void UpdateText(string text)
+ {
+ UpdateTextCore(text, TaskDialogNativeMethods.TaskDialogElements.Content);
+ }
+
+ internal void UpdateInstruction(string instruction)
+ {
+ UpdateTextCore(instruction, TaskDialogNativeMethods.TaskDialogElements.MainInstruction);
+ }
+
+ internal void UpdateFooterText(string footerText)
+ {
+ UpdateTextCore(footerText, TaskDialogNativeMethods.TaskDialogElements.Footer);
+ }
+
+ internal void UpdateExpandedText(string expandedText)
+ {
+ UpdateTextCore(expandedText, TaskDialogNativeMethods.TaskDialogElements.ExpandedInformation);
+ }
+
+ private void UpdateTextCore(string s, TaskDialogNativeMethods.TaskDialogElements element)
+ {
+ AssertCurrentlyShowing();
+
+ FreeOldString(element);
+ SendMessageHelper(
+ TaskDialogNativeMethods.TaskDialogMessages.SetElementText,
+ (int)element,
+ (long)MakeNewString(s, element));
+ }
+
+ internal void UpdateMainIcon(TaskDialogStandardIcon mainIcon)
+ {
+ UpdateIconCore(mainIcon, TaskDialogNativeMethods.TaskDialogIconElement.Main);
+ }
+
+ internal void UpdateFooterIcon(TaskDialogStandardIcon footerIcon)
+ {
+ UpdateIconCore(footerIcon, TaskDialogNativeMethods.TaskDialogIconElement.Footer);
+ }
+
+ private void UpdateIconCore(TaskDialogStandardIcon icon, TaskDialogNativeMethods.TaskDialogIconElement element)
+ {
+ AssertCurrentlyShowing();
+ SendMessageHelper(
+ TaskDialogNativeMethods.TaskDialogMessages.UpdateIcon,
+ (int)element,
+ (long)icon);
+ }
+
+ internal void UpdateCheckBoxChecked(bool cbc)
+ {
+ AssertCurrentlyShowing();
+ SendMessageHelper(
+ TaskDialogNativeMethods.TaskDialogMessages.ClickVerification,
+ (cbc ? 1 : 0),
+ 1);
+ }
+
+ internal void UpdateElevationIcon(int buttonId, bool showIcon)
+ {
+ AssertCurrentlyShowing();
+ SendMessageHelper(
+ TaskDialogNativeMethods.TaskDialogMessages.SetButtonElevationRequiredState,
+ buttonId,
+ Convert.ToInt32(showIcon));
+ }
+
+ internal void UpdateButtonEnabled(int buttonID, bool enabled)
+ {
+ AssertCurrentlyShowing();
+ SendMessageHelper(
+ TaskDialogNativeMethods.TaskDialogMessages.EnableButton, buttonID, enabled == true ? 1 : 0);
+ }
+
+ internal void UpdateRadioButtonEnabled(int buttonID, bool enabled)
+ {
+ AssertCurrentlyShowing();
+ SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.EnableRadioButton,
+ buttonID, enabled == true ? 1 : 0);
+ }
+
+ internal void AssertCurrentlyShowing()
+ {
+ Debug.Assert(ShowState == DialogShowState.Showing,
+ "Update*() methods should only be called while native dialog is showing");
+ }
+
+ #endregion
+
+ #region Helpers
+
+ private int SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages message, int wparam, long lparam)
+ {
+ // Be sure to at least assert here -
+ // messages to invalid handles often just disappear silently
+ Debug.Assert(hWndDialog != null, "HWND for dialog is null during SendMessage");
+
+ return (int)CoreNativeMethods.SendMessage(
+ hWndDialog,
+ (uint)message,
+ (IntPtr)wparam,
+ new IntPtr(lparam));
+ }
+
+ private bool IsOptionSet(TaskDialogNativeMethods.TaskDialogOptions flag)
+ {
+ return ((nativeDialogConfig.taskDialogFlags & flag) == flag);
+ }
+
+ // Allocates a new string on the unmanaged heap,
+ // and stores the pointer so we can free it later.
+
+ private IntPtr MakeNewString(string text, TaskDialogNativeMethods.TaskDialogElements element)
+ {
+ IntPtr newStringPtr = Marshal.StringToHGlobalUni(text);
+ updatedStrings[(int)element] = newStringPtr;
+ return newStringPtr;
+ }
+
+ // Checks to see if the given element already has an
+ // updated string, and if so,
+ // frees it. This is done in preparation for a call to
+ // MakeNewString(), to prevent
+ // leaks from multiple updates calls on the same element
+ // within a single native dialog lifetime.
+ private void FreeOldString(TaskDialogNativeMethods.TaskDialogElements element)
+ {
+ int elementIndex = (int)element;
+ if (updatedStrings[elementIndex] != IntPtr.Zero)
+ {
+ Marshal.FreeHGlobal(updatedStrings[elementIndex]);
+ updatedStrings[elementIndex] = IntPtr.Zero;
+ }
+ }
+
+ // Based on the following defines in WinDef.h and WinUser.h:
+ // #define MAKELPARAM(l, h) ((LPARAM)(DWORD)MAKELONG(l, h))
+ // #define MAKELONG(a, b) ((LONG)(((WORD)(((DWORD_PTR)(a)) & 0xffff)) | ((DWORD)((WORD)(((DWORD_PTR)(b)) & 0xffff))) << 16))
+ private static long MakeLongLParam(int a, int b)
+ {
+ return (a << 16) + b;
+ }
+
+ // Builds the actual configuration that the
+ // NativeTaskDialog (and underlying Win32 API)
+ // expects, by parsing the various control lists,
+ // marshaling to the unmanaged heap, etc.
+ private void MarshalDialogControlStructs()
+ {
+ if (settings.Buttons != null && settings.Buttons.Length > 0)
+ {
+ buttonArray = AllocateAndMarshalButtons(settings.Buttons);
+ settings.NativeConfiguration.buttons = buttonArray;
+ settings.NativeConfiguration.buttonCount = (uint)settings.Buttons.Length;
+ }
+
+ if (settings.RadioButtons != null && settings.RadioButtons.Length > 0)
+ {
+ radioButtonArray = AllocateAndMarshalButtons(settings.RadioButtons);
+ settings.NativeConfiguration.radioButtons = radioButtonArray;
+ settings.NativeConfiguration.radioButtonCount = (uint)settings.RadioButtons.Length;
+ }
+ }
+
+ private static IntPtr AllocateAndMarshalButtons(TaskDialogNativeMethods.TaskDialogButton[] structs)
+ {
+ IntPtr initialPtr = Marshal.AllocHGlobal(
+ Marshal.SizeOf(typeof(TaskDialogNativeMethods.TaskDialogButton)) * structs.Length);
+
+ IntPtr currentPtr = initialPtr;
+ foreach (TaskDialogNativeMethods.TaskDialogButton button in structs)
+ {
+ Marshal.StructureToPtr(button, currentPtr, false);
+ currentPtr = (IntPtr)((int)currentPtr + Marshal.SizeOf(button));
+ }
+
+ return initialPtr;
+ }
+
+ #endregion
+
+ #region IDispose Pattern
+
+ private bool disposed;
+
+ // Finalizer and IDisposable implementation.
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ ~NativeTaskDialog()
+ {
+ Dispose(false);
+ }
+
+ // Core disposing logic.
+ protected void Dispose(bool disposing)
+ {
+ if (!disposed)
+ {
+ disposed = true;
+
+ // Single biggest resource - make sure the dialog
+ // itself has been instructed to close.
+
+ if (ShowState == DialogShowState.Showing)
+ {
+ NativeClose(TaskDialogResult.Cancel);
+ }
+
+ // Clean up custom allocated strings that were updated
+ // while the dialog was showing. Note that the strings
+ // passed in the initial TaskDialogIndirect call will
+ // be cleaned up automagically by the default
+ // marshalling logic.
+
+ if (updatedStrings != null)
+ {
+ for (int i = 0; i < updatedStrings.Length; i++)
+ {
+ if (updatedStrings[i] != IntPtr.Zero)
+ {
+ Marshal.FreeHGlobal(updatedStrings[i]);
+ updatedStrings[i] = IntPtr.Zero;
+ }
+ }
+ }
+
+ // Clean up the button and radio button arrays, if any.
+ if (buttonArray != IntPtr.Zero)
+ {
+ Marshal.FreeHGlobal(buttonArray);
+ buttonArray = IntPtr.Zero;
+ }
+ if (radioButtonArray != IntPtr.Zero)
+ {
+ Marshal.FreeHGlobal(radioButtonArray);
+ radioButtonArray = IntPtr.Zero;
+ }
+
+ if (disposing)
+ {
+ // Clean up managed resources - currently there are none
+ // that are interesting.
+ }
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialogSettings.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialogSettings.cs
new file mode 100644
index 0000000000..ab7b883236
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialogSettings.cs
@@ -0,0 +1,58 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ ///<summary>
+ /// Encapsulates additional configuration needed by NativeTaskDialog
+ /// that it can't get from the TASKDIALOGCONFIG struct.
+ ///</summary>
+ internal class NativeTaskDialogSettings
+ {
+ internal NativeTaskDialogSettings()
+ {
+ NativeConfiguration = new TaskDialogNativeMethods.TaskDialogConfiguration();
+
+ // Apply standard settings.
+ NativeConfiguration.size = (uint)Marshal.SizeOf(NativeConfiguration);
+ NativeConfiguration.parentHandle = IntPtr.Zero;
+ NativeConfiguration.instance = IntPtr.Zero;
+ NativeConfiguration.taskDialogFlags = TaskDialogNativeMethods.TaskDialogOptions.AllowCancel;
+ NativeConfiguration.commonButtons = TaskDialogNativeMethods.TaskDialogCommonButtons.Ok;
+ NativeConfiguration.mainIcon = new TaskDialogNativeMethods.IconUnion(0);
+ NativeConfiguration.footerIcon = new TaskDialogNativeMethods.IconUnion(0);
+ NativeConfiguration.width = TaskDialogDefaults.IdealWidth;
+
+ // Zero out all the custom button fields.
+ NativeConfiguration.buttonCount = 0;
+ NativeConfiguration.radioButtonCount = 0;
+ NativeConfiguration.buttons = IntPtr.Zero;
+ NativeConfiguration.radioButtons = IntPtr.Zero;
+ NativeConfiguration.defaultButtonIndex = 0;
+ NativeConfiguration.defaultRadioButtonIndex = 0;
+
+ // Various text defaults.
+ NativeConfiguration.windowTitle = TaskDialogDefaults.Caption;
+ NativeConfiguration.mainInstruction = TaskDialogDefaults.MainInstruction;
+ NativeConfiguration.content = TaskDialogDefaults.Content;
+ NativeConfiguration.verificationText = null;
+ NativeConfiguration.expandedInformation = null;
+ NativeConfiguration.expandedControlText = null;
+ NativeConfiguration.collapsedControlText = null;
+ NativeConfiguration.footerText = null;
+ }
+
+ public int ProgressBarMinimum { get; set; }
+ public int ProgressBarMaximum { get; set; }
+ public int ProgressBarValue { get; set; }
+ public TaskDialogProgressBarState ProgressBarState { get; set; }
+ public bool InvokeHelp { get; set; }
+ public TaskDialogNativeMethods.TaskDialogConfiguration NativeConfiguration { get; private set; }
+ public TaskDialogNativeMethods.TaskDialogButton[] Buttons { get; set; }
+ public TaskDialogNativeMethods.TaskDialogButton[] RadioButtons { get; set; }
+ public List<int> ElevatedButtons { get; set; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/TaskDialogNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/TaskDialogNativeMethods.cs
new file mode 100644
index 0000000000..48ac3522f2
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/TaskDialogs/TaskDialogNativeMethods.cs
@@ -0,0 +1,233 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+
+ /// <summary>
+ /// Internal class containing most native interop declarations used
+ /// throughout the library.
+ /// Functions that are not performance intensive belong in this class.
+ /// </summary>
+
+ internal static class TaskDialogNativeMethods
+ {
+ #region TaskDialog Definitions
+
+ [DllImport("Comctl32.dll", SetLastError = true)]
+ internal static extern HResult TaskDialogIndirect(
+ [In] TaskDialogNativeMethods.TaskDialogConfiguration taskConfig,
+ [Out] out int button,
+ [Out] out int radioButton,
+ [MarshalAs(UnmanagedType.Bool), Out] out bool verificationFlagChecked);
+
+ // Main task dialog configuration struct.
+ // NOTE: Packing must be set to 4 to make this work on 64-bit platforms.
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 4)]
+ internal class TaskDialogConfiguration
+ {
+ internal uint size;
+ internal IntPtr parentHandle;
+ internal IntPtr instance;
+ internal TaskDialogOptions taskDialogFlags;
+ internal TaskDialogCommonButtons commonButtons;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string windowTitle;
+ internal IconUnion mainIcon; // NOTE: 32-bit union field, holds pszMainIcon as well
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string mainInstruction;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string content;
+ internal uint buttonCount;
+ internal IntPtr buttons; // Ptr to TASKDIALOG_BUTTON structs
+ internal int defaultButtonIndex;
+ internal uint radioButtonCount;
+ internal IntPtr radioButtons; // Ptr to TASKDIALOG_BUTTON structs
+ internal int defaultRadioButtonIndex;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string verificationText;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string expandedInformation;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string expandedControlText;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string collapsedControlText;
+ internal IconUnion footerIcon; // NOTE: 32-bit union field, holds pszFooterIcon as well
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string footerText;
+ internal TaskDialogCallback callback;
+ internal IntPtr callbackData;
+ internal uint width;
+ }
+
+ internal const int TaskDialogIdealWidth = 0; // Value for TASKDIALOGCONFIG.cxWidth
+ internal const int TaskDialogButtonShieldIcon = 1;
+
+ // NOTE: We include a "spacer" so that the struct size varies on
+ // 64-bit architectures.
+ [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Auto)]
+ internal struct IconUnion
+ {
+ internal IconUnion(int i)
+ {
+ mainIcon = i;
+ spacer = IntPtr.Zero;
+ }
+
+ [FieldOffset(0)]
+ private int mainIcon;
+
+ // This field is used to adjust the length of the structure on 32/64bit OS.
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ [FieldOffset(0)]
+ private IntPtr spacer;
+
+ /// <summary>
+ /// Gets the handle to the Icon
+ /// </summary>
+ public int MainIcon { get { return mainIcon; } }
+ }
+
+ // NOTE: Packing must be set to 4 to make this work on 64-bit platforms.
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 4)]
+ internal struct TaskDialogButton
+ {
+ public TaskDialogButton(int buttonId, string text)
+ {
+ this.buttonId = buttonId;
+ buttonText = text;
+ }
+
+ internal int buttonId;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string buttonText;
+ }
+
+ // Task Dialog - identifies common buttons.
+ [Flags]
+ internal enum TaskDialogCommonButtons
+ {
+ Ok = 0x0001, // selected control return value IDOK
+ Yes = 0x0002, // selected control return value IDYES
+ No = 0x0004, // selected control return value IDNO
+ Cancel = 0x0008, // selected control return value IDCANCEL
+ Retry = 0x0010, // selected control return value IDRETRY
+ Close = 0x0020 // selected control return value IDCLOSE
+ }
+
+ // Identify button *return values* - note that, unfortunately, these are different
+ // from the inbound button values.
+ internal enum TaskDialogCommonButtonReturnIds
+ {
+ Ok = 1,
+ Cancel = 2,
+ Abort = 3,
+ Retry = 4,
+ Ignore = 5,
+ Yes = 6,
+ No = 7,
+ Close = 8
+ }
+
+ internal enum TaskDialogElements
+ {
+ Content,
+ ExpandedInformation,
+ Footer,
+ MainInstruction
+ }
+
+ internal enum TaskDialogIconElement
+ {
+ Main,
+ Footer
+ }
+
+ // Task Dialog - flags
+ [Flags]
+ internal enum TaskDialogOptions
+ {
+ None = 0,
+ EnableHyperlinks = 0x0001,
+ UseMainIcon = 0x0002,
+ UseFooterIcon = 0x0004,
+ AllowCancel = 0x0008,
+ UseCommandLinks = 0x0010,
+ UseNoIconCommandLinks = 0x0020,
+ ExpandFooterArea = 0x0040,
+ ExpandedByDefault = 0x0080,
+ CheckVerificationFlag = 0x0100,
+ ShowProgressBar = 0x0200,
+ ShowMarqueeProgressBar = 0x0400,
+ UseCallbackTimer = 0x0800,
+ PositionRelativeToWindow = 0x1000,
+ RightToLeftLayout = 0x2000,
+ NoDefaultRadioButton = 0x4000
+ }
+
+ internal enum TaskDialogMessages
+ {
+ NavigatePage = CoreNativeMethods.UserMessage + 101,
+ ClickButton = CoreNativeMethods.UserMessage + 102, // wParam = Button ID
+ SetMarqueeProgressBar = CoreNativeMethods.UserMessage + 103, // wParam = 0 (nonMarque) wParam != 0 (Marquee)
+ SetProgressBarState = CoreNativeMethods.UserMessage + 104, // wParam = new progress state
+ SetProgressBarRange = CoreNativeMethods.UserMessage + 105, // lParam = MAKELPARAM(nMinRange, nMaxRange)
+ SetProgressBarPosition = CoreNativeMethods.UserMessage + 106, // wParam = new position
+ SetProgressBarMarquee = CoreNativeMethods.UserMessage + 107, // wParam = 0 (stop marquee), wParam != 0 (start marquee), lparam = speed (milliseconds between repaints)
+ SetElementText = CoreNativeMethods.UserMessage + 108, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR)
+ ClickRadioButton = CoreNativeMethods.UserMessage + 110, // wParam = Radio Button ID
+ EnableButton = CoreNativeMethods.UserMessage + 111, // lParam = 0 (disable), lParam != 0 (enable), wParam = Button ID
+ EnableRadioButton = CoreNativeMethods.UserMessage + 112, // lParam = 0 (disable), lParam != 0 (enable), wParam = Radio Button ID
+ ClickVerification = CoreNativeMethods.UserMessage + 113, // wParam = 0 (unchecked), 1 (checked), lParam = 1 (set key focus)
+ UpdateElementText = CoreNativeMethods.UserMessage + 114, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR)
+ SetButtonElevationRequiredState = CoreNativeMethods.UserMessage + 115, // wParam = Button ID, lParam = 0 (elevation not required), lParam != 0 (elevation required)
+ UpdateIcon = CoreNativeMethods.UserMessage + 116 // wParam = icon element (TASKDIALOG_ICON_ELEMENTS), lParam = new icon (hIcon if TDF_USE_HICON_* was set, PCWSTR otherwise)
+ }
+
+ internal enum TaskDialogNotifications
+ {
+ Created = 0,
+ Navigated = 1,
+ ButtonClicked = 2, // wParam = Button ID
+ HyperlinkClicked = 3, // lParam = (LPCWSTR)pszHREF
+ Timer = 4, // wParam = Milliseconds since dialog created or timer reset
+ Destroyed = 5,
+ RadioButtonClicked = 6, // wParam = Radio Button ID
+ Constructed = 7,
+ VerificationClicked = 8, // wParam = 1 if checkbox checked, 0 if not, lParam is unused and always 0
+ Help = 9,
+ ExpandButtonClicked = 10 // wParam = 0 (dialog is now collapsed), wParam != 0 (dialog is now expanded)
+ }
+
+ // Used in the various SET_DEFAULT* TaskDialog messages
+ internal const int NoDefaultButtonSpecified = 0;
+
+ // Task Dialog config and related structs (for TaskDialogIndirect())
+ internal delegate int TaskDialogCallback(
+ IntPtr hwnd,
+ uint message,
+ IntPtr wparam,
+ IntPtr lparam,
+ IntPtr referenceData);
+
+ internal enum ProgressBarState
+ {
+ Normal = 0x0001,
+ Error = 0x0002,
+ Paused = 0x0003
+ }
+
+ internal enum TaskDialogIcons
+ {
+ Warning = 65535,
+ Error = 65534,
+ Information = 65533,
+ Shield = 65532
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/WindowMessage.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/WindowMessage.cs
new file mode 100644
index 0000000000..4ff7840d99
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Interop/WindowMessage.cs
@@ -0,0 +1,234 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ internal enum WindowMessage
+ {
+ Null = 0x00,
+ Create = 0x01,
+ Destroy = 0x02,
+ Move = 0x03,
+ Size = 0x05,
+ Activate = 0x06,
+ SetFocus = 0x07,
+ KillFocus = 0x08,
+ Enable = 0x0A,
+ SetRedraw = 0x0B,
+ SetText = 0x0C,
+ GetText = 0x0D,
+ GetTextLength = 0x0E,
+ Paint = 0x0F,
+ Close = 0x10,
+ QueryEndSession = 0x11,
+ Quit = 0x12,
+ QueryOpen = 0x13,
+ EraseBackground = 0x14,
+ SystemColorChange = 0x15,
+ EndSession = 0x16,
+ SystemError = 0x17,
+ ShowWindow = 0x18,
+ ControlColor = 0x19,
+ WinIniChange = 0x1A,
+ SettingChange = 0x1A,
+ DevModeChange = 0x1B,
+ ActivateApplication = 0x1C,
+ FontChange = 0x1D,
+ TimeChange = 0x1E,
+ CancelMode = 0x1F,
+ SetCursor = 0x20,
+ MouseActivate = 0x21,
+ ChildActivate = 0x22,
+ QueueSync = 0x23,
+ GetMinMaxInfo = 0x24,
+ PaintIcon = 0x26,
+ IconEraseBackground = 0x27,
+ NextDialogControl = 0x28,
+ SpoolerStatus = 0x2A,
+ DrawItem = 0x2B,
+ MeasureItem = 0x2C,
+ DeleteItem = 0x2D,
+ VKeyToItem = 0x2E,
+ CharToItem = 0x2F,
+
+ SetFont = 0x30,
+ GetFont = 0x31,
+ SetHotkey = 0x32,
+ GetHotkey = 0x33,
+ QueryDragIcon = 0x37,
+ CompareItem = 0x39,
+ Compacting = 0x41,
+ WindowPositionChanging = 0x46,
+ WindowPositionChanged = 0x47,
+ Power = 0x48,
+ CopyData = 0x4A,
+ CancelJournal = 0x4B,
+ Notify = 0x4E,
+ InputLanguageChangeRequest = 0x50,
+ InputLanguageChange = 0x51,
+ TCard = 0x52,
+ Help = 0x53,
+ UserChanged = 0x54,
+ NotifyFormat = 0x55,
+ ContextMenu = 0x7B,
+ StyleChanging = 0x7C,
+ StyleChanged = 0x7D,
+ DisplayChange = 0x7E,
+ GetIcon = 0x7F,
+ SetIcon = 0x80,
+
+ NCCreate = 0x81,
+ NCDestroy = 0x82,
+ NCCalculateSize = 0x83,
+ NCHitTest = 0x84,
+ NCPaint = 0x85,
+ NCActivate = 0x86,
+ GetDialogCode = 0x87,
+ NCMouseMove = 0xA0,
+ NCLeftButtonDown = 0xA1,
+ NCLeftButtonUp = 0xA2,
+ NCLeftButtonDoubleClick = 0xA3,
+ NCRightButtonDown = 0xA4,
+ NCRightButtonUp = 0xA5,
+ NCRightButtonDoubleClick = 0xA6,
+ NCMiddleButtonDown = 0xA7,
+ NCMiddleButtonUp = 0xA8,
+ NCMiddleButtonDoubleClick = 0xA9,
+
+ KeyFirst = 0x100,
+ KeyDown = 0x100,
+ KeyUp = 0x101,
+ Char = 0x102,
+ DeadChar = 0x103,
+ SystemKeyDown = 0x104,
+ SystemKeyUp = 0x105,
+ SystemChar = 0x106,
+ SystemDeadChar = 0x107,
+ KeyLast = 0x108,
+
+ IMEStartComposition = 0x10D,
+ IMEEndComposition = 0x10E,
+ IMEComposition = 0x10F,
+ IMEKeyLast = 0x10F,
+
+ InitializeDialog = 0x110,
+ Command = 0x111,
+ SystemCommand = 0x112,
+ Timer = 0x113,
+ HorizontalScroll = 0x114,
+ VerticalScroll = 0x115,
+ InitializeMenu = 0x116,
+ InitializeMenuPopup = 0x117,
+ MenuSelect = 0x11F,
+ MenuChar = 0x120,
+ EnterIdle = 0x121,
+
+ CTLColorMessageBox = 0x132,
+ CTLColorEdit = 0x133,
+ CTLColorListbox = 0x134,
+ CTLColorButton = 0x135,
+ CTLColorDialog = 0x136,
+ CTLColorScrollBar = 0x137,
+ CTLColorStatic = 0x138,
+
+ MouseFirst = 0x200,
+ MouseMove = 0x200,
+ LeftButtonDown = 0x201,
+ LeftButtonUp = 0x202,
+ LeftButtonDoubleClick = 0x203,
+ RightButtonDown = 0x204,
+ RightButtonUp = 0x205,
+ RightButtonDoubleClick = 0x206,
+ MiddleButtonDown = 0x207,
+ MiddleButtonUp = 0x208,
+ MiddleButtonDoubleClick = 0x209,
+ MouseWheel = 0x20A,
+ MouseHorizontalWheel = 0x20E,
+
+ ParentNotify = 0x210,
+ EnterMenuLoop = 0x211,
+ ExitMenuLoop = 0x212,
+ NextMenu = 0x213,
+ Sizing = 0x214,
+ CaptureChanged = 0x215,
+ Moving = 0x216,
+ PowerBroadcast = 0x218,
+ DeviceChange = 0x219,
+
+ MDICreate = 0x220,
+ MDIDestroy = 0x221,
+ MDIActivate = 0x222,
+ MDIRestore = 0x223,
+ MDINext = 0x224,
+ MDIMaximize = 0x225,
+ MDITile = 0x226,
+ MDICascade = 0x227,
+ MDIIconArrange = 0x228,
+ MDIGetActive = 0x229,
+ MDISetMenu = 0x230,
+ EnterSizeMove = 0x231,
+ ExitSizeMove = 0x232,
+ DropFiles = 0x233,
+ MDIRefreshMenu = 0x234,
+
+ IMESetContext = 0x281,
+ IMENotify = 0x282,
+ IMEControl = 0x283,
+ IMECompositionFull = 0x284,
+ IMESelect = 0x285,
+ IMEChar = 0x286,
+ IMEKeyDown = 0x290,
+ IMEKeyUp = 0x291,
+
+ MouseHover = 0x2A1,
+ NCMouseLeave = 0x2A2,
+ MouseLeave = 0x2A3,
+
+ Cut = 0x300,
+ Copy = 0x301,
+ Paste = 0x302,
+ Clear = 0x303,
+ Undo = 0x304,
+
+ RenderFormat = 0x305,
+ RenderAllFormats = 0x306,
+ DestroyClipboard = 0x307,
+ DrawClipbard = 0x308,
+ PaintClipbard = 0x309,
+ VerticalScrollClipBoard = 0x30A,
+ SizeClipbard = 0x30B,
+ AskClipboardFormatname = 0x30C,
+ ChangeClipboardChain = 0x30D,
+ HorizontalScrollClipboard = 0x30E,
+ QueryNewPalette = 0x30F,
+ PaletteIsChanging = 0x310,
+ PaletteChanged = 0x311,
+
+ Hotkey = 0x312,
+ Print = 0x317,
+ PrintClient = 0x318,
+
+ HandHeldFirst = 0x358,
+ HandHeldlast = 0x35F,
+ PenWinFirst = 0x380,
+ PenWinLast = 0x38F,
+ CoalesceFirst = 0x390,
+ CoalesceLast = 0x39F,
+ DDE_First = 0x3E0,
+ DDE_Initiate = 0x3E0,
+ DDE_Terminate = 0x3E1,
+ DDE_Advise = 0x3E2,
+ DDE_Unadvise = 0x3E3,
+ DDE_Ack = 0x3E4,
+ DDE_Data = 0x3E5,
+ DDE_Request = 0x3E6,
+ DDE_Poke = 0x3E7,
+ DDE_Execute = 0x3E8,
+ DDE_Last = 0x3E8,
+
+ User = 0x400,
+ App = 0x8000,
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Makefile.am b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Makefile.am
new file mode 100644
index 0000000000..24e07e9bf5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Makefile.am
@@ -0,0 +1,5 @@
+include $(top_srcdir)/xbuild.include
+
+if ! ENABLE_WINDOWSPLATFORM
+SKIP=y
+endif
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/Network.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/Network.cs
new file mode 100644
index 0000000000..93cccb59f0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/Network.cs
@@ -0,0 +1,201 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ /// <summary>
+ /// Represents a network on the local machine.
+ /// It can also represent a collection of network
+ /// connections with a similar network signature.
+ /// </summary>
+ /// <remarks>
+ /// Instances of this class are obtained by calling
+ /// methods on the <see cref="NetworkListManager"/> class.
+ /// </remarks>
+ public class Network
+ {
+ #region Private Fields
+
+ INetwork network;
+
+ #endregion // Private Fields
+
+ internal Network(INetwork network)
+ {
+ this.network = network;
+ }
+
+ /// <summary>
+ /// Gets or sets the category of a network. The
+ /// categories are trusted, untrusted, or
+ /// authenticated.
+ /// </summary>
+ /// <value>A <see cref="NetworkCategory"/> value.</value>
+ public NetworkCategory Category
+ {
+ get
+ {
+ return network.GetCategory();
+ }
+
+ set
+ {
+ network.SetCategory(value);
+ }
+ }
+
+ /// <summary>
+ /// Gets the local date and time when the network
+ /// was connected.
+ /// </summary>
+ /// <value>A <see cref="System.DateTime"/> object.</value>
+ public DateTime ConnectedTime
+ {
+ get
+ {
+ uint low, high, dummy1, dummy2;
+ network.GetTimeCreatedAndConnected(out dummy1, out dummy2, out low, out high);
+ long time = high;
+ // Shift the day info into the high order bits.
+ time <<= 32;
+ time |= low;
+ return DateTime.FromFileTimeUtc(time);
+ }
+ }
+
+ /// <summary>
+ /// Gets the network connections for the network.
+ /// </summary>
+ /// <value>A <see cref="NetworkConnectionCollection"/> object.</value>
+ public NetworkConnectionCollection Connections
+ {
+ get
+ {
+ return new NetworkConnectionCollection(network.GetNetworkConnections());
+ }
+ }
+
+ /// <summary>
+ /// Gets the connectivity state of the network.
+ /// </summary>
+ /// <value>A <see cref="Connectivity"/> value.</value>
+ /// <remarks>Connectivity provides information on whether
+ /// the network is connected, and the protocols
+ /// in use for network traffic.</remarks>
+ public ConnectivityStates Connectivity
+ {
+ get
+ {
+ return network.GetConnectivity();
+ }
+ }
+
+ /// <summary>
+ /// Gets the local date and time when the
+ /// network was created.
+ /// </summary>
+ /// <value>A <see cref="System.DateTime"/> object.</value>
+ public DateTime CreatedTime
+ {
+ get
+ {
+ uint low, high, dummy1, dummy2;
+ network.GetTimeCreatedAndConnected(out low, out high, out dummy1, out dummy2);
+ long time = high;
+ //Shift the value into the high order bits.
+ time <<= 32;
+ time |= low;
+ return DateTime.FromFileTimeUtc(time);
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets a description for the network.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> value.</value>
+ public string Description
+ {
+ get
+ {
+ return network.GetDescription();
+ }
+
+ set
+ {
+ network.SetDescription(value);
+ }
+ }
+
+ /// <summary>
+ /// Gets the domain type of the network.
+ /// </summary>
+ /// <value>A <see cref="DomainType"/> value.</value>
+ /// <remarks>The domain
+ /// indictates whether the network is an Active
+ /// Directory Network, and whether the machine
+ /// has been authenticated by Active Directory.</remarks>
+ public DomainType DomainType
+ {
+ get
+ {
+ return network.GetDomainType();
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether there is
+ /// network connectivity.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public bool IsConnected
+ {
+ get
+ {
+ return network.IsConnected;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether there is
+ /// Internet connectivity.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public bool IsConnectedToInternet
+ {
+ get
+ {
+ return network.IsConnectedToInternet;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the name of the network.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> value.</value>
+ public string Name
+ {
+ get
+ {
+ return network.GetName();
+ }
+
+ set
+ {
+ network.SetName(value);
+ }
+ }
+
+ /// <summary>
+ /// Gets a unique identifier for the network.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid NetworkId
+ {
+ get
+ {
+ return network.GetNetworkId();
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkCollection.cs
new file mode 100644
index 0000000000..dc079a0342
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkCollection.cs
@@ -0,0 +1,60 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ /// <summary>
+ /// An enumerable collection of <see cref="Network"/> objects.
+ /// </summary>
+ public class NetworkCollection : IEnumerable<Network>
+ {
+ #region Private Fields
+
+ IEnumerable networkEnumerable;
+
+ #endregion // Private Fields
+
+ internal NetworkCollection(IEnumerable networkEnumerable)
+ {
+ this.networkEnumerable = networkEnumerable;
+ }
+
+ #region IEnumerable<Network> Members
+
+ /// <summary>
+ /// Returns the strongly typed enumerator for this collection.
+ /// </summary>
+ /// <returns>An <see cref="System.Collections.Generic.IEnumerator{T}"/> object.</returns>
+ public IEnumerator<Network> GetEnumerator()
+ {
+ foreach (INetwork network in networkEnumerable)
+ {
+ yield return new Network(network);
+ }
+ }
+
+ #endregion
+
+ #region IEnumerable Members
+
+ /// <summary>
+ /// Returns the enumerator for this collection.
+ /// </summary>
+ ///<returns>An <see cref="System.Collections.IEnumerator"/> object.</returns>
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ foreach (INetwork network in networkEnumerable)
+ {
+ yield return new Network(network);
+ }
+ }
+
+ #endregion
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnection.cs
new file mode 100644
index 0000000000..71363a0a71
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnection.cs
@@ -0,0 +1,115 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ /// <summary>
+ /// Represents a connection to a network.
+ /// </summary>
+ /// <remarks> A collection containing instances of this class is obtained by calling
+ /// the <see cref="P:Microsoft.WindowsAPICodePack.Net.Network.Connections"/> property.</remarks>
+ public class NetworkConnection
+ {
+ #region Private Fields
+
+ INetworkConnection networkConnection;
+
+ #endregion // Private Fields
+
+ internal NetworkConnection(INetworkConnection networkConnection)
+ {
+ this.networkConnection = networkConnection;
+ }
+
+ /// <summary>
+ /// Retrieves an object that represents the network
+ /// associated with this connection.
+ /// </summary>
+ /// <returns>A <see cref="Network"/> object.</returns>
+ public Network Network
+ {
+ get
+ {
+ return new Network(networkConnection.GetNetwork());
+ }
+ }
+
+ /// <summary>
+ /// Gets the adapter identifier for this connection.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> object.</value>
+ public Guid AdapterId
+ {
+ get
+ {
+ return networkConnection.GetAdapterId();
+ }
+ }
+ /// <summary>
+ /// Gets the unique identifier for this connection.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> object.</value>
+ public Guid ConnectionId
+ {
+ get
+ {
+ return networkConnection.GetConnectionId();
+ }
+ }
+ /// <summary>
+ /// Gets a value that indicates the connectivity of this connection.
+ /// </summary>
+ /// <value>A <see cref="Connectivity"/> value.</value>
+ public ConnectivityStates Connectivity
+ {
+ get
+ {
+ return networkConnection.GetConnectivity();
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether the network associated
+ /// with this connection is
+ /// an Active Directory network and whether the machine
+ /// has been authenticated by Active Directory.
+ /// </summary>
+ /// <value>A <see cref="DomainType"/> value.</value>
+ public DomainType DomainType
+ {
+ get
+ {
+ return networkConnection.GetDomainType();
+ }
+ }
+ /// <summary>
+ /// Gets a value that indicates whether this
+ /// connection has Internet access.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public bool IsConnectedToInternet
+ {
+ get
+ {
+ return networkConnection.IsConnectedToInternet;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether this connection has
+ /// network connectivity.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public bool IsConnected
+ {
+ get
+ {
+ return networkConnection.IsConnected;
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnectionCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnectionCollection.cs
new file mode 100644
index 0000000000..4618e36fb7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkConnectionCollection.cs
@@ -0,0 +1,60 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ /// <summary>
+ /// An enumerable collection of <see cref="NetworkConnection"/> objects.
+ /// </summary>
+ public class NetworkConnectionCollection : IEnumerable<NetworkConnection>
+ {
+ #region Private Fields
+
+ IEnumerable networkConnectionEnumerable;
+
+ #endregion // Private Fields
+
+ internal NetworkConnectionCollection(IEnumerable networkConnectionEnumerable)
+ {
+ this.networkConnectionEnumerable = networkConnectionEnumerable;
+ }
+
+ #region IEnumerable<NetworkConnection> Members
+
+ /// <summary>
+ /// Returns the strongly typed enumerator for this collection.
+ /// </summary>
+ /// <returns>A <see cref="System.Collections.Generic.IEnumerator{T}"/> object.</returns>
+ public IEnumerator<NetworkConnection> GetEnumerator()
+ {
+ foreach (INetworkConnection networkConnection in networkConnectionEnumerable)
+ {
+ yield return new NetworkConnection(networkConnection);
+ }
+ }
+
+ #endregion
+
+ #region IEnumerable Members
+
+ /// <summary>
+ /// Returns the enumerator for this collection.
+ /// </summary>
+ ///<returns>A <see cref="System.Collections.IEnumerator"/> object.</returns>
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ foreach (INetworkConnection networkConnection in networkConnectionEnumerable)
+ {
+ yield return new NetworkConnection(networkConnection);
+ }
+ }
+
+ #endregion
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListEnums.cs
new file mode 100644
index 0000000000..1b14b50d0e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListEnums.cs
@@ -0,0 +1,124 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ /// <summary>
+ /// Specifies types of network connectivity.
+ /// </summary>
+ [Flags]
+ public enum ConnectivityStates
+ {
+ /// <summary>
+ /// The underlying network interfaces have no
+ /// connectivity to any network.
+ /// </summary>
+ None = 0,
+ /// <summary>
+ /// There is connectivity to the Internet
+ /// using the IPv4 protocol.
+ /// </summary>
+ IPv4Internet = 0x40,
+ /// <summary>
+ /// There is connectivity to a routed network
+ /// using the IPv4 protocol.
+ /// </summary>
+ IPv4LocalNetwork = 0x20,
+ /// <summary>
+ /// There is connectivity to a network, but
+ /// the service cannot detect any IPv4
+ /// network traffic.
+ /// </summary>
+ IPv4NoTraffic = 1,
+ /// <summary>
+ /// There is connectivity to the local
+ /// subnet using the IPv4 protocol.
+ /// </summary>
+ IPv4Subnet = 0x10,
+ /// <summary>
+ /// There is connectivity to the Internet
+ /// using the IPv4 protocol.
+ /// </summary>
+ IPv6Internet = 0x400,
+ /// <summary>
+ /// There is connectivity to a local
+ /// network using the IPv6 protocol.
+ /// </summary>
+ IPv6LocalNetwork = 0x200,
+ /// <summary>
+ /// There is connectivity to a network,
+ /// but the service cannot detect any
+ /// IPv6 network traffic
+ /// </summary>
+ IPv6NoTraffic = 2,
+ /// <summary>
+ /// There is connectivity to the local
+ /// subnet using the IPv6 protocol.
+ /// </summary>
+ IPv6Subnet = 0x100
+ }
+
+ /// <summary>
+ /// Specifies the domain type of a network.
+ /// </summary>
+ public enum DomainType
+ {
+ /// <summary>
+ /// The network is not an Active Directory network.
+ /// </summary>
+ NonDomainNetwork = 0,
+ /// <summary>
+ /// The network is an Active Directory network, but this machine is not authenticated against it.
+ /// </summary>
+ DomainNetwork = 1,
+ /// <summary>
+ /// The network is an Active Directory network, and this machine is authenticated against it.
+ /// </summary>
+ DomainAuthenticated = 2,
+ }
+
+ /// <summary>
+ /// Specifies the trust level for a
+ /// network.
+ /// </summary>
+ public enum NetworkCategory
+ {
+ /// <summary>
+ /// The network is a public (untrusted) network.
+ /// </summary>
+ Public,
+ /// <summary>
+ /// The network is a private (trusted) network.
+ /// </summary>
+ Private,
+ /// <summary>
+ /// The network is authenticated against an Active Directory domain.
+ /// </summary>
+ Authenticated
+ }
+
+ /// <summary>
+ /// Specifies the level of connectivity for
+ /// networks returned by the
+ /// <see cref="NetworkListManager"/>
+ /// class.
+ /// </summary>
+ [Flags]
+ public enum NetworkConnectivityLevels
+ {
+ /// <summary>
+ /// Networks that the machine is connected to.
+ /// </summary>
+ Connected = 1,
+ /// <summary>
+ /// Networks that the machine is not connected to.
+ /// </summary>
+ Disconnected = 2,
+ /// <summary>
+ /// All networks.
+ /// </summary>
+ All = 3,
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListManager.cs
new file mode 100644
index 0000000000..808ed47113
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/NetworkList/NetworkListManager.cs
@@ -0,0 +1,132 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Net
+{
+ /// <summary>
+ /// Provides access to objects that represent networks and network connections.
+ /// </summary>
+ public static class NetworkListManager
+ {
+ #region Private Fields
+
+ static NetworkListManagerClass manager = new NetworkListManagerClass();
+
+ #endregion // Private Fields
+
+ /// <summary>
+ /// Retrieves a collection of <see cref="Network"/> objects that represent the networks defined for this machine.
+ /// </summary>
+ /// <param name="level">
+ /// The <see cref="NetworkConnectivityLevels"/> that specify the connectivity level of the returned <see cref="Network"/> objects.
+ /// </param>
+ /// <returns>
+ /// A <see cref="NetworkCollection"/> of <see cref="Network"/> objects.
+ /// </returns>
+ public static NetworkCollection GetNetworks(NetworkConnectivityLevels level)
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ return new NetworkCollection(manager.GetNetworks(level));
+ }
+
+ /// <summary>
+ /// Retrieves the <see cref="Network"/> identified by the specified network identifier.
+ /// </summary>
+ /// <param name="networkId">
+ /// A <see cref="System.Guid"/> that specifies the unique identifier for the network.
+ /// </param>
+ /// <returns>
+ /// The <see cref="Network"/> that represents the network identified by the identifier.
+ /// </returns>
+ public static Network GetNetwork(Guid networkId)
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ return new Network(manager.GetNetwork(networkId));
+ }
+
+ /// <summary>
+ /// Retrieves a collection of <see cref="NetworkConnection"/> objects that represent the connections for this machine.
+ /// </summary>
+ /// <returns>
+ /// A <see cref="NetworkConnectionCollection"/> containing the network connections.
+ /// </returns>
+ public static NetworkConnectionCollection GetNetworkConnections()
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ return new NetworkConnectionCollection(manager.GetNetworkConnections());
+ }
+
+ /// <summary>
+ /// Retrieves the <see cref="NetworkConnection"/> identified by the specified connection identifier.
+ /// </summary>
+ /// <param name="networkConnectionId">
+ /// A <see cref="System.Guid"/> that specifies the unique identifier for the network connection.
+ /// </param>
+ /// <returns>
+ /// The <see cref="NetworkConnection"/> identified by the specified identifier.
+ /// </returns>
+ public static NetworkConnection GetNetworkConnection(Guid networkConnectionId)
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ return new NetworkConnection(manager.GetNetworkConnection(networkConnectionId));
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether this machine
+ /// has Internet connectivity.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public static bool IsConnectedToInternet
+ {
+ get
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ return manager.IsConnectedToInternet;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether this machine
+ /// has network connectivity.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public static bool IsConnected
+ {
+ get
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ return manager.IsConnected;
+ }
+ }
+
+ /// <summary>
+ /// Gets the connectivity state of this machine.
+ /// </summary>
+ /// <value>A <see cref="Connectivity"/> value.</value>
+ public static ConnectivityStates Connectivity
+ {
+ get
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ return manager.GetConnectivity();
+ }
+ }
+ }
+
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/BatteryState.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/BatteryState.cs
new file mode 100644
index 0000000000..0ee82cf9e4
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/BatteryState.cs
@@ -0,0 +1,113 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// A snapshot of the state of the battery.
+ /// </summary>
+ public class BatteryState
+ {
+ internal BatteryState()
+ {
+ var state = Power.GetSystemBatteryState();
+
+ if (!state.BatteryPresent)
+ {
+ throw new InvalidOperationException(LocalizedMessages.PowerManagerBatteryNotPresent);
+ }
+
+ ACOnline = state.AcOnLine;
+ MaxCharge = (int)state.MaxCapacity;
+ CurrentCharge = (int)state.RemainingCapacity;
+ ChargeRate = (int)state.Rate;
+
+ uint estimatedTime = state.EstimatedTime;
+ if (estimatedTime != uint.MaxValue) // uint.MaxValue signifies indefinite estimated time (plugged in)
+ {
+ EstimatedTimeRemaining = new TimeSpan(0, 0, (int)estimatedTime);
+ }
+ else
+ {
+ EstimatedTimeRemaining = TimeSpan.MaxValue;
+ }
+
+ SuggestedCriticalBatteryCharge = (int)state.DefaultAlert1;
+ SuggestedBatteryWarningCharge = (int)state.DefaultAlert2;
+ }
+
+ #region Public properties
+
+ /// <summary>
+ /// Gets a value that indicates whether the battery charger is
+ /// operating on external power.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value. <b>True</b> indicates the battery charger is operating on AC power.</value>
+ public bool ACOnline { get; private set; }
+
+ /// <summary>
+ /// Gets the maximum charge of the battery (in mW).
+ /// </summary>
+ /// <value>An <see cref="System.Int32"/> value.</value>
+ public int MaxCharge { get; private set; }
+
+ /// <summary>
+ /// Gets the current charge of the battery (in mW).
+ /// </summary>
+ /// <value>An <see cref="System.Int32"/> value.</value>
+ public int CurrentCharge { get; private set; }
+ /// <summary>
+ /// Gets the rate of discharge for the battery (in mW).
+ /// </summary>
+ /// <remarks>
+ /// If plugged in, fully charged: DischargeRate = 0.
+ /// If plugged in, charging: DischargeRate = positive mW per hour.
+ /// If unplugged: DischargeRate = negative mW per hour.
+ /// </remarks>
+ /// <value>An <see cref="System.Int32"/> value.</value>
+ public int ChargeRate { get; private set; }
+
+ /// <summary>
+ /// Gets the estimated time remaining until the battery is empty.
+ /// </summary>
+ /// <value>A <see cref="System.TimeSpan"/> object.</value>
+ public TimeSpan EstimatedTimeRemaining { get; private set; }
+
+ /// <summary>
+ /// Gets the manufacturer's suggested battery charge level
+ /// that should cause a critical alert to be sent to the user.
+ /// </summary>
+ /// <value>An <see cref="System.Int32"/> value.</value>
+ public int SuggestedCriticalBatteryCharge { get; private set; }
+
+ /// <summary>
+ /// Gets the manufacturer's suggested battery charge level
+ /// that should cause a warning to be sent to the user.
+ /// </summary>
+ /// <value>An <see cref="System.Int32"/> value.</value>
+ public int SuggestedBatteryWarningCharge { get; private set; }
+
+ #endregion
+
+ /// <summary>
+ /// Generates a string that represents this <b>BatteryState</b> object.
+ /// </summary>
+ /// <returns>A <see cref="System.String"/> representation of this object's current state.</returns>
+ public override string ToString()
+ {
+ return string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.BatteryStateStringRepresentation,
+ Environment.NewLine,
+ ACOnline,
+ MaxCharge,
+ CurrentCharge,
+ ChargeRate,
+ EstimatedTimeRemaining,
+ SuggestedCriticalBatteryCharge,
+ SuggestedBatteryWarningCharge
+ );
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/EventManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/EventManager.cs
new file mode 100644
index 0000000000..c4449e5742
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/EventManager.cs
@@ -0,0 +1,91 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Threading;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// This class keeps track of the current state of each type of event.
+ /// The MessageManager class tracks event handlers.
+ /// This class only deals with each event type (i.e.
+ /// BatteryLifePercentChanged) as a whole.
+ /// </summary>
+ internal static class EventManager
+ {
+ // Prevents reading from PowerManager members while they are still null.
+ // MessageManager notifies the PowerManager that the member
+ // has been set and can be used.
+ internal static AutoResetEvent monitorOnReset = new AutoResetEvent(false);
+
+ #region Hardcoded GUIDS for each event
+
+ internal static readonly Guid PowerPersonalityChange = new Guid(0x245d8541, 0x3943, 0x4422, 0xb0, 0x25, 0x13, 0xA7, 0x84, 0xF6, 0x79, 0xB7);
+ internal static readonly Guid PowerSourceChange = new Guid(0x5d3e9a59, 0xe9D5, 0x4b00, 0xa6, 0xbd, 0xff, 0x34, 0xff, 0x51, 0x65, 0x48);
+ internal static readonly Guid BatteryCapacityChange = new Guid(0xa7ad8041, 0xb45a, 0x4cae, 0x87, 0xa3, 0xee, 0xcb, 0xb4, 0x68, 0xa9, 0xe1);
+ internal static readonly Guid BackgroundTaskNotification = new Guid(0x515c31d8, 0xf734, 0x163d, 0xa0, 0xfd, 0x11, 0xa0, 0x8c, 0x91, 0xe8, 0xf1);
+ internal static readonly Guid MonitorPowerStatus = new Guid(0x02731015, 0x4510, 0x4526, 0x99, 0xe6, 0xe5, 0xa1, 0x7e, 0xbd, 0x1a, 0xea);
+
+ #endregion
+
+ #region private static members
+
+ // Used to catch the initial message Windows sends when
+ // you first register for a power notification.
+ // We do not want to fire any event handlers when this happens.
+ private static bool personalityCaught;
+ private static bool powerSrcCaught;
+ private static bool batteryLifeCaught;
+ private static bool monitorOnCaught;
+
+ #endregion
+
+ /// <summary>
+ /// Determines if a message should be caught, preventing
+ /// the event handler from executing.
+ /// This is needed when an event is initially registered.
+ /// </summary>
+ /// <param name="eventGuid">The event to check.</param>
+ /// <returns>A boolean value. Returns true if the
+ /// message should be caught.</returns>
+ internal static bool IsMessageCaught(Guid eventGuid)
+ {
+ bool isMessageCaught = false;
+
+ if (eventGuid == EventManager.BatteryCapacityChange)
+ {
+ if (!batteryLifeCaught)
+ {
+ batteryLifeCaught = true;
+ isMessageCaught = true;
+ }
+ }
+ else if (eventGuid == EventManager.MonitorPowerStatus)
+ {
+ if (!monitorOnCaught)
+ {
+ monitorOnCaught = true;
+ isMessageCaught = true;
+ }
+ }
+ else if (eventGuid == EventManager.PowerPersonalityChange)
+ {
+ if (!personalityCaught)
+ {
+ personalityCaught = true;
+ isMessageCaught = true;
+ }
+ }
+ else if (eventGuid == EventManager.PowerSourceChange)
+ {
+ if (!powerSrcCaught)
+ {
+ powerSrcCaught = true;
+ isMessageCaught = true;
+ }
+ }
+
+ return isMessageCaught;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/ExecutionState.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/ExecutionState.cs
new file mode 100644
index 0000000000..bd2ce7f53c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/ExecutionState.cs
@@ -0,0 +1,41 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Enumeration of execution states.
+ /// </summary>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2217:DoNotMarkEnumsWithFlags")]
+ [Flags]
+ public enum ExecutionStates
+ {
+ /// <summary>
+ /// No state configured.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// Forces the system to be in the working state by resetting the system idle timer.
+ /// </summary>
+ SystemRequired = 0x1,
+
+ /// <summary>
+ /// Forces the display to be on by resetting the display idle timer.
+ /// </summary>
+ DisplayRequired = 0x2,
+
+ /// <summary>
+ /// Enables away mode. This value must be specified with ES_CONTINUOUS.
+ /// Away mode should be used only by media-recording and media-distribution applications that must perform critical background processing on desktop computers while the computer appears to be sleeping. See Remarks.
+ ///
+ /// Windows Server 2003 and Windows XP/2000: ES_AWAYMODE_REQUIRED is not supported.
+ /// </summary>
+ AwayModeRequired = 0x40,
+
+ /// <summary>
+ /// Informs the system that the state being set should remain in effect until the next call that uses ES_CONTINUOUS and one of the other state flags is cleared.
+ /// </summary>
+ Continuous = unchecked((int)0x80000000)
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/MessageManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/MessageManager.cs
new file mode 100644
index 0000000000..eb656a5041
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/MessageManager.cs
@@ -0,0 +1,180 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+using System.Threading;
+using System.Windows.Forms;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// This class generates .NET events based on Windows messages.
+ /// The PowerRegWindow class processes the messages from Windows.
+ /// </summary>
+ internal static class MessageManager
+ {
+ private static object lockObject = new object();
+ private static PowerRegWindow window;
+
+ #region Internal static methods
+
+ /// <summary>
+ /// Registers a callback for a power event.
+ /// </summary>
+ /// <param name="eventId">Guid for the event.</param>
+ /// <param name="eventToRegister">Event handler for the specified event.</param>
+ internal static void RegisterPowerEvent(Guid eventId, EventHandler eventToRegister)
+ {
+ EnsureInitialized();
+ window.RegisterPowerEvent(eventId, eventToRegister);
+ }
+
+ /// <summary>
+ /// Unregisters an event handler for a power event.
+ /// </summary>
+ /// <param name="eventId">Guid for the event.</param>
+ /// <param name="eventToUnregister">Event handler to unregister.</param>
+ internal static void UnregisterPowerEvent(Guid eventId, EventHandler eventToUnregister)
+ {
+ EnsureInitialized();
+ window.UnregisterPowerEvent(eventId, eventToUnregister);
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Ensures that the hidden window is initialized and
+ /// listening for messages.
+ /// </summary>
+ private static void EnsureInitialized()
+ {
+ lock (lockObject)
+ {
+ if (window == null)
+ {
+ // Create a new hidden window to listen
+ // for power management related window messages.
+ window = new PowerRegWindow();
+ }
+ }
+ }
+
+ /// <summary>
+ /// Catch Windows messages and generates events for power specific
+ /// messages.
+ /// </summary>
+ internal class PowerRegWindow : Form
+ {
+ private Hashtable eventList = new Hashtable();
+ private ReaderWriterLock readerWriterLock = new ReaderWriterLock();
+
+ internal PowerRegWindow()
+ : base()
+ {
+
+ }
+
+ #region Internal Methods
+
+ /// <summary>
+ /// Adds an event handler to call when Windows sends
+ /// a message for an event.
+ /// </summary>
+ /// <param name="eventId">Guid for the event.</param>
+ /// <param name="eventToRegister">Event handler for the event.</param>
+ internal void RegisterPowerEvent(Guid eventId, EventHandler eventToRegister)
+ {
+ readerWriterLock.AcquireWriterLock(Timeout.Infinite);
+ if (!eventList.Contains(eventId))
+ {
+ Power.RegisterPowerSettingNotification(this.Handle, eventId);
+ ArrayList newList = new ArrayList();
+ newList.Add(eventToRegister);
+ eventList.Add(eventId, newList);
+ }
+ else
+ {
+ ArrayList currList = (ArrayList)eventList[eventId];
+ currList.Add(eventToRegister);
+ }
+ readerWriterLock.ReleaseWriterLock();
+ }
+
+ /// <summary>
+ /// Removes an event handler.
+ /// </summary>
+ /// <param name="eventId">Guid for the event.</param>
+ /// <param name="eventToUnregister">Event handler to remove.</param>
+ /// <exception cref="InvalidOperationException">Cannot unregister
+ /// a function that is not registered.</exception>
+ internal void UnregisterPowerEvent(Guid eventId, EventHandler eventToUnregister)
+ {
+ readerWriterLock.AcquireWriterLock(Timeout.Infinite);
+ if (eventList.Contains(eventId))
+ {
+ ArrayList currList = (ArrayList)eventList[eventId];
+ currList.Remove(eventToUnregister);
+ }
+ else
+ {
+ throw new InvalidOperationException(LocalizedMessages.MessageManagerHandlerNotRegistered);
+ }
+ readerWriterLock.ReleaseWriterLock();
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Executes any registered event handlers.
+ /// </summary>
+ /// <param name="eventHandlerList">ArrayList of event handlers.</param>
+ private static void ExecuteEvents(ArrayList eventHandlerList)
+ {
+ foreach (EventHandler handler in eventHandlerList)
+ {
+ handler.Invoke(null, new EventArgs());
+ }
+ }
+
+ /// <summary>
+ /// This method is called when a Windows message
+ /// is sent to this window.
+ /// The method calls the registered event handlers.
+ /// </summary>
+ protected override void WndProc(ref Message m)
+ {
+ // Make sure it is a Power Management message.
+ if (m.Msg == PowerManagementNativeMethods.PowerBroadcastMessage &&
+ (int)m.WParam == PowerManagementNativeMethods.PowerSettingChangeMessage)
+ {
+ PowerManagementNativeMethods.PowerBroadcastSetting ps =
+ (PowerManagementNativeMethods.PowerBroadcastSetting)Marshal.PtrToStructure(
+ m.LParam, typeof(PowerManagementNativeMethods.PowerBroadcastSetting));
+
+ IntPtr pData = new IntPtr(m.LParam.ToInt64() + Marshal.SizeOf(ps));
+ Guid currentEvent = ps.PowerSetting;
+
+ // IsMonitorOn
+ if (ps.PowerSetting == EventManager.MonitorPowerStatus &&
+ ps.DataLength == Marshal.SizeOf(typeof(Int32)))
+ {
+ Int32 monitorStatus = (Int32)Marshal.PtrToStructure(pData, typeof(Int32));
+ PowerManager.IsMonitorOn = monitorStatus != 0;
+ EventManager.monitorOnReset.Set();
+ }
+
+ if (!EventManager.IsMessageCaught(currentEvent))
+ {
+ ExecuteEvents((ArrayList)eventList[currentEvent]);
+ }
+ }
+ else
+ base.WndProc(ref m);
+
+ }
+
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PersonalityGuids.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PersonalityGuids.cs
new file mode 100644
index 0000000000..30659a61f7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PersonalityGuids.cs
@@ -0,0 +1,27 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ internal static class PowerPersonalityGuids
+ {
+ internal static readonly Guid HighPerformance = new Guid(0x8c5e7fda, 0xe8bf, 0x4a96, 0x9a, 0x85, 0xa6, 0xe2, 0x3a, 0x8c, 0x63, 0x5c);
+ internal static readonly Guid PowerSaver = new Guid(0xa1841308, 0x3541, 0x4fab, 0xbc, 0x81, 0xf7, 0x15, 0x56, 0xf2, 0x0b, 0x4a);
+ internal static readonly Guid Automatic = new Guid(0x381b4222, 0xf694, 0x41f0, 0x96, 0x85, 0xff, 0x5b, 0xb2, 0x60, 0xdf, 0x2e);
+
+ internal static readonly Guid All = new Guid(0x68A1E95E, 0x13EA, 0x41E1, 0x80, 0x11, 0x0C, 0x49, 0x6C, 0xA4, 0x90, 0xB0);
+
+ internal static PowerPersonality GuidToEnum(Guid guid)
+ {
+ if (guid == HighPerformance)
+ return PowerPersonality.HighPerformance;
+ else if (guid == PowerSaver)
+ return PowerPersonality.PowerSaver;
+ else if (guid == Automatic)
+ return PowerPersonality.Automatic;
+ else
+ return PowerPersonality.Unknown;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/Power.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/Power.cs
new file mode 100644
index 0000000000..c7488b2b9d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/Power.cs
@@ -0,0 +1,72 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.ComponentModel;
+using System.Diagnostics.CodeAnalysis;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ internal static class Power
+ {
+ internal static PowerManagementNativeMethods.SystemPowerCapabilities
+ GetSystemPowerCapabilities()
+ {
+ PowerManagementNativeMethods.SystemPowerCapabilities powerCap;
+
+ uint retval = PowerManagementNativeMethods.CallNtPowerInformation(
+ PowerManagementNativeMethods.PowerInformationLevel.SystemPowerCapabilities,
+ IntPtr.Zero, 0, out powerCap,
+ (UInt32)Marshal.SizeOf(typeof(PowerManagementNativeMethods.SystemPowerCapabilities))
+ );
+
+ if (retval == CoreNativeMethods.StatusAccessDenied)
+ {
+ throw new UnauthorizedAccessException(LocalizedMessages.PowerInsufficientAccessCapabilities);
+ }
+
+ return powerCap;
+ }
+
+ internal static PowerManagementNativeMethods.SystemBatteryState GetSystemBatteryState()
+ {
+ PowerManagementNativeMethods.SystemBatteryState batteryState;
+
+ uint retval = PowerManagementNativeMethods.CallNtPowerInformation(
+ PowerManagementNativeMethods.PowerInformationLevel.SystemBatteryState,
+ IntPtr.Zero, 0, out batteryState,
+ (UInt32)Marshal.SizeOf(typeof(PowerManagementNativeMethods.SystemBatteryState))
+ );
+
+ if (retval == CoreNativeMethods.StatusAccessDenied)
+ {
+ throw new UnauthorizedAccessException(LocalizedMessages.PowerInsufficientAccessBatteryState);
+ }
+
+ return batteryState;
+ }
+
+ /// <summary>
+ /// Registers the application to receive power setting notifications
+ /// for the specific power setting event.
+ /// </summary>
+ /// <param name="handle">Handle indicating where the power setting
+ /// notifications are to be sent.</param>
+ /// <param name="powerSetting">The GUID of the power setting for
+ /// which notifications are to be sent.</param>
+ /// <returns>Returns a notification handle for unregistering
+ /// power notifications.</returns>
+ internal static int RegisterPowerSettingNotification(
+ IntPtr handle, Guid powerSetting)
+ {
+ int outHandle = PowerManagementNativeMethods.RegisterPowerSettingNotification(
+ handle,
+ ref powerSetting,
+ 0);
+
+ return outHandle;
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManager.cs
new file mode 100644
index 0000000000..731fda994c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManager.cs
@@ -0,0 +1,404 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics.CodeAnalysis;
+using Microsoft.WindowsAPICodePack.Resources;
+using MS.WindowsAPICodePack.Internal;
+using System.ComponentModel;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Enables registration for
+ /// power-related event notifications and provides access to power settings.
+ /// </summary>
+ public static class PowerManager
+ {
+ private static bool? isMonitorOn;
+ private static bool monitorRequired;
+ private static bool requestBlockSleep;
+
+ private static readonly object monitoronlock = new object();
+
+
+ #region Notifications
+
+ /// <summary>
+ /// Raised each time the active power scheme changes.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The event handler specified for removal was not registered.</exception>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ public static event EventHandler PowerPersonalityChanged
+ {
+ add
+ {
+
+
+ MessageManager.RegisterPowerEvent(
+ EventManager.PowerPersonalityChange, value);
+ }
+
+ remove
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.UnregisterPowerEvent(
+ EventManager.PowerPersonalityChange, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when the power source changes.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The event handler specified for removal was not registered.</exception>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ public static event EventHandler PowerSourceChanged
+ {
+ add
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.RegisterPowerEvent(
+ EventManager.PowerSourceChange, value);
+ }
+
+ remove
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.UnregisterPowerEvent(
+ EventManager.PowerSourceChange, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when the remaining battery life changes.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The event handler specified for removal was not registered.</exception>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ public static event EventHandler BatteryLifePercentChanged
+ {
+ add
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.RegisterPowerEvent(
+ EventManager.BatteryCapacityChange, value);
+ }
+ remove
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.UnregisterPowerEvent(
+ EventManager.BatteryCapacityChange, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when the monitor status changes.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The event handler specified for removal was not registered.</exception>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ public static event EventHandler IsMonitorOnChanged
+ {
+ add
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.RegisterPowerEvent(
+ EventManager.MonitorPowerStatus, value);
+ }
+ remove
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.UnregisterPowerEvent(
+ EventManager.MonitorPowerStatus, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when the system will not be moving into an idle
+ /// state in the near future so applications should
+ /// perform any tasks that
+ /// would otherwise prevent the computer from entering an idle state.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">The event handler specified for removal was not registered.</exception>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ public static event EventHandler SystemBusyChanged
+ {
+ add
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.RegisterPowerEvent(
+ EventManager.BackgroundTaskNotification, value);
+ }
+ remove
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ MessageManager.UnregisterPowerEvent(
+ EventManager.BackgroundTaskNotification, value);
+ }
+ }
+ #endregion
+
+ /// <summary>
+ /// Gets a snapshot of the current battery state.
+ /// </summary>
+ /// <returns>A <see cref="BatteryState"/> instance that represents
+ /// the state of the battery at the time this method was called.</returns>
+ /// <exception cref="System.InvalidOperationException">The system does not have a battery.</exception>
+ /// <exception cref="System.PlatformNotSupportedException">Requires XP/Windows Server 2003 or higher.</exception>
+ public static BatteryState GetCurrentBatteryState()
+ {
+ CoreHelpers.ThrowIfNotXP();
+ return new BatteryState();
+ }
+
+ #region Power System Properties
+
+ /// <summary>
+ /// Gets or sets a value that indicates whether the monitor is
+ /// set to remain active.
+ /// </summary>
+ /// <exception cref="T:System.PlatformNotSupportedException">Requires XP/Windows Server 2003 or higher.</exception>
+ /// <exception cref="T:System.Security.SecurityException">The caller does not have sufficient privileges to set this property.
+ /// </exception>
+ /// <remarks>This information is typically used by applications
+ /// that display information but do not require
+ /// user interaction. For example, video playback applications.</remarks>
+ /// <permission cref="T:System.Security.Permissions.SecurityPermission"> to set this property. Demand value: <see cref="F:System.Security.Permissions.SecurityAction.Demand"/>; Named Permission Sets: <b>FullTrust</b>.</permission>
+ /// <value>A <see cref="System.Boolean"/> value. <b>True</b> if the monitor
+ /// is required to remain on.</value>
+ public static bool MonitorRequired
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotXP();
+ return monitorRequired;
+ }
+ [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")]
+ set
+ {
+ CoreHelpers.ThrowIfNotXP();
+
+ if (value)
+ {
+ PowerManager.SetThreadExecutionState(ExecutionStates.Continuous | ExecutionStates.DisplayRequired);
+ }
+ else
+ {
+ PowerManager.SetThreadExecutionState(ExecutionStates.Continuous);
+ }
+
+ monitorRequired = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets a value that indicates whether the system
+ /// is required to be in the working state.
+ /// </summary>
+ /// <exception cref="System.PlatformNotSupportedException">Requires XP/Windows Server 2003 or higher.</exception>
+ /// <exception cref="System.Security.SecurityException">The caller does not have sufficient privileges to set this property.
+ /// </exception>
+ /// <permission cref="System.Security.Permissions.SecurityPermission"> to set this property. Demand value: <see cref="F:System.Security.Permissions.SecurityAction.Demand"/>; Named Permission Sets: <b>FullTrust</b>.</permission>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public static bool RequestBlockSleep
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotXP();
+
+ return requestBlockSleep;
+ }
+ [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")]
+ set
+ {
+ CoreHelpers.ThrowIfNotXP();
+
+ if (value)
+ PowerManager.SetThreadExecutionState(ExecutionStates.Continuous | ExecutionStates.SystemRequired);
+ else
+ PowerManager.SetThreadExecutionState(ExecutionStates.Continuous);
+
+ requestBlockSleep = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether a battery is present.
+ /// The battery can be a short term battery.
+ /// </summary>
+ /// <exception cref="System.PlatformNotSupportedException">Requires XP/Windows Server 2003 or higher.</exception>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public static bool IsBatteryPresent
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotXP();
+
+ return Power.GetSystemBatteryState().BatteryPresent;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether the battery is a short term battery.
+ /// </summary>
+ /// <exception cref="System.PlatformNotSupportedException">Requires XP/Windows Server 2003 or higher.</exception>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public static bool IsBatteryShortTerm
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotXP();
+ return Power.GetSystemPowerCapabilities().BatteriesAreShortTerm;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates a UPS is present to prevent
+ /// sudden loss of power.
+ /// </summary>
+ /// <exception cref="System.PlatformNotSupportedException">Requires XP/Windows Server 2003 or higher.</exception>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public static bool IsUpsPresent
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotXP();
+
+ // Because the native method doesn't return the correct value for .UpsPresent,
+ // use .BatteriesAreShortTerm and .SystemBatteriesPresent to check for UPS
+ PowerManagementNativeMethods.SystemPowerCapabilities batt = Power.GetSystemPowerCapabilities();
+
+ return (batt.BatteriesAreShortTerm && batt.SystemBatteriesPresent);
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates the current power scheme.
+ /// </summary>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ /// <value>A <see cref="PowerPersonality"/> value.</value>
+ public static PowerPersonality PowerPersonality
+ {
+ get
+ {
+ Guid guid;
+ PowerManagementNativeMethods.PowerGetActiveScheme(IntPtr.Zero, out guid);
+
+ try
+ {
+ return PowerPersonalityGuids.GuidToEnum(guid);
+ }
+ finally
+ {
+ CoreNativeMethods.LocalFree(ref guid);
+ }
+ }
+ }
+
+
+
+ /// <summary>
+ /// Gets a value that indicates the remaining battery life
+ /// (as a percentage of the full battery charge).
+ /// This value is in the range 0-100,
+ /// where 0 is not charged and 100 is fully charged.
+ /// </summary>
+ /// <exception cref="System.InvalidOperationException">The system does not have a battery.</exception>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ /// <value>An <see cref="System.Int32"/> value.</value>
+ public static int BatteryLifePercent
+ {
+ get
+ {
+ // Because of the way this value is being calculated, it should not be limited to granularity
+ // as the data from the event (old way) was.
+ CoreHelpers.ThrowIfNotVista();
+ if (!Power.GetSystemBatteryState().BatteryPresent)
+ throw new InvalidOperationException(LocalizedMessages.PowerManagerBatteryNotPresent);
+
+ var state = Power.GetSystemBatteryState();
+
+ int percent = (int)Math.Round(((double)state.RemainingCapacity / state.MaxCapacity * 100), 0);
+ return percent;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that indictates whether the monitor is on.
+ /// </summary>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public static bool IsMonitorOn
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ lock (monitoronlock)
+ {
+ if (isMonitorOn == null)
+ {
+ EventHandler dummy = delegate(object sender, EventArgs args) { };
+ IsMonitorOnChanged += dummy;
+ // Wait until Windows updates the power source
+ // (through RegisterPowerSettingNotification)
+ EventManager.monitorOnReset.WaitOne();
+ }
+ }
+
+ return (bool)isMonitorOn;
+ }
+ internal set { isMonitorOn = value; }
+ }
+
+ /// <summary>
+ /// Gets the current power source.
+ /// </summary>
+ /// <exception cref="System.PlatformNotSupportedException">Requires Vista/Windows Server 2008.</exception>
+ /// <value>A <see cref="PowerSource"/> value.</value>
+ public static PowerSource PowerSource
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ if (IsUpsPresent)
+ {
+ return PowerSource.Ups;
+ }
+
+ if (!IsBatteryPresent || GetCurrentBatteryState().ACOnline)
+ {
+ return PowerSource.AC;
+ }
+
+ return PowerSource.Battery;
+ }
+ }
+ #endregion
+
+ /// <summary>
+ /// Allows an application to inform the system that it
+ /// is in use, thereby preventing the system from entering
+ /// the sleeping power state or turning off the display
+ /// while the application is running.
+ /// </summary>
+ /// <param name="executionStateOptions">The thread's execution requirements.</param>
+ /// <exception cref="Win32Exception">Thrown if the SetThreadExecutionState call fails.</exception>
+ public static void SetThreadExecutionState(ExecutionStates executionStateOptions)
+ {
+ ExecutionStates ret = PowerManagementNativeMethods.SetThreadExecutionState(executionStateOptions);
+ if (ret == ExecutionStates.None)
+ {
+ throw new Win32Exception(LocalizedMessages.PowerExecutionStateFailed);
+ }
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManagerException.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManagerException.cs
new file mode 100644
index 0000000000..725e46c24b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerManagerException.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// This exception is thrown when there are problems with getting piece of data within PowerManager.
+ /// </summary>
+ [Serializable]
+ public class PowerManagerException : Exception
+ {
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public PowerManagerException() { }
+
+ /// <summary>
+ /// Initializes an excpetion with a custom message.
+ /// </summary>
+ /// <param name="message">A custom message for the exception.</param>
+ public PowerManagerException(string message) : base(message) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and inner exception.
+ /// </summary>
+ /// <param name="message">A custom message for the exception.</param>
+ /// <param name="innerException">An inner exception on which to base this exception.</param>
+ public PowerManagerException(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ }
+
+ /// <summary>
+ /// Initializes an exception from serialization info and a context.
+ /// </summary>
+ /// <param name="info">SerializationInfo for the exception.</param>
+ /// <param name="context">StreamingContext for the exception.</param>
+ protected PowerManagerException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context)
+ : base(info, context)
+ {
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerPersonality.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerPersonality.cs
new file mode 100644
index 0000000000..8eb4cc96f3
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerPersonality.cs
@@ -0,0 +1,33 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Specifies the supported power personalities.
+ /// </summary>
+ public enum PowerPersonality
+ {
+ /// <summary>
+ /// The power personality Guid does not match a known value.
+ /// </summary>
+ Unknown,
+ /// <summary>
+ /// Power settings designed to deliver maximum performance
+ /// at the expense of power consumption savings.
+ /// </summary>
+ HighPerformance,
+
+ /// <summary>
+ /// Power settings designed consume minimum power
+ /// at the expense of system performance and responsiveness.
+ /// </summary>
+ PowerSaver,
+
+ /// <summary>
+ /// Power settings designed to balance performance
+ /// and power consumption.
+ /// </summary>
+ Automatic
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerSource.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerSource.cs
new file mode 100644
index 0000000000..b38ce3ca28
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PowerManagement/PowerSource.cs
@@ -0,0 +1,34 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.ApplicationServices
+{
+ /// <summary>
+ /// Specifies the power source currently supplying power to the system.
+ /// </summary>
+ /// <remarks>Application should be aware of the power source because
+ /// some power sources provide a finite power supply.
+ /// An application might take steps to conserve power while
+ /// the system is using such a source.
+ /// </remarks>
+ public enum PowerSource
+ {
+ /// <summary>
+ /// The computer is powered by an AC power source
+ /// or a similar device, such as a laptop powered
+ /// by a 12V automotive adapter.
+ /// </summary>
+ AC = 0,
+ /// <summary>
+ /// The computer is powered by a built-in battery.
+ /// A battery has a limited
+ /// amount of power; applications should conserve resources
+ /// where possible.
+ /// </summary>
+ Battery = 1,
+ /// <summary>
+ /// The computer is powered by a short-term power source
+ /// such as a UPS device.
+ /// </summary>
+ Ups = 2
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Properties/AssemblyInfo.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000000..58b5bbb2df
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Properties/AssemblyInfo.cs
@@ -0,0 +1,43 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
+using System.Resources;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Microsoft.WindowsAPICodePack")]
+[assembly: AssemblyDescription("WindowsAPICodePack Core")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Microsoft Windows API Code Pack for .NET Framework")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+
+[assembly: InternalsVisibleTo("Microsoft.WindowsAPICodePack.Shell")]
+[assembly: InternalsVisibleTo("Microsoft.WindowsAPICodePack.Sensors")]
+[assembly: InternalsVisibleTo("Microsoft.WindowsAPICodePack.ShellExtensions")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("ac9740bc-3035-43ee-9a68-1dde36ab1f5e")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.1.0.0")]
+[assembly: AssemblyFileVersion("1.1.0.0")]
+[assembly: NeutralResourcesLanguageAttribute("en")]
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariant.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariant.cs
new file mode 100644
index 0000000000..cab1623a61
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariant.cs
@@ -0,0 +1,808 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Resources;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// Represents the OLE struct PROPVARIANT.
+ /// This class is intended for internal use only.
+ /// </summary>
+ /// <remarks>
+ /// Originally sourced from http://blogs.msdn.com/adamroot/pages/interop-with-propvariants-in-net.aspx
+ /// and modified to support additional types including vectors and ability to set values
+ /// </remarks>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Portability", "CA1900:ValueTypeFieldsShouldBePortable", MessageId = "_ptr2")]
+ [StructLayout(LayoutKind.Explicit)]
+ public sealed class PropVariant : IDisposable
+ {
+ #region Vector Action Cache
+
+ // A static dictionary of delegates to get data from array's contained within PropVariants
+ private static Dictionary<Type, Action<PropVariant, Array, uint>> _vectorActions = null;
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ private static Dictionary<Type, Action<PropVariant, Array, uint>> GenerateVectorActions()
+ {
+ Dictionary<Type, Action<PropVariant, Array, uint>> cache = new Dictionary<Type, Action<PropVariant, Array, uint>>();
+
+ cache.Add(typeof(Int16), (pv, array, i) =>
+ {
+ short val;
+ PropVariantNativeMethods.PropVariantGetInt16Elem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(UInt16), (pv, array, i) =>
+ {
+ ushort val;
+ PropVariantNativeMethods.PropVariantGetUInt16Elem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(Int32), (pv, array, i) =>
+ {
+ int val;
+ PropVariantNativeMethods.PropVariantGetInt32Elem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(UInt32), (pv, array, i) =>
+ {
+ uint val;
+ PropVariantNativeMethods.PropVariantGetUInt32Elem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(Int64), (pv, array, i) =>
+ {
+ long val;
+ PropVariantNativeMethods.PropVariantGetInt64Elem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(UInt64), (pv, array, i) =>
+ {
+ ulong val;
+ PropVariantNativeMethods.PropVariantGetUInt64Elem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(DateTime), (pv, array, i) =>
+ {
+ System.Runtime.InteropServices.ComTypes.FILETIME val;
+ PropVariantNativeMethods.PropVariantGetFileTimeElem(pv, i, out val);
+
+ long fileTime = GetFileTimeAsLong(ref val);
+
+ array.SetValue(DateTime.FromFileTime(fileTime), i);
+ });
+
+ cache.Add(typeof(Boolean), (pv, array, i) =>
+ {
+ bool val;
+ PropVariantNativeMethods.PropVariantGetBooleanElem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(Double), (pv, array, i) =>
+ {
+ double val;
+ PropVariantNativeMethods.PropVariantGetDoubleElem(pv, i, out val);
+ array.SetValue(val, i);
+ });
+
+ cache.Add(typeof(Single), (pv, array, i) => // float
+ {
+ float[] val = new float[1];
+ Marshal.Copy(pv._ptr2, val, (int)i, 1);
+ array.SetValue(val[0], (int)i);
+ });
+
+ cache.Add(typeof(Decimal), (pv, array, i) =>
+ {
+ int[] val = new int[4];
+ for (int a = 0; a < val.Length; a++)
+ {
+ val[a] = Marshal.ReadInt32(pv._ptr2,
+ (int)i * sizeof(decimal) + a * sizeof(int)); //index * size + offset quarter
+ }
+ array.SetValue(new decimal(val), i);
+ });
+
+ cache.Add(typeof(String), (pv, array, i) =>
+ {
+ string val = string.Empty;
+ PropVariantNativeMethods.PropVariantGetStringElem(pv, i, ref val);
+ array.SetValue(val, i);
+ });
+
+ return cache;
+ }
+ #endregion
+
+ #region Dynamic Construction / Factory (Expressions)
+
+ /// <summary>
+ /// Attempts to create a PropVariant by finding an appropriate constructor.
+ /// </summary>
+ /// <param name="value">Object from which PropVariant should be created.</param>
+ public static PropVariant FromObject(object value)
+ {
+ if (value == null)
+ {
+ return new PropVariant();
+ }
+ else
+ {
+ var func = GetDynamicConstructor(value.GetType());
+ return func(value);
+ }
+ }
+
+ // A dictionary and lock to contain compiled expression trees for constructors
+ private static Dictionary<Type, Func<object, PropVariant>> _cache = new Dictionary<Type, Func<object, PropVariant>>();
+ private static object _padlock = new object();
+
+ // Retrieves a cached constructor expression.
+ // If no constructor has been cached, it attempts to find/add it. If it cannot be found
+ // an exception is thrown.
+ // This method looks for a public constructor with the same parameter type as the object.
+ private static Func<object, PropVariant> GetDynamicConstructor(Type type)
+ {
+ lock (_padlock)
+ {
+ // initial check, if action is found, return it
+ Func<object, PropVariant> action;
+ if (!_cache.TryGetValue(type, out action))
+ {
+ // iterates through all constructors
+ ConstructorInfo constructor = typeof(PropVariant)
+ .GetConstructor(new Type[] { type });
+
+ if (constructor == null)
+ { // if the method was not found, throw.
+ throw new ArgumentException(LocalizedMessages.PropVariantTypeNotSupported);
+ }
+ else // if the method was found, create an expression to call it.
+ {
+ // create parameters to action
+ var arg = Expression.Parameter(typeof(object), "arg");
+
+ // create an expression to invoke the constructor with an argument cast to the correct type
+ var create = Expression.New(constructor, Expression.Convert(arg, type));
+
+ // compiles expression into an action delegate
+ action = Expression.Lambda<Func<object, PropVariant>>(create, arg).Compile();
+ _cache.Add(type, action);
+ }
+ }
+ return action;
+ }
+ }
+
+ #endregion
+
+ #region Fields
+
+ [FieldOffset(0)]
+ decimal _decimal;
+
+ // This is actually a VarEnum value, but the VarEnum type
+ // requires 4 bytes instead of the expected 2.
+ [FieldOffset(0)]
+ ushort _valueType;
+
+ // Reserved Fields
+ //[FieldOffset(2)]
+ //ushort _wReserved1;
+ //[FieldOffset(4)]
+ //ushort _wReserved2;
+ //[FieldOffset(6)]
+ //ushort _wReserved3;
+
+ // In order to allow x64 compat, we need to allow for
+ // expansion of the IntPtr. However, the BLOB struct
+ // uses a 4-byte int, followed by an IntPtr, so
+ // although the valueData field catches most pointer values,
+ // we need an additional 4-bytes to get the BLOB
+ // pointer. The valueDataExt field provides this, as well as
+ // the last 4-bytes of an 8-byte value on 32-bit
+ // architectures.
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2006:UseSafeHandleToEncapsulateNativeResources")]
+ [FieldOffset(12)]
+ IntPtr _ptr2;
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2006:UseSafeHandleToEncapsulateNativeResources")]
+ [FieldOffset(8)]
+ IntPtr _ptr;
+ [FieldOffset(8)]
+ Int32 _int32;
+ [FieldOffset(8)]
+ UInt32 _uint32;
+ [FieldOffset(8)]
+ byte _byte;
+ [FieldOffset(8)]
+ sbyte _sbyte;
+ [FieldOffset(8)]
+ short _short;
+ [FieldOffset(8)]
+ ushort _ushort;
+ [FieldOffset(8)]
+ long _long;
+ [FieldOffset(8)]
+ ulong _ulong;
+ [FieldOffset(8)]
+ double _double;
+ [FieldOffset(8)]
+ float _float;
+
+ #endregion // struct fields
+
+ #region Constructors
+
+ /// <summary>
+ /// Default constrcutor
+ /// </summary>
+ public PropVariant()
+ {
+ // left empty
+ }
+
+ /// <summary>
+ /// Set a string value
+ /// </summary>
+ public PropVariant(string value)
+ {
+ if (value == null)
+ {
+ throw new ArgumentException(LocalizedMessages.PropVariantNullString, "value");
+ }
+
+ _valueType = (ushort)VarEnum.VT_LPWSTR;
+ _ptr = Marshal.StringToCoTaskMemUni(value);
+ }
+
+ /// <summary>
+ /// Set a string vector
+ /// </summary>
+ public PropVariant(string[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromStringVector(value, (uint)value.Length, this);
+ }
+
+ /// <summary>
+ /// Set a bool vector
+ /// </summary>
+ public PropVariant(bool[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromBooleanVector(value, (uint)value.Length, this);
+ }
+
+ /// <summary>
+ /// Set a short vector
+ /// </summary>
+ public PropVariant(short[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromInt16Vector(value, (uint)value.Length, this);
+ }
+
+ /// <summary>
+ /// Set a short vector
+ /// </summary>
+ public PropVariant(ushort[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromUInt16Vector(value, (uint)value.Length, this);
+
+ }
+
+ /// <summary>
+ /// Set an int vector
+ /// </summary>
+ public PropVariant(int[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromInt32Vector(value, (uint)value.Length, this);
+ }
+
+ /// <summary>
+ /// Set an uint vector
+ /// </summary>
+ public PropVariant(uint[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromUInt32Vector(value, (uint)value.Length, this);
+ }
+
+ /// <summary>
+ /// Set a long vector
+ /// </summary>
+ public PropVariant(long[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromInt64Vector(value, (uint)value.Length, this);
+ }
+
+ /// <summary>
+ /// Set a ulong vector
+ /// </summary>
+ public PropVariant(ulong[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromUInt64Vector(value, (uint)value.Length, this);
+ }
+
+ /// <summary>>
+ /// Set a double vector
+ /// </summary>
+ public PropVariant(double[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ PropVariantNativeMethods.InitPropVariantFromDoubleVector(value, (uint)value.Length, this);
+ }
+
+
+ /// <summary>
+ /// Set a DateTime vector
+ /// </summary>
+ public PropVariant(DateTime[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+ System.Runtime.InteropServices.ComTypes.FILETIME[] fileTimeArr =
+ new System.Runtime.InteropServices.ComTypes.FILETIME[value.Length];
+
+ for (int i = 0; i < value.Length; i++)
+ {
+ fileTimeArr[i] = DateTimeToFileTime(value[i]);
+ }
+
+ PropVariantNativeMethods.InitPropVariantFromFileTimeVector(fileTimeArr, (uint)fileTimeArr.Length, this);
+ }
+
+ /// <summary>
+ /// Set a bool value
+ /// </summary>
+ public PropVariant(bool value)
+ {
+ _valueType = (ushort)VarEnum.VT_BOOL;
+ _int32 = (value == true) ? -1 : 0;
+ }
+
+ /// <summary>
+ /// Set a DateTime value
+ /// </summary>
+ public PropVariant(DateTime value)
+ {
+ _valueType = (ushort)VarEnum.VT_FILETIME;
+
+ System.Runtime.InteropServices.ComTypes.FILETIME ft = DateTimeToFileTime(value);
+ PropVariantNativeMethods.InitPropVariantFromFileTime(ref ft, this);
+ }
+
+
+ /// <summary>
+ /// Set a byte value
+ /// </summary>
+ public PropVariant(byte value)
+ {
+ _valueType = (ushort)VarEnum.VT_UI1;
+ _byte = value;
+ }
+
+ /// <summary>
+ /// Set a sbyte value
+ /// </summary>
+ public PropVariant(sbyte value)
+ {
+ _valueType = (ushort)VarEnum.VT_I1;
+ _sbyte = value;
+ }
+
+ /// <summary>
+ /// Set a short value
+ /// </summary>
+ public PropVariant(short value)
+ {
+ _valueType = (ushort)VarEnum.VT_I2;
+ _short = value;
+ }
+
+ /// <summary>
+ /// Set an unsigned short value
+ /// </summary>
+ public PropVariant(ushort value)
+ {
+ _valueType = (ushort)VarEnum.VT_UI2;
+ _ushort = value;
+ }
+
+ /// <summary>
+ /// Set an int value
+ /// </summary>
+ public PropVariant(int value)
+ {
+ _valueType = (ushort)VarEnum.VT_I4;
+ _int32 = value;
+ }
+
+ /// <summary>
+ /// Set an unsigned int value
+ /// </summary>
+ public PropVariant(uint value)
+ {
+ _valueType = (ushort)VarEnum.VT_UI4;
+ _uint32 = value;
+ }
+
+ /// <summary>
+ /// Set a decimal value
+ /// </summary>
+ public PropVariant(decimal value)
+ {
+ _decimal = value;
+
+ // It is critical that the value type be set after the decimal value, because they overlap.
+ // If valuetype is written first, its value will be lost when _decimal is written.
+ _valueType = (ushort)VarEnum.VT_DECIMAL;
+ }
+
+ /// <summary>
+ /// Create a PropVariant with a contained decimal array.
+ /// </summary>
+ /// <param name="value">Decimal array to wrap.</param>
+ public PropVariant(decimal[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ _valueType = (ushort)(VarEnum.VT_DECIMAL | VarEnum.VT_VECTOR);
+ _int32 = value.Length;
+
+ // allocate required memory for array with 128bit elements
+ _ptr2 = Marshal.AllocCoTaskMem(value.Length * sizeof(decimal));
+ for (int i = 0; i < value.Length; i++)
+ {
+ int[] bits = decimal.GetBits(value[i]);
+ Marshal.Copy(bits, 0, _ptr2, bits.Length);
+ }
+ }
+
+ /// <summary>
+ /// Create a PropVariant containing a float type.
+ /// </summary>
+ public PropVariant(float value)
+ {
+ _valueType = (ushort)VarEnum.VT_R4;
+
+ _float = value;
+ }
+
+ /// <summary>
+ /// Creates a PropVariant containing a float[] array.
+ /// </summary>
+ public PropVariant(float[] value)
+ {
+ if (value == null) { throw new ArgumentNullException("value"); }
+
+ _valueType = (ushort)(VarEnum.VT_R4 | VarEnum.VT_VECTOR);
+ _int32 = value.Length;
+
+ _ptr2 = Marshal.AllocCoTaskMem(value.Length * sizeof(float));
+
+ Marshal.Copy(value, 0, _ptr2, value.Length);
+ }
+
+ /// <summary>
+ /// Set a long
+ /// </summary>
+ public PropVariant(long value)
+ {
+ _long = value;
+ _valueType = (ushort)VarEnum.VT_I8;
+ }
+
+ /// <summary>
+ /// Set a ulong
+ /// </summary>
+ public PropVariant(ulong value)
+ {
+ _valueType = (ushort)VarEnum.VT_UI8;
+ _ulong = value;
+ }
+
+ /// <summary>
+ /// Set a double
+ /// </summary>
+ public PropVariant(double value)
+ {
+ _valueType = (ushort)VarEnum.VT_R8;
+ _double = value;
+ }
+
+ #endregion
+
+ #region Uncalled methods - These are currently not called, but I think may be valid in the future.
+
+ /// <summary>
+ /// Set an IUnknown value
+ /// </summary>
+ /// <param name="value">The new value to set.</param>
+ internal void SetIUnknown(object value)
+ {
+ _valueType = (ushort)VarEnum.VT_UNKNOWN;
+ _ptr = Marshal.GetIUnknownForObject(value);
+ }
+
+
+ /// <summary>
+ /// Set a safe array value
+ /// </summary>
+ /// <param name="array">The new value to set.</param>
+ internal void SetSafeArray(Array array)
+ {
+ if (array == null) { throw new ArgumentNullException("array"); }
+ const ushort vtUnknown = 13;
+ IntPtr psa = PropVariantNativeMethods.SafeArrayCreateVector(vtUnknown, 0, (uint)array.Length);
+
+ IntPtr pvData = PropVariantNativeMethods.SafeArrayAccessData(psa);
+ try // to remember to release lock on data
+ {
+ for (int i = 0; i < array.Length; ++i)
+ {
+ object obj = array.GetValue(i);
+ IntPtr punk = (obj != null) ? Marshal.GetIUnknownForObject(obj) : IntPtr.Zero;
+ Marshal.WriteIntPtr(pvData, i * IntPtr.Size, punk);
+ }
+ }
+ finally
+ {
+ PropVariantNativeMethods.SafeArrayUnaccessData(psa);
+ }
+
+ _valueType = (ushort)VarEnum.VT_ARRAY | (ushort)VarEnum.VT_UNKNOWN;
+ _ptr = psa;
+ }
+
+ #endregion
+
+ #region public Properties
+
+ /// <summary>
+ /// Gets or sets the variant type.
+ /// </summary>
+ public VarEnum VarType
+ {
+ get { return (VarEnum)_valueType; }
+ set { _valueType = (ushort)value; }
+ }
+
+ /// <summary>
+ /// Checks if this has an empty or null value
+ /// </summary>
+ /// <returns></returns>
+ public bool IsNullOrEmpty
+ {
+ get
+ {
+ return (_valueType == (ushort)VarEnum.VT_EMPTY || _valueType == (ushort)VarEnum.VT_NULL);
+ }
+ }
+
+ /// <summary>
+ /// Gets the variant value.
+ /// </summary>
+ public object Value
+ {
+ get
+ {
+ switch ((VarEnum)_valueType)
+ {
+ case VarEnum.VT_I1:
+ return _sbyte;
+ case VarEnum.VT_UI1:
+ return _byte;
+ case VarEnum.VT_I2:
+ return _short;
+ case VarEnum.VT_UI2:
+ return _ushort;
+ case VarEnum.VT_I4:
+ case VarEnum.VT_INT:
+ return _int32;
+ case VarEnum.VT_UI4:
+ case VarEnum.VT_UINT:
+ return _uint32;
+ case VarEnum.VT_I8:
+ return _long;
+ case VarEnum.VT_UI8:
+ return _ulong;
+ case VarEnum.VT_R4:
+ return _float;
+ case VarEnum.VT_R8:
+ return _double;
+ case VarEnum.VT_BOOL:
+ return _int32 == -1;
+ case VarEnum.VT_ERROR:
+ return _long;
+ case VarEnum.VT_CY:
+ return _decimal;
+ case VarEnum.VT_DATE:
+ return DateTime.FromOADate(_double);
+ case VarEnum.VT_FILETIME:
+ return DateTime.FromFileTime(_long);
+ case VarEnum.VT_BSTR:
+ return Marshal.PtrToStringBSTR(_ptr);
+ case VarEnum.VT_BLOB:
+ return GetBlobData();
+ case VarEnum.VT_LPSTR:
+ return Marshal.PtrToStringAnsi(_ptr);
+ case VarEnum.VT_LPWSTR:
+ return Marshal.PtrToStringUni(_ptr);
+ case VarEnum.VT_UNKNOWN:
+ return Marshal.GetObjectForIUnknown(_ptr);
+ case VarEnum.VT_DISPATCH:
+ return Marshal.GetObjectForIUnknown(_ptr);
+ case VarEnum.VT_DECIMAL:
+ return _decimal;
+ case VarEnum.VT_ARRAY | VarEnum.VT_UNKNOWN:
+ return CrackSingleDimSafeArray(_ptr);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_LPWSTR):
+ return GetVector<string>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_I2):
+ return GetVector<Int16>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_UI2):
+ return GetVector<UInt16>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_I4):
+ return GetVector<Int32>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_UI4):
+ return GetVector<UInt32>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_I8):
+ return GetVector<Int64>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_UI8):
+ return GetVector<UInt64>();
+ case (VarEnum.VT_VECTOR|VarEnum.VT_R4):
+ return GetVector<float>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_R8):
+ return GetVector<Double>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_BOOL):
+ return GetVector<Boolean>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_FILETIME):
+ return GetVector<DateTime>();
+ case (VarEnum.VT_VECTOR | VarEnum.VT_DECIMAL):
+ return GetVector<Decimal>();
+ default:
+ // if the value cannot be marshaled
+ return null;
+ }
+ }
+ }
+
+ #endregion
+
+ #region Private Methods
+
+ private static long GetFileTimeAsLong(ref System.Runtime.InteropServices.ComTypes.FILETIME val)
+ {
+ return (((long)val.dwHighDateTime) << 32) + val.dwLowDateTime;
+ }
+
+ private static System.Runtime.InteropServices.ComTypes.FILETIME DateTimeToFileTime(DateTime value)
+ {
+ long hFT = value.ToFileTime();
+ System.Runtime.InteropServices.ComTypes.FILETIME ft =
+ new System.Runtime.InteropServices.ComTypes.FILETIME();
+ ft.dwLowDateTime = (int)(hFT & 0xFFFFFFFF);
+ ft.dwHighDateTime = (int)(hFT >> 32);
+ return ft;
+ }
+
+ private object GetBlobData()
+ {
+ byte[] blobData = new byte[_int32];
+
+ IntPtr pBlobData = _ptr2;
+ Marshal.Copy(pBlobData, blobData, 0, _int32);
+
+ return blobData;
+ }
+
+ private Array GetVector<T>()
+ {
+ int count = PropVariantNativeMethods.PropVariantGetElementCount(this);
+ if (count <= 0) { return null; }
+
+ lock (_padlock)
+ {
+ if (_vectorActions == null)
+ {
+ _vectorActions = GenerateVectorActions();
+ }
+ }
+
+ Action<PropVariant, Array, uint> action;
+ if (!_vectorActions.TryGetValue(typeof(T), out action))
+ {
+ throw new InvalidCastException(LocalizedMessages.PropVariantUnsupportedType);
+ }
+
+ Array array = new T[count];
+ for (uint i = 0; i < count; i++)
+ {
+ action(this, array, i);
+ }
+
+ return array;
+ }
+
+ private static Array CrackSingleDimSafeArray(IntPtr psa)
+ {
+ uint cDims = PropVariantNativeMethods.SafeArrayGetDim(psa);
+ if (cDims != 1)
+ throw new ArgumentException(LocalizedMessages.PropVariantMultiDimArray, "psa");
+
+ int lBound = PropVariantNativeMethods.SafeArrayGetLBound(psa, 1U);
+ int uBound = PropVariantNativeMethods.SafeArrayGetUBound(psa, 1U);
+
+ int n = uBound - lBound + 1; // uBound is inclusive
+
+ object[] array = new object[n];
+ for (int i = lBound; i <= uBound; ++i)
+ {
+ array[i] = PropVariantNativeMethods.SafeArrayGetElement(psa, ref i);
+ }
+
+ return array;
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Disposes the object, calls the clear function.
+ /// </summary>
+ public void Dispose()
+ {
+ PropVariantNativeMethods.PropVariantClear(this);
+
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Finalizer
+ /// </summary>
+ ~PropVariant()
+ {
+ Dispose();
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Provides an simple string representation of the contained data and type.
+ /// </summary>
+ /// <returns></returns>
+ public override string ToString()
+ {
+ return string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ "{0}: {1}", Value, VarType.ToString());
+ }
+
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariantNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariantNativeMethods.cs
new file mode 100644
index 0000000000..a685ffb2a2
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropVariantNativeMethods.cs
@@ -0,0 +1,107 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ internal static class PropVariantNativeMethods
+ {
+ [DllImport("Ole32.dll", PreserveSig = false)] // returns hresult
+ internal extern static void PropVariantClear([In, Out] PropVariant pvar);
+
+ [DllImport("OleAut32.dll", PreserveSig = true)] // psa is actually returned, not hresult
+ internal extern static IntPtr SafeArrayCreateVector(ushort vt, int lowerBound, uint cElems);
+
+ [DllImport("OleAut32.dll", PreserveSig = false)] // returns hresult
+ internal extern static IntPtr SafeArrayAccessData(IntPtr psa);
+
+ [DllImport("OleAut32.dll", PreserveSig = false)] // returns hresult
+ internal extern static void SafeArrayUnaccessData(IntPtr psa);
+
+ [DllImport("OleAut32.dll", PreserveSig = true)] // retuns uint32
+ internal extern static uint SafeArrayGetDim(IntPtr psa);
+
+ [DllImport("OleAut32.dll", PreserveSig = false)] // returns hresult
+ internal extern static int SafeArrayGetLBound(IntPtr psa, uint nDim);
+
+ [DllImport("OleAut32.dll", PreserveSig = false)] // returns hresult
+ internal extern static int SafeArrayGetUBound(IntPtr psa, uint nDim);
+
+ // This decl for SafeArrayGetElement is only valid for cDims==1!
+ [DllImport("OleAut32.dll", PreserveSig = false)] // returns hresult
+ [return: MarshalAs(UnmanagedType.IUnknown)]
+ internal extern static object SafeArrayGetElement(IntPtr psa, ref int rgIndices);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromPropVariantVectorElem([In] PropVariant propvarIn, uint iElem, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromFileTime([In] ref System.Runtime.InteropServices.ComTypes.FILETIME pftIn, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ [return: MarshalAs(UnmanagedType.I4)]
+ internal static extern int PropVariantGetElementCount([In] PropVariant propVar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetBooleanElem([In] PropVariant propVar, [In]uint iElem, [Out, MarshalAs(UnmanagedType.Bool)] out bool pfVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetInt16Elem([In] PropVariant propVar, [In] uint iElem, [Out] out short pnVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetUInt16Elem([In] PropVariant propVar, [In] uint iElem, [Out] out ushort pnVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetInt32Elem([In] PropVariant propVar, [In] uint iElem, [Out] out int pnVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetUInt32Elem([In] PropVariant propVar, [In] uint iElem, [Out] out uint pnVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetInt64Elem([In] PropVariant propVar, [In] uint iElem, [Out] out Int64 pnVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetUInt64Elem([In] PropVariant propVar, [In] uint iElem, [Out] out UInt64 pnVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetDoubleElem([In] PropVariant propVar, [In] uint iElem, [Out] out double pnVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetFileTimeElem([In] PropVariant propVar, [In] uint iElem, [Out, MarshalAs(UnmanagedType.Struct)] out System.Runtime.InteropServices.ComTypes.FILETIME pftVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void PropVariantGetStringElem([In] PropVariant propVar, [In] uint iElem, [MarshalAs(UnmanagedType.LPWStr)] ref string ppszVal);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromBooleanVector([In, MarshalAs(UnmanagedType.LPArray)] bool[] prgf, uint cElems, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromInt16Vector([In, Out] Int16[] prgn, uint cElems, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromUInt16Vector([In, Out] UInt16[] prgn, uint cElems, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromInt32Vector([In, Out] Int32[] prgn, uint cElems, [Out] PropVariant propVar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromUInt32Vector([In, Out] UInt32[] prgn, uint cElems, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromInt64Vector([In, Out] Int64[] prgn, uint cElems, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromUInt64Vector([In, Out] UInt64[] prgn, uint cElems, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromDoubleVector([In, Out] double[] prgn, uint cElems, [Out] PropVariant propvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromFileTimeVector([In, Out] System.Runtime.InteropServices.ComTypes.FILETIME[] prgft, uint cElems, [Out] PropVariant ppropvar);
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true, PreserveSig = false)]
+ internal static extern void InitPropVariantFromStringVector([In, Out] string[] prgsz, uint cElems, [Out] PropVariant ppropvar);
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropertyKey.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropertyKey.cs
new file mode 100644
index 0000000000..474668a21d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/PropertySystem/PropertyKey.cs
@@ -0,0 +1,150 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Defines a unique key for a Shell Property
+ /// </summary>
+ [StructLayout(LayoutKind.Sequential, Pack = 4)]
+ public struct PropertyKey : IEquatable<PropertyKey>
+ {
+ #region Private Fields
+
+ private Guid formatId;
+ private Int32 propertyId;
+
+ #endregion
+
+ #region Public Properties
+ /// <summary>
+ /// A unique GUID for the property
+ /// </summary>
+ public Guid FormatId
+ {
+ get
+ {
+ return formatId;
+ }
+ }
+
+ /// <summary>
+ /// Property identifier (PID)
+ /// </summary>
+ public Int32 PropertyId
+ {
+ get
+ {
+ return propertyId;
+ }
+ }
+
+ #endregion
+
+ #region Public Construction
+
+ /// <summary>
+ /// PropertyKey Constructor
+ /// </summary>
+ /// <param name="formatId">A unique GUID for the property</param>
+ /// <param name="propertyId">Property identifier (PID)</param>
+ public PropertyKey(Guid formatId, Int32 propertyId)
+ {
+ this.formatId = formatId;
+ this.propertyId = propertyId;
+ }
+
+ /// <summary>
+ /// PropertyKey Constructor
+ /// </summary>
+ /// <param name="formatId">A string represenstion of a GUID for the property</param>
+ /// <param name="propertyId">Property identifier (PID)</param>
+ public PropertyKey(string formatId, Int32 propertyId)
+ {
+ this.formatId = new Guid(formatId);
+ this.propertyId = propertyId;
+ }
+
+ #endregion
+
+ #region IEquatable<PropertyKey> Members
+
+ /// <summary>
+ /// Returns whether this object is equal to another. This is vital for performance of value types.
+ /// </summary>
+ /// <param name="other">The object to compare against.</param>
+ /// <returns>Equality result.</returns>
+ public bool Equals(PropertyKey other)
+ {
+ return other.Equals((object)this);
+ }
+
+ #endregion
+
+ #region equality and hashing
+
+ /// <summary>
+ /// Returns the hash code of the object. This is vital for performance of value types.
+ /// </summary>
+ /// <returns></returns>
+ public override int GetHashCode()
+ {
+ return formatId.GetHashCode() ^ propertyId;
+ }
+
+ /// <summary>
+ /// Returns whether this object is equal to another. This is vital for performance of value types.
+ /// </summary>
+ /// <param name="obj">The object to compare against.</param>
+ /// <returns>Equality result.</returns>
+ public override bool Equals(object obj)
+ {
+ if (obj == null)
+ return false;
+
+ if (!(obj is PropertyKey))
+ return false;
+
+ PropertyKey other = (PropertyKey)obj;
+ return other.formatId.Equals(formatId) && (other.propertyId == propertyId);
+ }
+
+ /// <summary>
+ /// Implements the == (equality) operator.
+ /// </summary>
+ /// <param name="propKey1">First property key to compare.</param>
+ /// <param name="propKey2">Second property key to compare.</param>
+ /// <returns>true if object a equals object b. false otherwise.</returns>
+ public static bool operator ==(PropertyKey propKey1, PropertyKey propKey2)
+ {
+ return propKey1.Equals(propKey2);
+ }
+
+ /// <summary>
+ /// Implements the != (inequality) operator.
+ /// </summary>
+ /// <param name="propKey1">First property key to compare</param>
+ /// <param name="propKey2">Second property key to compare.</param>
+ /// <returns>true if object a does not equal object b. false otherwise.</returns>
+ public static bool operator !=(PropertyKey propKey1, PropertyKey propKey2)
+ {
+ return !propKey1.Equals(propKey2);
+ }
+
+ /// <summary>
+ /// Override ToString() to provide a user friendly string representation
+ /// </summary>
+ /// <returns>String representing the property key</returns>
+ public override string ToString()
+ {
+ return string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.PropertyKeyFormatString,
+ formatId.ToString("B"), propertyId);
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.Designer.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.Designer.cs
new file mode 100644
index 0000000000..4a8de6309e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.Designer.cs
@@ -0,0 +1,675 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.1
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Microsoft.WindowsAPICodePack.Resources {
+ using System;
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class LocalizedMessages {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal LocalizedMessages() {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.WindowsAPICodePack.Resources.LocalizedMessages", typeof(LocalizedMessages).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Failed to register application for restart due to bad parameters..
+ /// </summary>
+ internal static string ApplicationRecoverFailedToRegisterForRestartBadParameters {
+ get {
+ return ResourceManager.GetString("ApplicationRecoverFailedToRegisterForRestartBadParameters", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Application was not registered for recovery due to bad parameters..
+ /// </summary>
+ internal static string ApplicationRecoveryBadParameters {
+ get {
+ return ResourceManager.GetString("ApplicationRecoveryBadParameters", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Application failed to register for recovery..
+ /// </summary>
+ internal static string ApplicationRecoveryFailedToRegister {
+ get {
+ return ResourceManager.GetString("ApplicationRecoveryFailedToRegister", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Application failed to registered for restart..
+ /// </summary>
+ internal static string ApplicationRecoveryFailedToRegisterForRestart {
+ get {
+ return ResourceManager.GetString("ApplicationRecoveryFailedToRegisterForRestart", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unregister for recovery failed..
+ /// </summary>
+ internal static string ApplicationRecoveryFailedToUnregister {
+ get {
+ return ResourceManager.GetString("ApplicationRecoveryFailedToUnregister", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unregister for restart failed..
+ /// </summary>
+ internal static string ApplicationRecoveryFailedToUnregisterForRestart {
+ get {
+ return ResourceManager.GetString("ApplicationRecoveryFailedToUnregisterForRestart", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to This method must be called from the registered callback method..
+ /// </summary>
+ internal static string ApplicationRecoveryMustBeCalledFromCallback {
+ get {
+ return ResourceManager.GetString("ApplicationRecoveryMustBeCalledFromCallback", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to ACOnline: {1}{0}Max Charge: {2} mWh{0}Current Charge: {3} mWh{0}Discharge Rate: {4} mWh{0}Estimated Time Remaining: {5}{0}Suggested Critical Battery Charge: {6} mWh{0}Suggested Battery Warning Charge: {7} mWh{0}.
+ /// </summary>
+ internal static string BatteryStateStringRepresentation {
+ get {
+ return ResourceManager.GetString("BatteryStateStringRepresentation", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Cancelable cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string CancelableCannotBeChanged {
+ get {
+ return ResourceManager.GetString("CancelableCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog caption cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string CaptionCannotBeChanged {
+ get {
+ return ResourceManager.GetString("CaptionCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to CheckBox text cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string CheckBoxCannotBeChanged {
+ get {
+ return ResourceManager.GetString("CheckBoxCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Collapsed control text cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string CollapsedTextCannotBeChanged {
+ get {
+ return ResourceManager.GetString("CollapsedTextCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Only supported on Windows 7 or newer..
+ /// </summary>
+ internal static string CoreHelpersRunningOn7 {
+ get {
+ return ResourceManager.GetString("CoreHelpersRunningOn7", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Only supported on Windows Vista or newer..
+ /// </summary>
+ internal static string CoreHelpersRunningOnVista {
+ get {
+ return ResourceManager.GetString("CoreHelpersRunningOnVista", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Only supported on Windows XP or newer..
+ /// </summary>
+ internal static string CoreHelpersRunningOnXp {
+ get {
+ return ResourceManager.GetString("CoreHelpersRunningOnXp", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog cannot have more than one control with the same name..
+ /// </summary>
+ internal static string DialogCollectionCannotHaveDuplicateNames {
+ get {
+ return ResourceManager.GetString("DialogCollectionCannotHaveDuplicateNames", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog control must be removed from current collections first..
+ /// </summary>
+ internal static string DialogCollectionControlAlreadyHosted {
+ get {
+ return ResourceManager.GetString("DialogCollectionControlAlreadyHosted", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Control name cannot be null or zero length..
+ /// </summary>
+ internal static string DialogCollectionControlNameNull {
+ get {
+ return ResourceManager.GetString("DialogCollectionControlNameNull", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Modifying controls collection while dialog is showing is not supported..
+ /// </summary>
+ internal static string DialogCollectionModifyShowingDialog {
+ get {
+ return ResourceManager.GetString("DialogCollectionModifyShowingDialog", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog control name cannot be empty or null..
+ /// </summary>
+ internal static string DialogControlNameCannotBeEmpty {
+ get {
+ return ResourceManager.GetString("DialogControlNameCannotBeEmpty", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog controls cannot be renamed..
+ /// </summary>
+ internal static string DialogControlsCannotBeRenamed {
+ get {
+ return ResourceManager.GetString("DialogControlsCannotBeRenamed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Application.
+ /// </summary>
+ internal static string DialogDefaultCaption {
+ get {
+ return ResourceManager.GetString("DialogDefaultCaption", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to .
+ /// </summary>
+ internal static string DialogDefaultContent {
+ get {
+ return ResourceManager.GetString("DialogDefaultContent", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to .
+ /// </summary>
+ internal static string DialogDefaultMainInstruction {
+ get {
+ return ResourceManager.GetString("DialogDefaultMainInstruction", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Expanded information mode cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string ExpandedDetailsCannotBeChanged {
+ get {
+ return ResourceManager.GetString("ExpandedDetailsCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Expanded control label cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string ExpandedLabelCannotBeChanged {
+ get {
+ return ResourceManager.GetString("ExpandedLabelCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Expanding state of the dialog cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string ExpandingStateCannotBeChanged {
+ get {
+ return ResourceManager.GetString("ExpandingStateCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Hyperlinks cannot be enabled/disabled while dialog is showing..
+ /// </summary>
+ internal static string HyperlinksCannotBetSet {
+ get {
+ return ResourceManager.GetString("HyperlinksCannotBetSet", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Reference path is invalid..
+ /// </summary>
+ internal static string InvalidReferencePath {
+ get {
+ return ResourceManager.GetString("InvalidReferencePath", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The specified event handler has not been registered..
+ /// </summary>
+ internal static string MessageManagerHandlerNotRegistered {
+ get {
+ return ResourceManager.GetString("MessageManagerHandlerNotRegistered", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to An error has occurred in dialog configuration..
+ /// </summary>
+ internal static string NativeTaskDialogConfigurationError {
+ get {
+ return ResourceManager.GetString("NativeTaskDialogConfigurationError", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Invalid arguments to Win32 call..
+ /// </summary>
+ internal static string NativeTaskDialogInternalErrorArgs {
+ get {
+ return ResourceManager.GetString("NativeTaskDialogInternalErrorArgs", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog contents too complex..
+ /// </summary>
+ internal static string NativeTaskDialogInternalErrorComplex {
+ get {
+ return ResourceManager.GetString("NativeTaskDialogInternalErrorComplex", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to An unexpected internal error occurred in the Win32 call: {0:x}.
+ /// </summary>
+ internal static string NativeTaskDialogInternalErrorUnexpected {
+ get {
+ return ResourceManager.GetString("NativeTaskDialogInternalErrorUnexpected", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to TaskDialog feature needs to load version 6 of comctl32.dll but a different version is current loaded in memory..
+ /// </summary>
+ internal static string NativeTaskDialogVersionError {
+ get {
+ return ResourceManager.GetString("NativeTaskDialogVersionError", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog owner cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string OwnerCannotBeChanged {
+ get {
+ return ResourceManager.GetString("OwnerCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to SetThreadExecutionState call failed..
+ /// </summary>
+ internal static string PowerExecutionStateFailed {
+ get {
+ return ResourceManager.GetString("PowerExecutionStateFailed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The caller had insufficient access rights to get the system battery state..
+ /// </summary>
+ internal static string PowerInsufficientAccessBatteryState {
+ get {
+ return ResourceManager.GetString("PowerInsufficientAccessBatteryState", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The caller had insufficient access rights to get the system power capabilities..
+ /// </summary>
+ internal static string PowerInsufficientAccessCapabilities {
+ get {
+ return ResourceManager.GetString("PowerInsufficientAccessCapabilities", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Failed to get active power scheme..
+ /// </summary>
+ internal static string PowerManagerActiveSchemeFailed {
+ get {
+ return ResourceManager.GetString("PowerManagerActiveSchemeFailed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Battery is not present on this system..
+ /// </summary>
+ internal static string PowerManagerBatteryNotPresent {
+ get {
+ return ResourceManager.GetString("PowerManagerBatteryNotPresent", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Progress bar cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string ProgressBarCannotBeChanged {
+ get {
+ return ResourceManager.GetString("ProgressBarCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Progress bar cannot be hosted in multiple dialogs..
+ /// </summary>
+ internal static string ProgressBarCannotBeHostedInMultipleDialogs {
+ get {
+ return ResourceManager.GetString("ProgressBarCannotBeHostedInMultipleDialogs", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to {0}, {1}.
+ /// </summary>
+ internal static string PropertyKeyFormatString {
+ get {
+ return ResourceManager.GetString("PropertyKeyFormatString", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to initialize PropVariant..
+ /// </summary>
+ internal static string PropVariantInitializationError {
+ get {
+ return ResourceManager.GetString("PropVariantInitializationError", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Multi-dimensional SafeArrays not supported..
+ /// </summary>
+ internal static string PropVariantMultiDimArray {
+ get {
+ return ResourceManager.GetString("PropVariantMultiDimArray", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to String argument cannot be null or empty..
+ /// </summary>
+ internal static string PropVariantNullString {
+ get {
+ return ResourceManager.GetString("PropVariantNullString", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to This Value type is not supported..
+ /// </summary>
+ internal static string PropVariantTypeNotSupported {
+ get {
+ return ResourceManager.GetString("PropVariantTypeNotSupported", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Cannot be cast to unsupported type..
+ /// </summary>
+ internal static string PropVariantUnsupportedType {
+ get {
+ return ResourceManager.GetString("PropVariantUnsupportedType", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to delegate: {0}, state: {1}, ping: {2}.
+ /// </summary>
+ internal static string RecoverySettingsFormatString {
+ get {
+ return ResourceManager.GetString("RecoverySettingsFormatString", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to command: {0} restrictions: {1}.
+ /// </summary>
+ internal static string RestartSettingsFormatString {
+ get {
+ return ResourceManager.GetString("RestartSettingsFormatString", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to StandardButtons cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string StandardButtonsCannotBeChanged {
+ get {
+ return ResourceManager.GetString("StandardButtonsCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Startup location cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string StartupLocationCannotBeChanged {
+ get {
+ return ResourceManager.GetString("StartupLocationCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Bad button ID in closing event..
+ /// </summary>
+ internal static string TaskDialogBadButtonId {
+ get {
+ return ResourceManager.GetString("TaskDialogBadButtonId", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Button text must be non-empty..
+ /// </summary>
+ internal static string TaskDialogButtonTextEmpty {
+ get {
+ return ResourceManager.GetString("TaskDialogButtonTextEmpty", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Check box text must be provided to enable the dialog check box..
+ /// </summary>
+ internal static string TaskDialogCheckBoxTextRequiredToEnableCheckBox {
+ get {
+ return ResourceManager.GetString("TaskDialogCheckBoxTextRequiredToEnableCheckBox", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Attempting to close a non-showing dialog..
+ /// </summary>
+ internal static string TaskDialogCloseNonShowing {
+ get {
+ return ResourceManager.GetString("TaskDialogCloseNonShowing", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Application.
+ /// </summary>
+ internal static string TaskDialogDefaultCaption {
+ get {
+ return ResourceManager.GetString("TaskDialogDefaultCaption", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to .
+ /// </summary>
+ internal static string TaskDialogDefaultContent {
+ get {
+ return ResourceManager.GetString("TaskDialogDefaultContent", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to .
+ /// </summary>
+ internal static string TaskDialogDefaultMainInstruction {
+ get {
+ return ResourceManager.GetString("TaskDialogDefaultMainInstruction", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Cannot have more than one default button of a given type..
+ /// </summary>
+ internal static string TaskDialogOnlyOneDefaultControl {
+ get {
+ return ResourceManager.GetString("TaskDialogOnlyOneDefaultControl", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Maximum value provided must be greater than the minimum value..
+ /// </summary>
+ internal static string TaskDialogProgressBarMaxValueGreaterThanMin {
+ get {
+ return ResourceManager.GetString("TaskDialogProgressBarMaxValueGreaterThanMin", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Minimum value provided must be a positive number..
+ /// </summary>
+ internal static string TaskDialogProgressBarMinValueGreaterThanZero {
+ get {
+ return ResourceManager.GetString("TaskDialogProgressBarMinValueGreaterThanZero", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Minimum value provided must less than the maximum value..
+ /// </summary>
+ internal static string TaskDialogProgressBarMinValueLessThanMax {
+ get {
+ return ResourceManager.GetString("TaskDialogProgressBarMinValueLessThanMax", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Value provided must be greater than equal to the minimum value and less than the maximum value..
+ /// </summary>
+ internal static string TaskDialogProgressBarValueInRange {
+ get {
+ return ResourceManager.GetString("TaskDialogProgressBarValueInRange", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog cannot display both non-standard buttons and standard buttons..
+ /// </summary>
+ internal static string TaskDialogSupportedButtonsAndButtons {
+ get {
+ return ResourceManager.GetString("TaskDialogSupportedButtonsAndButtons", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog cannot display both non-standard buttons and command links..
+ /// </summary>
+ internal static string TaskDialogSupportedButtonsAndLinks {
+ get {
+ return ResourceManager.GetString("TaskDialogSupportedButtonsAndLinks", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unknown dialog control type..
+ /// </summary>
+ internal static string TaskDialogUnkownControl {
+ get {
+ return ResourceManager.GetString("TaskDialogUnkownControl", resourceCulture);
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.resx b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.resx
new file mode 100644
index 0000000000..40600e161a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/Resources/LocalizedMessages.resx
@@ -0,0 +1,324 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="ApplicationRecoverFailedToRegisterForRestartBadParameters" xml:space="preserve">
+ <value>Failed to register application for restart due to bad parameters.</value>
+ </data>
+ <data name="ApplicationRecoveryBadParameters" xml:space="preserve">
+ <value>Application was not registered for recovery due to bad parameters.</value>
+ </data>
+ <data name="ApplicationRecoveryFailedToRegister" xml:space="preserve">
+ <value>Application failed to register for recovery.</value>
+ </data>
+ <data name="ApplicationRecoveryFailedToRegisterForRestart" xml:space="preserve">
+ <value>Application failed to registered for restart.</value>
+ </data>
+ <data name="ApplicationRecoveryFailedToUnregister" xml:space="preserve">
+ <value>Unregister for recovery failed.</value>
+ </data>
+ <data name="ApplicationRecoveryFailedToUnregisterForRestart" xml:space="preserve">
+ <value>Unregister for restart failed.</value>
+ </data>
+ <data name="ApplicationRecoveryMustBeCalledFromCallback" xml:space="preserve">
+ <value>This method must be called from the registered callback method.</value>
+ </data>
+ <data name="BatteryStateStringRepresentation" xml:space="preserve">
+ <value>ACOnline: {1}{0}Max Charge: {2} mWh{0}Current Charge: {3} mWh{0}Discharge Rate: {4} mWh{0}Estimated Time Remaining: {5}{0}Suggested Critical Battery Charge: {6} mWh{0}Suggested Battery Warning Charge: {7} mWh{0}</value>
+ </data>
+ <data name="CancelableCannotBeChanged" xml:space="preserve">
+ <value>Cancelable cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="CaptionCannotBeChanged" xml:space="preserve">
+ <value>Dialog caption cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="CheckBoxCannotBeChanged" xml:space="preserve">
+ <value>CheckBox text cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="CollapsedTextCannotBeChanged" xml:space="preserve">
+ <value>Collapsed control text cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="CoreHelpersRunningOn7" xml:space="preserve">
+ <value>Only supported on Windows 7 or newer.</value>
+ </data>
+ <data name="CoreHelpersRunningOnVista" xml:space="preserve">
+ <value>Only supported on Windows Vista or newer.</value>
+ </data>
+ <data name="CoreHelpersRunningOnXp" xml:space="preserve">
+ <value>Only supported on Windows XP or newer.</value>
+ </data>
+ <data name="DialogCollectionCannotHaveDuplicateNames" xml:space="preserve">
+ <value>Dialog cannot have more than one control with the same name.</value>
+ </data>
+ <data name="DialogCollectionControlAlreadyHosted" xml:space="preserve">
+ <value>Dialog control must be removed from current collections first.</value>
+ </data>
+ <data name="DialogCollectionControlNameNull" xml:space="preserve">
+ <value>Control name cannot be null or zero length.</value>
+ </data>
+ <data name="DialogCollectionModifyShowingDialog" xml:space="preserve">
+ <value>Modifying controls collection while dialog is showing is not supported.</value>
+ </data>
+ <data name="DialogControlNameCannotBeEmpty" xml:space="preserve">
+ <value>Dialog control name cannot be empty or null.</value>
+ </data>
+ <data name="DialogControlsCannotBeRenamed" xml:space="preserve">
+ <value>Dialog controls cannot be renamed.</value>
+ </data>
+ <data name="DialogDefaultCaption" xml:space="preserve">
+ <value>Application</value>
+ </data>
+ <data name="DialogDefaultContent" xml:space="preserve">
+ <value />
+ </data>
+ <data name="DialogDefaultMainInstruction" xml:space="preserve">
+ <value />
+ </data>
+ <data name="ExpandedDetailsCannotBeChanged" xml:space="preserve">
+ <value>Expanded information mode cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="ExpandedLabelCannotBeChanged" xml:space="preserve">
+ <value>Expanded control label cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="ExpandingStateCannotBeChanged" xml:space="preserve">
+ <value>Expanding state of the dialog cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="HyperlinksCannotBetSet" xml:space="preserve">
+ <value>Hyperlinks cannot be enabled/disabled while dialog is showing.</value>
+ </data>
+ <data name="InvalidReferencePath" xml:space="preserve">
+ <value>Reference path is invalid.</value>
+ </data>
+ <data name="MessageManagerHandlerNotRegistered" xml:space="preserve">
+ <value>The specified event handler has not been registered.</value>
+ </data>
+ <data name="NativeTaskDialogConfigurationError" xml:space="preserve">
+ <value>An error has occurred in dialog configuration.</value>
+ </data>
+ <data name="NativeTaskDialogInternalErrorArgs" xml:space="preserve">
+ <value>Invalid arguments to Win32 call.</value>
+ </data>
+ <data name="NativeTaskDialogInternalErrorComplex" xml:space="preserve">
+ <value>Dialog contents too complex.</value>
+ </data>
+ <data name="NativeTaskDialogInternalErrorUnexpected" xml:space="preserve">
+ <value>An unexpected internal error occurred in the Win32 call: {0:x}</value>
+ </data>
+ <data name="NativeTaskDialogVersionError" xml:space="preserve">
+ <value>TaskDialog feature needs to load version 6 of comctl32.dll but a different version is current loaded in memory.</value>
+ </data>
+ <data name="OwnerCannotBeChanged" xml:space="preserve">
+ <value>Dialog owner cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="PowerExecutionStateFailed" xml:space="preserve">
+ <value>SetThreadExecutionState call failed.</value>
+ </data>
+ <data name="PowerInsufficientAccessBatteryState" xml:space="preserve">
+ <value>The caller had insufficient access rights to get the system battery state.</value>
+ </data>
+ <data name="PowerInsufficientAccessCapabilities" xml:space="preserve">
+ <value>The caller had insufficient access rights to get the system power capabilities.</value>
+ </data>
+ <data name="PowerManagerBatteryNotPresent" xml:space="preserve">
+ <value>Battery is not present on this system.</value>
+ </data>
+ <data name="ProgressBarCannotBeChanged" xml:space="preserve">
+ <value>Progress bar cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="ProgressBarCannotBeHostedInMultipleDialogs" xml:space="preserve">
+ <value>Progress bar cannot be hosted in multiple dialogs.</value>
+ </data>
+ <data name="PropertyKeyFormatString" xml:space="preserve">
+ <value>{0}, {1}</value>
+ </data>
+ <data name="PropVariantMultiDimArray" xml:space="preserve">
+ <value>Multi-dimensional SafeArrays not supported.</value>
+ </data>
+ <data name="PropVariantNullString" xml:space="preserve">
+ <value>String argument cannot be null or empty.</value>
+ </data>
+ <data name="PropVariantTypeNotSupported" xml:space="preserve">
+ <value>This Value type is not supported.</value>
+ </data>
+ <data name="RecoverySettingsFormatString" xml:space="preserve">
+ <value>delegate: {0}, state: {1}, ping: {2}</value>
+ </data>
+ <data name="RestartSettingsFormatString" xml:space="preserve">
+ <value>command: {0} restrictions: {1}</value>
+ </data>
+ <data name="StandardButtonsCannotBeChanged" xml:space="preserve">
+ <value>StandardButtons cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="StartupLocationCannotBeChanged" xml:space="preserve">
+ <value>Startup location cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="TaskDialogBadButtonId" xml:space="preserve">
+ <value>Bad button ID in closing event.</value>
+ </data>
+ <data name="TaskDialogButtonTextEmpty" xml:space="preserve">
+ <value>Button text must be non-empty.</value>
+ </data>
+ <data name="TaskDialogCheckBoxTextRequiredToEnableCheckBox" xml:space="preserve">
+ <value>Check box text must be provided to enable the dialog check box.</value>
+ </data>
+ <data name="TaskDialogCloseNonShowing" xml:space="preserve">
+ <value>Attempting to close a non-showing dialog.</value>
+ </data>
+ <data name="TaskDialogDefaultCaption" xml:space="preserve">
+ <value>Application</value>
+ </data>
+ <data name="TaskDialogDefaultContent" xml:space="preserve">
+ <value />
+ </data>
+ <data name="TaskDialogDefaultMainInstruction" xml:space="preserve">
+ <value />
+ </data>
+ <data name="TaskDialogOnlyOneDefaultControl" xml:space="preserve">
+ <value>Cannot have more than one default button of a given type.</value>
+ </data>
+ <data name="TaskDialogProgressBarMaxValueGreaterThanMin" xml:space="preserve">
+ <value>Maximum value provided must be greater than the minimum value.</value>
+ </data>
+ <data name="TaskDialogProgressBarMinValueGreaterThanZero" xml:space="preserve">
+ <value>Minimum value provided must be a positive number.</value>
+ </data>
+ <data name="TaskDialogProgressBarMinValueLessThanMax" xml:space="preserve">
+ <value>Minimum value provided must less than the maximum value.</value>
+ </data>
+ <data name="TaskDialogProgressBarValueInRange" xml:space="preserve">
+ <value>Value provided must be greater than equal to the minimum value and less than the maximum value.</value>
+ </data>
+ <data name="TaskDialogSupportedButtonsAndButtons" xml:space="preserve">
+ <value>Dialog cannot display both non-standard buttons and standard buttons.</value>
+ </data>
+ <data name="TaskDialogSupportedButtonsAndLinks" xml:space="preserve">
+ <value>Dialog cannot display both non-standard buttons and command links.</value>
+ </data>
+ <data name="TaskDialogUnkownControl" xml:space="preserve">
+ <value>Unknown dialog control type.</value>
+ </data>
+ <data name="PropVariantInitializationError" xml:space="preserve">
+ <value>Unable to initialize PropVariant.</value>
+ </data>
+ <data name="PowerManagerActiveSchemeFailed" xml:space="preserve">
+ <value>Failed to get active power scheme.</value>
+ </data>
+ <data name="PropVariantUnsupportedType" xml:space="preserve">
+ <value>Cannot be cast to unsupported type.</value>
+ </data>
+</root> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeIconHandle.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeIconHandle.cs
new file mode 100644
index 0000000000..33c9122066
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeIconHandle.cs
@@ -0,0 +1,26 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// Safe Icon Handle
+ /// </summary>
+ public class SafeIconHandle : ZeroInvalidHandle
+ {
+ /// <summary>
+ /// Release the handle
+ /// </summary>
+ /// <returns>true if handled is release successfully, false otherwise</returns>
+ protected override bool ReleaseHandle()
+ {
+ if (CoreNativeMethods.DestroyIcon(handle))
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeRegionHandle.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeRegionHandle.cs
new file mode 100644
index 0000000000..1c341c0010
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeRegionHandle.cs
@@ -0,0 +1,27 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Security.Permissions;
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// Safe Region Handle
+ /// </summary>
+ public class SafeRegionHandle : ZeroInvalidHandle
+ {
+ /// <summary>
+ /// Release the handle
+ /// </summary>
+ /// <returns>true if handled is release successfully, false otherwise</returns>
+ protected override bool ReleaseHandle()
+ {
+ if (CoreNativeMethods.DeleteObject(handle))
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeWindowHandle.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeWindowHandle.cs
new file mode 100644
index 0000000000..9f65eb52e6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/SafeWindowHandle.cs
@@ -0,0 +1,32 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Security.Permissions;
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// Safe Window Handle
+ /// </summary>
+ public class SafeWindowHandle : ZeroInvalidHandle
+ {
+ /// <summary>
+ /// Release the handle
+ /// </summary>
+ /// <returns>true if handled is release successfully, false otherwise</returns>
+ protected override bool ReleaseHandle()
+ {
+ if (IsInvalid)
+ {
+ return true;
+ }
+
+ if (CoreNativeMethods.DestroyWindow(handle) != 0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/ZeroInvalidHandle.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/ZeroInvalidHandle.cs
new file mode 100644
index 0000000000..7619741c20
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Core/SafeHandles/ZeroInvalidHandle.cs
@@ -0,0 +1,32 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Security.Permissions;
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// Base class for Safe handles with Null IntPtr as invalid
+ /// </summary>
+ public abstract class ZeroInvalidHandle : SafeHandle
+ {
+ /// <summary>
+ /// Default constructor
+ /// </summary>
+ protected ZeroInvalidHandle()
+ : base(IntPtr.Zero, true)
+ {
+ }
+
+ /// <summary>
+ /// Determines if this is a valid handle
+ /// </summary>
+ public override bool IsInvalid
+ {
+ get { return handle == IntPtr.Zero; }
+ }
+
+ }
+}
+
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Makefile.am b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Makefile.am
new file mode 100644
index 0000000000..841093782b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Makefile.am
@@ -0,0 +1,4 @@
+
+SUBDIRS = \
+ Core \
+ Shell
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/DefaultShellImageSizes.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/DefaultShellImageSizes.cs
new file mode 100644
index 0000000000..8c94f477a1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/DefaultShellImageSizes.cs
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Defines the read-only properties for default shell icon sizes.
+ /// </summary>
+ public static class DefaultIconSize
+ {
+ /// <summary>
+ /// The small size property for a 16x16 pixel Shell Icon.
+ /// </summary>
+ public static readonly System.Windows.Size Small = new System.Windows.Size(16, 16);
+
+ /// <summary>
+ /// The medium size property for a 32x32 pixel Shell Icon.
+ /// </summary>
+ public static readonly System.Windows.Size Medium = new System.Windows.Size(32, 32);
+
+ /// <summary>
+ /// The large size property for a 48x48 pixel Shell Icon.
+ /// </summary>
+ public static readonly System.Windows.Size Large = new System.Windows.Size(48, 48);
+
+ /// <summary>
+ /// The extra-large size property for a 256x256 pixel Shell Icon.
+ /// </summary>
+ public static readonly System.Windows.Size ExtraLarge = new System.Windows.Size(256, 256);
+
+ /// <summary>
+ /// The maximum size for a Shell Icon, 256x256 pixels.
+ /// </summary>
+ public static readonly System.Windows.Size Maximum = new System.Windows.Size(256, 256);
+
+ }
+
+ /// <summary>
+ /// Defines the read-only properties for default shell thumbnail sizes.
+ /// </summary>
+ public static class DefaultThumbnailSize
+ {
+ /// <summary>
+ /// Gets the small size property for a 32x32 pixel Shell Thumbnail.
+ /// </summary>
+ public static readonly System.Windows.Size Small = new System.Windows.Size(32, 32);
+
+ /// <summary>
+ /// Gets the medium size property for a 96x96 pixel Shell Thumbnail.
+ /// </summary>
+ public static readonly System.Windows.Size Medium = new System.Windows.Size(96, 96);
+
+ /// <summary>
+ /// Gets the large size property for a 256x256 pixel Shell Thumbnail.
+ /// </summary>
+ public static readonly System.Windows.Size Large = new System.Windows.Size(256, 256);
+
+ /// <summary>
+ /// Gets the extra-large size property for a 1024x1024 pixel Shell Thumbnail.
+ /// </summary>
+ public static readonly System.Windows.Size ExtraLarge = new System.Windows.Size(1024, 1024);
+
+ /// <summary>
+ /// Maximum size for the Shell Thumbnail, 1024x1024 pixels.
+ /// </summary>
+ public static readonly System.Windows.Size Maximum = new System.Windows.Size(1024, 1024);
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EnumUnknown.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EnumUnknown.cs
new file mode 100644
index 0000000000..53683493d6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EnumUnknown.cs
@@ -0,0 +1,63 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal class EnumUnknownClass : IEnumUnknown
+ {
+ List<ICondition> conditionList = new List<ICondition>();
+ int current = -1;
+
+ internal EnumUnknownClass(ICondition[] conditions)
+ {
+ conditionList.AddRange(conditions);
+ }
+
+ #region IEnumUnknown Members
+
+ public HResult Next(uint requestedNumber, ref IntPtr buffer, ref uint fetchedNumber)
+ {
+ current++;
+
+ if (current < conditionList.Count)
+ {
+ buffer = Marshal.GetIUnknownForObject(conditionList[current]);
+ fetchedNumber = 1;
+ return HResult.Ok;
+ }
+
+ return HResult.False;
+ }
+
+ public HResult Skip(uint number)
+ {
+ int temp = current + (int)number;
+
+ if (temp > (conditionList.Count - 1))
+ {
+ return HResult.False;
+ }
+
+ current = temp;
+ return HResult.Ok;
+ }
+
+ public HResult Reset()
+ {
+ current = -1;
+ return HResult.Ok;
+ }
+
+ public HResult Clone(out IEnumUnknown result)
+ {
+ result = new EnumUnknownClass(this.conditionList.ToArray());
+ return HResult.Ok;
+ }
+
+ #endregion
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EventHandlerExtensionMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EventHandlerExtensionMethods.cs
new file mode 100644
index 0000000000..bc324f1db0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/EventHandlerExtensionMethods.cs
@@ -0,0 +1,53 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Diagnostics;
+using System.Threading;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Provides extension methods for raising events safely.
+ /// </summary>
+ public static class EventHandlerExtensionMethods
+ {
+ /// <summary>
+ /// Safely raises an event using EventArgs.Empty
+ /// </summary>
+ /// <param name="eventHandler">EventHandler to raise</param>
+ /// <param name="sender">Event sender</param>
+ public static void SafeRaise(this EventHandler eventHandler, object sender)
+ {
+ if (eventHandler != null)
+ {
+ eventHandler(sender, EventArgs.Empty);
+ }
+ }
+
+ /// <summary>
+ /// Safely raises an event.
+ /// </summary>
+ /// <typeparam name="T">Type of event args</typeparam>
+ /// <param name="eventHandler">EventHandler&lt;T&gt; to raise</param>
+ /// <param name="sender">Event sender</param>
+ /// <param name="args">Event args</param>
+ public static void SafeRaise<T>(this EventHandler<T> eventHandler, object sender, T args) where T : EventArgs
+ {
+ if (eventHandler != null)
+ {
+ eventHandler(sender, args);
+ }
+ }
+
+ /// <summary>
+ /// Safely raises an event using EventArgs.Empty
+ /// </summary>
+ /// <param name="eventHandler">EventHandler&lt;EventArgs&gt; to raise</param>
+ /// <param name="sender">Event sender</param>
+ public static void SafeRaise(this EventHandler<EventArgs> eventHandler, object sender)
+ {
+ SafeRaise(eventHandler, sender, EventArgs.Empty);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/IconReference.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/IconReference.cs
new file mode 100644
index 0000000000..9ddcf9b9f6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/IconReference.cs
@@ -0,0 +1,168 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A refence to an icon resource
+ /// </summary>
+ public struct IconReference
+ {
+ #region Private members
+
+ private string moduleName;
+ private string referencePath;
+ static private char[] commaSeparator = new char[] { ',' };
+
+ #endregion
+
+ /// <summary>
+ /// Overloaded constructor takes in the module name and resource id for the icon reference.
+ /// </summary>
+ /// <param name="moduleName">String specifying the name of an executable file, DLL, or icon file</param>
+ /// <param name="resourceId">Zero-based index of the icon</param>
+ public IconReference(string moduleName, int resourceId)
+ : this()
+ {
+ if (string.IsNullOrEmpty(moduleName))
+ {
+ throw new ArgumentNullException("moduleName");
+ }
+
+ this.moduleName = moduleName;
+ ResourceId = resourceId;
+ referencePath = string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ "{0},{1}", moduleName, resourceId);
+ }
+
+ /// <summary>
+ /// Overloaded constructor takes in the module name and resource id separated by a comma.
+ /// </summary>
+ /// <param name="refPath">Reference path for the icon consiting of the module name and resource id.</param>
+ public IconReference(string refPath)
+ : this()
+ {
+ if (string.IsNullOrEmpty(refPath))
+ {
+ throw new ArgumentNullException("refPath");
+ }
+
+ string[] refParams = refPath.Split(commaSeparator);
+
+ if (refParams.Length != 2 || string.IsNullOrEmpty(refParams[0]) || string.IsNullOrEmpty(refParams[1]))
+ {
+ throw new ArgumentException(LocalizedMessages.InvalidReferencePath, "refPath");
+ }
+
+ moduleName = refParams[0];
+ ResourceId = int.Parse(refParams[1], System.Globalization.CultureInfo.InvariantCulture);
+
+ this.referencePath = refPath;
+ }
+
+ /// <summary>
+ /// String specifying the name of an executable file, DLL, or icon file
+ /// </summary>
+ public string ModuleName
+ {
+ get
+ {
+ return moduleName;
+ }
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentNullException("value");
+ }
+ moduleName = value;
+ }
+ }
+
+ /// <summary>
+ /// Zero-based index of the icon
+ /// </summary>
+ public int ResourceId { get; set; }
+
+ /// <summary>
+ /// Reference to a specific icon within a EXE, DLL or icon file.
+ /// </summary>
+ public string ReferencePath
+ {
+ get
+ {
+ return referencePath;
+ }
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentNullException("value");
+ }
+
+ string[] refParams = value.Split(commaSeparator);
+
+ if (refParams.Length != 2 || string.IsNullOrEmpty(refParams[0]) || string.IsNullOrEmpty(refParams[1]))
+ {
+ throw new ArgumentException(LocalizedMessages.InvalidReferencePath, "value");
+ }
+
+ ModuleName = refParams[0];
+ ResourceId = int.Parse(refParams[1], System.Globalization.CultureInfo.InvariantCulture);
+
+ referencePath = value;
+ }
+ }
+
+ /// <summary>
+ /// Implements the == (equality) operator.
+ /// </summary>
+ /// <param name="icon1">First object to compare.</param>
+ /// <param name="icon2">Second object to compare.</param>
+ /// <returns>True if icon1 equals icon1; false otherwise.</returns>
+ public static bool operator ==(IconReference icon1, IconReference icon2)
+ {
+ return (icon1.moduleName == icon2.moduleName) &&
+ (icon1.referencePath == icon2.referencePath) &&
+ (icon1.ResourceId == icon2.ResourceId);
+ }
+
+ /// <summary>
+ /// Implements the != (unequality) operator.
+ /// </summary>
+ /// <param name="icon1">First object to compare.</param>
+ /// <param name="icon2">Second object to compare.</param>
+ /// <returns>True if icon1 does not equals icon1; false otherwise.</returns>
+ public static bool operator !=(IconReference icon1, IconReference icon2)
+ {
+ return !(icon1 == icon2);
+ }
+
+ /// <summary>
+ /// Determines if this object is equal to another.
+ /// </summary>
+ /// <param name="obj">The object to compare</param>
+ /// <returns>Returns true if the objects are equal; false otherwise.</returns>
+ public override bool Equals(object obj)
+ {
+ if (obj == null || !(obj is IconReference)) { return false; }
+ return (this == (IconReference)obj);
+ }
+
+ /// <summary>
+ /// Generates a nearly unique hashcode for this structure.
+ /// </summary>
+ /// <returns>A hash code.</returns>
+ public override int GetHashCode()
+ {
+ int hash = this.moduleName.GetHashCode();
+ hash = hash * 31 + this.referencePath.GetHashCode();
+ hash = hash * 31 + this.ResourceId.GetHashCode();
+ return hash;
+ }
+
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativePoint.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativePoint.cs
new file mode 100644
index 0000000000..fae3e25bb5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativePoint.cs
@@ -0,0 +1,78 @@
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A wrapper for the native POINT structure.
+ /// </summary>
+ [StructLayout(LayoutKind.Sequential)]
+ public struct NativePoint
+ {
+ /// <summary>
+ /// Initialize the NativePoint
+ /// </summary>
+ /// <param name="x">The x coordinate of the point.</param>
+ /// <param name="y">The y coordinate of the point.</param>
+ public NativePoint(int x, int y)
+ : this()
+ {
+ X = x;
+ Y = y;
+ }
+
+ /// <summary>
+ /// The X coordinate of the point
+ /// </summary>
+ public int X { get; set; }
+
+ /// <summary>
+ /// The Y coordinate of the point
+ /// </summary>
+ public int Y { get; set; }
+
+ /// <summary>
+ /// Determines if two NativePoints are equal.
+ /// </summary>
+ /// <param name="first">First NativePoint</param>
+ /// <param name="second">Second NativePoint</param>
+ /// <returns>True if first NativePoint is equal to the second; false otherwise.</returns>
+ public static bool operator ==(NativePoint first, NativePoint second)
+ {
+ return first.X == second.X
+ && first.Y == second.Y;
+ }
+
+ /// <summary>
+ /// Determines if two NativePoints are not equal.
+ /// </summary>
+ /// <param name="first">First NativePoint</param>
+ /// <param name="second">Second NativePoint</param>
+ /// <returns>True if first NativePoint is not equal to the second; false otherwise.</returns>
+ public static bool operator !=(NativePoint first, NativePoint second)
+ {
+ return !(first == second);
+ }
+
+ /// <summary>
+ /// Determines if this NativePoint is equal to another.
+ /// </summary>
+ /// <param name="obj">Another NativePoint to compare</param>
+ /// <returns>True if this NativePoint is equal obj; false otherwise.</returns>
+ public override bool Equals(object obj)
+ {
+ return (obj != null && obj is NativePoint) ? this == (NativePoint)obj : false;
+ }
+
+ /// <summary>
+ /// Gets a hash code for the NativePoint.
+ /// </summary>
+ /// <returns>Hash code for the NativePoint</returns>
+ public override int GetHashCode()
+ {
+ int hash = X.GetHashCode();
+ hash = hash * 31 + Y.GetHashCode();
+ return hash;
+ }
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativeRect.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativeRect.cs
new file mode 100644
index 0000000000..fea23642fd
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/NativeRect.cs
@@ -0,0 +1,96 @@
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A wrapper for a RECT struct
+ /// </summary>
+ [StructLayout(LayoutKind.Sequential)]
+ public struct NativeRect
+ {
+ /// <summary>
+ /// Position of left edge
+ /// </summary>
+ public int Left { get; set; }
+
+ /// <summary>
+ /// Position of top edge
+ /// </summary>
+ public int Top { get; set; }
+
+ /// <summary>
+ /// Position of right edge
+ /// </summary>
+ public int Right { get; set; }
+
+ /// <summary>
+ /// Position of bottom edge
+ /// </summary>
+ public int Bottom { get; set; }
+
+ /// <summary>
+ /// Creates a new NativeRect initialized with supplied values.
+ /// </summary>
+ /// <param name="left">Position of left edge</param>
+ /// <param name="top">Position of top edge</param>
+ /// <param name="right">Position of right edge</param>
+ /// <param name="bottom">Position of bottom edge</param>
+ public NativeRect(int left, int top, int right, int bottom)
+ : this()
+ {
+ Left = left;
+ Top = top;
+ Right = right;
+ Bottom = bottom;
+ }
+
+ /// <summary>
+ /// Determines if two NativeRects are equal.
+ /// </summary>
+ /// <param name="first">First NativeRect</param>
+ /// <param name="second">Second NativeRect</param>
+ /// <returns>True if first NativeRect is equal to second; false otherwise.</returns>
+ public static bool operator ==(NativeRect first, NativeRect second)
+ {
+ return first.Left == second.Left
+ && first.Top == second.Top
+ && first.Right == second.Right
+ && first.Bottom == second.Bottom;
+ }
+
+ /// <summary>
+ /// Determines if two NativeRects are not equal
+ /// </summary>
+ /// <param name="first">First NativeRect</param>
+ /// <param name="second">Second NativeRect</param>
+ /// <returns>True if first is not equal to second; false otherwise.</returns>
+ public static bool operator !=(NativeRect first, NativeRect second)
+ {
+ return !(first == second);
+ }
+
+ /// <summary>
+ /// Determines if the NativeRect is equal to another Rect.
+ /// </summary>
+ /// <param name="obj">Another NativeRect to compare</param>
+ /// <returns>True if this NativeRect is equal to the one provided; false otherwise.</returns>
+ public override bool Equals(object obj)
+ {
+ return (obj != null && obj is NativeRect) ? this == (NativeRect)obj : false;
+ }
+
+ /// <summary>
+ /// Creates a hash code for the NativeRect
+ /// </summary>
+ /// <returns>Returns hash code for this NativeRect</returns>
+ public override int GetHashCode()
+ {
+ int hash = Left.GetHashCode();
+ hash = hash * 31 + Top.GetHashCode();
+ hash = hash * 31 + Right.GetHashCode();
+ hash = hash * 31 + Bottom.GetHashCode();
+ return hash;
+ }
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchCondition.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchCondition.cs
new file mode 100644
index 0000000000..6906ede53b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchCondition.cs
@@ -0,0 +1,181 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Exposes properties and methods for retrieving information about a search condition.
+ /// </summary>
+ public class SearchCondition : IDisposable
+ {
+ internal SearchCondition(ICondition nativeSearchCondition)
+ {
+ if (nativeSearchCondition == null)
+ {
+ throw new ArgumentNullException("nativeSearchCondition");
+ }
+
+ NativeSearchCondition = nativeSearchCondition;
+
+ HResult hr = NativeSearchCondition.GetConditionType(out conditionType);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+
+ if (ConditionType == SearchConditionType.Leaf)
+ {
+ using (PropVariant propVar = new PropVariant())
+ {
+ hr = NativeSearchCondition.GetComparisonInfo(out canonicalName, out conditionOperation, propVar);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+
+ PropertyValue = propVar.Value.ToString();
+ }
+ }
+ }
+
+ internal ICondition NativeSearchCondition { get; set; }
+
+ private string canonicalName;
+ /// <summary>
+ /// The name of a property to be compared or NULL for an unspecified property.
+ /// </summary>
+ public string PropertyCanonicalName
+ {
+ get { return canonicalName; }
+ }
+
+ private PropertyKey propertyKey;
+ private PropertyKey emptyPropertyKey = new PropertyKey();
+ /// <summary>
+ /// The property key for the property that is to be compared.
+ /// </summary>
+ public PropertyKey PropertyKey
+ {
+ get
+ {
+ if (propertyKey == emptyPropertyKey)
+ {
+ int hr = PropertySystemNativeMethods.PSGetPropertyKeyFromName(PropertyCanonicalName, out propertyKey);
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+ }
+
+ return propertyKey;
+ }
+ }
+
+ /// <summary>
+ /// A value (in <see cref="System.String"/> format) to which the property is compared.
+ /// </summary>
+ public string PropertyValue { get; internal set; }
+
+ private SearchConditionOperation conditionOperation = SearchConditionOperation.Implicit;
+ /// <summary>
+ /// Search condition operation to be performed on the property/value combination.
+ /// See <see cref="Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation"/> for more details.
+ /// </summary>
+ public SearchConditionOperation ConditionOperation
+ {
+ get { return conditionOperation; }
+ }
+
+ private SearchConditionType conditionType = SearchConditionType.Leaf;
+ /// <summary>
+ /// Represents the condition type for the given node.
+ /// </summary>
+ public SearchConditionType ConditionType
+ {
+ get { return conditionType; }
+ }
+
+ /// <summary>
+ /// Retrieves an array of the sub-conditions.
+ /// </summary>
+ public IEnumerable<SearchCondition> GetSubConditions()
+ {
+ // Our list that we'll return
+ List<SearchCondition> subConditionsList = new List<SearchCondition>();
+
+ // Get the sub-conditions from the native API
+ object subConditionObj;
+ Guid guid = new Guid(ShellIIDGuid.IEnumUnknown);
+
+ HResult hr = NativeSearchCondition.GetSubConditions(ref guid, out subConditionObj);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+
+ // Convert each ICondition to SearchCondition
+ if (subConditionObj != null)
+ {
+ IEnumUnknown enumUnknown = subConditionObj as IEnumUnknown;
+
+ IntPtr buffer = IntPtr.Zero;
+ uint fetched = 0;
+
+ while (hr == HResult.Ok)
+ {
+ hr = enumUnknown.Next(1, ref buffer, ref fetched);
+
+ if (hr == HResult.Ok && fetched == 1)
+ {
+ subConditionsList.Add(new SearchCondition((ICondition)Marshal.GetObjectForIUnknown(buffer)));
+ }
+ }
+ }
+
+ return subConditionsList;
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~SearchCondition()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ /// <param name="disposing"></param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (NativeSearchCondition != null)
+ {
+ Marshal.ReleaseComObject(NativeSearchCondition);
+ NativeSearchCondition = null;
+ }
+ }
+
+ #endregion
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchConditionFactory.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchConditionFactory.cs
new file mode 100644
index 0000000000..3c25dc56e7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SearchConditionFactory.cs
@@ -0,0 +1,481 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Provides methods for creating or resolving a condition tree
+ /// that was obtained by parsing a query string.
+ /// </summary>
+ public static class SearchConditionFactory
+ {
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and constant value.
+ /// </summary>
+ /// <param name="propertyName">The name of a property to be compared, or null for an unspecified property.
+ /// The locale name of the leaf node is LOCALE_NAME_USER_DEFAULT.</param>
+ /// <param name="value">The constant value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(string propertyName, string value, SearchConditionOperation operation)
+ {
+ using (PropVariant propVar = new PropVariant(value))
+ {
+ return CreateLeafCondition(propertyName, propVar, null, operation);
+ }
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and constant value.
+ /// Overload method takes a DateTime parameter for the comparison value.
+ /// </summary>
+ /// <param name="propertyName">The name of a property to be compared, or null for an unspecified property.
+ /// The locale name of the leaf node is LOCALE_NAME_USER_DEFAULT.</param>
+ /// <param name="value">The DateTime value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(string propertyName, DateTime value, SearchConditionOperation operation)
+ {
+ using (PropVariant propVar = new PropVariant(value))
+ {
+ return CreateLeafCondition(propertyName, propVar, "System.StructuredQuery.CustomProperty.DateTime", operation);
+ }
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and Integer value.
+ /// </summary>
+ /// <param name="propertyName">The name of a property to be compared, or null for an unspecified property.
+ /// The locale name of the leaf node is LOCALE_NAME_USER_DEFAULT.</param>
+ /// <param name="value">The Integer value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(string propertyName, int value, SearchConditionOperation operation)
+ {
+ using (PropVariant propVar = new PropVariant(value))
+ {
+ return CreateLeafCondition(propertyName, propVar, "System.StructuredQuery.CustomProperty.Integer", operation);
+ }
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and Boolean value.
+ /// </summary>
+ /// <param name="propertyName">The name of a property to be compared, or null for an unspecified property.
+ /// The locale name of the leaf node is LOCALE_NAME_USER_DEFAULT.</param>
+ /// <param name="value">The Boolean value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(string propertyName, bool value, SearchConditionOperation operation)
+ {
+ using (PropVariant propVar = new PropVariant(value))
+ {
+ return CreateLeafCondition(propertyName, propVar, "System.StructuredQuery.CustomProperty.Boolean", operation);
+ }
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and Floating Point value.
+ /// </summary>
+ /// <param name="propertyName">The name of a property to be compared, or null for an unspecified property.
+ /// The locale name of the leaf node is LOCALE_NAME_USER_DEFAULT.</param>
+ /// <param name="value">The Floating Point value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(string propertyName, double value, SearchConditionOperation operation)
+ {
+ using (PropVariant propVar = new PropVariant(value))
+ {
+ return CreateLeafCondition(propertyName, propVar, "System.StructuredQuery.CustomProperty.FloatingPoint", operation);
+ }
+ }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
+ private static SearchCondition CreateLeafCondition(string propertyName, PropVariant propVar, string valueType, SearchConditionOperation operation)
+ {
+ IConditionFactory nativeConditionFactory = null;
+ SearchCondition condition = null;
+
+ try
+ {
+ // Same as the native "IConditionFactory:MakeLeaf" method
+ nativeConditionFactory = (IConditionFactory)new ConditionFactoryCoClass();
+
+ ICondition nativeCondition = null;
+
+ if (string.IsNullOrEmpty(propertyName) || propertyName.ToUpperInvariant() == "SYSTEM.NULL")
+ {
+ propertyName = null;
+ }
+
+ HResult hr = HResult.Fail;
+
+ hr = nativeConditionFactory.MakeLeaf(propertyName, operation, valueType,
+ propVar, null, null, null, false, out nativeCondition);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+
+ // Create our search condition and set the various properties.
+ condition = new SearchCondition(nativeCondition);
+ }
+ finally
+ {
+ if (nativeConditionFactory != null)
+ {
+ Marshal.ReleaseComObject(nativeConditionFactory);
+ }
+ }
+
+ return condition;
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and constant value.
+ /// </summary>
+ /// <param name="propertyKey">The property to be compared.</param>
+ /// <param name="value">The constant value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(PropertyKey propertyKey, string value, SearchConditionOperation operation)
+ {
+ string canonicalName;
+ PropertySystemNativeMethods.PSGetNameFromPropertyKey(ref propertyKey, out canonicalName);
+
+ if (string.IsNullOrEmpty(canonicalName))
+ {
+ throw new ArgumentException(LocalizedMessages.SearchConditionFactoryInvalidProperty, "propertyKey");
+ }
+
+ return CreateLeafCondition(canonicalName, value, operation);
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and constant value.
+ /// Overload method takes a DateTime parameter for the comparison value.
+ /// </summary>
+ /// <param name="propertyKey">The property to be compared.</param>
+ /// <param name="value">The DateTime value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(PropertyKey propertyKey, DateTime value, SearchConditionOperation operation)
+ {
+ string canonicalName;
+ PropertySystemNativeMethods.PSGetNameFromPropertyKey(ref propertyKey, out canonicalName);
+
+ if (string.IsNullOrEmpty(canonicalName))
+ {
+ throw new ArgumentException(LocalizedMessages.SearchConditionFactoryInvalidProperty, "propertyKey");
+ }
+ return CreateLeafCondition(canonicalName, value, operation);
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and Boolean value.
+ /// Overload method takes a DateTime parameter for the comparison value.
+ /// </summary>
+ /// <param name="propertyKey">The property to be compared.</param>
+ /// <param name="value">The boolean value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(PropertyKey propertyKey, bool value, SearchConditionOperation operation)
+ {
+ string canonicalName;
+ PropertySystemNativeMethods.PSGetNameFromPropertyKey(ref propertyKey, out canonicalName);
+
+ if (string.IsNullOrEmpty(canonicalName))
+ {
+ throw new ArgumentException(LocalizedMessages.SearchConditionFactoryInvalidProperty, "propertyKey");
+ }
+ return CreateLeafCondition(canonicalName, value, operation);
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and Floating Point value.
+ /// Overload method takes a DateTime parameter for the comparison value.
+ /// </summary>
+ /// <param name="propertyKey">The property to be compared.</param>
+ /// <param name="value">The Floating Point value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(PropertyKey propertyKey, double value, SearchConditionOperation operation)
+ {
+ string canonicalName;
+ PropertySystemNativeMethods.PSGetNameFromPropertyKey(ref propertyKey, out canonicalName);
+
+ if (string.IsNullOrEmpty(canonicalName))
+ {
+ throw new ArgumentException(LocalizedMessages.SearchConditionFactoryInvalidProperty, "propertyKey");
+ }
+ return CreateLeafCondition(canonicalName, value, operation);
+ }
+
+ /// <summary>
+ /// Creates a leaf condition node that represents a comparison of property value and Integer value.
+ /// Overload method takes a DateTime parameter for the comparison value.
+ /// </summary>
+ /// <param name="propertyKey">The property to be compared.</param>
+ /// <param name="value">The Integer value against which the property value should be compared.</param>
+ /// <param name="operation">Specific condition to be used when comparing the actual value and the expected value of the given property</param>
+ /// <returns>SearchCondition based on the given parameters</returns>
+ /// <remarks>
+ /// The search will only work for files that are indexed, as well as the specific properties are indexed. To find
+ /// the properties that are indexed, look for the specific property's property description and
+ /// <see cref="P:Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.TypeFlags"/> property for IsQueryable flag.
+ /// </remarks>
+ public static SearchCondition CreateLeafCondition(PropertyKey propertyKey, int value, SearchConditionOperation operation)
+ {
+ string canonicalName;
+ PropertySystemNativeMethods.PSGetNameFromPropertyKey(ref propertyKey, out canonicalName);
+
+ if (string.IsNullOrEmpty(canonicalName))
+ {
+ throw new ArgumentException(LocalizedMessages.SearchConditionFactoryInvalidProperty, "propertyKey");
+ }
+ return CreateLeafCondition(canonicalName, value, operation);
+ }
+
+ /// <summary>
+ /// Creates a condition node that is a logical conjunction ("AND") or disjunction ("OR")
+ /// of a collection of subconditions.
+ /// </summary>
+ /// <param name="conditionType">The SearchConditionType of the condition node.
+ /// Must be either AndCondition or OrCondition.</param>
+ /// <param name="simplify">TRUE to logically simplify the result, if possible;
+ /// then the result will not necessarily to be of the specified kind. FALSE if the result should
+ /// have exactly the prescribed structure. An application that plans to execute a query based on the
+ /// condition tree would typically benefit from setting this parameter to TRUE. </param>
+ /// <param name="conditionNodes">Array of subconditions</param>
+ /// <returns>New SearchCondition based on the operation</returns>
+ public static SearchCondition CreateAndOrCondition(SearchConditionType conditionType, bool simplify, params SearchCondition[] conditionNodes)
+ {
+ // Same as the native "IConditionFactory:MakeAndOr" method
+ IConditionFactory nativeConditionFactory = (IConditionFactory)new ConditionFactoryCoClass();
+ ICondition result = null;
+
+ try
+ {
+ //
+ List<ICondition> conditionList = new List<ICondition>();
+ if (conditionNodes != null)
+ {
+ foreach (SearchCondition c in conditionNodes)
+ {
+ conditionList.Add(c.NativeSearchCondition);
+ }
+ }
+
+ IEnumUnknown subConditions = new EnumUnknownClass(conditionList.ToArray());
+
+ HResult hr = nativeConditionFactory.MakeAndOr(conditionType, subConditions, simplify, out result);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+ finally
+ {
+ if (nativeConditionFactory != null)
+ {
+ Marshal.ReleaseComObject(nativeConditionFactory);
+ }
+ }
+
+ return new SearchCondition(result);
+ }
+
+ /// <summary>
+ /// Creates a condition node that is a logical negation (NOT) of another condition
+ /// (a subnode of this node).
+ /// </summary>
+ /// <param name="conditionToBeNegated">SearchCondition node to be negated.</param>
+ /// <param name="simplify">True to logically simplify the result if possible; False otherwise.
+ /// In a query builder scenario, simplyfy should typically be set to false.</param>
+ /// <returns>New SearchCondition</returns>
+ public static SearchCondition CreateNotCondition(SearchCondition conditionToBeNegated, bool simplify)
+ {
+ if (conditionToBeNegated == null)
+ {
+ throw new ArgumentNullException("conditionToBeNegated");
+ }
+
+ // Same as the native "IConditionFactory:MakeNot" method
+ IConditionFactory nativeConditionFactory = (IConditionFactory)new ConditionFactoryCoClass();
+ ICondition result;
+
+ try
+ {
+ HResult hr = nativeConditionFactory.MakeNot(conditionToBeNegated.NativeSearchCondition, simplify, out result);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+ finally
+ {
+ if (nativeConditionFactory != null)
+ {
+ Marshal.ReleaseComObject(nativeConditionFactory);
+ }
+ }
+
+ return new SearchCondition(result);
+ }
+
+ /// <summary>
+ /// Parses an input string that contains Structured Query keywords (using Advanced Query Syntax
+ /// or Natural Query Syntax) and produces a SearchCondition object.
+ /// </summary>
+ /// <param name="query">The query to be parsed</param>
+ /// <returns>Search condition resulting from the query</returns>
+ /// <remarks>For more information on structured query syntax, visit http://msdn.microsoft.com/en-us/library/bb233500.aspx and
+ /// http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx</remarks>
+ public static SearchCondition ParseStructuredQuery(string query)
+ {
+ return ParseStructuredQuery(query, null);
+ }
+
+ /// <summary>
+ /// Parses an input string that contains Structured Query keywords (using Advanced Query Syntax
+ /// or Natural Query Syntax) and produces a SearchCondition object.
+ /// </summary>
+ /// <param name="query">The query to be parsed</param>
+ /// <param name="cultureInfo">The culture used to select the localized language for keywords.</param>
+ /// <returns>Search condition resulting from the query</returns>
+ /// <remarks>For more information on structured query syntax, visit http://msdn.microsoft.com/en-us/library/bb233500.aspx and
+ /// http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/advquery.mspx</remarks>
+ public static SearchCondition ParseStructuredQuery(string query, CultureInfo cultureInfo)
+ {
+ if (string.IsNullOrEmpty(query))
+ {
+ throw new ArgumentNullException("query");
+ }
+
+ IQueryParserManager nativeQueryParserManager = (IQueryParserManager)new QueryParserManagerCoClass();
+ IQueryParser queryParser = null;
+ IQuerySolution querySolution = null;
+ ICondition result = null;
+
+ IEntity mainType = null;
+ SearchCondition searchCondition = null;
+ try
+ {
+ // First, try to create a new IQueryParser using IQueryParserManager
+ Guid guid = new Guid(ShellIIDGuid.IQueryParser);
+ HResult hr = nativeQueryParserManager.CreateLoadedParser(
+ "SystemIndex",
+ cultureInfo == null ? (ushort)0 : (ushort)cultureInfo.LCID,
+ ref guid,
+ out queryParser);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+
+ if (queryParser != null)
+ {
+ // If user specified natural query, set the option on the query parser
+ using (PropVariant optionValue = new PropVariant(true))
+ {
+ hr = queryParser.SetOption(StructuredQuerySingleOption.NaturalSyntax, optionValue);
+ }
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+
+ // Next, try to parse the query.
+ // Result would be IQuerySolution that we can use for getting the ICondition and other
+ // details about the parsed query.
+ hr = queryParser.Parse(query, null, out querySolution);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+
+ if (querySolution != null)
+ {
+ // Lastly, try to get the ICondition from this parsed query
+ hr = querySolution.GetQuery(out result, out mainType);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+ }
+
+ searchCondition = new SearchCondition(result);
+ return searchCondition;
+ }
+ catch
+ {
+ if (searchCondition != null) { searchCondition.Dispose(); }
+ throw;
+ }
+ finally
+ {
+ if (nativeQueryParserManager != null)
+ {
+ Marshal.ReleaseComObject(nativeQueryParserManager);
+ }
+
+ if (queryParser != null)
+ {
+ Marshal.ReleaseComObject(queryParser);
+ }
+
+ if (querySolution != null)
+ {
+ Marshal.ReleaseComObject(querySolution);
+ }
+
+ if (mainType != null)
+ {
+ Marshal.ReleaseComObject(mainType);
+ }
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellEnums.cs
new file mode 100644
index 0000000000..c60a328cfe
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellEnums.cs
@@ -0,0 +1,535 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// CommonFileDialog AddPlace locations
+ /// </summary>
+ public enum FileDialogAddPlaceLocation
+ {
+ /// <summary>
+ /// At the bottom of the Favorites or Places list.
+ /// </summary>
+ Bottom = 0x00000000,
+
+ /// <summary>
+ /// At the top of the Favorites or Places list.
+ /// </summary>
+ Top = 0x00000001,
+ }
+
+ /// <summary>
+ /// One of the values that indicates how the ShellObject DisplayName should look.
+ /// </summary>
+ public enum DisplayNameType
+ {
+ /// <summary>
+ /// Returns the display name relative to the desktop.
+ /// </summary>
+ Default = 0x00000000,
+
+ /// <summary>
+ /// Returns the parsing name relative to the parent folder.
+ /// </summary>
+ RelativeToParent = unchecked((int)0x80018001),
+
+ /// <summary>
+ /// Returns the path relative to the parent folder in a
+ /// friendly format as displayed in an address bar.
+ /// </summary>
+ RelativeToParentAddressBar = unchecked((int)0x8007c001),
+
+ /// <summary>
+ /// Returns the parsing name relative to the desktop.
+ /// </summary>
+ RelativeToDesktop = unchecked((int)0x80028000),
+
+ /// <summary>
+ /// Returns the editing name relative to the parent folder.
+ /// </summary>
+ RelativeToParentEditing = unchecked((int)0x80031001),
+
+ /// <summary>
+ /// Returns the editing name relative to the desktop.
+ /// </summary>
+ RelativeToDesktopEditing = unchecked((int)0x8004c000),
+
+ /// <summary>
+ /// Returns the display name relative to the file system path.
+ /// </summary>
+ FileSystemPath = unchecked((int)0x80058000),
+
+ /// <summary>
+ /// Returns the display name relative to a URL.
+ /// </summary>
+ Url = unchecked((int)0x80068000),
+ }
+ /// <summary>
+ /// Available Library folder types
+ /// </summary>
+ public enum LibraryFolderType
+ {
+ /// <summary>
+ /// General Items
+ /// </summary>
+ Generic = 0,
+
+ /// <summary>
+ /// Documents
+ /// </summary>
+ Documents,
+
+ /// <summary>
+ /// Music
+ /// </summary>
+ Music,
+
+ /// <summary>
+ /// Pictures
+ /// </summary>
+ Pictures,
+
+ /// <summary>
+ /// Videos
+ /// </summary>
+ Videos
+
+ }
+
+ /// <summary>
+ /// Flags controlling the appearance of a window
+ /// </summary>
+ public enum WindowShowCommand
+ {
+ /// <summary>
+ /// Hides the window and activates another window.
+ /// </summary>
+ Hide = 0,
+
+ /// <summary>
+ /// Activates and displays the window (including restoring
+ /// it to its original size and position).
+ /// </summary>
+ Normal = 1,
+
+ /// <summary>
+ /// Minimizes the window.
+ /// </summary>
+ Minimized = 2,
+
+ /// <summary>
+ /// Maximizes the window.
+ /// </summary>
+ Maximized = 3,
+
+ /// <summary>
+ /// Similar to <see cref="Normal"/>, except that the window
+ /// is not activated.
+ /// </summary>
+ ShowNoActivate = 4,
+
+ /// <summary>
+ /// Activates the window and displays it in its current size
+ /// and position.
+ /// </summary>
+ Show = 5,
+
+ /// <summary>
+ /// Minimizes the window and activates the next top-level window.
+ /// </summary>
+ Minimize = 6,
+
+ /// <summary>
+ /// Minimizes the window and does not activate it.
+ /// </summary>
+ ShowMinimizedNoActivate = 7,
+
+ /// <summary>
+ /// Similar to <see cref="Normal"/>, except that the window is not
+ /// activated.
+ /// </summary>
+ ShowNA = 8,
+
+ /// <summary>
+ /// Activates and displays the window, restoring it to its original
+ /// size and position.
+ /// </summary>
+ Restore = 9,
+
+ /// <summary>
+ /// Sets the show state based on the initial value specified when
+ /// the process was created.
+ /// </summary>
+ Default = 10,
+
+ /// <summary>
+ /// Minimizes a window, even if the thread owning the window is not
+ /// responding. Use this only to minimize windows from a different
+ /// thread.
+ /// </summary>
+ ForceMinimize = 11
+ }
+
+ /// <summary>
+ /// Provides a set of flags to be used with <see cref="Microsoft.WindowsAPICodePack.Shell.SearchCondition"/>
+ /// to indicate the operation in <see cref="Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory"/> methods.
+ /// </summary>
+ public enum SearchConditionOperation
+ {
+ /// <summary>
+ /// An implicit comparison between the value of the property and the value of the constant.
+ /// </summary>
+ Implicit = 0,
+
+ /// <summary>
+ /// The value of the property and the value of the constant must be equal.
+ /// </summary>
+ Equal = 1,
+
+ /// <summary>
+ /// The value of the property and the value of the constant must not be equal.
+ /// </summary>
+ NotEqual = 2,
+
+ /// <summary>
+ /// The value of the property must be less than the value of the constant.
+ /// </summary>
+ LessThan = 3,
+
+ /// <summary>
+ /// The value of the property must be greater than the value of the constant.
+ /// </summary>
+ GreaterThan = 4,
+
+ /// <summary>
+ /// The value of the property must be less than or equal to the value of the constant.
+ /// </summary>
+ LessThanOrEqual = 5,
+
+ /// <summary>
+ /// The value of the property must be greater than or equal to the value of the constant.
+ /// </summary>
+ GreaterThanOrEqual = 6,
+
+ /// <summary>
+ /// The value of the property must begin with the value of the constant.
+ /// </summary>
+ ValueStartsWith = 7,
+
+ /// <summary>
+ /// The value of the property must end with the value of the constant.
+ /// </summary>
+ ValueEndsWith = 8,
+
+ /// <summary>
+ /// The value of the property must contain the value of the constant.
+ /// </summary>
+ ValueContains = 9,
+
+ /// <summary>
+ /// The value of the property must not contain the value of the constant.
+ /// </summary>
+ ValueNotContains = 10,
+
+ /// <summary>
+ /// The value of the property must match the value of the constant, where '?'
+ /// matches any single character and '*' matches any sequence of characters.
+ /// </summary>
+ DosWildcards = 11,
+
+ /// <summary>
+ /// The value of the property must contain a word that is the value of the constant.
+ /// </summary>
+ WordEqual = 12,
+
+ /// <summary>
+ /// The value of the property must contain a word that begins with the value of the constant.
+ /// </summary>
+ WordStartsWith = 13,
+
+ /// <summary>
+ /// The application is free to interpret this in any suitable way.
+ /// </summary>
+ ApplicationSpecific = 14
+ }
+
+ /// <summary>
+ /// Set of flags to be used with <see cref="Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory"/>.
+ /// </summary>
+ public enum SearchConditionType
+ {
+ /// <summary>
+ /// Indicates that the values of the subterms are combined by "AND".
+ /// </summary>
+ And = 0,
+
+ /// <summary>
+ /// Indicates that the values of the subterms are combined by "OR".
+ /// </summary>
+ Or = 1,
+
+ /// <summary>
+ /// Indicates a "NOT" comparison of subterms.
+ /// </summary>
+ Not = 2,
+
+ /// <summary>
+ /// Indicates that the node is a comparison between a property and a
+ /// constant value using a <see cref="Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation"/>.
+ /// </summary>
+ Leaf = 3,
+ }
+
+ /// <summary>
+ /// Used to describe the view mode.
+ /// </summary>
+ public enum FolderLogicalViewMode
+ {
+ /// <summary>
+ /// The view is not specified.
+ /// </summary>
+ Unspecified = -1,
+
+ /// <summary>
+ /// This should have the same affect as Unspecified.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// The minimum valid enumeration value. Used for validation purposes only.
+ /// </summary>
+ First = 1,
+
+ /// <summary>
+ /// Details view.
+ /// </summary>
+ Details = 1,
+
+ /// <summary>
+ /// Tiles view.
+ /// </summary>
+ Tiles = 2,
+
+ /// <summary>
+ /// Icons view.
+ /// </summary>
+ Icons = 3,
+
+ /// <summary>
+ /// Windows 7 and later. List view.
+ /// </summary>
+ List = 4,
+
+ /// <summary>
+ /// Windows 7 and later. Content view.
+ /// </summary>
+ Content = 5,
+
+ /// <summary>
+ /// The maximum valid enumeration value. Used for validation purposes only.
+ /// </summary>
+ Last = 5
+ }
+
+ /// <summary>
+ /// The direction in which the items are sorted.
+ /// </summary>
+ public enum SortDirection
+ {
+ /// <summary>
+ /// A default value for sort direction, this value should not be used;
+ /// instead use Descending or Ascending.
+ /// </summary>
+ Default = 0,
+
+ /// <summary>
+ /// The items are sorted in descending order. Whether the sort is alphabetical, numerical,
+ /// and so on, is determined by the data type of the column indicated in propkey.
+ /// </summary>
+ Descending = -1,
+
+ /// <summary>
+ /// The items are sorted in ascending order. Whether the sort is alphabetical, numerical,
+ /// and so on, is determined by the data type of the column indicated in propkey.
+ /// </summary>
+ Ascending = 1,
+ }
+
+ /// <summary>
+ /// Provides a set of flags to be used with IQueryParser::SetOption and
+ /// IQueryParser::GetOption to indicate individual options.
+ /// </summary>
+ public enum StructuredQuerySingleOption
+ {
+ /// <summary>
+ /// The value should be VT_LPWSTR and the path to a file containing a schema binary.
+ /// </summary>
+ Schema,
+
+ /// <summary>
+ /// The value must be VT_EMPTY (the default) or a VT_UI4 that is an LCID. It is used
+ /// as the locale of contents (not keywords) in the query to be searched for, when no
+ /// other information is available. The default value is the current keyboard locale.
+ /// Retrieving the value always returns a VT_UI4.
+ /// </summary>
+ Locale,
+
+ /// <summary>
+ /// This option is used to override the default word breaker used when identifying keywords
+ /// in queries. The default word breaker is chosen according to the language of the keywords
+ /// (cf. SQSO_LANGUAGE_KEYWORDS below). When setting this option, the value should be VT_EMPTY
+ /// for using the default word breaker, or a VT_UNKNOWN with an object supporting
+ /// the IWordBreaker interface. Retrieving the option always returns a VT_UNKNOWN with an object
+ /// supporting the IWordBreaker interface.
+ /// </summary>
+ WordBreaker,
+
+ /// <summary>
+ /// The value should be VT_EMPTY or VT_BOOL with VARIANT_TRUE to allow natural query
+ /// syntax (the default) or VT_BOOL with VARIANT_FALSE to allow only advanced query syntax.
+ /// Retrieving the option always returns a VT_BOOL.
+ /// This option is now deprecated, use SQSO_SYNTAX.
+ /// </summary>
+ NaturalSyntax,
+
+ /// <summary>
+ /// The value should be VT_BOOL with VARIANT_TRUE to generate query expressions
+ /// as if each word in the query had a star appended to it (unless followed by punctuation
+ /// other than a parenthesis), or VT_EMPTY or VT_BOOL with VARIANT_FALSE to
+ /// use the words as they are (the default). A word-wheeling application
+ /// will generally want to set this option to true.
+ /// Retrieving the option always returns a VT_BOOL.
+ /// </summary>
+ AutomaticWildcard,
+
+ /// <summary>
+ /// Reserved. The value should be VT_EMPTY (the default) or VT_I4.
+ /// Retrieving the option always returns a VT_I4.
+ /// </summary>
+ TraceLevel,
+
+ /// <summary>
+ /// The value must be a VT_UI4 that is a LANGID. It defaults to the default user UI language.
+ /// </summary>
+ LanguageKeywords,
+
+ /// <summary>
+ /// The value must be a VT_UI4 that is a STRUCTURED_QUERY_SYNTAX value.
+ /// It defaults to SQS_NATURAL_QUERY_SYNTAX.
+ /// </summary>
+ Syntax,
+
+ /// <summary>
+ /// The value must be a VT_BLOB that is a copy of a TIME_ZONE_INFORMATION structure.
+ /// It defaults to the current time zone.
+ /// </summary>
+ TimeZone,
+
+ /// <summary>
+ /// This setting decides what connector should be assumed between conditions when none is specified.
+ /// The value must be a VT_UI4 that is a CONDITION_TYPE. Only CT_AND_CONDITION and CT_OR_CONDITION
+ /// are valid. It defaults to CT_AND_CONDITION.
+ /// </summary>
+ ImplicitConnector,
+
+ /// <summary>
+ /// This setting decides whether there are special requirements on the case of connector keywords (such
+ /// as AND or OR). The value must be a VT_UI4 that is a CASE_REQUIREMENT value.
+ /// It defaults to CASE_REQUIREMENT_UPPER_IF_AQS.
+ /// </summary>
+ ConnectorCase,
+
+ }
+
+ /// <summary>
+ /// Provides a set of flags to be used with IQueryParser::SetMultiOption
+ /// to indicate individual options.
+ /// </summary>
+ public enum StructuredQueryMultipleOption
+ {
+ /// <summary>
+ /// The key should be property name P. The value should be a
+ /// VT_UNKNOWN with an IEnumVARIANT which has two values: a VT_BSTR that is another
+ /// property name Q and a VT_I4 that is a CONDITION_OPERATION cop. A predicate with
+ /// property name P, some operation and a value V will then be replaced by a predicate
+ /// with property name Q, operation cop and value V before further processing happens.
+ /// </summary>
+ VirtualProperty,
+
+ /// <summary>
+ /// The key should be a value type name V. The value should be a
+ /// VT_LPWSTR with a property name P. A predicate with no property name and a value of type
+ /// V (or any subtype of V) will then use property P.
+ /// </summary>
+ DefaultProperty,
+
+ /// <summary>
+ /// The key should be a value type name V. The value should be a
+ /// VT_UNKNOWN with a IConditionGenerator G. The GenerateForLeaf method of
+ /// G will then be applied to any predicate with value type V and if it returns a query
+ /// expression, that will be used. If it returns NULL, normal processing will be used
+ /// instead.
+ /// </summary>
+ GeneratorForType,
+
+ /// <summary>
+ /// The key should be a property name P. The value should be a VT_VECTOR|VT_LPWSTR,
+ /// where each string is a property name. The count must be at least one. This "map" will be
+ /// added to those of the loaded schema and used during resolution. A second call with the
+ /// same key will replace the current map. If the value is VT_NULL, the map will be removed.
+ /// </summary>
+ MapProperty,
+ }
+
+ /// <summary>
+ /// Used by IQueryParserManager::SetOption to set parsing options.
+ /// This can be used to specify schemas and localization options.
+ /// </summary>
+ public enum QueryParserManagerOption
+ {
+ /// <summary>
+ /// A VT_LPWSTR containing the name of the file that contains the schema binary.
+ /// The default value is StructuredQuerySchema.bin for the SystemIndex catalog
+ /// and StructuredQuerySchemaTrivial.bin for the trivial catalog.
+ /// </summary>
+ SchemaBinaryName = 0,
+
+ /// <summary>
+ /// Either a VT_BOOL or a VT_LPWSTR. If the value is a VT_BOOL and is FALSE,
+ /// a pre-localized schema will not be used. If the value is a VT_BOOL and is TRUE,
+ /// IQueryParserManager will use the pre-localized schema binary in
+ /// "%ALLUSERSPROFILE%\Microsoft\Windows". If the value is a VT_LPWSTR, the value should
+ /// contain the full path of the folder in which the pre-localized schema binary can be found.
+ /// The default value is VT_BOOL with TRUE.
+ /// </summary>
+ PreLocalizedSchemaBinaryPath = 1,
+
+ /// <summary>
+ /// A VT_LPWSTR containing the full path to the folder that contains the
+ /// unlocalized schema binary. The default value is "%SYSTEMROOT%\System32".
+ /// </summary>
+ UnlocalizedSchemaBinaryPath = 2,
+
+ /// <summary>
+ /// A VT_LPWSTR containing the full path to the folder that contains the
+ /// localized schema binary that can be read and written to as needed.
+ /// The default value is "%LOCALAPPDATA%\Microsoft\Windows".
+ /// </summary>
+ LocalizedSchemaBinaryPath = 3,
+
+ /// <summary>
+ /// A VT_BOOL. If TRUE, then the paths for pre-localized and localized binaries
+ /// have "\(LCID)" appended to them, where language code identifier (LCID) is
+ /// the decimal locale ID for the localized language. The default is TRUE.
+ /// </summary>
+ AppendLCIDToLocalizedPath = 4,
+
+ /// <summary>
+ /// A VT_UNKNOWN with an object supporting ISchemaLocalizerSupport.
+ /// This object will be used instead of the default localizer support object.
+ /// </summary>
+ LocalizerSupport = 5
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellException.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellException.cs
new file mode 100644
index 0000000000..fe5da6622f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellException.cs
@@ -0,0 +1,81 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+
+ /// <summary>
+ /// An exception thrown when an error occurs while dealing with ShellObjects.
+ /// </summary>
+ [Serializable]
+ public class ShellException : ExternalException
+ {
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public ShellException() { }
+
+ /// <summary>
+ /// Initializes a new exception using an HResult
+ /// </summary>
+ /// <param name="result">HResult error</param>
+ internal ShellException(HResult result) : this((int)result) { }
+
+ /// <summary>
+ /// Initializes an excpetion with a custom message.
+ /// </summary>
+ /// <param name="message">Custom message</param>
+ public ShellException(string message) : base(message) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and inner exception.
+ /// </summary>
+ /// <param name="message">Custom message</param>
+ /// <param name="innerException">The original exception that preceded this exception</param>
+ public ShellException(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ }
+
+ /// <summary>
+ /// Initializes an exception with custom message and error code.
+ /// </summary>
+ /// <param name="message">Custom message</param>
+ /// <param name="errorCode">HResult error code</param>
+ public ShellException(string message, int errorCode) : base(message, errorCode) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and error code.
+ /// </summary>
+ /// <param name="message"></param>
+ /// <param name="errorCode"></param>
+ internal ShellException(string message, HResult errorCode) : this(message, (int)errorCode) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and inner exception.
+ /// </summary>
+ /// <param name="errorCode">HRESULT of an operation</param>
+ public ShellException(int errorCode)
+ : base(LocalizedMessages.ShellExceptionDefaultText, errorCode)
+ {
+ }
+
+ /// <summary>
+ /// Initializes an exception from serialization info and a context.
+ /// </summary>
+ /// <param name="info"></param>
+ /// <param name="context"></param>
+ protected ShellException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context)
+ : base(info, context)
+ {
+ }
+
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFile.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFile.cs
new file mode 100644
index 0000000000..0a174f6642
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFile.cs
@@ -0,0 +1,64 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.IO;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A file in the Shell Namespace
+ /// </summary>
+ public class ShellFile : ShellObject
+ {
+ #region Internal Constructor
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ internal ShellFile(string path)
+ {
+ // Get the absolute path
+ string absPath = ShellHelper.GetAbsolutePath(path);
+
+ // Make sure this is valid
+ if (!File.Exists(absPath))
+ {
+ throw new FileNotFoundException(
+ string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.FilePathNotExist, path));
+ }
+
+ ParsingName = absPath;
+ }
+
+ internal ShellFile(IShellItem2 shellItem)
+ {
+ nativeShellItem = shellItem;
+ }
+
+ #endregion
+
+ #region Public Methods
+ /// <summary>
+ /// Constructs a new ShellFile object given a file path
+ /// </summary>
+ /// <param name="path">The file or folder path</param>
+ /// <returns>ShellFile object created using given file path.</returns>
+ static public ShellFile FromFilePath(string path)
+ {
+ return new ShellFile(path);
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// The path for this file
+ /// </summary>
+ virtual public string Path
+ {
+ get { return this.ParsingName; }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFileSystemFolder.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFileSystemFolder.cs
new file mode 100644
index 0000000000..7c5c45fe9e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFileSystemFolder.cs
@@ -0,0 +1,75 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.IO;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A folder in the Shell Namespace
+ /// </summary>
+ public class ShellFileSystemFolder : ShellFolder
+ {
+ #region Internal Constructor
+
+ internal ShellFileSystemFolder()
+ {
+ // Empty
+ }
+
+ internal ShellFileSystemFolder(IShellItem2 shellItem)
+ {
+ nativeShellItem = shellItem;
+ }
+
+ #endregion
+
+ #region Public Methods
+ /// <summary>
+ /// Constructs a new ShellFileSystemFolder object given a folder path
+ /// </summary>
+ /// <param name="path">The folder path</param>
+ /// <remarks>ShellFileSystemFolder created from the given folder path.</remarks>
+ public static ShellFileSystemFolder FromFolderPath(string path)
+ {
+ // Get the absolute path
+ string absPath = ShellHelper.GetAbsolutePath(path);
+
+ // Make sure this is valid
+ if (!Directory.Exists(absPath))
+ {
+ throw new DirectoryNotFoundException(
+ string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.FilePathNotExist, path));
+ }
+
+ ShellFileSystemFolder folder = new ShellFileSystemFolder();
+ try
+ {
+ folder.ParsingName = absPath;
+ return folder;
+ }
+ catch
+ {
+ folder.Dispose();
+ throw;
+ }
+
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// The path for this Folder
+ /// </summary>
+ public virtual string Path
+ {
+ get { return this.ParsingName; }
+ }
+
+ #endregion
+
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolder.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolder.cs
new file mode 100644
index 0000000000..4632f74983
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolder.cs
@@ -0,0 +1,12 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents the base class for all types of folders (filesystem and non filesystem)
+ /// </summary>
+ public abstract class ShellFolder : ShellContainer
+ {
+ // empty
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolderItems.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolderItems.cs
new file mode 100644
index 0000000000..7b8ade7f2a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellFolderItems.cs
@@ -0,0 +1,117 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ class ShellFolderItems : IEnumerator<ShellObject>
+ {
+ #region Private Fields
+
+ private IEnumIDList nativeEnumIdList;
+ private ShellObject currentItem;
+ ShellContainer nativeShellFolder;
+
+ #endregion
+
+ #region Internal Constructor
+
+ internal ShellFolderItems(ShellContainer nativeShellFolder)
+ {
+ this.nativeShellFolder = nativeShellFolder;
+
+ HResult hr = nativeShellFolder.NativeShellFolder.EnumObjects(
+ IntPtr.Zero,
+ ShellNativeMethods.ShellFolderEnumerationOptions.Folders | ShellNativeMethods.ShellFolderEnumerationOptions.NonFolders,
+ out nativeEnumIdList);
+
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ if (hr == HResult.Canceled)
+ {
+ throw new System.IO.FileNotFoundException();
+ }
+ else
+ {
+ throw new ShellException(hr);
+ }
+ }
+
+
+ }
+
+ #endregion
+
+ #region IEnumerator<ShellObject> Members
+
+ public ShellObject Current
+ {
+ get
+ {
+ return currentItem;
+ }
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ public void Dispose()
+ {
+ if (nativeEnumIdList != null)
+ {
+ Marshal.ReleaseComObject(nativeEnumIdList);
+ nativeEnumIdList = null;
+ }
+ }
+
+ #endregion
+
+ #region IEnumerator Members
+
+ object IEnumerator.Current
+ {
+ get { return currentItem; }
+
+ }
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <returns></returns>
+ public bool MoveNext()
+ {
+ if (nativeEnumIdList == null) { return false; }
+
+ IntPtr item;
+ uint numItemsReturned;
+ uint itemsRequested = 1;
+ HResult hr = nativeEnumIdList.Next(itemsRequested, out item, out numItemsReturned);
+
+ if (numItemsReturned < itemsRequested || hr != HResult.Ok) { return false; }
+
+ currentItem = ShellObjectFactory.Create(item, nativeShellFolder);
+
+ return true;
+ }
+
+ /// <summary>
+ ///
+ /// </summary>
+ public void Reset()
+ {
+ if (nativeEnumIdList != null)
+ {
+ nativeEnumIdList.Reset();
+ }
+ }
+
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellHelper.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellHelper.cs
new file mode 100644
index 0000000000..11aca0a2ba
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellHelper.cs
@@ -0,0 +1,91 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.IO;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A helper class for Shell Objects
+ /// </summary>
+ internal static class ShellHelper
+ {
+ internal static string GetParsingName(IShellItem shellItem)
+ {
+ if (shellItem == null) { return null; }
+
+ string path = null;
+
+ IntPtr pszPath = IntPtr.Zero;
+ HResult hr = shellItem.GetDisplayName(ShellNativeMethods.ShellItemDesignNameOptions.DesktopAbsoluteParsing, out pszPath);
+
+ if (hr != HResult.Ok && hr != HResult.InvalidArguments)
+ {
+ throw new ShellException(LocalizedMessages.ShellHelperGetParsingNameFailed, hr);
+ }
+
+ if (pszPath != IntPtr.Zero)
+ {
+ path = Marshal.PtrToStringAuto(pszPath);
+ Marshal.FreeCoTaskMem(pszPath);
+ pszPath = IntPtr.Zero;
+ }
+
+ return path;
+
+ }
+
+ internal static string GetAbsolutePath(string path)
+ {
+ if (Uri.IsWellFormedUriString(path, UriKind.Absolute))
+ {
+ return path;
+ }
+ return Path.GetFullPath((path));
+ }
+
+ internal static PropertyKey ItemTypePropertyKey = new PropertyKey(new Guid("28636AA6-953D-11D2-B5D6-00C04FD918D0"), 11);
+
+ internal static string GetItemType(IShellItem2 shellItem)
+ {
+ if (shellItem != null)
+ {
+ string itemType = null;
+ HResult hr = shellItem.GetString(ref ItemTypePropertyKey, out itemType);
+ if (hr == HResult.Ok) { return itemType; }
+ }
+
+ return null;
+ }
+
+ internal static IntPtr PidlFromParsingName(string name)
+ {
+ IntPtr pidl;
+
+ ShellNativeMethods.ShellFileGetAttributesOptions sfgao;
+ int retCode = ShellNativeMethods.SHParseDisplayName(
+ name, IntPtr.Zero, out pidl, (ShellNativeMethods.ShellFileGetAttributesOptions)0,
+ out sfgao);
+
+ return (CoreErrorHelper.Succeeded(retCode) ? pidl : IntPtr.Zero);
+ }
+
+ internal static IntPtr PidlFromShellItem(IShellItem nativeShellItem)
+ {
+ IntPtr unknown = Marshal.GetIUnknownForObject(nativeShellItem);
+ return PidlFromUnknown(unknown);
+ }
+
+ internal static IntPtr PidlFromUnknown(IntPtr unknown)
+ {
+ IntPtr pidl;
+ int retCode = ShellNativeMethods.SHGetIDListFromObject(unknown, out pidl);
+ return (CoreErrorHelper.Succeeded(retCode) ? pidl : IntPtr.Zero);
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellItemArray.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellItemArray.cs
new file mode 100644
index 0000000000..f4ff3b84d6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellItemArray.cs
@@ -0,0 +1,70 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal class ShellItemArray : IShellItemArray
+ {
+ List<IShellItem> shellItemsList = new List<IShellItem>();
+
+ internal ShellItemArray(IShellItem[] shellItems)
+ {
+ shellItemsList.AddRange(shellItems);
+ }
+
+ #region IShellItemArray Members
+
+ public HResult BindToHandler(IntPtr pbc, ref Guid rbhid, ref Guid riid, out IntPtr ppvOut)
+ {
+ throw new NotSupportedException();
+ }
+
+ public HResult GetPropertyStore(int Flags, ref Guid riid, out IntPtr ppv)
+ {
+ throw new NotSupportedException();
+ }
+
+ public HResult GetPropertyDescriptionList(ref PropertyKey keyType, ref Guid riid, out IntPtr ppv)
+ {
+ throw new NotSupportedException();
+ }
+
+ public HResult GetAttributes(ShellNativeMethods.ShellItemAttributeOptions dwAttribFlags, ShellNativeMethods.ShellFileGetAttributesOptions sfgaoMask, out ShellNativeMethods.ShellFileGetAttributesOptions psfgaoAttribs)
+ {
+ throw new NotSupportedException();
+ }
+
+ public HResult GetCount(out uint pdwNumItems)
+ {
+ pdwNumItems = (uint)shellItemsList.Count;
+ return HResult.Ok;
+ }
+
+ public HResult GetItemAt(uint dwIndex, out IShellItem ppsi)
+ {
+ int index = (int)dwIndex;
+
+ if (index < shellItemsList.Count)
+ {
+ ppsi = shellItemsList[index];
+ return HResult.Ok;
+ }
+ else
+ {
+ ppsi = null;
+ return HResult.Fail;
+ }
+ }
+
+ public HResult EnumItems(out IntPtr ppenumShellItems)
+ {
+ throw new NotSupportedException();
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLibrary.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLibrary.cs
new file mode 100644
index 0000000000..ae2ccd10e9
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLibrary.cs
@@ -0,0 +1,901 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Threading;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A Shell Library in the Shell Namespace
+ /// </summary>
+ public sealed class ShellLibrary : ShellContainer, IList<ShellFileSystemFolder>
+ {
+ #region Private Fields
+
+ private INativeShellLibrary nativeShellLibrary;
+ private IKnownFolder knownFolder;
+
+ private static Guid[] FolderTypesGuids =
+ {
+ new Guid(ShellKFIDGuid.GenericLibrary),
+ new Guid(ShellKFIDGuid.DocumentsLibrary),
+ new Guid(ShellKFIDGuid.MusicLibrary),
+ new Guid(ShellKFIDGuid.PicturesLibrary),
+ new Guid(ShellKFIDGuid.VideosLibrary)
+ };
+
+ #endregion
+
+ #region Private Constructor
+
+ private ShellLibrary()
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ }
+
+ //Construct the ShellLibrary object from a native Shell Library
+ private ShellLibrary(INativeShellLibrary nativeShellLibrary)
+ : this()
+ {
+ this.nativeShellLibrary = nativeShellLibrary;
+ }
+
+ /// <summary>
+ /// Creates a shell library in the Libraries Known Folder,
+ /// using the given IKnownFolder
+ /// </summary>
+ /// <param name="sourceKnownFolder">KnownFolder from which to create the new Shell Library</param>
+ /// <param name="isReadOnly">If <B>true</B> , opens the library in read-only mode.</param>
+ private ShellLibrary(IKnownFolder sourceKnownFolder, bool isReadOnly)
+ : this()
+ {
+ Debug.Assert(sourceKnownFolder != null);
+
+ // Keep a reference locally
+ knownFolder = sourceKnownFolder;
+
+ nativeShellLibrary = (INativeShellLibrary)new ShellLibraryCoClass();
+
+ AccessModes flags = isReadOnly ?
+ AccessModes.Read :
+ AccessModes.ReadWrite;
+
+ // Get the IShellItem2
+ base.nativeShellItem = ((ShellObject)sourceKnownFolder).NativeShellItem2;
+
+ Guid guid = sourceKnownFolder.FolderId;
+
+ // Load the library from the IShellItem2
+ try
+ {
+ nativeShellLibrary.LoadLibraryFromKnownFolder(ref guid, flags);
+ }
+ catch (InvalidCastException)
+ {
+ throw new ArgumentException(LocalizedMessages.ShellLibraryInvalidLibrary, "sourceKnownFolder");
+ }
+ catch (NotImplementedException)
+ {
+ throw new ArgumentException(LocalizedMessages.ShellLibraryInvalidLibrary, "sourceKnownFolder");
+ }
+ }
+
+ #endregion
+
+ #region Public Constructors
+
+ /// <summary>
+ /// Creates a shell library in the Libraries Known Folder,
+ /// using the given shell library name.
+ /// </summary>
+ /// <param name="libraryName">The name of this library</param>
+ /// <param name="overwrite">Allow overwriting an existing library; if one exists with the same name</param>
+ public ShellLibrary(string libraryName, bool overwrite)
+ : this()
+ {
+ if (string.IsNullOrEmpty(libraryName))
+ {
+ throw new ArgumentException(LocalizedMessages.ShellLibraryEmptyName, "libraryName");
+ }
+
+ this.Name = libraryName;
+ Guid guid = new Guid(ShellKFIDGuid.Libraries);
+
+ ShellNativeMethods.LibrarySaveOptions flags = overwrite ?
+ ShellNativeMethods.LibrarySaveOptions.OverrideExisting :
+ ShellNativeMethods.LibrarySaveOptions.FailIfThere;
+
+ nativeShellLibrary = (INativeShellLibrary)new ShellLibraryCoClass();
+ nativeShellLibrary.SaveInKnownFolder(ref guid, libraryName, flags, out nativeShellItem);
+ }
+
+ /// <summary>
+ /// Creates a shell library in a given Known Folder,
+ /// using the given shell library name.
+ /// </summary>
+ /// <param name="libraryName">The name of this library</param>
+ /// <param name="sourceKnownFolder">The known folder</param>
+ /// <param name="overwrite">Override an existing library with the same name</param>
+ public ShellLibrary(string libraryName, IKnownFolder sourceKnownFolder, bool overwrite)
+ : this()
+ {
+ if (string.IsNullOrEmpty(libraryName))
+ {
+ throw new ArgumentException(LocalizedMessages.ShellLibraryEmptyName, "libraryName");
+ }
+
+ knownFolder = sourceKnownFolder;
+
+ this.Name = libraryName;
+ Guid guid = knownFolder.FolderId;
+
+ ShellNativeMethods.LibrarySaveOptions flags = overwrite ?
+ ShellNativeMethods.LibrarySaveOptions.OverrideExisting :
+ ShellNativeMethods.LibrarySaveOptions.FailIfThere;
+
+ nativeShellLibrary = (INativeShellLibrary)new ShellLibraryCoClass();
+ nativeShellLibrary.SaveInKnownFolder(ref guid, libraryName, flags, out nativeShellItem);
+ }
+
+ /// <summary>
+ /// Creates a shell library in a given local folder,
+ /// using the given shell library name.
+ /// </summary>
+ /// <param name="libraryName">The name of this library</param>
+ /// <param name="folderPath">The path to the local folder</param>
+ /// <param name="overwrite">Override an existing library with the same name</param>
+ public ShellLibrary(string libraryName, string folderPath, bool overwrite)
+ : this()
+ {
+ if (string.IsNullOrEmpty(libraryName))
+ {
+ throw new ArgumentException(LocalizedMessages.ShellLibraryEmptyName, "libraryName");
+ }
+
+ if (!Directory.Exists(folderPath))
+ {
+ throw new DirectoryNotFoundException(LocalizedMessages.ShellLibraryFolderNotFound);
+ }
+
+ this.Name = libraryName;
+
+ ShellNativeMethods.LibrarySaveOptions flags = overwrite ?
+ ShellNativeMethods.LibrarySaveOptions.OverrideExisting :
+ ShellNativeMethods.LibrarySaveOptions.FailIfThere;
+
+ Guid guid = new Guid(ShellIIDGuid.IShellItem);
+
+ IShellItem shellItemIn;
+ ShellNativeMethods.SHCreateItemFromParsingName(folderPath, IntPtr.Zero, ref guid, out shellItemIn);
+
+ nativeShellLibrary = (INativeShellLibrary)new ShellLibraryCoClass();
+ nativeShellLibrary.Save(shellItemIn, libraryName, flags, out nativeShellItem);
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// The name of the library, every library must
+ /// have a name
+ /// </summary>
+ /// <exception cref="COMException">Will throw if no Icon is set</exception>
+ public override string Name
+ {
+ get
+ {
+ if (base.Name == null && NativeShellItem != null)
+ {
+ base.Name = System.IO.Path.GetFileNameWithoutExtension(ShellHelper.GetParsingName(NativeShellItem));
+ }
+
+ return base.Name;
+ }
+ }
+
+ /// <summary>
+ /// The Resource Reference to the icon.
+ /// </summary>
+ public IconReference IconResourceId
+ {
+ get
+ {
+ string iconRef;
+ nativeShellLibrary.GetIcon(out iconRef);
+ return new IconReference(iconRef);
+ }
+
+ set
+ {
+ nativeShellLibrary.SetIcon(value.ReferencePath);
+ nativeShellLibrary.Commit();
+ }
+ }
+
+ /// <summary>
+ /// One of predefined Library types
+ /// </summary>
+ /// <exception cref="COMException">Will throw if no Library Type is set</exception>
+ public LibraryFolderType LibraryType
+ {
+ get
+ {
+ Guid folderTypeGuid;
+ nativeShellLibrary.GetFolderType(out folderTypeGuid);
+
+ return GetFolderTypefromGuid(folderTypeGuid);
+ }
+
+ set
+ {
+ Guid guid = FolderTypesGuids[(int)value];
+ nativeShellLibrary.SetFolderType(ref guid);
+ nativeShellLibrary.Commit();
+ }
+ }
+
+ /// <summary>
+ /// The Guid of the Library type
+ /// </summary>
+ /// <exception cref="COMException">Will throw if no Library Type is set</exception>
+ public Guid LibraryTypeId
+ {
+ get
+ {
+ Guid folderTypeGuid;
+ nativeShellLibrary.GetFolderType(out folderTypeGuid);
+
+ return folderTypeGuid;
+ }
+ }
+
+ private static LibraryFolderType GetFolderTypefromGuid(Guid folderTypeGuid)
+ {
+ for (int i = 0; i < FolderTypesGuids.Length; i++)
+ {
+ if (folderTypeGuid.Equals(FolderTypesGuids[i]))
+ {
+ return (LibraryFolderType)i;
+ }
+ }
+ throw new ArgumentOutOfRangeException("folderTypeGuid", LocalizedMessages.ShellLibraryInvalidFolderType);
+ }
+
+ /// <summary>
+ /// By default, this folder is the first location
+ /// added to the library. The default save folder
+ /// is both the default folder where files can
+ /// be saved, and also where the library XML
+ /// file will be saved, if no other path is specified
+ /// </summary>
+ public string DefaultSaveFolder
+ {
+ get
+ {
+ Guid guid = new Guid(ShellIIDGuid.IShellItem);
+
+ IShellItem saveFolderItem;
+
+ nativeShellLibrary.GetDefaultSaveFolder(
+ ShellNativeMethods.DefaultSaveFolderType.Detect,
+ ref guid,
+ out saveFolderItem);
+
+ return ShellHelper.GetParsingName(saveFolderItem);
+ }
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentNullException("value");
+ }
+
+ if (!Directory.Exists(value))
+ {
+ throw new DirectoryNotFoundException(LocalizedMessages.ShellLibraryDefaultSaveFolderNotFound);
+ }
+
+ string fullPath = new DirectoryInfo(value).FullName;
+
+ Guid guid = new Guid(ShellIIDGuid.IShellItem);
+ IShellItem saveFolderItem;
+
+ ShellNativeMethods.SHCreateItemFromParsingName(fullPath, IntPtr.Zero, ref guid, out saveFolderItem);
+
+ nativeShellLibrary.SetDefaultSaveFolder(
+ ShellNativeMethods.DefaultSaveFolderType.Detect,
+ saveFolderItem);
+
+ nativeShellLibrary.Commit();
+ }
+ }
+
+ /// <summary>
+ /// Whether the library will be pinned to the
+ /// Explorer Navigation Pane
+ /// </summary>
+ public bool IsPinnedToNavigationPane
+ {
+ get
+ {
+ ShellNativeMethods.LibraryOptions flags = ShellNativeMethods.LibraryOptions.PinnedToNavigationPane;
+
+ nativeShellLibrary.GetOptions(out flags);
+
+ return (
+ (flags & ShellNativeMethods.LibraryOptions.PinnedToNavigationPane) ==
+ ShellNativeMethods.LibraryOptions.PinnedToNavigationPane);
+ }
+ set
+ {
+ ShellNativeMethods.LibraryOptions flags = ShellNativeMethods.LibraryOptions.Default;
+
+ if (value)
+ {
+ flags |= ShellNativeMethods.LibraryOptions.PinnedToNavigationPane;
+ }
+ else
+ {
+ flags &= ~ShellNativeMethods.LibraryOptions.PinnedToNavigationPane;
+ }
+
+ nativeShellLibrary.SetOptions(ShellNativeMethods.LibraryOptions.PinnedToNavigationPane, flags);
+ nativeShellLibrary.Commit();
+ }
+ }
+
+ #endregion
+
+ #region Public Methods
+
+ /// <summary>
+ /// Close the library, and release its associated file system resources
+ /// </summary>
+ public void Close()
+ {
+ this.Dispose();
+ }
+
+ #endregion
+
+ #region Internal Properties
+
+ internal const string FileExtension = ".library-ms";
+
+ internal override IShellItem NativeShellItem
+ {
+ get { return NativeShellItem2; }
+ }
+
+ internal override IShellItem2 NativeShellItem2
+ {
+ get { return nativeShellItem; }
+ }
+
+ #endregion
+
+ #region Static Shell Library methods
+
+ /// <summary>
+ /// Get a the known folder FOLDERID_Libraries
+ /// </summary>
+ public static IKnownFolder LibrariesKnownFolder
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return KnownFolderHelper.FromKnownFolderId(new Guid(ShellKFIDGuid.Libraries));
+ }
+ }
+
+ /// <summary>
+ /// Load the library using a number of options
+ /// </summary>
+ /// <param name="libraryName">The name of the library</param>
+ /// <param name="isReadOnly">If <B>true</B>, loads the library in read-only mode.</param>
+ /// <returns>A ShellLibrary Object</returns>
+ public static ShellLibrary Load(string libraryName, bool isReadOnly)
+ {
+ CoreHelpers.ThrowIfNotWin7();
+
+ IKnownFolder kf = KnownFolders.Libraries;
+ string librariesFolderPath = (kf != null) ? kf.Path : string.Empty;
+
+ Guid guid = new Guid(ShellIIDGuid.IShellItem);
+ IShellItem nativeShellItem;
+ string shellItemPath = System.IO.Path.Combine(librariesFolderPath, libraryName + FileExtension);
+ int hr = ShellNativeMethods.SHCreateItemFromParsingName(shellItemPath, IntPtr.Zero, ref guid, out nativeShellItem);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ throw new ShellException(hr);
+
+ INativeShellLibrary nativeShellLibrary = (INativeShellLibrary)new ShellLibraryCoClass();
+ AccessModes flags = isReadOnly ?
+ AccessModes.Read :
+ AccessModes.ReadWrite;
+ nativeShellLibrary.LoadLibraryFromItem(nativeShellItem, flags);
+
+ ShellLibrary library = new ShellLibrary(nativeShellLibrary);
+ try
+ {
+ library.nativeShellItem = (IShellItem2)nativeShellItem;
+ library.Name = libraryName;
+
+ return library;
+ }
+ catch
+ {
+ library.Dispose();
+ throw;
+ }
+ }
+
+ /// <summary>
+ /// Load the library using a number of options
+ /// </summary>
+ /// <param name="libraryName">The name of the library.</param>
+ /// <param name="folderPath">The path to the library.</param>
+ /// <param name="isReadOnly">If <B>true</B>, opens the library in read-only mode.</param>
+ /// <returns>A ShellLibrary Object</returns>
+ public static ShellLibrary Load(string libraryName, string folderPath, bool isReadOnly)
+ {
+ CoreHelpers.ThrowIfNotWin7();
+
+ // Create the shell item path
+ string shellItemPath = System.IO.Path.Combine(folderPath, libraryName + FileExtension);
+ ShellFile item = ShellFile.FromFilePath(shellItemPath);
+
+ IShellItem nativeShellItem = item.NativeShellItem;
+ INativeShellLibrary nativeShellLibrary = (INativeShellLibrary)new ShellLibraryCoClass();
+ AccessModes flags = isReadOnly ?
+ AccessModes.Read :
+ AccessModes.ReadWrite;
+ nativeShellLibrary.LoadLibraryFromItem(nativeShellItem, flags);
+
+ ShellLibrary library = new ShellLibrary(nativeShellLibrary);
+ try
+ {
+ library.nativeShellItem = (IShellItem2)nativeShellItem;
+ library.Name = libraryName;
+
+ return library;
+ }
+ catch
+ {
+ library.Dispose();
+ throw;
+ }
+ }
+
+ /// <summary>
+ /// Load the library using a number of options
+ /// </summary>
+ /// <param name="nativeShellItem">IShellItem</param>
+ /// <param name="isReadOnly">read-only flag</param>
+ /// <returns>A ShellLibrary Object</returns>
+ internal static ShellLibrary FromShellItem(IShellItem nativeShellItem, bool isReadOnly)
+ {
+ CoreHelpers.ThrowIfNotWin7();
+
+ INativeShellLibrary nativeShellLibrary = (INativeShellLibrary)new ShellLibraryCoClass();
+
+ AccessModes flags = isReadOnly ?
+ AccessModes.Read :
+ AccessModes.ReadWrite;
+
+ nativeShellLibrary.LoadLibraryFromItem(nativeShellItem, flags);
+
+ ShellLibrary library = new ShellLibrary(nativeShellLibrary);
+ library.nativeShellItem = (IShellItem2)nativeShellItem;
+
+ return library;
+ }
+
+ /// <summary>
+ /// Load the library using a number of options
+ /// </summary>
+ /// <param name="sourceKnownFolder">A known folder.</param>
+ /// <param name="isReadOnly">If <B>true</B>, opens the library in read-only mode.</param>
+ /// <returns>A ShellLibrary Object</returns>
+ public static ShellLibrary Load(IKnownFolder sourceKnownFolder, bool isReadOnly)
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return new ShellLibrary(sourceKnownFolder, isReadOnly);
+ }
+
+ private static void ShowManageLibraryUI(ShellLibrary shellLibrary, IntPtr windowHandle, string title, string instruction, bool allowAllLocations)
+ {
+ int hr = 0;
+
+ Thread staWorker = new Thread(() =>
+ {
+ hr = ShellNativeMethods.SHShowManageLibraryUI(
+ shellLibrary.NativeShellItem,
+ windowHandle,
+ title,
+ instruction,
+ allowAllLocations ?
+ ShellNativeMethods.LibraryManageDialogOptions.NonIndexableLocationWarning :
+ ShellNativeMethods.LibraryManageDialogOptions.Default);
+ });
+
+ staWorker.SetApartmentState(ApartmentState.STA);
+ staWorker.Start();
+ staWorker.Join();
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+
+ /// <summary>
+ /// Shows the library management dialog which enables users to mange the library folders and default save location.
+ /// </summary>
+ /// <param name="libraryName">The name of the library</param>
+ /// <param name="folderPath">The path to the library.</param>
+ /// <param name="windowHandle">The parent window,or IntPtr.Zero for no parent</param>
+ /// <param name="title">A title for the library management dialog, or null to use the library name as the title</param>
+ /// <param name="instruction">An optional help string to display for the library management dialog</param>
+ /// <param name="allowAllLocations">If true, do not show warning dialogs about locations that cannot be indexed</param>
+ /// <remarks>If the library is already open in read-write mode, the dialog will not save the changes.</remarks>
+ public static void ShowManageLibraryUI(string libraryName, string folderPath, IntPtr windowHandle, string title, string instruction, bool allowAllLocations)
+ {
+ // this method is not safe for MTA consumption and will blow
+ // Access Violations if called from an MTA thread so we wrap this
+ // call up into a Worker thread that performs all operations in a
+ // single threaded apartment
+ using (ShellLibrary shellLibrary = ShellLibrary.Load(libraryName, folderPath, true))
+ {
+ ShowManageLibraryUI(shellLibrary, windowHandle, title, instruction, allowAllLocations);
+ }
+ }
+
+ /// <summary>
+ /// Shows the library management dialog which enables users to mange the library folders and default save location.
+ /// </summary>
+ /// <param name="libraryName">The name of the library</param>
+ /// <param name="windowHandle">The parent window,or IntPtr.Zero for no parent</param>
+ /// <param name="title">A title for the library management dialog, or null to use the library name as the title</param>
+ /// <param name="instruction">An optional help string to display for the library management dialog</param>
+ /// <param name="allowAllLocations">If true, do not show warning dialogs about locations that cannot be indexed</param>
+ /// <remarks>If the library is already open in read-write mode, the dialog will not save the changes.</remarks>
+ public static void ShowManageLibraryUI(string libraryName, IntPtr windowHandle, string title, string instruction, bool allowAllLocations)
+ {
+ // this method is not safe for MTA consumption and will blow
+ // Access Violations if called from an MTA thread so we wrap this
+ // call up into a Worker thread that performs all operations in a
+ // single threaded apartment
+ using (ShellLibrary shellLibrary = ShellLibrary.Load(libraryName, true))
+ {
+ ShowManageLibraryUI(shellLibrary, windowHandle, title, instruction, allowAllLocations);
+ }
+ }
+
+ /// <summary>
+ /// Shows the library management dialog which enables users to mange the library folders and default save location.
+ /// </summary>
+ /// <param name="sourceKnownFolder">A known folder.</param>
+ /// <param name="windowHandle">The parent window,or IntPtr.Zero for no parent</param>
+ /// <param name="title">A title for the library management dialog, or null to use the library name as the title</param>
+ /// <param name="instruction">An optional help string to display for the library management dialog</param>
+ /// <param name="allowAllLocations">If true, do not show warning dialogs about locations that cannot be indexed</param>
+ /// <remarks>If the library is already open in read-write mode, the dialog will not save the changes.</remarks>
+ public static void ShowManageLibraryUI(IKnownFolder sourceKnownFolder, IntPtr windowHandle, string title, string instruction, bool allowAllLocations)
+ {
+ // this method is not safe for MTA consumption and will blow
+ // Access Violations if called from an MTA thread so we wrap this
+ // call up into a Worker thread that performs all operations in a
+ // single threaded apartment
+ using (ShellLibrary shellLibrary = ShellLibrary.Load(sourceKnownFolder, true))
+ {
+ ShowManageLibraryUI(shellLibrary, windowHandle, title, instruction, allowAllLocations);
+ }
+ }
+
+ #endregion
+
+ #region Collection Members
+
+ /// <summary>
+ /// Add a new FileSystemFolder or SearchConnector
+ /// </summary>
+ /// <param name="item">The folder to add to the library.</param>
+ public void Add(ShellFileSystemFolder item)
+ {
+ if (item == null) { throw new ArgumentNullException("item"); }
+
+ nativeShellLibrary.AddFolder(item.NativeShellItem);
+ nativeShellLibrary.Commit();
+ }
+
+ /// <summary>
+ /// Add an existing folder to this library
+ /// </summary>
+ /// <param name="folderPath">The path to the folder to be added to the library.</param>
+ public void Add(string folderPath)
+ {
+ if (!Directory.Exists(folderPath))
+ {
+ throw new DirectoryNotFoundException(LocalizedMessages.ShellLibraryFolderNotFound);
+ }
+
+ Add(ShellFileSystemFolder.FromFolderPath(folderPath));
+ }
+
+ /// <summary>
+ /// Clear all items of this Library
+ /// </summary>
+ public void Clear()
+ {
+ List<ShellFileSystemFolder> list = ItemsList;
+ foreach (ShellFileSystemFolder folder in list)
+ {
+ nativeShellLibrary.RemoveFolder(folder.NativeShellItem);
+ }
+
+ nativeShellLibrary.Commit();
+ }
+
+ /// <summary>
+ /// Remove a folder or search connector
+ /// </summary>
+ /// <param name="item">The item to remove.</param>
+ /// <returns><B>true</B> if the item was removed.</returns>
+ public bool Remove(ShellFileSystemFolder item)
+ {
+ if (item == null) { throw new ArgumentNullException("item"); }
+
+ try
+ {
+ nativeShellLibrary.RemoveFolder(item.NativeShellItem);
+ nativeShellLibrary.Commit();
+ }
+ catch (COMException)
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ /// <summary>
+ /// Remove a folder or search connector
+ /// </summary>
+ /// <param name="folderPath">The path of the item to remove.</param>
+ /// <returns><B>true</B> if the item was removed.</returns>
+ public bool Remove(string folderPath)
+ {
+ ShellFileSystemFolder item = ShellFileSystemFolder.FromFolderPath(folderPath);
+ return Remove(item);
+ }
+
+ #endregion
+
+ #region Disposable Pattern
+
+ /// <summary>
+ /// Release resources
+ /// </summary>
+ /// <param name="disposing">Indicates that this was called from Dispose(), rather than from the finalizer.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (nativeShellLibrary != null)
+ {
+ Marshal.ReleaseComObject(nativeShellLibrary);
+ nativeShellLibrary = null;
+ }
+
+ base.Dispose(disposing);
+ }
+
+ /// <summary>
+ /// Release resources
+ /// </summary>
+ ~ShellLibrary()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+
+ #region Private Properties
+
+ private List<ShellFileSystemFolder> ItemsList
+ {
+ get { return GetFolders(); }
+ }
+
+ private List<ShellFileSystemFolder> GetFolders()
+ {
+ List<ShellFileSystemFolder> list = new List<ShellFileSystemFolder>();
+ IShellItemArray itemArray;
+
+ Guid shellItemArrayGuid = new Guid(ShellIIDGuid.IShellItemArray);
+
+ HResult hr = nativeShellLibrary.GetFolders(ShellNativeMethods.LibraryFolderFilter.AllItems, ref shellItemArrayGuid, out itemArray);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { return list; }
+
+ uint count;
+ itemArray.GetCount(out count);
+
+ for (uint i = 0; i < count; ++i)
+ {
+ IShellItem shellItem;
+ itemArray.GetItemAt(i, out shellItem);
+ list.Add(new ShellFileSystemFolder(shellItem as IShellItem2));
+ }
+
+ if (itemArray != null)
+ {
+ Marshal.ReleaseComObject(itemArray);
+ itemArray = null;
+ }
+
+ return list;
+ }
+
+ #endregion
+
+ #region IEnumerable<ShellFileSystemFolder> Members
+
+ /// <summary>
+ /// Retrieves the collection enumerator.
+ /// </summary>
+ /// <returns>The enumerator.</returns>
+ new public IEnumerator<ShellFileSystemFolder> GetEnumerator()
+ {
+ return ItemsList.GetEnumerator();
+ }
+
+ #endregion
+
+ #region IEnumerable Members
+
+ /// <summary>
+ /// Retrieves the collection enumerator.
+ /// </summary>
+ /// <returns>The enumerator.</returns>
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
+ {
+ return ItemsList.GetEnumerator();
+ }
+
+ #endregion
+
+ #region ICollection<ShellFileSystemFolder> Members
+
+
+ /// <summary>
+ /// Determines if an item with the specified path exists in the collection.
+ /// </summary>
+ /// <param name="fullPath">The path of the item.</param>
+ /// <returns><B>true</B> if the item exists in the collection.</returns>
+ public bool Contains(string fullPath)
+ {
+ if (string.IsNullOrEmpty(fullPath))
+ {
+ throw new ArgumentNullException("fullPath");
+ }
+
+ return ItemsList.Any(folder => string.Equals(fullPath, folder.Path, StringComparison.OrdinalIgnoreCase));
+ }
+
+ /// <summary>
+ /// Determines if a folder exists in the collection.
+ /// </summary>
+ /// <param name="item">The folder.</param>
+ /// <returns><B>true</B>, if the folder exists in the collection.</returns>
+ public bool Contains(ShellFileSystemFolder item)
+ {
+ if (item == null)
+ {
+ throw new ArgumentNullException("item");
+ }
+
+ return ItemsList.Any(folder => string.Equals(item.Path, folder.Path, StringComparison.OrdinalIgnoreCase));
+ }
+
+ #endregion
+
+ #region IList<FileSystemFolder> Members
+
+ /// <summary>
+ /// Searches for the specified FileSystemFolder and returns the zero-based index of the
+ /// first occurrence within Library list.
+ /// </summary>
+ /// <param name="item">The item to search for.</param>
+ /// <returns>The index of the item in the collection, or -1 if the item does not exist.</returns>
+ public int IndexOf(ShellFileSystemFolder item)
+ {
+ return ItemsList.IndexOf(item);
+ }
+
+ /// <summary>
+ /// Inserts a FileSystemFolder at the specified index.
+ /// </summary>
+ /// <param name="index">The index to insert at.</param>
+ /// <param name="item">The FileSystemFolder to insert.</param>
+ void IList<ShellFileSystemFolder>.Insert(int index, ShellFileSystemFolder item)
+ {
+ // Index related options are not supported by IShellLibrary doesn't support them.
+ throw new NotImplementedException();
+ }
+
+ /// <summary>
+ /// Removes an item at the specified index.
+ /// </summary>
+ /// <param name="index">The index to remove.</param>
+ void IList<ShellFileSystemFolder>.RemoveAt(int index)
+ {
+ // Index related options are not supported by IShellLibrary doesn't support them.
+ throw new NotImplementedException();
+ }
+
+ /// <summary>
+ /// Retrieves the folder at the specified index
+ /// </summary>
+ /// <param name="index">The index of the folder to retrieve.</param>
+ /// <returns>A folder.</returns>
+ public ShellFileSystemFolder this[int index]
+ {
+ get { return ItemsList[index]; }
+ set
+ {
+ // Index related options are not supported by IShellLibrary
+ // doesn't support them.
+ throw new NotImplementedException();
+ }
+ }
+ #endregion
+
+ #region ICollection<ShellFileSystemFolder> Members
+
+ /// <summary>
+ /// Copies the collection to an array.
+ /// </summary>
+ /// <param name="array">The array to copy to.</param>
+ /// <param name="arrayIndex">The index in the array at which to start the copy.</param>
+ void ICollection<ShellFileSystemFolder>.CopyTo(ShellFileSystemFolder[] array, int arrayIndex)
+ {
+ throw new NotImplementedException();
+ }
+
+ /// <summary>
+ /// The count of the items in the list.
+ /// </summary>
+ public int Count
+ {
+ get { return ItemsList.Count; }
+ }
+
+ /// <summary>
+ /// Indicates whether this list is read-only or not.
+ /// </summary>
+ public bool IsReadOnly
+ {
+ get { return false; }
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ new public static bool IsPlatformSupported
+ {
+ get
+ {
+ // We need Windows 7 onwards ...
+ return CoreHelpers.RunningOnWin7;
+ }
+ }
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLink.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLink.cs
new file mode 100644
index 0000000000..de95815e4a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellLink.cs
@@ -0,0 +1,143 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a link to existing FileSystem or Virtual item.
+ /// </summary>
+ public class ShellLink : ShellObject
+ {
+ /// <summary>
+ /// Path for this file e.g. c:\Windows\file.txt,
+ /// </summary>
+ private string _internalPath;
+
+ #region Internal Constructors
+
+ internal ShellLink(IShellItem2 shellItem)
+ {
+ nativeShellItem = shellItem;
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// The path for this link
+ /// </summary>
+ virtual public string Path
+ {
+ get
+ {
+ if (_internalPath == null && NativeShellItem != null)
+ {
+ _internalPath = base.ParsingName;
+ }
+ return _internalPath;
+ }
+ protected set
+ {
+ this._internalPath = value;
+ }
+ }
+
+ private string internalTargetLocation;
+ /// <summary>
+ /// Gets the location to which this link points to.
+ /// </summary>
+ public string TargetLocation
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(internalTargetLocation) && NativeShellItem2 != null)
+ {
+ internalTargetLocation = this.Properties.System.Link.TargetParsingPath.Value;
+ }
+ return internalTargetLocation;
+ }
+ set
+ {
+ if (value == null) { return; }
+
+ internalTargetLocation = value;
+
+ if (NativeShellItem2 != null)
+ {
+ this.Properties.System.Link.TargetParsingPath.Value = internalTargetLocation;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Gets the ShellObject to which this link points to.
+ /// </summary>
+ public ShellObject TargetShellObject
+ {
+ get { return ShellObjectFactory.Create(TargetLocation); }
+ }
+
+ /// <summary>
+ /// Gets or sets the link's title
+ /// </summary>
+ public string Title
+ {
+ get
+ {
+ if (NativeShellItem2 != null) { return this.Properties.System.Title.Value; }
+ return null;
+ }
+ set
+ {
+ if (value == null)
+ {
+ throw new ArgumentNullException("value");
+ }
+
+ if (NativeShellItem2 != null)
+ {
+ this.Properties.System.Title.Value = value;
+ }
+ }
+ }
+
+ private string internalArguments;
+ /// <summary>
+ /// Gets the arguments associated with this link.
+ /// </summary>
+ public string Arguments
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(internalArguments) && NativeShellItem2 != null)
+ {
+ internalArguments = this.Properties.System.Link.Arguments.Value;
+ }
+
+ return internalArguments;
+ }
+ }
+
+ private string internalComments;
+ /// <summary>
+ /// Gets the comments associated with this link.
+ /// </summary>
+ public string Comments
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(internalComments) && NativeShellItem2 != null)
+ {
+ internalComments = this.Properties.System.Comment.Value;
+ }
+
+ return internalComments;
+ }
+ }
+
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemFolder.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemFolder.cs
new file mode 100644
index 0000000000..dc608a1414
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemFolder.cs
@@ -0,0 +1,25 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a Non FileSystem folder (e.g. My Computer, Control Panel)
+ /// </summary>
+ public class ShellNonFileSystemFolder : ShellFolder
+ {
+ #region Internal Constructors
+
+ internal ShellNonFileSystemFolder()
+ {
+ // Empty
+ }
+
+ internal ShellNonFileSystemFolder(IShellItem2 shellItem)
+ {
+ nativeShellItem = shellItem;
+ }
+
+ #endregion
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemItem.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemItem.cs
new file mode 100644
index 0000000000..b04f2b9746
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellNonFileSystemItem.cs
@@ -0,0 +1,15 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a non filesystem item (e.g. virtual items inside Control Panel)
+ /// </summary>
+ public class ShellNonFileSystemItem : ShellObject
+ {
+ internal ShellNonFileSystemItem(IShellItem2 shellItem)
+ {
+ nativeShellItem = shellItem;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObject.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObject.cs
new file mode 100644
index 0000000000..23aa4c4168
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObject.cs
@@ -0,0 +1,532 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.IO;
+using System.Runtime.InteropServices;
+using System.Security.Cryptography;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+using System.Runtime.InteropServices.ComTypes;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// The base class for all Shell objects in Shell Namespace.
+ /// </summary>
+ abstract public class ShellObject : IDisposable, IEquatable<ShellObject>
+ {
+
+ #region Public Static Methods
+
+ /// <summary>
+ /// Creates a ShellObject subclass given a parsing name.
+ /// For file system items, this method will only accept absolute paths.
+ /// </summary>
+ /// <param name="parsingName">The parsing name of the object.</param>
+ /// <returns>A newly constructed ShellObject object.</returns>
+ public static ShellObject FromParsingName(string parsingName)
+ {
+ return ShellObjectFactory.Create(parsingName);
+ }
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ public static bool IsPlatformSupported
+ {
+ get
+ {
+ // We need Windows Vista onwards ...
+ return CoreHelpers.RunningOnVista;
+ }
+ }
+
+ #endregion
+
+ #region Internal Fields
+
+ /// <summary>
+ /// Internal member to keep track of the native IShellItem2
+ /// </summary>
+ internal IShellItem2 nativeShellItem;
+
+ #endregion
+
+ #region Constructors
+
+ internal ShellObject()
+ {
+ }
+
+ internal ShellObject(IShellItem2 shellItem)
+ {
+ nativeShellItem = shellItem;
+ }
+
+ #endregion
+
+ #region Protected Fields
+
+ /// <summary>
+ /// Parsing name for this Object e.g. c:\Windows\file.txt,
+ /// or ::{Some Guid}
+ /// </summary>
+ private string _internalParsingName;
+
+ /// <summary>
+ /// A friendly name for this object that' suitable for display
+ /// </summary>
+ private string _internalName;
+
+ /// <summary>
+ /// PID List (PIDL) for this object
+ /// </summary>
+ private IntPtr _internalPIDL = IntPtr.Zero;
+
+ #endregion
+
+ #region Internal Properties
+
+ /// <summary>
+ /// Return the native ShellFolder object as newer IShellItem2
+ /// </summary>
+ /// <exception cref="System.Runtime.InteropServices.ExternalException">If the native object cannot be created.
+ /// The ErrorCode member will contain the external error code.</exception>
+ virtual internal IShellItem2 NativeShellItem2
+ {
+ get
+ {
+ if (nativeShellItem == null && ParsingName != null)
+ {
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+ int retCode = ShellNativeMethods.SHCreateItemFromParsingName(ParsingName, IntPtr.Zero, ref guid, out nativeShellItem);
+
+ if (nativeShellItem == null || !CoreErrorHelper.Succeeded(retCode))
+ {
+ throw new ShellException(LocalizedMessages.ShellObjectCreationFailed, Marshal.GetExceptionForHR(retCode));
+ }
+ }
+ return nativeShellItem;
+ }
+ }
+
+ /// <summary>
+ /// Return the native ShellFolder object
+ /// </summary>
+ virtual internal IShellItem NativeShellItem
+ {
+ get { return NativeShellItem2; }
+ }
+
+ /// <summary>
+ /// Gets access to the native IPropertyStore (if one is already
+ /// created for this item and still valid. This is usually done by the
+ /// ShellPropertyWriter class. The reference will be set to null
+ /// when the writer has been closed/commited).
+ /// </summary>
+ internal IPropertyStore NativePropertyStore { get; set; }
+
+ #endregion
+
+ #region Public Methods
+
+ /// <summary>
+ /// Updates the native shell item that maps to this shell object. This is necessary when the shell item
+ /// changes after the shell object has been created. Without this method call, the retrieval of properties will
+ /// return stale data.
+ /// </summary>
+ /// <param name="bindContext">Bind context object</param>
+ public void Update(IBindCtx bindContext)
+ {
+ HResult hr = HResult.Ok;
+
+ if (NativeShellItem2 != null)
+ {
+ hr = NativeShellItem2.Update(bindContext);
+ }
+
+ if (CoreErrorHelper.Failed(hr))
+ {
+ throw new ShellException(hr);
+ }
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ private ShellProperties properties;
+ /// <summary>
+ /// Gets an object that allows the manipulation of ShellProperties for this shell item.
+ /// </summary>
+ public ShellProperties Properties
+ {
+ get
+ {
+ if (properties == null)
+ {
+ properties = new ShellProperties(this);
+ }
+ return properties;
+ }
+ }
+
+ /// <summary>
+ /// Gets the parsing name for this ShellItem.
+ /// </summary>
+ virtual public string ParsingName
+ {
+ get
+ {
+ if (_internalParsingName == null && nativeShellItem != null)
+ {
+ _internalParsingName = ShellHelper.GetParsingName(nativeShellItem);
+ }
+ return _internalParsingName ?? string.Empty;
+ }
+ protected set
+ {
+ _internalParsingName = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets the normal display for this ShellItem.
+ /// </summary>
+ virtual public string Name
+ {
+ get
+ {
+ if (_internalName == null && NativeShellItem != null)
+ {
+ IntPtr pszString = IntPtr.Zero;
+ HResult hr = NativeShellItem.GetDisplayName(ShellNativeMethods.ShellItemDesignNameOptions.Normal, out pszString);
+ if (hr == HResult.Ok && pszString != IntPtr.Zero)
+ {
+ _internalName = Marshal.PtrToStringAuto(pszString);
+
+ // Free the string
+ Marshal.FreeCoTaskMem(pszString);
+
+ }
+ }
+ return _internalName;
+ }
+
+ protected set
+ {
+ this._internalName = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets the PID List (PIDL) for this ShellItem.
+ /// </summary>
+ internal virtual IntPtr PIDL
+ {
+ get
+ {
+ // Get teh PIDL for the ShellItem
+ if (_internalPIDL == IntPtr.Zero && NativeShellItem != null)
+ {
+ _internalPIDL = ShellHelper.PidlFromShellItem(NativeShellItem);
+ }
+
+ return _internalPIDL;
+ }
+ set
+ {
+ this._internalPIDL = value;
+ }
+ }
+
+ /// <summary>
+ /// Overrides object.ToString()
+ /// </summary>
+ /// <returns>A string representation of the object.</returns>
+ public override string ToString()
+ {
+ return this.Name;
+ }
+
+ /// <summary>
+ /// Returns the display name of the ShellFolder object. DisplayNameType represents one of the
+ /// values that indicates how the name should look.
+ /// See <see cref="Microsoft.WindowsAPICodePack.Shell.DisplayNameType"/>for a list of possible values.
+ /// </summary>
+ /// <param name="displayNameType">A disaply name type.</param>
+ /// <returns>A string.</returns>
+ public virtual string GetDisplayName(DisplayNameType displayNameType)
+ {
+ string returnValue = null;
+
+ HResult hr = HResult.Ok;
+
+ if (NativeShellItem2 != null)
+ {
+ hr = NativeShellItem2.GetDisplayName((ShellNativeMethods.ShellItemDesignNameOptions)displayNameType, out returnValue);
+ }
+
+ if (hr != HResult.Ok)
+ {
+ throw new ShellException(LocalizedMessages.ShellObjectCannotGetDisplayName, hr);
+ }
+
+ return returnValue;
+ }
+
+ /// <summary>
+ /// Gets a value that determines if this ShellObject is a link or shortcut.
+ /// </summary>
+ public bool IsLink
+ {
+ get
+ {
+ try
+ {
+ ShellNativeMethods.ShellFileGetAttributesOptions sfgao;
+ NativeShellItem.GetAttributes(ShellNativeMethods.ShellFileGetAttributesOptions.Link, out sfgao);
+ return (sfgao & ShellNativeMethods.ShellFileGetAttributesOptions.Link) != 0;
+ }
+ catch (FileNotFoundException)
+ {
+ return false;
+ }
+ catch (NullReferenceException)
+ {
+ // NativeShellItem is null
+ return false;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that determines if this ShellObject is a file system object.
+ /// </summary>
+ public bool IsFileSystemObject
+ {
+ get
+ {
+ try
+ {
+ ShellNativeMethods.ShellFileGetAttributesOptions sfgao;
+ NativeShellItem.GetAttributes(ShellNativeMethods.ShellFileGetAttributesOptions.FileSystem, out sfgao);
+ return (sfgao & ShellNativeMethods.ShellFileGetAttributesOptions.FileSystem) != 0;
+ }
+ catch (FileNotFoundException)
+ {
+ return false;
+ }
+ catch (NullReferenceException)
+ {
+ // NativeShellItem is null
+ return false;
+ }
+ }
+ }
+
+ private ShellThumbnail thumbnail;
+ /// <summary>
+ /// Gets the thumbnail of the ShellObject.
+ /// </summary>
+ public ShellThumbnail Thumbnail
+ {
+ get
+ {
+ if (thumbnail == null) { thumbnail = new ShellThumbnail(this); }
+ return thumbnail;
+ }
+ }
+
+ private ShellObject parentShellObject;
+ /// <summary>
+ /// Gets the parent ShellObject.
+ /// Returns null if the object has no parent, i.e. if this object is the Desktop folder.
+ /// </summary>
+ public ShellObject Parent
+ {
+ get
+ {
+ if (parentShellObject == null && NativeShellItem2 != null)
+ {
+ IShellItem parentShellItem;
+ HResult hr = NativeShellItem2.GetParent(out parentShellItem);
+
+ if (hr == HResult.Ok && parentShellItem != null)
+ {
+ parentShellObject = ShellObjectFactory.Create(parentShellItem);
+ }
+ else if (hr == HResult.NoObject)
+ {
+ // Should return null if the parent is desktop
+ return null;
+ }
+ else
+ {
+ throw new ShellException(hr);
+ }
+ }
+
+ return parentShellObject;
+ }
+ }
+
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release the native and managed objects
+ /// </summary>
+ /// <param name="disposing">Indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ _internalName = null;
+ _internalParsingName = null;
+ properties = null;
+ thumbnail = null;
+ parentShellObject = null;
+ }
+
+ if (properties != null)
+ {
+ properties.Dispose();
+ }
+
+ if (_internalPIDL != IntPtr.Zero)
+ {
+ ShellNativeMethods.ILFree(_internalPIDL);
+ _internalPIDL = IntPtr.Zero;
+ }
+
+ if (nativeShellItem != null)
+ {
+ Marshal.ReleaseComObject(nativeShellItem);
+ nativeShellItem = null;
+ }
+
+ if (NativePropertyStore != null)
+ {
+ Marshal.ReleaseComObject(NativePropertyStore);
+ NativePropertyStore = null;
+ }
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Implement the finalizer.
+ /// </summary>
+ ~ShellObject()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+
+ #region equality and hashing
+
+ /// <summary>
+ /// Returns the hash code of the object.
+ /// </summary>
+ /// <returns></returns>
+ public override int GetHashCode()
+ {
+ if (!hashValue.HasValue)
+ {
+ uint size = ShellNativeMethods.ILGetSize(PIDL);
+ if (size != 0)
+ {
+ byte[] pidlData = new byte[size];
+ Marshal.Copy(PIDL, pidlData, 0, (int)size);
+ byte[] hashData = ShellObject.hashProvider.ComputeHash(pidlData);
+ hashValue = BitConverter.ToInt32(hashData, 0);
+ }
+ else
+ {
+ hashValue = 0;
+ }
+
+ }
+ return hashValue.Value;
+ }
+ private static MD5CryptoServiceProvider hashProvider = new MD5CryptoServiceProvider();
+ private int? hashValue;
+
+ /// <summary>
+ /// Determines if two ShellObjects are identical.
+ /// </summary>
+ /// <param name="other">The ShellObject to comare this one to.</param>
+ /// <returns>True if the ShellObjects are equal, false otherwise.</returns>
+ public bool Equals(ShellObject other)
+ {
+ bool areEqual = false;
+
+ if (other != null)
+ {
+ IShellItem ifirst = this.NativeShellItem;
+ IShellItem isecond = other.NativeShellItem;
+ if (ifirst != null && isecond != null)
+ {
+ int result = 0;
+ HResult hr = ifirst.Compare(
+ isecond, SICHINTF.SICHINT_ALLFIELDS, out result);
+
+ areEqual = (hr == HResult.Ok) && (result == 0);
+ }
+ }
+
+ return areEqual;
+ }
+
+ /// <summary>
+ /// Returns whether this object is equal to another.
+ /// </summary>
+ /// <param name="obj">The object to compare against.</param>
+ /// <returns>Equality result.</returns>
+ public override bool Equals(object obj)
+ {
+ return this.Equals(obj as ShellObject);
+ }
+
+ /// <summary>
+ /// Implements the == (equality) operator.
+ /// </summary>
+ /// <param name="leftShellObject">First object to compare.</param>
+ /// <param name="rightShellObject">Second object to compare.</param>
+ /// <returns>True if leftShellObject equals rightShellObject; false otherwise.</returns>
+ public static bool operator ==(ShellObject leftShellObject, ShellObject rightShellObject)
+ {
+ if ((object)leftShellObject == null)
+ {
+ return ((object)rightShellObject == null);
+ }
+ return leftShellObject.Equals(rightShellObject);
+ }
+
+ /// <summary>
+ /// Implements the != (inequality) operator.
+ /// </summary>
+ /// <param name="leftShellObject">First object to compare.</param>
+ /// <param name="rightShellObject">Second object to compare.</param>
+ /// <returns>True if leftShellObject does not equal leftShellObject; false otherwise.</returns>
+ public static bool operator !=(ShellObject leftShellObject, ShellObject rightShellObject)
+ {
+ return !(leftShellObject == rightShellObject);
+ }
+
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectCollection.cs
new file mode 100644
index 0000000000..1c1d85dde5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectCollection.cs
@@ -0,0 +1,396 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.IO;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// An ennumerable list of ShellObjects
+ /// </summary>
+ public class ShellObjectCollection : IEnumerable, IDisposable, IList<ShellObject>
+ {
+ private List<ShellObject> content = new List<ShellObject>();
+
+ bool readOnly;
+ bool isDisposed;
+
+ #region construction/disposal/finialization
+ /// <summary>
+ /// Creates a ShellObject collection from an IShellItemArray
+ /// </summary>
+ /// <param name="iArray">IShellItemArray pointer</param>
+ /// <param name="readOnly">Indicates whether the collection shouldbe read-only or not</param>
+ internal ShellObjectCollection(IShellItemArray iArray, bool readOnly)
+ {
+ this.readOnly = readOnly;
+
+ if (iArray != null)
+ {
+ try
+ {
+ uint itemCount = 0;
+ iArray.GetCount(out itemCount);
+ content.Capacity = (int)itemCount;
+ for (uint index = 0; index < itemCount; index++)
+ {
+ IShellItem iShellItem = null;
+ iArray.GetItemAt(index, out iShellItem);
+ content.Add(ShellObjectFactory.Create(iShellItem));
+ }
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(iArray);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Creates a ShellObjectCollection from an IDataObject passed during Drop operation.
+ /// </summary>
+ /// <param name="dataObject">An object that implements the IDataObject COM interface.</param>
+ /// <returns>ShellObjectCollection created from the given IDataObject</returns>
+ public static ShellObjectCollection FromDataObject(System.Runtime.InteropServices.ComTypes.IDataObject dataObject)
+ {
+ IShellItemArray shellItemArray;
+ Guid iid = new Guid(ShellIIDGuid.IShellItemArray);
+ ShellNativeMethods.SHCreateShellItemArrayFromDataObject(dataObject, ref iid, out shellItemArray);
+ return new ShellObjectCollection(shellItemArray, true);
+ }
+
+ /// <summary>
+ /// Constructs an empty ShellObjectCollection
+ /// </summary>
+ public ShellObjectCollection()
+ {
+ // Left empty
+ }
+
+ /// <summary>
+ /// Finalizer
+ /// </summary>
+ ~ShellObjectCollection()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Standard Dispose pattern
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Standard Dispose patterns
+ /// </summary>
+ /// <param name="disposing">Indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (isDisposed == false)
+ {
+ if (disposing)
+ {
+ foreach (ShellObject shellObject in content)
+ {
+ shellObject.Dispose();
+ }
+
+ content.Clear();
+ }
+
+ isDisposed = true;
+ }
+ }
+ #endregion
+
+ #region implementation
+
+ /// <summary>
+ /// Item count
+ /// </summary>
+ public int Count { get { return content.Count; } }
+
+ /// <summary>
+ /// Collection enumeration
+ /// </summary>
+ /// <returns></returns>
+ public System.Collections.IEnumerator GetEnumerator()
+ {
+ foreach (ShellObject obj in content)
+ {
+ yield return obj;
+ }
+ }
+
+ /// <summary>
+ /// Builds the data for the CFSTR_SHELLIDLIST Drag and Clipboard data format from the
+ /// ShellObjects in the collection.
+ /// </summary>
+ /// <returns>A memory stream containing the drag/drop data.</returns>
+ public MemoryStream BuildShellIDList()
+ {
+ if (content.Count == 0)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectCollectionEmptyCollection);
+ }
+
+
+ MemoryStream mstream = new MemoryStream();
+ try
+ {
+ BinaryWriter bwriter = new BinaryWriter(mstream);
+
+
+ // number of IDLs to be written (shell objects + parent folder)
+ uint itemCount = (uint)(content.Count + 1);
+
+ // grab the object IDLs
+ IntPtr[] idls = new IntPtr[itemCount];
+
+ for (int index = 0; index < itemCount; index++)
+ {
+ if (index == 0)
+ {
+ // Because the ShellObjects passed in may be from anywhere, the
+ // parent folder reference must be the desktop.
+ idls[index] = ((ShellObject)KnownFolders.Desktop).PIDL;
+ }
+ else
+ {
+ idls[index] = content[index - 1].PIDL;
+ }
+ }
+
+ // calculate offset array (folder IDL + item IDLs)
+ uint[] offsets = new uint[itemCount + 1];
+ for (int index = 0; index < itemCount; index++)
+ {
+ if (index == 0)
+ {
+ // first offset equals size of CIDA header data
+ offsets[0] = (uint)(sizeof(uint) * (offsets.Length + 1));
+ }
+ else
+ {
+ offsets[index] = offsets[index - 1] + ShellNativeMethods.ILGetSize(idls[index - 1]);
+ }
+ }
+
+ // Fill out the CIDA header
+ //
+ // typedef struct _IDA {
+ // UINT cidl; // number of relative IDList
+ // UINT aoffset[1]; // [0]: folder IDList, [1]-[cidl]: item IDList
+ // } CIDA, * LPIDA;
+ //
+ bwriter.Write(content.Count);
+ foreach (uint offset in offsets)
+ {
+ bwriter.Write(offset);
+ }
+
+ // copy idls
+ foreach (IntPtr idl in idls)
+ {
+ byte[] data = new byte[ShellNativeMethods.ILGetSize(idl)];
+ Marshal.Copy(idl, data, 0, data.Length);
+ bwriter.Write(data, 0, data.Length);
+ }
+ }
+ catch
+ {
+ mstream.Dispose();
+ throw;
+ }
+ // return CIDA stream
+ return mstream;
+ }
+ #endregion
+
+ #region IList<ShellObject> Members
+
+ /// <summary>
+ /// Returns the index of a particualr shell object in the collection
+ /// </summary>
+ /// <param name="item">The item to search for.</param>
+ /// <returns>The index of the item found, or -1 if not found.</returns>
+ public int IndexOf(ShellObject item)
+ {
+ return content.IndexOf(item);
+ }
+
+ /// <summary>
+ /// Inserts a new shell object into the collection.
+ /// </summary>
+ /// <param name="index">The index at which to insert.</param>
+ /// <param name="item">The item to insert.</param>
+ public void Insert(int index, ShellObject item)
+ {
+ if (readOnly)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectCollectionInsertReadOnly);
+ }
+
+ content.Insert(index, item);
+ }
+
+ /// <summary>
+ /// Removes the specified ShellObject from the collection
+ /// </summary>
+ /// <param name="index">The index to remove at.</param>
+ public void RemoveAt(int index)
+ {
+ if (readOnly)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectCollectionRemoveReadOnly);
+ }
+
+ content.RemoveAt(index);
+ }
+
+ /// <summary>
+ /// The collection indexer
+ /// </summary>
+ /// <param name="index">The index of the item to retrieve.</param>
+ /// <returns>The ShellObject at the specified index</returns>
+ public ShellObject this[int index]
+ {
+ get
+ {
+ return content[index];
+ }
+ set
+ {
+ if (readOnly)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectCollectionInsertReadOnly);
+ }
+
+ content[index] = value;
+ }
+ }
+
+ #endregion
+
+ #region ICollection<ShellObject> Members
+
+ /// <summary>
+ /// Adds a ShellObject to the collection,
+ /// </summary>
+ /// <param name="item">The ShellObject to add.</param>
+ public void Add(ShellObject item)
+ {
+ if (readOnly)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectCollectionInsertReadOnly);
+ }
+
+ content.Add(item);
+ }
+
+ /// <summary>
+ /// Clears the collection of ShellObjects.
+ /// </summary>
+ public void Clear()
+ {
+ if (readOnly)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectCollectionRemoveReadOnly);
+ }
+
+ content.Clear();
+ }
+
+ /// <summary>
+ /// Determines if the collection contains a particular ShellObject.
+ /// </summary>
+ /// <param name="item">The ShellObject.</param>
+ /// <returns>true, if the ShellObject is in the list, false otherwise.</returns>
+ public bool Contains(ShellObject item)
+ {
+ return content.Contains(item);
+ }
+
+ /// <summary>
+ /// Copies the ShellObjects in the collection to a ShellObject array.
+ /// </summary>
+ /// <param name="array">The destination to copy to.</param>
+ /// <param name="arrayIndex">The index into the array at which copying will commence.</param>
+ public void CopyTo(ShellObject[] array, int arrayIndex)
+ {
+ if (array == null) { throw new ArgumentNullException("array"); }
+ if (array.Length < arrayIndex + content.Count)
+ {
+ throw new ArgumentException(LocalizedMessages.ShellObjectCollectionArrayTooSmall, "array");
+ }
+
+ for (int index = 0; index < content.Count; index++)
+ {
+ array[index + arrayIndex] = content[index];
+ }
+ }
+
+ /// <summary>
+ /// Retrieves the number of ShellObjects in the collection
+ /// </summary>
+ int ICollection<ShellObject>.Count
+ {
+ get
+ {
+ return content.Count;
+ }
+ }
+
+ /// <summary>
+ /// If true, the contents of the collection are immutable.
+ /// </summary>
+ public bool IsReadOnly
+ {
+ get
+ {
+ return readOnly;
+ }
+ }
+
+ /// <summary>
+ /// Removes a particular ShellObject from the list.
+ /// </summary>
+ /// <param name="item">The ShellObject to remove.</param>
+ /// <returns>True if the item could be removed, false otherwise.</returns>
+ public bool Remove(ShellObject item)
+ {
+ if (readOnly)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectCollectionRemoveReadOnly);
+ }
+
+ return content.Remove(item);
+ }
+
+ #endregion
+
+ #region IEnumerable<ShellObject> Members
+
+ /// <summary>
+ /// Allows for enumeration through the list of ShellObjects in the collection.
+ /// </summary>
+ /// <returns>The IEnumerator interface to use for enumeration.</returns>
+ IEnumerator<ShellObject> IEnumerable<ShellObject>.GetEnumerator()
+ {
+ foreach (ShellObject obj in content)
+ {
+ yield return obj;
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectContainer.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectContainer.cs
new file mode 100644
index 0000000000..8a42f21159
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectContainer.cs
@@ -0,0 +1,120 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents the base class for all types of Shell "containers". Any class deriving from this class
+ /// can contain other ShellObjects (e.g. ShellFolder, FileSystemKnownFolder, ShellLibrary, etc)
+ /// </summary>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "This will complicate the class hierarchy and naming convention used in the Shell area")]
+ public abstract class ShellContainer : ShellObject, IEnumerable<ShellObject>, IDisposable
+ {
+
+ #region Private Fields
+
+ private IShellFolder desktopFolderEnumeration;
+ private IShellFolder nativeShellFolder;
+
+ #endregion
+
+ #region Internal Properties
+
+ internal IShellFolder NativeShellFolder
+ {
+ get
+ {
+ if (nativeShellFolder == null)
+ {
+ Guid guid = new Guid(ShellIIDGuid.IShellFolder);
+ Guid handler = new Guid(ShellBHIDGuid.ShellFolderObject);
+
+ HResult hr = NativeShellItem.BindToHandler(
+ IntPtr.Zero, ref handler, ref guid, out nativeShellFolder);
+
+ if (CoreErrorHelper.Failed(hr))
+ {
+ string str = ShellHelper.GetParsingName(NativeShellItem);
+ if (str != null && str != Environment.GetFolderPath(Environment.SpecialFolder.Desktop))
+ {
+ throw new ShellException(hr);
+ }
+ }
+ }
+
+ return nativeShellFolder;
+ }
+ }
+
+ #endregion
+
+ #region Internal Constructor
+
+ internal ShellContainer() { }
+
+ internal ShellContainer(IShellItem2 shellItem) : base(shellItem) { }
+
+ #endregion
+
+ #region Disposable Pattern
+
+ /// <summary>
+ /// Release resources
+ /// </summary>
+ /// <param name="disposing"><B>True</B> indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (nativeShellFolder != null)
+ {
+ Marshal.ReleaseComObject(nativeShellFolder);
+ nativeShellFolder = null;
+ }
+
+ if (desktopFolderEnumeration != null)
+ {
+ Marshal.ReleaseComObject(desktopFolderEnumeration);
+ desktopFolderEnumeration = null;
+ }
+
+ base.Dispose(disposing);
+ }
+
+ #endregion
+
+ #region IEnumerable<ShellObject> Members
+
+ /// <summary>
+ /// Enumerates through contents of the ShellObjectContainer
+ /// </summary>
+ /// <returns>Enumerated contents</returns>
+ public IEnumerator<ShellObject> GetEnumerator()
+ {
+ if (NativeShellFolder == null)
+ {
+ if (desktopFolderEnumeration == null)
+ {
+ ShellNativeMethods.SHGetDesktopFolder(out desktopFolderEnumeration);
+ }
+
+ nativeShellFolder = desktopFolderEnumeration;
+ }
+
+ return new ShellFolderItems(this);
+ }
+
+ #endregion
+
+ #region IEnumerable Members
+
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
+ {
+ return new ShellFolderItems(this);
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectFactory.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectFactory.cs
new file mode 100644
index 0000000000..73c5147f14
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellObjectFactory.cs
@@ -0,0 +1,220 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+using System.Linq;
+using System.Threading;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal static class ShellObjectFactory
+ {
+ /// <summary>
+ /// Creates a ShellObject given a native IShellItem interface
+ /// </summary>
+ /// <param name="nativeShellItem"></param>
+ /// <returns>A newly constructed ShellObject object</returns>
+ internal static ShellObject Create(IShellItem nativeShellItem)
+ {
+ // Sanity check
+ Debug.Assert(nativeShellItem != null, "nativeShellItem should not be null");
+
+ // Need to make sure we're running on Vista or higher
+ if (!CoreHelpers.RunningOnVista)
+ {
+ throw new PlatformNotSupportedException(LocalizedMessages.ShellObjectFactoryPlatformNotSupported);
+ }
+
+ // A lot of APIs need IShellItem2, so just keep a copy of it here
+ IShellItem2 nativeShellItem2 = nativeShellItem as IShellItem2;
+
+ // Get the System.ItemType property
+ string itemType = ShellHelper.GetItemType(nativeShellItem2);
+
+ if (!string.IsNullOrEmpty(itemType)) { itemType = itemType.ToUpperInvariant(); }
+
+ // Get some IShellItem attributes
+ ShellNativeMethods.ShellFileGetAttributesOptions sfgao;
+ nativeShellItem2.GetAttributes(ShellNativeMethods.ShellFileGetAttributesOptions.FileSystem | ShellNativeMethods.ShellFileGetAttributesOptions.Folder, out sfgao);
+
+ // Is this item a FileSystem item?
+ bool isFileSystem = (sfgao & ShellNativeMethods.ShellFileGetAttributesOptions.FileSystem) != 0;
+
+ // Is this item a Folder?
+ bool isFolder = (sfgao & ShellNativeMethods.ShellFileGetAttributesOptions.Folder) != 0;
+
+ // Shell Library
+ ShellLibrary shellLibrary = null;
+
+ // Create the right type of ShellObject based on the above information
+
+ // 1. First check if this is a Shell Link
+ if (itemType == ".lnk")
+ {
+ return new ShellLink(nativeShellItem2);
+ }
+ // 2. Check if this is a container or a single item (entity)
+ else if (isFolder)
+ {
+ // 3. If this is a folder, check for types: Shell Library, Shell Folder or Search Container
+ if (itemType == ".library-ms" && (shellLibrary = ShellLibrary.FromShellItem(nativeShellItem2, true)) != null)
+ {
+ return shellLibrary; // we already created this above while checking for Library
+ }
+ else if (itemType == ".searchconnector-ms")
+ {
+ return new ShellSearchConnector(nativeShellItem2);
+ }
+ else if (itemType == ".search-ms")
+ {
+ return new ShellSavedSearchCollection(nativeShellItem2);
+ }
+
+ // 4. It's a ShellFolder
+ if (isFileSystem)
+ {
+ // 5. Is it a (File-System / Non-Virtual) Known Folder
+ if (!IsVirtualKnownFolder(nativeShellItem2))
+ { //needs to check if it is a known folder and not virtual
+ FileSystemKnownFolder kf = new FileSystemKnownFolder(nativeShellItem2);
+ return kf;
+ }
+
+ return new ShellFileSystemFolder(nativeShellItem2);
+ }
+
+ // 5. Is it a (Non File-System / Virtual) Known Folder
+ if (IsVirtualKnownFolder(nativeShellItem2))
+ { //needs to check if known folder is virtual
+ NonFileSystemKnownFolder kf = new NonFileSystemKnownFolder(nativeShellItem2);
+ return kf;
+ }
+
+ return new ShellNonFileSystemFolder(nativeShellItem2);
+ }
+
+ // 6. If this is an entity (single item), check if its filesystem or not
+ if (isFileSystem) { return new ShellFile(nativeShellItem2); }
+
+ return new ShellNonFileSystemItem(nativeShellItem2);
+ }
+
+ // This is a work around for the STA thread bug. This will execute the call on a non-sta thread, then return the result
+ private static bool IsVirtualKnownFolder(IShellItem2 nativeShellItem2)
+ {
+ IntPtr pidl = IntPtr.Zero;
+ try
+ {
+ IKnownFolderNative nativeFolder = null;
+ KnownFoldersSafeNativeMethods.NativeFolderDefinition definition = new KnownFoldersSafeNativeMethods.NativeFolderDefinition();
+
+ // We found a bug where the enumeration of shell folders was
+ // not reliable when called from a STA thread - it would return
+ // different results the first time vs the other times.
+ //
+ // This is a work around. We call FindFolderFromIDList on a
+ // worker MTA thread instead of the main STA thread.
+ //
+ // Ultimately, it would be a very good idea to replace the 'getting shell object' logic
+ // to get a list of pidl's in 1 step, then look up their information in a 2nd, rather than
+ // looking them up as we get them. This would replace the need for the work around.
+ object padlock = new object();
+ lock (padlock)
+ {
+ IntPtr unknown = Marshal.GetIUnknownForObject(nativeShellItem2);
+
+ ThreadPool.QueueUserWorkItem(obj =>
+ {
+ lock (padlock)
+ {
+ pidl = ShellHelper.PidlFromUnknown(unknown);
+
+ new KnownFolderManagerClass().FindFolderFromIDList(pidl, out nativeFolder);
+
+ if (nativeFolder != null)
+ {
+ nativeFolder.GetFolderDefinition(out definition);
+ }
+
+ Monitor.Pulse(padlock);
+ }
+ });
+
+ Monitor.Wait(padlock);
+ }
+
+ return nativeFolder != null && definition.category == FolderCategory.Virtual;
+ }
+ finally
+ {
+ ShellNativeMethods.ILFree(pidl);
+ }
+ }
+
+ /// <summary>
+ /// Creates a ShellObject given a parsing name
+ /// </summary>
+ /// <param name="parsingName"></param>
+ /// <returns>A newly constructed ShellObject object</returns>
+ internal static ShellObject Create(string parsingName)
+ {
+ if (string.IsNullOrEmpty(parsingName))
+ {
+ throw new ArgumentNullException("parsingName");
+ }
+
+ // Create a native shellitem from our path
+ IShellItem2 nativeShellItem;
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+ int retCode = ShellNativeMethods.SHCreateItemFromParsingName(parsingName, IntPtr.Zero, ref guid, out nativeShellItem);
+
+ if (!CoreErrorHelper.Succeeded(retCode))
+ {
+ throw new ShellException(LocalizedMessages.ShellObjectFactoryUnableToCreateItem, Marshal.GetExceptionForHR(retCode));
+ }
+ return ShellObjectFactory.Create(nativeShellItem);
+ }
+
+ /// <summary>
+ /// Constructs a new Shell object from IDList pointer
+ /// </summary>
+ /// <param name="idListPtr"></param>
+ /// <returns></returns>
+ internal static ShellObject Create(IntPtr idListPtr)
+ {
+ // Throw exception if not running on Win7 or newer.
+ CoreHelpers.ThrowIfNotVista();
+
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+
+ IShellItem2 nativeShellItem;
+ int retCode = ShellNativeMethods.SHCreateItemFromIDList(idListPtr, ref guid, out nativeShellItem);
+
+ if (!CoreErrorHelper.Succeeded(retCode)) { return null; }
+ return ShellObjectFactory.Create(nativeShellItem);
+ }
+
+ /// <summary>
+ /// Constructs a new Shell object from IDList pointer
+ /// </summary>
+ /// <param name="idListPtr"></param>
+ /// <param name="parent"></param>
+ /// <returns></returns>
+ internal static ShellObject Create(IntPtr idListPtr, ShellContainer parent)
+ {
+ IShellItem nativeShellItem;
+
+ int retCode = ShellNativeMethods.SHCreateShellItem(
+ IntPtr.Zero,
+ parent.NativeShellFolder,
+ idListPtr, out nativeShellItem);
+
+ if (!CoreErrorHelper.Succeeded(retCode)) { return null; }
+
+ return ShellObjectFactory.Create(nativeShellItem);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSavedSearchCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSavedSearchCollection.cs
new file mode 100644
index 0000000000..8cb1d87bd8
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSavedSearchCollection.cs
@@ -0,0 +1,18 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a saved search
+ /// </summary>
+ public class ShellSavedSearchCollection : ShellSearchCollection
+ {
+ internal ShellSavedSearchCollection(IShellItem2 shellItem)
+ : base(shellItem)
+ {
+ CoreHelpers.ThrowIfNotVista();
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchCollection.cs
new file mode 100644
index 0000000000..bca3f2e94e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchCollection.cs
@@ -0,0 +1,16 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents the base class for all search-related classes.
+ /// </summary>
+ public class ShellSearchCollection : ShellContainer
+ {
+ internal ShellSearchCollection() { }
+
+ internal ShellSearchCollection(IShellItem2 shellItem) : base(shellItem) { }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchConnector.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchConnector.cs
new file mode 100644
index 0000000000..afdb059fa0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchConnector.cs
@@ -0,0 +1,40 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// A Serch Connector folder in the Shell Namespace
+ /// </summary>
+ public sealed class ShellSearchConnector : ShellSearchCollection
+ {
+
+ #region Internal Constructor
+
+ internal ShellSearchConnector()
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ }
+
+ internal ShellSearchConnector(IShellItem2 shellItem)
+ : this()
+ {
+ nativeShellItem = shellItem;
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ new public static bool IsPlatformSupported
+ {
+ get
+ {
+ // We need Windows 7 onwards ...
+ return CoreHelpers.RunningOnWin7;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchFolder.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchFolder.cs
new file mode 100644
index 0000000000..75b281606c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellSearchFolder.cs
@@ -0,0 +1,266 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+using System.Linq;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Create and modify search folders.
+ /// </summary>
+ public class ShellSearchFolder : ShellSearchCollection
+ {
+ /// <summary>
+ /// Create a simple search folder. Once the appropriate parameters are set,
+ /// the search folder can be enumerated to get the search results.
+ /// </summary>
+ /// <param name="searchCondition">Specific condition on which to perform the search (property and expected value)</param>
+ /// <param name="searchScopePath">List of folders/paths to perform the search on. These locations need to be indexed by the system.</param>
+ public ShellSearchFolder(SearchCondition searchCondition, params ShellContainer[] searchScopePath)
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ NativeSearchFolderItemFactory = (ISearchFolderItemFactory)new SearchFolderItemFactoryCoClass();
+
+ this.SearchCondition = searchCondition;
+
+ if (searchScopePath != null && searchScopePath.Length > 0 && searchScopePath[0] != null)
+ {
+ this.SearchScopePaths = searchScopePath.Select(cont => cont.ParsingName);
+ }
+ }
+
+ /// <summary>
+ /// Create a simple search folder. Once the appropiate parameters are set,
+ /// the search folder can be enumerated to get the search results.
+ /// </summary>
+ /// <param name="searchCondition">Specific condition on which to perform the search (property and expected value)</param>
+ /// <param name="searchScopePath">List of folders/paths to perform the search on. These locations need to be indexed by the system.</param>
+ public ShellSearchFolder(SearchCondition searchCondition, params string[] searchScopePath)
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ NativeSearchFolderItemFactory = (ISearchFolderItemFactory)new SearchFolderItemFactoryCoClass();
+
+ if (searchScopePath != null && searchScopePath.Length > 0 && searchScopePath[0] != null)
+ {
+ this.SearchScopePaths = searchScopePath;
+ }
+
+ this.SearchCondition = searchCondition;
+ }
+
+ internal ISearchFolderItemFactory NativeSearchFolderItemFactory { get; set; }
+
+ private SearchCondition searchCondition;
+ /// <summary>
+ /// Gets the <see cref="Microsoft.WindowsAPICodePack.Shell.SearchCondition"/> of the search.
+ /// When this property is not set, the resulting search will have no filters applied.
+ /// </summary>
+ public SearchCondition SearchCondition
+ {
+ get { return searchCondition; }
+ private set
+ {
+ searchCondition = value;
+
+ NativeSearchFolderItemFactory.SetCondition(searchCondition.NativeSearchCondition);
+ }
+ }
+
+ private string[] searchScopePaths;
+ /// <summary>
+ /// Gets the search scope, as specified using an array of locations to search.
+ /// The search will include this location and all its subcontainers. The default is FOLDERID_Profile
+ /// </summary>
+ public IEnumerable<string> SearchScopePaths
+ {
+ get
+ {
+ foreach (var scopePath in searchScopePaths)
+ {
+ yield return scopePath;
+ }
+ }
+ private set
+ {
+ searchScopePaths = value.ToArray();
+ List<IShellItem> shellItems = new List<IShellItem>(searchScopePaths.Length);
+
+ Guid shellItemGuid = new Guid(ShellIIDGuid.IShellItem);
+ Guid shellItemArrayGuid = new Guid(ShellIIDGuid.IShellItemArray);
+
+ // Create IShellItem for all the scopes we were given
+ foreach (string path in searchScopePaths)
+ {
+ IShellItem scopeShellItem;
+
+ int hr = ShellNativeMethods.SHCreateItemFromParsingName(path, IntPtr.Zero, ref shellItemGuid, out scopeShellItem);
+
+ if (CoreErrorHelper.Succeeded(hr)) { shellItems.Add(scopeShellItem); }
+ }
+
+ // Create a new IShellItemArray
+ IShellItemArray scopeShellItemArray = new ShellItemArray(shellItems.ToArray());
+
+ // Set the scope on the native ISearchFolderItemFactory
+ HResult hResult = NativeSearchFolderItemFactory.SetScope(scopeShellItemArray);
+
+ if (!CoreErrorHelper.Succeeded((int)hResult)) { throw new ShellException((int)hResult); }
+ }
+ }
+
+ internal override IShellItem NativeShellItem
+ {
+ get
+ {
+ Guid guid = new Guid(ShellIIDGuid.IShellItem);
+
+ if (NativeSearchFolderItemFactory == null) { return null; }
+
+ IShellItem shellItem;
+ int hr = NativeSearchFolderItemFactory.GetShellItem(ref guid, out shellItem);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+
+ return shellItem;
+ }
+ }
+
+
+ /// <summary>
+ /// Creates a list of stack keys, as specified. If this method is not called,
+ /// by default the folder will not be stacked.
+ /// </summary>
+ /// <param name="canonicalNames">Array of canonical names for properties on which the folder is stacked.</param>
+ /// <exception cref="System.ArgumentException">If one of the given canonical names is invalid.</exception>
+ public void SetStacks(params string[] canonicalNames)
+ {
+ if (canonicalNames == null) { throw new ArgumentNullException("canonicalNames"); }
+ List<PropertyKey> propertyKeyList = new List<PropertyKey>();
+
+ foreach (string prop in canonicalNames)
+ {
+ // Get the PropertyKey using the canonicalName passed in
+ PropertyKey propKey;
+ int result = PropertySystemNativeMethods.PSGetPropertyKeyFromName(prop, out propKey);
+
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new ArgumentException(LocalizedMessages.ShellInvalidCanonicalName, "canonicalNames", Marshal.GetExceptionForHR(result));
+ }
+
+ propertyKeyList.Add(propKey);
+ }
+
+ if (propertyKeyList.Count > 0)
+ {
+ SetStacks(propertyKeyList.ToArray());
+ }
+ }
+
+ /// <summary>
+ /// Creates a list of stack keys, as specified. If this method is not called,
+ /// by default the folder will not be stacked.
+ /// </summary>
+ /// <param name="propertyKeys">Array of property keys on which the folder is stacked.</param>
+ public void SetStacks(params PropertyKey[] propertyKeys)
+ {
+ if (propertyKeys != null && propertyKeys.Length > 0)
+ {
+ NativeSearchFolderItemFactory.SetStacks((uint)propertyKeys.Length, propertyKeys);
+ }
+ }
+
+ /// <summary>
+ /// Sets the search folder display name.
+ /// </summary>
+ public void SetDisplayName(string displayName)
+ {
+ HResult hr = NativeSearchFolderItemFactory.SetDisplayName(displayName);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+
+
+
+ /// <summary>
+ /// Sets the search folder icon size.
+ /// The default settings are based on the FolderTypeID which is set by the
+ /// SearchFolder::SetFolderTypeID method.
+ /// </summary>
+ public void SetIconSize(int value)
+ {
+ HResult hr = NativeSearchFolderItemFactory.SetIconSize(value);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+
+ /// <summary>
+ /// Sets a search folder type ID, as specified.
+ /// </summary>
+ public void SetFolderTypeID(Guid value)
+ {
+ HResult hr = NativeSearchFolderItemFactory.SetFolderTypeID(value);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+
+ /// <summary>
+ /// Sets folder logical view mode. The default settings are based on the FolderTypeID which is set
+ /// by the SearchFolder::SetFolderTypeID method.
+ /// </summary>
+ /// <param name="mode">The logical view mode to set.</param>
+ public void SetFolderLogicalViewMode(FolderLogicalViewMode mode)
+ {
+ HResult hr = NativeSearchFolderItemFactory.SetFolderLogicalViewMode(mode);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+
+ /// <summary>
+ /// Creates a new column list whose columns are all visible,
+ /// given an array of PropertyKey structures. The default is based on FolderTypeID.
+ /// </summary>
+ /// <remarks>This property may not work correctly with the ExplorerBrowser control.</remarks>
+ public void SetVisibleColumns(PropertyKey[] value)
+ {
+ HResult hr = NativeSearchFolderItemFactory.SetVisibleColumns(value == null ? 0 : (uint)value.Length, value);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(LocalizedMessages.ShellSearchFolderUnableToSetVisibleColumns, Marshal.GetExceptionForHR((int)hr));
+ }
+ }
+
+ /// <summary>
+ /// Creates a list of sort column directions, as specified.
+ /// </summary>
+ /// <remarks>This property may not work correctly with the ExplorerBrowser control.</remarks>
+ public void SortColumns(SortColumn[] value)
+ {
+ HResult hr = NativeSearchFolderItemFactory.SetSortColumns(value == null ? 0 : (uint)value.Length, value);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(LocalizedMessages.ShellSearchFolderUnableToSetSortColumns, Marshal.GetExceptionForHR((int)hr));
+ }
+ }
+
+ /// <summary>
+ /// Sets a group column, as specified. If no group column is specified, no grouping occurs.
+ /// </summary>
+ /// <remarks>This property may not work correctly with the ExplorerBrowser control.</remarks>
+ public void SetGroupColumn(PropertyKey propertyKey)
+ {
+ HResult hr = NativeSearchFolderItemFactory.SetGroupColumn(ref propertyKey);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnail.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnail.cs
new file mode 100644
index 0000000000..f16409daab
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnail.cs
@@ -0,0 +1,357 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Drawing;
+using System.Runtime.InteropServices;
+using System.Windows.Interop;
+using System.Windows.Media.Imaging;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a thumbnail or an icon for a ShellObject.
+ /// </summary>
+ public class ShellThumbnail
+ {
+ #region Private members
+
+ /// <summary>
+ /// Native shellItem
+ /// </summary>
+ private IShellItem shellItemNative;
+
+ /// <summary>
+ /// Internal member to keep track of the current size
+ /// </summary>
+ private System.Windows.Size currentSize = new System.Windows.Size(256, 256);
+
+ #endregion
+
+ #region Constructors
+
+ /// <summary>
+ /// Internal constructor that takes in a parent ShellObject.
+ /// </summary>
+ /// <param name="shellObject"></param>
+ internal ShellThumbnail(ShellObject shellObject)
+ {
+ if (shellObject == null || shellObject.NativeShellItem == null)
+ {
+ throw new ArgumentNullException("shellObject");
+ }
+
+ shellItemNative = shellObject.NativeShellItem;
+ }
+
+ #endregion
+
+ #region Public properties
+
+ /// <summary>
+ /// Gets or sets the default size of the thumbnail or icon. The default is 32x32 pixels for icons and
+ /// 256x256 pixels for thumbnails.
+ /// </summary>
+ /// <remarks>If the size specified is larger than the maximum size of 1024x1024 for thumbnails and 256x256 for icons,
+ /// an <see cref="System.ArgumentOutOfRangeException"/> is thrown.
+ /// </remarks>
+ public System.Windows.Size CurrentSize
+ {
+ get { return currentSize; }
+ set
+ {
+ // Check for 0; negative number check not required as System.Windows.Size only allows positive numbers.
+ if (value.Height == 0 || value.Width == 0)
+ {
+ throw new System.ArgumentOutOfRangeException("value", LocalizedMessages.ShellThumbnailSizeCannotBe0);
+ }
+
+ System.Windows.Size size = (FormatOption == ShellThumbnailFormatOption.IconOnly) ?
+ DefaultIconSize.Maximum : DefaultThumbnailSize.Maximum;
+
+ if (value.Height > size.Height || value.Width > size.Width)
+ {
+ throw new System.ArgumentOutOfRangeException("value",
+ string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.ShellThumbnailCurrentSizeRange, size.ToString()));
+ }
+
+ currentSize = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon image in <see cref="System.Drawing.Bitmap"/> format.
+ /// Null is returned if the ShellObject does not have a thumbnail or icon image.
+ /// </summary>
+ public Bitmap Bitmap { get { return GetBitmap(CurrentSize); } }
+
+ /// <summary>
+ /// Gets the thumbnail or icon image in <see cref="System.Windows.Media.Imaging.BitmapSource"/> format.
+ /// Null is returned if the ShellObject does not have a thumbnail or icon image.
+ /// </summary>
+ public BitmapSource BitmapSource { get { return GetBitmapSource(CurrentSize); } }
+
+ /// <summary>
+ /// Gets the thumbnail or icon image in <see cref="System.Drawing.Icon"/> format.
+ /// Null is returned if the ShellObject does not have a thumbnail or icon image.
+ /// </summary>
+ public Icon Icon { get { return Icon.FromHandle(Bitmap.GetHicon()); } }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in small size and <see cref="System.Drawing.Bitmap"/> format.
+ /// </summary>
+ public Bitmap SmallBitmap
+ {
+ get
+ {
+ return GetBitmap(DefaultIconSize.Small, DefaultThumbnailSize.Small);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in small size and <see cref="System.Windows.Media.Imaging.BitmapSource"/> format.
+ /// </summary>
+ public BitmapSource SmallBitmapSource
+ {
+ get
+ {
+ return GetBitmapSource(DefaultIconSize.Small, DefaultThumbnailSize.Small);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in small size and <see cref="System.Drawing.Icon"/> format.
+ /// </summary>
+ public Icon SmallIcon { get { return Icon.FromHandle(SmallBitmap.GetHicon()); } }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in Medium size and <see cref="System.Drawing.Bitmap"/> format.
+ /// </summary>
+ public Bitmap MediumBitmap
+ {
+ get
+ {
+ return GetBitmap(DefaultIconSize.Medium, DefaultThumbnailSize.Medium);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in medium size and <see cref="System.Windows.Media.Imaging.BitmapSource"/> format.
+ /// </summary>
+ public BitmapSource MediumBitmapSource
+ {
+ get
+ {
+ return GetBitmapSource(DefaultIconSize.Medium, DefaultThumbnailSize.Medium);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in Medium size and <see cref="System.Drawing.Icon"/> format.
+ /// </summary>
+ public Icon MediumIcon { get { return Icon.FromHandle(MediumBitmap.GetHicon()); } }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in large size and <see cref="System.Drawing.Bitmap"/> format.
+ /// </summary>
+ public Bitmap LargeBitmap
+ {
+ get
+ {
+ return GetBitmap(DefaultIconSize.Large, DefaultThumbnailSize.Large);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in large size and <see cref="System.Windows.Media.Imaging.BitmapSource"/> format.
+ /// </summary>
+ public BitmapSource LargeBitmapSource
+ {
+ get
+ {
+ return GetBitmapSource(DefaultIconSize.Large, DefaultThumbnailSize.Large);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in Large size and <see cref="System.Drawing.Icon"/> format.
+ /// </summary>
+ public Icon LargeIcon { get { return Icon.FromHandle(LargeBitmap.GetHicon()); } }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in extra large size and <see cref="System.Drawing.Bitmap"/> format.
+ /// </summary>
+ public Bitmap ExtraLargeBitmap
+ {
+ get
+ {
+ return GetBitmap(DefaultIconSize.ExtraLarge, DefaultThumbnailSize.ExtraLarge);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in Extra Large size and <see cref="System.Windows.Media.Imaging.BitmapSource"/> format.
+ /// </summary>
+ public BitmapSource ExtraLargeBitmapSource
+ {
+ get
+ {
+ return GetBitmapSource(DefaultIconSize.ExtraLarge, DefaultThumbnailSize.ExtraLarge);
+ }
+ }
+
+ /// <summary>
+ /// Gets the thumbnail or icon in Extra Large size and <see cref="System.Drawing.Icon"/> format.
+ /// </summary>
+ public Icon ExtraLargeIcon { get { return Icon.FromHandle(ExtraLargeBitmap.GetHicon()); } }
+
+ /// <summary>
+ /// Gets or sets a value that determines if the current retrieval option is cache or extract, cache only, or from memory only.
+ /// The default is cache or extract.
+ /// </summary>
+ public ShellThumbnailRetrievalOption RetrievalOption { get; set; }
+
+ private ShellThumbnailFormatOption formatOption = ShellThumbnailFormatOption.Default;
+ /// <summary>
+ /// Gets or sets a value that determines if the current format option is thumbnail or icon, thumbnail only, or icon only.
+ /// The default is thumbnail or icon.
+ /// </summary>
+ public ShellThumbnailFormatOption FormatOption
+ {
+ get { return formatOption; }
+ set
+ {
+ formatOption = value;
+
+ // Do a similar check as we did in CurrentSize property setter,
+ // If our mode is IconOnly, then our max is defined by DefaultIconSize.Maximum. We should make sure
+ // our CurrentSize is within this max range
+ if (FormatOption == ShellThumbnailFormatOption.IconOnly
+ && (CurrentSize.Height > DefaultIconSize.Maximum.Height || CurrentSize.Width > DefaultIconSize.Maximum.Width))
+ {
+ CurrentSize = DefaultIconSize.Maximum;
+ }
+ }
+
+ }
+
+ /// <summary>
+ /// Gets or sets a value that determines if the user can manually stretch the returned image.
+ /// The default value is false.
+ /// </summary>
+ /// <remarks>
+ /// For example, if the caller passes in 80x80 a 96x96 thumbnail could be returned.
+ /// This could be used as a performance optimization if the caller will need to stretch
+ /// the image themselves anyway. Note that the Shell implementation performs a GDI stretch blit.
+ /// If the caller wants a higher quality image stretch, they should pass this flag and do it themselves.
+ /// </remarks>
+ public bool AllowBiggerSize { get; set; }
+
+ #endregion
+
+ #region Private Methods
+
+ private ShellNativeMethods.SIIGBF CalculateFlags()
+ {
+ ShellNativeMethods.SIIGBF flags = 0x0000;
+
+ if (AllowBiggerSize)
+ {
+ flags |= ShellNativeMethods.SIIGBF.BiggerSizeOk;
+ }
+
+ if (RetrievalOption == ShellThumbnailRetrievalOption.CacheOnly)
+ {
+ flags |= ShellNativeMethods.SIIGBF.InCacheOnly;
+ }
+ else if (RetrievalOption == ShellThumbnailRetrievalOption.MemoryOnly)
+ {
+ flags |= ShellNativeMethods.SIIGBF.MemoryOnly;
+ }
+
+ if (FormatOption == ShellThumbnailFormatOption.IconOnly)
+ {
+ flags |= ShellNativeMethods.SIIGBF.IconOnly;
+ }
+ else if (FormatOption == ShellThumbnailFormatOption.ThumbnailOnly)
+ {
+ flags |= ShellNativeMethods.SIIGBF.ThumbnailOnly;
+ }
+
+ return flags;
+ }
+
+ private IntPtr GetHBitmap(System.Windows.Size size)
+ {
+ IntPtr hbitmap = IntPtr.Zero;
+
+ // Create a size structure to pass to the native method
+ CoreNativeMethods.Size nativeSIZE = new CoreNativeMethods.Size();
+ nativeSIZE.Width = Convert.ToInt32(size.Width);
+ nativeSIZE.Height = Convert.ToInt32(size.Height);
+
+ // Use IShellItemImageFactory to get an icon
+ // Options passed in: Resize to fit
+ HResult hr = ((IShellItemImageFactory)shellItemNative).GetImage(nativeSIZE, CalculateFlags(), out hbitmap);
+
+ if (hr == HResult.Ok) { return hbitmap; }
+ else if ((uint)hr == 0x8004B200 && FormatOption == ShellThumbnailFormatOption.ThumbnailOnly)
+ {
+ // Thumbnail was requested, but this ShellItem doesn't have a thumbnail.
+ throw new InvalidOperationException(LocalizedMessages.ShellThumbnailDoesNotHaveThumbnail, Marshal.GetExceptionForHR((int)hr));
+ }
+ else if ((uint)hr == 0x80040154) // REGDB_E_CLASSNOTREG
+ {
+ throw new NotSupportedException(LocalizedMessages.ShellThumbnailNoHandler, Marshal.GetExceptionForHR((int)hr));
+ }
+
+ throw new ShellException(hr);
+ }
+
+ private Bitmap GetBitmap(System.Windows.Size iconOnlySize, System.Windows.Size thumbnailSize)
+ {
+ return GetBitmap(FormatOption == ShellThumbnailFormatOption.IconOnly ? iconOnlySize : thumbnailSize);
+ }
+
+ private Bitmap GetBitmap(System.Windows.Size size)
+ {
+ IntPtr hBitmap = GetHBitmap(size);
+
+ // return a System.Drawing.Bitmap from the hBitmap
+ Bitmap returnValue = Bitmap.FromHbitmap(hBitmap);
+
+ // delete HBitmap to avoid memory leaks
+ ShellNativeMethods.DeleteObject(hBitmap);
+
+ return returnValue;
+ }
+
+ private BitmapSource GetBitmapSource(System.Windows.Size iconOnlySize, System.Windows.Size thumbnailSize)
+ {
+ return GetBitmapSource(FormatOption == ShellThumbnailFormatOption.IconOnly ? iconOnlySize : thumbnailSize);
+ }
+
+ private BitmapSource GetBitmapSource(System.Windows.Size size)
+ {
+ IntPtr hBitmap = GetHBitmap(size);
+
+ // return a System.Media.Imaging.BitmapSource
+ // Use interop to create a BitmapSource from hBitmap.
+ BitmapSource returnValue = Imaging.CreateBitmapSourceFromHBitmap(
+ hBitmap,
+ IntPtr.Zero,
+ System.Windows.Int32Rect.Empty,
+ BitmapSizeOptions.FromEmptyOptions());
+
+ // delete HBitmap to avoid memory leaks
+ ShellNativeMethods.DeleteObject(hBitmap);
+
+ return returnValue;
+ }
+
+ #endregion
+
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnailEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnailEnums.cs
new file mode 100644
index 0000000000..e0abd3660f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/ShellThumbnailEnums.cs
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents the different retrieval options for the thumbnail or icon,
+ /// such as extracting the thumbnail or icon from a file,
+ /// from the cache only, or from memory only.
+ /// </summary>
+ public enum ShellThumbnailRetrievalOption
+ {
+ /// <summary>
+ /// The default behavior loads a thumbnail. If there is no thumbnail for the current ShellItem,
+ /// the icon is retrieved. The thumbnail or icon is extracted if it is not currently cached.
+ /// </summary>
+ Default,
+
+ /// <summary>
+ /// The CacheOnly behavior returns a cached thumbnail if it is available. Allows access to the disk,
+ /// but only to retrieve a cached item. If no cached thumbnail is available, a cached per-instance icon is returned but
+ /// a thumbnail or icon is not extracted.
+ /// </summary>
+ CacheOnly = ShellNativeMethods.SIIGBF.InCacheOnly,
+
+ /// <summary>
+ /// The MemoryOnly behavior returns the item only if it is in memory. The disk is not accessed even if the item is cached.
+ /// Note that this only returns an already-cached icon and can fall back to a per-class icon if
+ /// an item has a per-instance icon that has not been cached yet. Retrieving a thumbnail,
+ /// even if it is cached, always requires the disk to be accessed, so this method should not be
+ /// called from the user interface (UI) thread without passing ShellThumbnailCacheOptions.MemoryOnly.
+ /// </summary>
+ MemoryOnly = ShellNativeMethods.SIIGBF.MemoryOnly,
+ }
+
+ /// <summary>
+ /// Represents the format options for the thumbnails and icons.
+ /// </summary>
+ public enum ShellThumbnailFormatOption
+ {
+ /// <summary>
+ /// The default behavior loads a thumbnail. An HBITMAP for the icon of the item is retrieved if there is no thumbnail for the current Shell Item.
+ /// </summary>
+ Default,
+
+ /// <summary>
+ /// The ThumbnailOnly behavior returns only the thumbnails, never the icon. Note that not all items have thumbnails
+ /// so ShellThumbnailFormatOption.ThumbnailOnly can fail in these cases.
+ /// </summary>
+ ThumbnailOnly = ShellNativeMethods.SIIGBF.ThumbnailOnly,
+
+ /// <summary>
+ /// The IconOnly behavior returns only the icon, never the thumbnail.
+ /// </summary>
+ IconOnly = ShellNativeMethods.SIIGBF.IconOnly,
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SortColumn.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SortColumn.cs
new file mode 100644
index 0000000000..0a6da2140a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Common/SortColumn.cs
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Stores information about how to sort a column that is displayed in the folder view.
+ /// </summary>
+ [StructLayout(LayoutKind.Sequential)]
+ public struct SortColumn
+ {
+
+ /// <summary>
+ /// Creates a sort column with the specified direction for the given property.
+ /// </summary>
+ /// <param name="propertyKey">Property key for the property that the user will sort.</param>
+ /// <param name="direction">The direction in which the items are sorted.</param>
+ public SortColumn(PropertyKey propertyKey, SortDirection direction)
+ : this()
+ {
+ this.propertyKey = propertyKey;
+ this.direction = direction;
+ }
+
+ /// <summary>
+ /// The ID of the column by which the user will sort. A PropertyKey structure.
+ /// For example, for the "Name" column, the property key is PKEY_ItemNameDisplay or
+ /// <see cref="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties.System.ItemName"/>.
+ /// </summary>
+ public PropertyKey PropertyKey { get { return propertyKey; } set { propertyKey = value; } }
+ private PropertyKey propertyKey;
+
+ /// <summary>
+ /// The direction in which the items are sorted.
+ /// </summary>
+ public SortDirection Direction { get { return direction; } set { direction = value; } }
+ private SortDirection direction;
+
+
+ /// <summary>
+ /// Implements the == (equality) operator.
+ /// </summary>
+ /// <param name="col1">First object to compare.</param>
+ /// <param name="col2">Second object to compare.</param>
+ /// <returns>True if col1 equals col2; false otherwise.</returns>
+ public static bool operator ==(SortColumn col1, SortColumn col2)
+ {
+ return (col1.direction == col2.direction) &&
+ (col1.propertyKey == col2.propertyKey);
+ }
+
+ /// <summary>
+ /// Implements the != (unequality) operator.
+ /// </summary>
+ /// <param name="col1">First object to compare.</param>
+ /// <param name="col2">Second object to compare.</param>
+ /// <returns>True if col1 does not equals col1; false otherwise.</returns>
+ public static bool operator !=(SortColumn col1, SortColumn col2)
+ {
+ return !(col1 == col2);
+ }
+
+ /// <summary>
+ /// Determines if this object is equal to another.
+ /// </summary>
+ /// <param name="obj">The object to compare</param>
+ /// <returns>Returns true if the objects are equal; false otherwise.</returns>
+ public override bool Equals(object obj)
+ {
+ if (obj == null || obj.GetType() != typeof(SortColumn)) { return false; }
+ return (this == (SortColumn)obj);
+ }
+
+ /// <summary>
+ /// Generates a nearly unique hashcode for this structure.
+ /// </summary>
+ /// <returns>A hash code.</returns>
+ public override int GetHashCode()
+ {
+ int hash = this.direction.GetHashCode();
+ hash = hash * 31 + this.propertyKey.GetHashCode();
+ return hash;
+ }
+
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs
new file mode 100644
index 0000000000..149f9240c4
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs
@@ -0,0 +1,1349 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+using System.Windows;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using Microsoft.WindowsAPICodePack.Controls;
+using Microsoft.WindowsAPICodePack.Dialogs.Controls;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+using System.Collections.Generic;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Defines the abstract base class for the common file dialogs.
+ /// </summary>
+ [ContentProperty("Controls")]
+ public abstract class CommonFileDialog : IDialogControlHost, IDisposable
+ {
+ /// <summary>
+ /// The collection of names selected by the user.
+ /// </summary>
+ protected IEnumerable<string> FileNameCollection
+ {
+ get
+ {
+ foreach (string name in filenames)
+ {
+ yield return name;
+ }
+ }
+ }
+ private Collection<string> filenames;
+ internal readonly Collection<IShellItem> items;
+ internal DialogShowState showState = DialogShowState.PreShow;
+
+ private IFileDialog nativeDialog;
+ private IFileDialogCustomize customize;
+ private NativeDialogEventSink nativeEventSink;
+ private bool? canceled;
+ private bool resetSelections;
+ private IntPtr parentWindow = IntPtr.Zero;
+
+ private bool filterSet; // filters can only be set once
+
+ #region Constructors
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ protected CommonFileDialog()
+ {
+ if (!CoreHelpers.RunningOnVista)
+ {
+ throw new PlatformNotSupportedException(LocalizedMessages.CommonFileDialogRequiresVista);
+ }
+
+ filenames = new Collection<string>();
+ filters = new CommonFileDialogFilterCollection();
+ items = new Collection<IShellItem>();
+ controls = new CommonFileDialogControlCollection<CommonFileDialogControl>(this);
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified title.
+ /// </summary>
+ /// <param name="title">The title to display in the dialog.</param>
+ protected CommonFileDialog(string title)
+ : this()
+ {
+ this.title = title;
+ }
+
+ #endregion
+
+ // Template method to allow derived dialog to create actual
+ // specific COM coclass (e.g. FileOpenDialog or FileSaveDialog).
+ internal abstract void InitializeNativeFileDialog();
+ internal abstract IFileDialog GetNativeFileDialog();
+ internal abstract void PopulateWithFileNames(Collection<string> names);
+ internal abstract void PopulateWithIShellItems(Collection<IShellItem> shellItems);
+ internal abstract void CleanUpNativeFileDialog();
+ internal abstract ShellNativeMethods.FileOpenOptions GetDerivedOptionFlags(ShellNativeMethods.FileOpenOptions flags);
+
+ #region Public API
+
+ // Events.
+ /// <summary>
+ /// Raised just before the dialog is about to return with a result. Occurs when the user clicks on the Open
+ /// or Save button on a file dialog box.
+ /// </summary>
+ public event CancelEventHandler FileOk;
+ /// <summary>
+ /// Raised just before the user navigates to a new folder.
+ /// </summary>
+ public event EventHandler<CommonFileDialogFolderChangeEventArgs> FolderChanging;
+ /// <summary>
+ /// Raised when the user navigates to a new folder.
+ /// </summary>
+ public event EventHandler FolderChanged;
+ /// <summary>
+ /// Raised when the user changes the selection in the dialog's view.
+ /// </summary>
+ public event EventHandler SelectionChanged;
+ /// <summary>
+ /// Raised when the dialog is opened to notify the application of the initial chosen filetype.
+ /// </summary>
+ public event EventHandler FileTypeChanged;
+ /// <summary>
+ /// Raised when the dialog is opening.
+ /// </summary>
+ public event EventHandler DialogOpening;
+
+ private CommonFileDialogControlCollection<CommonFileDialogControl> controls;
+ /// <summary>
+ /// Gets the collection of controls for the dialog.
+ /// </summary>
+ public CommonFileDialogControlCollection<CommonFileDialogControl> Controls
+ {
+ get { return controls; }
+ }
+
+ private CommonFileDialogFilterCollection filters;
+ /// <summary>
+ /// Gets the filters used by the dialog.
+ /// </summary>
+ public CommonFileDialogFilterCollection Filters
+ {
+ get { return filters; }
+ }
+
+ private string title;
+ /// <summary>
+ /// Gets or sets the dialog title.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Title
+ {
+ get { return title; }
+ set
+ {
+ title = value;
+ if (NativeDialogShowing) { nativeDialog.SetTitle(value); }
+ }
+ }
+
+ // This is the first of many properties that are backed by the FOS_*
+ // bitflag options set with IFileDialog.SetOptions().
+ // SetOptions() fails
+ // if called while dialog is showing (e.g. from a callback).
+ private bool ensureFileExists;
+ /// <summary>
+ /// Gets or sets a value that determines whether the file must exist beforehand.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value. <b>true</b> if the file must exist.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool EnsureFileExists
+ {
+ get { return ensureFileExists; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.EnsureFileExistsCannotBeChanged);
+ ensureFileExists = value;
+ }
+ }
+
+ private bool ensurePathExists;
+ /// <summary>
+ /// Gets or sets a value that specifies whether the returned file must be in an existing folder.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value. <b>true</b> if the file must exist.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool EnsurePathExists
+ {
+ get { return ensurePathExists; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.EnsurePathExistsCannotBeChanged);
+ ensurePathExists = value;
+ }
+ }
+
+ private bool ensureValidNames;
+ /// <summary>Gets or sets a value that determines whether to validate file names.
+ /// </summary>
+ ///<value>A <see cref="System.Boolean"/> value. <b>true </b>to check for situations that would prevent an application from opening the selected file, such as sharing violations or access denied errors.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ ///
+ public bool EnsureValidNames
+ {
+ get { return ensureValidNames; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.EnsureValidNamesCannotBeChanged);
+ ensureValidNames = value;
+ }
+ }
+
+ private bool ensureReadOnly;
+ /// <summary>
+ /// Gets or sets a value that determines whether read-only items are returned.
+ /// Default value for CommonOpenFileDialog is true (allow read-only files) and
+ /// CommonSaveFileDialog is false (don't allow read-only files).
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value. <b>true</b> includes read-only items.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool EnsureReadOnly
+ {
+ get { return ensureReadOnly; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.EnsureReadonlyCannotBeChanged);
+ ensureReadOnly = value;
+ }
+ }
+
+ private bool restoreDirectory;
+ /// <summary>
+ /// Gets or sets a value that determines the restore directory.
+ /// </summary>
+ /// <remarks></remarks>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool RestoreDirectory
+ {
+ get { return restoreDirectory; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.RestoreDirectoryCannotBeChanged);
+ restoreDirectory = value;
+ }
+ }
+
+ private bool showPlacesList = true;
+ /// <summary>
+ /// Gets or sets a value that controls whether
+ /// to show or hide the list of pinned places that
+ /// the user can choose.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value. <b>true</b> if the list is visible; otherwise <b>false</b>.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool ShowPlacesList
+ {
+
+ get { return showPlacesList; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.ShowPlacesListCannotBeChanged);
+ showPlacesList = value;
+ }
+ }
+
+ private bool addToMruList = true;
+ /// <summary>
+ /// Gets or sets a value that controls whether to show or hide the list of places where the user has recently opened or saved items.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool AddToMostRecentlyUsedList
+ {
+ get { return addToMruList; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.AddToMostRecentlyUsedListCannotBeChanged);
+ addToMruList = value;
+ }
+ }
+
+ private bool showHiddenItems;
+ ///<summary>
+ /// Gets or sets a value that controls whether to show hidden items.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.<b>true</b> to show the items; otherwise <b>false</b>.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool ShowHiddenItems
+ {
+ get { return showHiddenItems; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.ShowHiddenItemsCannotBeChanged);
+ showHiddenItems = value;
+ }
+ }
+ private bool allowPropertyEditing;
+ /// <summary>
+ /// Gets or sets a value that controls whether
+ /// properties can be edited.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value. </value>
+ public bool AllowPropertyEditing
+ {
+ get { return allowPropertyEditing; }
+ set { allowPropertyEditing = value; }
+ }
+
+ private bool navigateToShortcut = true;
+ ///<summary>
+ /// Gets or sets a value that controls whether shortcuts should be treated as their target items, allowing an application to open a .lnk file.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value. <b>true</b> indicates that shortcuts should be treated as their targets. </value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be set when the dialog is visible.</exception>
+ public bool NavigateToShortcut
+ {
+ get { return navigateToShortcut; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.NavigateToShortcutCannotBeChanged);
+ navigateToShortcut = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the default file extension to be added to file names. If the value is null
+ /// or string.Empty, the extension is not added to the file names.
+ /// </summary>
+ public string DefaultExtension { get; set; }
+
+ /// <summary>
+ /// Gets the index for the currently selected file type.
+ /// </summary>
+ public int SelectedFileTypeIndex
+ {
+ get
+ {
+ uint fileType;
+
+ if (nativeDialog != null)
+ {
+ nativeDialog.GetFileTypeIndex(out fileType);
+ return (int)fileType;
+ }
+
+ return -1;
+ }
+ }
+
+ /// <summary>
+ /// Tries to set the File(s) Type Combo to match the value in
+ /// 'DefaultExtension'. Only doing this if 'this' is a Save dialog
+ /// as it makes no sense to do this if only Opening a file.
+ /// </summary>
+ ///
+ /// <param name="dialog">The native/IFileDialog instance.</param>
+ ///
+ private void SyncFileTypeComboToDefaultExtension(IFileDialog dialog)
+ {
+ // make sure it's a Save dialog and that there is a default
+ // extension to sync to.
+ if (!(this is CommonSaveFileDialog) || DefaultExtension == null ||
+ filters.Count <= 0)
+ {
+ return;
+ }
+
+ CommonFileDialogFilter filter = null;
+
+ for (uint filtersCounter = 0; filtersCounter < filters.Count; filtersCounter++)
+ {
+ filter = (CommonFileDialogFilter)filters[(int)filtersCounter];
+
+ if (filter.Extensions.Contains(DefaultExtension))
+ {
+ // set the docType combo to match this
+ // extension. property is a 1-based index.
+ dialog.SetFileTypeIndex(filtersCounter + 1);
+
+ // we're done, exit for
+ break;
+ }
+ }
+
+ }
+
+ /// <summary>
+ /// Gets the selected filename.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be used when multiple files are selected.</exception>
+ public string FileName
+ {
+ get
+ {
+ CheckFileNamesAvailable();
+
+ if (filenames.Count > 1)
+ {
+ throw new InvalidOperationException(LocalizedMessages.CommonFileDialogMultipleFiles);
+ }
+
+ string returnFilename = filenames[0];
+
+ // "If extension is a null reference (Nothing in Visual
+ // Basic), the returned string contains the specified
+ // path with its extension removed." Since we do not want
+ // to remove any existing extension, make sure the
+ // DefaultExtension property is NOT null.
+
+ // if we should, and there is one to set...
+ if (!string.IsNullOrEmpty(DefaultExtension))
+ {
+ returnFilename = System.IO.Path.ChangeExtension(returnFilename, DefaultExtension);
+ }
+
+ return returnFilename;
+ }
+ }
+
+ /// <summary>
+ /// Gets the selected item as a ShellObject.
+ /// </summary>
+ /// <value>A <see cref="Microsoft.WindowsAPICodePack.Shell.ShellObject"></see> object.</value>
+ /// <exception cref="System.InvalidOperationException">This property cannot be used when multiple files
+ /// are selected.</exception>
+ public ShellObject FileAsShellObject
+ {
+ get
+ {
+ CheckFileItemsAvailable();
+
+ if (items.Count > 1)
+ {
+ throw new InvalidOperationException(LocalizedMessages.CommonFileDialogMultipleItems);
+ }
+
+ if (items.Count == 0) { return null; }
+
+ return ShellObjectFactory.Create(items[0]);
+ }
+ }
+
+ /// <summary>
+ /// Adds a location, such as a folder, library, search connector, or known folder, to the list of
+ /// places available for a user to open or save items. This method actually adds an item
+ /// to the <b>Favorite Links</b> or <b>Places</b> section of the Open/Save dialog.
+ /// </summary>
+ /// <param name="place">The item to add to the places list.</param>
+ /// <param name="location">One of the enumeration values that indicates placement of the item in the list.</param>
+ public void AddPlace(ShellContainer place, FileDialogAddPlaceLocation location)
+ {
+ if (place == null)
+ {
+ throw new ArgumentNullException("place");
+ }
+
+ // Get our native dialog
+ if (nativeDialog == null)
+ {
+ InitializeNativeFileDialog();
+ nativeDialog = GetNativeFileDialog();
+ }
+
+ // Add the shellitem to the places list
+ if (nativeDialog != null)
+ {
+ nativeDialog.AddPlace(place.NativeShellItem, (ShellNativeMethods.FileDialogAddPlacement)location);
+ }
+ }
+
+ /// <summary>
+ /// Adds a location (folder, library, search connector, known folder) to the list of
+ /// places available for the user to open or save items. This method actually adds an item
+ /// to the <b>Favorite Links</b> or <b>Places</b> section of the Open/Save dialog. Overload method
+ /// takes in a string for the path.
+ /// </summary>
+ /// <param name="path">The item to add to the places list.</param>
+ /// <param name="location">One of the enumeration values that indicates placement of the item in the list.</param>
+ public void AddPlace(string path, FileDialogAddPlaceLocation location)
+ {
+ if (string.IsNullOrEmpty(path)) { throw new ArgumentNullException("path"); }
+
+ // Get our native dialog
+ if (nativeDialog == null)
+ {
+ InitializeNativeFileDialog();
+ nativeDialog = GetNativeFileDialog();
+ }
+
+ // Create a native shellitem from our path
+ IShellItem2 nativeShellItem;
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+ int retCode = ShellNativeMethods.SHCreateItemFromParsingName(path, IntPtr.Zero, ref guid, out nativeShellItem);
+
+ if (!CoreErrorHelper.Succeeded(retCode))
+ {
+ throw new CommonControlException(LocalizedMessages.CommonFileDialogCannotCreateShellItem, Marshal.GetExceptionForHR(retCode));
+ }
+
+ // Add the shellitem to the places list
+ if (nativeDialog != null)
+ {
+ nativeDialog.AddPlace(nativeShellItem, (ShellNativeMethods.FileDialogAddPlacement)location);
+ }
+ }
+
+ // Null = use default directory.
+ private string initialDirectory;
+ /// <summary>
+ /// Gets or sets the initial directory displayed when the dialog is shown.
+ /// A null or empty string indicates that the dialog is using the default directory.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string InitialDirectory
+ {
+ get { return initialDirectory; }
+ set { initialDirectory = value; }
+ }
+
+ private ShellContainer initialDirectoryShellContainer;
+ /// <summary>
+ /// Gets or sets a location that is always selected when the dialog is opened,
+ /// regardless of previous user action. A null value implies that the dialog is using
+ /// the default location.
+ /// </summary>
+ public ShellContainer InitialDirectoryShellContainer
+ {
+ get { return initialDirectoryShellContainer; }
+ set { initialDirectoryShellContainer = value; }
+ }
+
+ private string defaultDirectory;
+ /// <summary>
+ /// Sets the folder and path used as a default if there is not a recently used folder value available.
+ /// </summary>
+ public string DefaultDirectory
+ {
+ get { return defaultDirectory; }
+ set { defaultDirectory = value; }
+ }
+
+ private ShellContainer defaultDirectoryShellContainer;
+ /// <summary>
+ /// Sets the location (<see cref="Microsoft.WindowsAPICodePack.Shell.ShellContainer">ShellContainer</see>
+ /// used as a default if there is not a recently used folder value available.
+ /// </summary>
+ public ShellContainer DefaultDirectoryShellContainer
+ {
+ get { return defaultDirectoryShellContainer; }
+ set { defaultDirectoryShellContainer = value; }
+ }
+
+ // Null = use default identifier.
+ private Guid cookieIdentifier;
+ /// <summary>
+ /// Gets or sets a value that enables a calling application
+ /// to associate a GUID with a dialog's persisted state.
+ /// </summary>
+ public Guid CookieIdentifier
+ {
+ get { return cookieIdentifier; }
+ set { cookieIdentifier = value; }
+ }
+
+ /// <summary>
+ /// Displays the dialog.
+ /// </summary>
+ /// <param name="ownerWindowHandle">Window handle of any top-level window that will own the modal dialog box.</param>
+ /// <returns>A <see cref="CommonFileDialogResult"/> object.</returns>
+ public CommonFileDialogResult ShowDialog(IntPtr ownerWindowHandle)
+ {
+ if (ownerWindowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.CommonFileDialogInvalidHandle, "ownerWindowHandle");
+ }
+
+ // Set the parent / owner window
+ parentWindow = ownerWindowHandle;
+
+ // Show the modal dialog
+ return ShowDialog();
+ }
+
+ /// <summary>
+ /// Displays the dialog.
+ /// </summary>
+ /// <param name="window">Top-level WPF window that will own the modal dialog box.</param>
+ /// <returns>A <see cref="CommonFileDialogResult"/> object.</returns>
+ public CommonFileDialogResult ShowDialog(Window window)
+ {
+ if (window == null)
+ {
+ throw new ArgumentNullException("window");
+ }
+
+ // Set the parent / owner window
+ parentWindow = (new WindowInteropHelper(window)).Handle;
+
+ // Show the modal dialog
+ return ShowDialog();
+ }
+
+ /// <summary>
+ /// Displays the dialog.
+ /// </summary>
+ /// <returns>A <see cref="CommonFileDialogResult"/> object.</returns>
+ public CommonFileDialogResult ShowDialog()
+ {
+ CommonFileDialogResult result;
+
+ // Fetch derived native dialog (i.e. Save or Open).
+ InitializeNativeFileDialog();
+ nativeDialog = GetNativeFileDialog();
+
+ // Apply outer properties to native dialog instance.
+ ApplyNativeSettings(nativeDialog);
+ InitializeEventSink(nativeDialog);
+
+ // Clear user data if Reset has been called
+ // since the last show.
+ if (resetSelections)
+ {
+ resetSelections = false;
+ }
+
+ // Show dialog.
+ showState = DialogShowState.Showing;
+ int hresult = nativeDialog.Show(parentWindow);
+ showState = DialogShowState.Closed;
+
+ // Create return information.
+ if (CoreErrorHelper.Matches(hresult, (int)HResult.Win32ErrorCanceled))
+ {
+ canceled = true;
+ result = CommonFileDialogResult.Cancel;
+ filenames.Clear();
+ }
+ else
+ {
+ canceled = false;
+ result = CommonFileDialogResult.Ok;
+
+ // Populate filenames if user didn't cancel.
+ PopulateWithFileNames(filenames);
+
+ // Populate the actual IShellItems
+ PopulateWithIShellItems(items);
+ }
+
+ return result;
+ }
+ /// <summary>
+ /// Removes the current selection.
+ /// </summary>
+ public void ResetUserSelections()
+ {
+ resetSelections = true;
+ }
+
+ /// <summary>
+ /// Default file name.
+ /// </summary>
+ public string DefaultFileName { get; set; }
+
+ #endregion
+
+ #region Configuration
+
+ private void InitializeEventSink(IFileDialog nativeDlg)
+ {
+ // Check if we even need to have a sink.
+ if (FileOk != null
+ || FolderChanging != null
+ || FolderChanged != null
+ || SelectionChanged != null
+ || FileTypeChanged != null
+ || DialogOpening != null
+ || (controls != null && controls.Count > 0))
+ {
+ uint cookie;
+ nativeEventSink = new NativeDialogEventSink(this);
+ nativeDlg.Advise(nativeEventSink, out cookie);
+ nativeEventSink.Cookie = cookie;
+ }
+ }
+
+ private void ApplyNativeSettings(IFileDialog dialog)
+ {
+ Debug.Assert(dialog != null, "No dialog instance to configure");
+
+ if (parentWindow == IntPtr.Zero)
+ {
+ if (System.Windows.Application.Current != null && System.Windows.Application.Current.MainWindow != null)
+ {
+ parentWindow = (new WindowInteropHelper(System.Windows.Application.Current.MainWindow)).Handle;
+ }
+ else if (System.Windows.Forms.Application.OpenForms.Count > 0)
+ {
+ parentWindow = System.Windows.Forms.Application.OpenForms[0].Handle;
+ }
+ }
+
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+
+ // Apply option bitflags.
+ dialog.SetOptions(CalculateNativeDialogOptionFlags());
+
+ // Other property sets.
+ if (title != null) { dialog.SetTitle(title); }
+
+ if (initialDirectoryShellContainer != null)
+ {
+ dialog.SetFolder(((ShellObject)initialDirectoryShellContainer).NativeShellItem);
+ }
+
+ if (defaultDirectoryShellContainer != null)
+ {
+ dialog.SetDefaultFolder(((ShellObject)defaultDirectoryShellContainer).NativeShellItem);
+ }
+
+ if (!string.IsNullOrEmpty(initialDirectory))
+ {
+ // Create a native shellitem from our path
+ IShellItem2 initialDirectoryShellItem;
+ ShellNativeMethods.SHCreateItemFromParsingName(initialDirectory, IntPtr.Zero, ref guid, out initialDirectoryShellItem);
+
+ // If we get a real shell item back,
+ // then use that as the initial folder - otherwise,
+ // we'll allow the dialog to revert to the default folder.
+ // (OR should we fail loudly?)
+ if (initialDirectoryShellItem != null)
+ dialog.SetFolder(initialDirectoryShellItem);
+ }
+
+ if (!string.IsNullOrEmpty(defaultDirectory))
+ {
+ // Create a native shellitem from our path
+ IShellItem2 defaultDirectoryShellItem;
+ ShellNativeMethods.SHCreateItemFromParsingName(defaultDirectory, IntPtr.Zero, ref guid, out defaultDirectoryShellItem);
+
+ // If we get a real shell item back,
+ // then use that as the initial folder - otherwise,
+ // we'll allow the dialog to revert to the default folder.
+ // (OR should we fail loudly?)
+ if (defaultDirectoryShellItem != null)
+ {
+ dialog.SetDefaultFolder(defaultDirectoryShellItem);
+ }
+ }
+
+ // Apply file type filters, if available.
+ if (filters.Count > 0 && !filterSet)
+ {
+ dialog.SetFileTypes(
+ (uint)filters.Count,
+ filters.GetAllFilterSpecs());
+
+ filterSet = true;
+
+ SyncFileTypeComboToDefaultExtension(dialog);
+ }
+
+ if (cookieIdentifier != Guid.Empty)
+ {
+ dialog.SetClientGuid(ref cookieIdentifier);
+ }
+
+ // Set the default extension
+ if (!string.IsNullOrEmpty(DefaultExtension))
+ {
+ dialog.SetDefaultExtension(DefaultExtension);
+ }
+
+ // Set the default filename
+ dialog.SetFileName(DefaultFileName);
+ }
+
+ private ShellNativeMethods.FileOpenOptions CalculateNativeDialogOptionFlags()
+ {
+ // We start with only a few flags set by default,
+ // then go from there based on the current state
+ // of the managed dialog's property values.
+ ShellNativeMethods.FileOpenOptions flags = ShellNativeMethods.FileOpenOptions.NoTestFileCreate;
+
+ // Call to derived (concrete) dialog to
+ // set dialog-specific flags.
+ flags = GetDerivedOptionFlags(flags);
+
+ // Apply other optional flags.
+ if (ensureFileExists)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.FileMustExist;
+ }
+ if (ensurePathExists)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.PathMustExist;
+ }
+ if (!ensureValidNames)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.NoValidate;
+ }
+ if (!EnsureReadOnly)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.NoReadOnlyReturn;
+ }
+ if (restoreDirectory)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.NoChangeDirectory;
+ }
+ if (!showPlacesList)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.HidePinnedPlaces;
+ }
+ if (!addToMruList)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.DontAddToRecent;
+ }
+ if (showHiddenItems)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.ForceShowHidden;
+ }
+ if (!navigateToShortcut)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.NoDereferenceLinks;
+ }
+ return flags;
+ }
+
+ #endregion
+
+ #region IDialogControlHost Members
+
+ private static void GenerateNotImplementedException()
+ {
+ throw new NotImplementedException(LocalizedMessages.NotImplementedException);
+ }
+
+ /// <summary>
+ /// Returns if change to the colleciton is allowed.
+ /// </summary>
+ /// <returns>true if collection change is allowed.</returns>
+ public virtual bool IsCollectionChangeAllowed()
+ {
+ return true;
+ }
+
+ /// <summary>
+ /// Applies changes to the collection.
+ /// </summary>
+ public virtual void ApplyCollectionChanged()
+ {
+ // Query IFileDialogCustomize interface before adding controls
+ GetCustomizedFileDialog();
+ // Populate all the custom controls and add them to the dialog
+ foreach (CommonFileDialogControl control in controls)
+ {
+ if (!control.IsAdded)
+ {
+ control.HostingDialog = this;
+ control.Attach(customize);
+ control.IsAdded = true;
+ }
+ }
+
+ }
+
+ /// <summary>
+ /// Determines if changes to a specific property are allowed.
+ /// </summary>
+ /// <param name="propertyName">The name of the property.</param>
+ /// <param name="control">The control propertyName applies to.</param>
+ /// <returns>true if the property change is allowed.</returns>
+ public virtual bool IsControlPropertyChangeAllowed(string propertyName, DialogControl control)
+ {
+ CommonFileDialog.GenerateNotImplementedException();
+ return false;
+ }
+
+ /// <summary>
+ /// Called when a control currently in the collection
+ /// has a property changed.
+ /// </summary>
+ /// <param name="propertyName">The name of the property changed.</param>
+ /// <param name="control">The control whose property has changed.</param>
+ public virtual void ApplyControlPropertyChange(string propertyName, DialogControl control)
+ {
+ if (control == null)
+ {
+ throw new ArgumentNullException("control");
+ }
+
+ CommonFileDialogControl dialogControl = null;
+ if (propertyName == "Text")
+ {
+ CommonFileDialogTextBox textBox = control as CommonFileDialogTextBox;
+
+ if (textBox != null)
+ {
+ customize.SetEditBoxText(control.Id, textBox.Text);
+ }
+ else
+ {
+ customize.SetControlLabel(control.Id, textBox.Text);
+ }
+ }
+ else if (propertyName == "Visible" && (dialogControl = control as CommonFileDialogControl) != null)
+ {
+ ShellNativeMethods.ControlState state;
+ customize.GetControlState(control.Id, out state);
+
+ if (dialogControl.Visible == true)
+ {
+ state |= ShellNativeMethods.ControlState.Visible;
+ }
+ else if (dialogControl.Visible == false)
+ {
+ state &= ~ShellNativeMethods.ControlState.Visible;
+ }
+
+ customize.SetControlState(control.Id, state);
+ }
+ else if (propertyName == "Enabled" && dialogControl != null)
+ {
+ ShellNativeMethods.ControlState state;
+ customize.GetControlState(control.Id, out state);
+
+ if (dialogControl.Enabled == true)
+ {
+ state |= ShellNativeMethods.ControlState.Enable;
+ }
+ else if (dialogControl.Enabled == false)
+ {
+ state &= ~ShellNativeMethods.ControlState.Enable;
+ }
+
+ customize.SetControlState(control.Id, state);
+ }
+ else if (propertyName == "SelectedIndex")
+ {
+ CommonFileDialogRadioButtonList list;
+ CommonFileDialogComboBox box;
+
+ if ((list = control as CommonFileDialogRadioButtonList) != null)
+ {
+ customize.SetSelectedControlItem(list.Id, list.SelectedIndex);
+ }
+ else if ((box = control as CommonFileDialogComboBox) != null)
+ {
+ customize.SetSelectedControlItem(box.Id, box.SelectedIndex);
+ }
+ }
+ else if (propertyName == "IsChecked")
+ {
+ CommonFileDialogCheckBox checkBox = control as CommonFileDialogCheckBox;
+ if (checkBox != null)
+ {
+ customize.SetCheckButtonState(checkBox.Id, checkBox.IsChecked);
+ }
+ }
+ }
+
+ #endregion
+
+ #region Helpers
+
+ /// <summary>
+ /// Ensures that the user has selected one or more files.
+ /// </summary>
+ /// <permission cref="System.InvalidOperationException">
+ /// The dialog has not been dismissed yet or the dialog was cancelled.
+ /// </permission>
+ protected void CheckFileNamesAvailable()
+ {
+ if (showState != DialogShowState.Closed)
+ {
+ throw new InvalidOperationException(LocalizedMessages.CommonFileDialogNotClosed);
+ }
+
+ if (canceled.GetValueOrDefault())
+ {
+ throw new InvalidOperationException(LocalizedMessages.CommonFileDialogCanceled);
+ }
+
+ Debug.Assert(filenames.Count != 0,
+ "FileNames empty - shouldn't happen unless dialog canceled or not yet shown.");
+ }
+
+ /// <summary>
+ /// Ensures that the user has selected one or more files.
+ /// </summary>
+ /// <permission cref="System.InvalidOperationException">
+ /// The dialog has not been dismissed yet or the dialog was cancelled.
+ /// </permission>
+ protected void CheckFileItemsAvailable()
+ {
+ if (showState != DialogShowState.Closed)
+ {
+ throw new InvalidOperationException(LocalizedMessages.CommonFileDialogNotClosed);
+ }
+
+ if (canceled.GetValueOrDefault())
+ {
+ throw new InvalidOperationException(LocalizedMessages.CommonFileDialogCanceled);
+ }
+
+ Debug.Assert(items.Count != 0,
+ "Items list empty - shouldn't happen unless dialog canceled or not yet shown.");
+ }
+
+ private bool NativeDialogShowing
+ {
+ get
+ {
+ return (nativeDialog != null)
+ && (showState == DialogShowState.Showing || showState == DialogShowState.Closing);
+ }
+ }
+
+ internal static string GetFileNameFromShellItem(IShellItem item)
+ {
+ string filename = null;
+ IntPtr pszString = IntPtr.Zero;
+ HResult hr = item.GetDisplayName(ShellNativeMethods.ShellItemDesignNameOptions.DesktopAbsoluteParsing, out pszString);
+ if (hr == HResult.Ok && pszString != IntPtr.Zero)
+ {
+ filename = Marshal.PtrToStringAuto(pszString);
+ Marshal.FreeCoTaskMem(pszString);
+ }
+ return filename;
+ }
+
+ internal static IShellItem GetShellItemAt(IShellItemArray array, int i)
+ {
+ IShellItem result;
+ uint index = (uint)i;
+ array.GetItemAt(index, out result);
+ return result;
+ }
+
+ /// <summary>
+ /// Throws an exception when the dialog is showing preventing
+ /// a requested change to a property or the visible set of controls.
+ /// </summary>
+ /// <param name="message">The message to include in the exception.</param>
+ /// <permission cref="System.InvalidOperationException"> The dialog is in an
+ /// invalid state to perform the requested operation.</permission>
+ protected void ThrowIfDialogShowing(string message)
+ {
+ if (NativeDialogShowing)
+ {
+ throw new InvalidOperationException(message);
+ }
+ }
+ /// <summary>
+ /// Get the IFileDialogCustomize interface, preparing to add controls.
+ /// </summary>
+ private void GetCustomizedFileDialog()
+ {
+ if (customize == null)
+ {
+ if (nativeDialog == null)
+ {
+ InitializeNativeFileDialog();
+ nativeDialog = GetNativeFileDialog();
+ }
+ customize = (IFileDialogCustomize)nativeDialog;
+ }
+ }
+ #endregion
+
+ #region CheckChanged handling members
+ /// <summary>
+ /// Raises the <see cref="CommonFileDialog.FileOk"/> event just before the dialog is about to return with a result.
+ /// </summary>
+ /// <param name="e">The event data.</param>
+ protected virtual void OnFileOk(CancelEventArgs e)
+ {
+ CancelEventHandler handler = FileOk;
+ if (handler != null)
+ {
+ handler(this, e);
+ }
+ }
+ /// <summary>
+ /// Raises the <see cref="FolderChanging"/> to stop navigation to a particular location.
+ /// </summary>
+ /// <param name="e">Cancelable event arguments.</param>
+ protected virtual void OnFolderChanging(CommonFileDialogFolderChangeEventArgs e)
+ {
+ EventHandler<CommonFileDialogFolderChangeEventArgs> handler = FolderChanging;
+ if (handler != null)
+ {
+ handler(this, e);
+ }
+ }
+ /// <summary>
+ /// Raises the <see cref="CommonFileDialog.FolderChanged"/> event when the user navigates to a new folder.
+ /// </summary>
+ /// <param name="e">The event data.</param>
+ protected virtual void OnFolderChanged(EventArgs e)
+ {
+ EventHandler handler = FolderChanged;
+ if (handler != null)
+ {
+ handler(this, e);
+ }
+ }
+ /// <summary>
+ /// Raises the <see cref="CommonFileDialog.SelectionChanged"/> event when the user changes the selection in the dialog's view.
+ /// </summary>
+ /// <param name="e">The event data.</param>
+ protected virtual void OnSelectionChanged(EventArgs e)
+ {
+ EventHandler handler = SelectionChanged;
+ if (handler != null)
+ {
+ handler(this, e);
+ }
+ }
+ /// <summary>
+ /// Raises the <see cref="CommonFileDialog.FileTypeChanged"/> event when the dialog is opened to notify the
+ /// application of the initial chosen filetype.
+ /// </summary>
+ /// <param name="e">The event data.</param>
+ protected virtual void OnFileTypeChanged(EventArgs e)
+ {
+ EventHandler handler = FileTypeChanged;
+ if (handler != null)
+ {
+ handler(this, e);
+ }
+ }
+ /// <summary>
+ /// Raises the <see cref="CommonFileDialog.DialogOpening"/> event when the dialog is opened.
+ /// </summary>
+ /// <param name="e">The event data.</param>
+ protected virtual void OnOpening(EventArgs e)
+ {
+ EventHandler handler = DialogOpening;
+ if (handler != null)
+ {
+ handler(this, e);
+ }
+ }
+
+ #endregion
+
+ #region NativeDialogEventSink Nested Class
+
+ private class NativeDialogEventSink : IFileDialogEvents, IFileDialogControlEvents
+ {
+ private CommonFileDialog parent;
+ private bool firstFolderChanged = true;
+
+ public NativeDialogEventSink(CommonFileDialog commonDialog)
+ {
+ this.parent = commonDialog;
+ }
+
+ public uint Cookie { get; set; }
+
+ public HResult OnFileOk(IFileDialog pfd)
+ {
+ CancelEventArgs args = new CancelEventArgs();
+ parent.OnFileOk(args);
+
+ if (!args.Cancel)
+ {
+ // Make sure all custom properties are sync'ed
+ if (parent.Controls != null)
+ {
+ foreach (CommonFileDialogControl control in parent.Controls)
+ {
+ CommonFileDialogTextBox textBox;
+ CommonFileDialogGroupBox groupBox; ;
+
+ if ((textBox = control as CommonFileDialogTextBox) != null)
+ {
+ textBox.SyncValue();
+ textBox.Closed = true;
+ }
+ // Also check subcontrols
+ else if ((groupBox = control as CommonFileDialogGroupBox) != null)
+ {
+ foreach (CommonFileDialogControl subcontrol in groupBox.Items)
+ {
+ CommonFileDialogTextBox textbox = subcontrol as CommonFileDialogTextBox;
+ if (textbox != null)
+ {
+ textbox.SyncValue();
+ textbox.Closed = true;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return (args.Cancel ? HResult.False : HResult.Ok);
+ }
+
+ public HResult OnFolderChanging(IFileDialog pfd, IShellItem psiFolder)
+ {
+ CommonFileDialogFolderChangeEventArgs args = new CommonFileDialogFolderChangeEventArgs(
+ CommonFileDialog.GetFileNameFromShellItem(psiFolder));
+
+ if (!firstFolderChanged) { parent.OnFolderChanging(args); }
+
+ return (args.Cancel ? HResult.False : HResult.Ok);
+ }
+
+ public void OnFolderChange(IFileDialog pfd)
+ {
+ if (firstFolderChanged)
+ {
+ firstFolderChanged = false;
+ parent.OnOpening(EventArgs.Empty);
+ }
+ else
+ {
+ parent.OnFolderChanged(EventArgs.Empty);
+ }
+ }
+
+ public void OnSelectionChange(IFileDialog pfd)
+ {
+ parent.OnSelectionChanged(EventArgs.Empty);
+ }
+
+ public void OnShareViolation(
+ IFileDialog pfd,
+ IShellItem psi,
+ out ShellNativeMethods.FileDialogEventShareViolationResponse pResponse)
+ {
+ // Do nothing: we will ignore share violations,
+ // and don't register
+ // for them, so this method should never be called.
+ pResponse = ShellNativeMethods.FileDialogEventShareViolationResponse.Accept;
+ }
+
+ public void OnTypeChange(IFileDialog pfd)
+ {
+ parent.OnFileTypeChanged(EventArgs.Empty);
+ }
+
+ public void OnOverwrite(IFileDialog pfd, IShellItem psi, out ShellNativeMethods.FileDialogEventOverwriteResponse pResponse)
+ {
+ // Don't accept or reject the dialog, keep default settings
+ pResponse = ShellNativeMethods.FileDialogEventOverwriteResponse.Default;
+ }
+
+ public void OnItemSelected(IFileDialogCustomize pfdc, int dwIDCtl, int dwIDItem)
+ {
+ // Find control
+ DialogControl control = this.parent.controls.GetControlbyId(dwIDCtl);
+
+ ICommonFileDialogIndexedControls controlInterface;
+ CommonFileDialogMenu menu;
+
+ // Process ComboBox and/or RadioButtonList
+ if ((controlInterface = control as ICommonFileDialogIndexedControls) != null)
+ {
+ // Update selected item and raise SelectedIndexChanged event
+ controlInterface.SelectedIndex = dwIDItem;
+ controlInterface.RaiseSelectedIndexChangedEvent();
+ }
+ // Process Menu
+ else if ((menu = control as CommonFileDialogMenu) != null)
+ {
+ // Find the menu item that was clicked and invoke it's click event
+ foreach (CommonFileDialogMenuItem item in menu.Items)
+ {
+ if (item.Id == dwIDItem)
+ {
+ item.RaiseClickEvent();
+ break;
+ }
+ }
+ }
+ }
+
+ public void OnButtonClicked(IFileDialogCustomize pfdc, int dwIDCtl)
+ {
+ // Find control
+ DialogControl control = this.parent.controls.GetControlbyId(dwIDCtl);
+ CommonFileDialogButton button = control as CommonFileDialogButton;
+ // Call corresponding event
+ if (button != null)
+ {
+ button.RaiseClickEvent();
+ }
+ }
+
+ public void OnCheckButtonToggled(IFileDialogCustomize pfdc, int dwIDCtl, bool bChecked)
+ {
+ // Find control
+ DialogControl control = this.parent.controls.GetControlbyId(dwIDCtl);
+
+ CommonFileDialogCheckBox box = control as CommonFileDialogCheckBox;
+ // Update control and call corresponding event
+ if (box != null)
+ {
+ box.IsChecked = bChecked;
+ box.RaiseCheckedChangedEvent();
+ }
+ }
+
+ public void OnControlActivating(IFileDialogCustomize pfdc, int dwIDCtl)
+ {
+ }
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Releases the unmanaged resources used by the CommonFileDialog class and optionally
+ /// releases the managed resources.
+ /// </summary>
+ /// <param name="disposing"><b>true</b> to release both managed and unmanaged resources;
+ /// <b>false</b> to release only unmanaged resources.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ CleanUpNativeFileDialog();
+ }
+ }
+
+ /// <summary>
+ /// Releases the resources used by the current instance of the CommonFileDialog class.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ public static bool IsPlatformSupported
+ {
+ get
+ {
+ // We need Windows Vista onwards ...
+ return CoreHelpers.RunningOnVista;
+ }
+ }
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogButton.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogButton.cs
new file mode 100644
index 0000000000..879352a6b7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogButton.cs
@@ -0,0 +1,59 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Creates the push button controls used by the Common File Dialog.
+ /// </summary>
+ public class CommonFileDialogButton : CommonFileDialogProminentControl
+ {
+ /// <summary>
+ /// Initializes a new instance of this class.
+ /// </summary>
+ public CommonFileDialogButton() : base(string.Empty) { }
+
+ /// <summary>
+ /// Initializes a new instance of this class with the text only.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogButton(string text) : base(text) { }
+
+ /// <summary>
+ /// Initializes a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogButton(string name, string text) : base(name, text) { }
+
+ /// <summary>
+ /// Attach the PushButton control to the dialog object
+ /// </summary>
+ /// <param name="dialog">Target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogButton.Attach: dialog parameter can not be null");
+
+ // Add a push button control
+ dialog.AddPushButton(this.Id, this.Text);
+
+ // Make this control prominent if needed
+ if (IsProminent) { dialog.MakeProminent(this.Id); }
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+ }
+
+ /// <summary>
+ /// Occurs when the user clicks the control. This event is routed from COM via the event sink.
+ /// </summary>
+ public event EventHandler Click = delegate { };
+ internal void RaiseClickEvent()
+ {
+ // Make sure that this control is enabled and has a specified delegate
+ if (Enabled) { this.Click(this, EventArgs.Empty); }
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogCheckBox.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogCheckBox.cs
new file mode 100644
index 0000000000..199d2f7bed
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogCheckBox.cs
@@ -0,0 +1,106 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Creates the check button controls used by the Common File Dialog.
+ /// </summary>
+ public class CommonFileDialogCheckBox : CommonFileDialogProminentControl
+ {
+ private bool isChecked;
+ /// <summary>
+ /// Gets or sets the state of the check box.
+ /// </summary>
+ public bool IsChecked
+ {
+ get { return isChecked; }
+ set
+ {
+ // Check if property has changed
+ if (isChecked != value)
+ {
+ isChecked = value;
+ ApplyPropertyChange("IsChecked");
+ }
+ }
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogCheckBox() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogCheckBox(string text) : base(text) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogCheckBox(string name, string text) : base(name, text) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text and check state.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ /// <param name="isChecked">The check state of this control.</param>
+ public CommonFileDialogCheckBox(string text, bool isChecked)
+ : base(text)
+ {
+ this.isChecked = isChecked;
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name, text and check state.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ /// <param name="isChecked">The check state of this control.</param>
+ public CommonFileDialogCheckBox(string name, string text, bool isChecked)
+ : base(name, text)
+ {
+ this.isChecked = isChecked;
+ }
+
+ /// <summary>
+ /// Occurs when the user changes the check state.
+ /// </summary>
+ public event EventHandler CheckedChanged = delegate { };
+ internal void RaiseCheckedChangedEvent()
+ {
+ // Make sure that this control is enabled and has a specified delegate
+ if (Enabled)
+ {
+ this.CheckedChanged(this, EventArgs.Empty);
+ }
+ }
+
+ /// <summary>
+ /// Attach the CheckButton control to the dialog object.
+ /// </summary>
+ /// <param name="dialog">the target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogCheckBox.Attach: dialog parameter can not be null");
+
+ // Add a check button control
+ dialog.AddCheckButton(this.Id, this.Text, this.isChecked);
+
+ // Make this control prominent if needed
+ if (IsProminent) { dialog.MakeProminent(this.Id); }
+
+ // Make sure this property is set
+ ApplyPropertyChange("IsChecked");
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogComboBox.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogComboBox.cs
new file mode 100644
index 0000000000..cebe120e1a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogComboBox.cs
@@ -0,0 +1,174 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Windows.Markup;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Creates the ComboBox controls in the Common File Dialog.
+ /// </summary>
+ [ContentProperty("Items")]
+ public class CommonFileDialogComboBox : CommonFileDialogProminentControl, ICommonFileDialogIndexedControls
+ {
+ private readonly Collection<CommonFileDialogComboBoxItem> items = new Collection<CommonFileDialogComboBoxItem>();
+ /// <summary>
+ /// Gets the collection of CommonFileDialogComboBoxItem objects.
+ /// </summary>
+ public Collection<CommonFileDialogComboBoxItem> Items
+ {
+ get { return items; }
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogComboBox()
+ {
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name.
+ /// </summary>
+ /// <param name="name">Text to display for this control</param>
+ public CommonFileDialogComboBox(string name)
+ : base(name, string.Empty)
+ {
+ }
+
+ #region ICommonFileDialogIndexedControls Members
+
+ private int selectedIndex = -1;
+ /// <summary>
+ /// Gets or sets the current index of the selected item.
+ /// </summary>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")]
+ public int SelectedIndex
+ {
+ get { return selectedIndex; }
+ set
+ {
+ // Don't update property if it hasn't changed
+ if (selectedIndex == value)
+ return;
+
+ if (HostingDialog == null)
+ {
+ selectedIndex = value;
+ return;
+ }
+
+ // Only update this property if it has a valid value
+ if (value >= 0 && value < items.Count)
+ {
+ selectedIndex = value;
+ ApplyPropertyChange("SelectedIndex");
+ }
+ else
+ {
+ throw new IndexOutOfRangeException(LocalizedMessages.ComboBoxIndexOutsideBounds);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Occurs when the SelectedIndex is changed.
+ /// </summary>
+ ///
+ /// <remarks>
+ /// By initializing the SelectedIndexChanged event with an empty
+ /// delegate, it is not necessary to check
+ /// if the SelectedIndexChanged is not null.
+ ///
+ /// </remarks>
+ public event EventHandler SelectedIndexChanged = delegate { };
+
+ /// <summary>
+ /// Raises the SelectedIndexChanged event if this control is
+ /// enabled.
+ /// </summary>
+ /// <remarks>Because this method is defined in an interface, we can either
+ /// have it as public, or make it private and explicitly implement (like below).
+ /// Making it public doesn't really help as its only internal (but can't have this
+ /// internal because of the interface)
+ /// </remarks>
+ void ICommonFileDialogIndexedControls.RaiseSelectedIndexChangedEvent()
+ {
+ // Make sure that this control is enabled and has a specified delegate
+ if (Enabled)
+ SelectedIndexChanged(this, EventArgs.Empty);
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Attach the ComboBox control to the dialog object
+ /// </summary>
+ /// <param name="dialog">The target dialog</param>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")]
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogComboBox.Attach: dialog parameter can not be null");
+
+ // Add the combo box control
+ dialog.AddComboBox(this.Id);
+
+ // Add the combo box items
+ for (int index = 0; index < items.Count; index++)
+ dialog.AddControlItem(this.Id, index, items[index].Text);
+
+ // Set the currently selected item
+ if (selectedIndex >= 0 && selectedIndex < items.Count)
+ {
+ dialog.SetSelectedControlItem(this.Id, this.selectedIndex);
+ }
+ else if (selectedIndex != -1)
+ {
+ throw new IndexOutOfRangeException(LocalizedMessages.ComboBoxIndexOutsideBounds);
+ }
+
+ // Make this control prominent if needed
+ if (IsProminent)
+ dialog.MakeProminent(this.Id);
+
+ // Sync additional properties
+ SyncUnmanagedProperties();
+ }
+
+ }
+
+ /// <summary>
+ /// Creates a ComboBoxItem for the Common File Dialog.
+ /// </summary>
+ public class CommonFileDialogComboBoxItem
+ {
+ private string text = string.Empty;
+ /// <summary>
+ /// Gets or sets the string that is displayed for this item.
+ /// </summary>
+ public string Text
+ {
+ get { return text; }
+ set { text = value; }
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogComboBoxItem()
+ {
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to use for the combo box item.</param>
+ public CommonFileDialogComboBoxItem(string text)
+ {
+ this.text = text;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControl.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControl.cs
new file mode 100644
index 0000000000..fe2a204e2d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControl.cs
@@ -0,0 +1,116 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Defines an abstract class that supports shared functionality for the
+ /// common file dialog controls.
+ /// </summary>
+ public abstract class CommonFileDialogControl : DialogControl
+ {
+ /// <summary>
+ /// Holds the text that is displayed for this control.
+ /// </summary>
+ private string textValue;
+
+ /// <summary>
+ /// Gets or sets the text string that is displayed on the control.
+ /// </summary>
+ public virtual string Text
+ {
+ get { return textValue; }
+ set
+ {
+ // Don't update this property if it hasn't changed
+ if (value != textValue)
+ {
+ textValue = value;
+ ApplyPropertyChange("Text");
+ }
+ }
+ }
+
+ private bool enabled = true;
+ /// <summary>
+ /// Gets or sets a value that determines if this control is enabled.
+ /// </summary>
+ public bool Enabled
+ {
+ get { return enabled; }
+ set
+ {
+ // Don't update this property if it hasn't changed
+ if (value == enabled) { return; }
+
+ enabled = value;
+ ApplyPropertyChange("Enabled");
+ }
+ }
+
+ private bool visible = true;
+ /// <summary>
+ /// Gets or sets a boolean value that indicates whether
+ /// this control is visible.
+ /// </summary>
+ public bool Visible
+ {
+ get { return visible; }
+ set
+ {
+ // Don't update this property if it hasn't changed
+ if (value == visible) { return; }
+
+ visible = value;
+ ApplyPropertyChange("Visible");
+ }
+ }
+
+ private bool isAdded;
+ /// <summary>
+ /// Has this control been added to the dialog
+ /// </summary>
+ internal bool IsAdded
+ {
+ get { return isAdded; }
+ set { isAdded = value; }
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ protected CommonFileDialogControl() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the text.
+ /// </summary>
+ /// <param name="text">The text of the common file dialog control.</param>
+ protected CommonFileDialogControl(string text)
+ : base()
+ {
+ this.textValue = text;
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of the common file dialog control.</param>
+ /// <param name="text">The text of the common file dialog control.</param>
+ protected CommonFileDialogControl(string name, string text)
+ : base(name)
+ {
+ this.textValue = text;
+ }
+
+ /// <summary>
+ /// Attach the custom control itself to the specified dialog
+ /// </summary>
+ /// <param name="dialog">the target dialog</param>
+ internal abstract void Attach(IFileDialogCustomize dialog);
+
+ internal virtual void SyncUnmanagedProperties()
+ {
+ ApplyPropertyChange("Enabled");
+ ApplyPropertyChange("Visible");
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControlCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControlCollection.cs
new file mode 100644
index 0000000000..96dc6b4bda
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogControlCollection.cs
@@ -0,0 +1,168 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Provides a strongly typed collection for dialog controls.
+ /// </summary>
+ /// <typeparam name="T">DialogControl</typeparam>
+ public sealed class CommonFileDialogControlCollection<T> : Collection<T> where T : DialogControl
+ {
+ private IDialogControlHost hostingDialog;
+
+ internal CommonFileDialogControlCollection(IDialogControlHost host)
+ {
+ hostingDialog = host;
+ }
+
+ /// <summary>
+ /// Inserts an dialog control at the specified index.
+ /// </summary>
+ /// <param name="index">The location to insert the control.</param>
+ /// <param name="control">The item to insert.</param>
+ /// <permission cref="System.InvalidOperationException">A control with
+ /// the same name already exists in this collection -or-
+ /// the control is being hosted by another dialog -or- the associated dialog is
+ /// showing and cannot be modified.</permission>
+ protected override void InsertItem(int index, T control)
+ {
+ // Check for duplicates, lack of host,
+ // and during-show adds.
+ if (Items.Contains(control))
+ {
+ throw new InvalidOperationException(
+ LocalizedMessages.DialogControlCollectionMoreThanOneControl);
+ }
+ if (control.HostingDialog != null)
+ {
+ throw new InvalidOperationException(
+ LocalizedMessages.DialogControlCollectionRemoveControlFirst);
+ }
+ if (!hostingDialog.IsCollectionChangeAllowed())
+ {
+ throw new InvalidOperationException(
+ LocalizedMessages.DialogControlCollectionModifyingControls);
+ }
+ if (control is CommonFileDialogMenuItem)
+ {
+ throw new InvalidOperationException(
+ LocalizedMessages.DialogControlCollectionMenuItemControlsCannotBeAdded);
+ }
+
+ // Reparent, add control.
+ control.HostingDialog = hostingDialog;
+ base.InsertItem(index, control);
+
+ // Notify that we've added a control.
+ hostingDialog.ApplyCollectionChanged();
+ }
+
+ /// <summary>
+ /// Removes the control at the specified index.
+ /// </summary>
+ /// <param name="index">The location of the control to remove.</param>
+ /// <permission cref="System.InvalidOperationException">
+ /// The associated dialog is
+ /// showing and cannot be modified.</permission>
+ protected override void RemoveItem(int index)
+ {
+ throw new NotSupportedException(LocalizedMessages.DialogControlCollectionCannotRemoveControls);
+ }
+
+ /// <summary>
+ /// Defines the indexer that supports accessing controls by name.
+ /// </summary>
+ /// <remarks>
+ /// <para>Control names are case sensitive.</para>
+ /// <para>This indexer is useful when the dialog is created in XAML
+ /// rather than constructed in code.</para></remarks>
+ ///<exception cref="System.ArgumentException">
+ /// The name cannot be null or a zero-length string.</exception>
+ /// <remarks>If there is more than one control with the same name, only the <B>first control</B> will be returned.</remarks>
+ public T this[string name]
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(name))
+ {
+ throw new ArgumentException(LocalizedMessages.DialogControlCollectionEmptyName, "name");
+ }
+
+ foreach (T control in base.Items)
+ {
+ CommonFileDialogGroupBox groupBox;
+ // NOTE: we don't ToLower() the strings - casing effects
+ // hash codes, so we are case-sensitive.
+ if (control.Name == name)
+ {
+ return control;
+ }
+ else if ((groupBox = control as CommonFileDialogGroupBox) != null)
+ {
+ foreach (T subControl in groupBox.Items)
+ {
+ if (subControl.Name == name) { return subControl; }
+ }
+ }
+ }
+ return null;
+ }
+ }
+
+ /// <summary>
+ /// Recursively searches for the control who's id matches the value
+ /// passed in the <paramref name="id"/> parameter.
+ /// </summary>
+ ///
+ /// <param name="id">An integer containing the identifier of the
+ /// control being searched for.</param>
+ ///
+ /// <returns>A DialogControl who's id matches the value of the
+ /// <paramref name="id"/> parameter.</returns>
+ ///
+ internal DialogControl GetControlbyId(int id)
+ {
+ return GetSubControlbyId(Items.Cast<DialogControl>(), id);
+ }
+
+ /// <summary>
+ /// Recursively searches for a given control id in the
+ /// collection passed via the <paramref name="controlCollection"/> parameter.
+ /// </summary>
+ ///
+ /// <param name="controlCollection">A Collection&lt;CommonFileDialogControl&gt;</param>
+ /// <param name="id">An int containing the identifier of the control
+ /// being searched for.</param>
+ ///
+ /// <returns>A DialogControl who's Id matches the value of the
+ /// <paramref name="id"/> parameter.</returns>
+ ///
+ internal DialogControl GetSubControlbyId(IEnumerable<DialogControl> controlCollection, int id)
+ {
+ // if ctrlColl is null, it will throw in the foreach.
+ if (controlCollection == null) { return null; }
+
+ foreach (DialogControl control in controlCollection)
+ {
+ if (control.Id == id) { return control; }
+
+ // Search GroupBox child items
+ CommonFileDialogGroupBox groupBox = control as CommonFileDialogGroupBox;
+ if (groupBox != null)
+ {
+ var temp = GetSubControlbyId(groupBox.Items, id);
+ if (temp != null) { return temp; }
+ }
+ }
+
+ return null;
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilter.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilter.cs
new file mode 100644
index 0000000000..5d1879c6d7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilter.cs
@@ -0,0 +1,167 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.ObjectModel;
+using System.Text;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Stores the file extensions used when filtering files in File Open and File Save dialogs.
+ /// </summary>
+ public class CommonFileDialogFilter
+ {
+ // We'll keep a parsed list of separate
+ // extensions and rebuild as needed.
+
+ private Collection<string> extensions;
+ private string rawDisplayName;
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogFilter()
+ {
+ extensions = new Collection<string>();
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified display name and
+ /// file extension list.
+ /// </summary>
+ /// <param name="rawDisplayName">The name of this filter.</param>
+ /// <param name="extensionList">The list of extensions in
+ /// this filter. See remarks.</param>
+ /// <remarks>The <paramref name="extensionList"/> can use a semicolon(";")
+ /// or comma (",") to separate extensions. Extensions can be prefaced
+ /// with a period (".") or with the file wild card specifier "*.".</remarks>
+ /// <permission cref="System.ArgumentNullException">
+ /// The <paramref name="extensionList"/> cannot be null or a
+ /// zero-length string.
+ /// </permission>
+ public CommonFileDialogFilter(string rawDisplayName, string extensionList)
+ : this()
+ {
+ if (string.IsNullOrEmpty(extensionList))
+ {
+ throw new ArgumentNullException("extensionList");
+ }
+
+ this.rawDisplayName = rawDisplayName;
+
+ // Parse string and create extension strings.
+ // Format: "bat,cmd", or "bat;cmd", or "*.bat;*.cmd"
+ // Can support leading "." or "*." - these will be stripped.
+ string[] rawExtensions = extensionList.Split(',', ';');
+ foreach (string extension in rawExtensions)
+ {
+ extensions.Add(CommonFileDialogFilter.NormalizeExtension(extension));
+ }
+ }
+ /// <summary>
+ /// Gets or sets the display name for this filter.
+ /// </summary>
+ /// <permission cref="System.ArgumentNullException">
+ /// The value for this property cannot be set to null or a
+ /// zero-length string.
+ /// </permission>
+ public string DisplayName
+ {
+ get
+ {
+ if (showExtensions)
+ {
+ return string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ "{0} ({1})",
+ rawDisplayName,
+ CommonFileDialogFilter.GetDisplayExtensionList(extensions));
+ }
+
+ return rawDisplayName;
+ }
+
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentNullException("value");
+ }
+ rawDisplayName = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets a collection of the individual extensions
+ /// described by this filter.
+ /// </summary>
+ public Collection<string> Extensions
+ {
+ get { return extensions; }
+ }
+
+ private bool showExtensions = true;
+ /// <summary>
+ /// Gets or sets a value that controls whether the extensions are displayed.
+ /// </summary>
+ public bool ShowExtensions
+ {
+ get { return showExtensions; }
+ set { showExtensions = value; }
+ }
+
+ private static string NormalizeExtension(string rawExtension)
+ {
+ rawExtension = rawExtension.Trim();
+ rawExtension = rawExtension.Replace("*.", null);
+ rawExtension = rawExtension.Replace(".", null);
+ return rawExtension;
+ }
+
+ private static string GetDisplayExtensionList(Collection<string> extensions)
+ {
+ StringBuilder extensionList = new StringBuilder();
+ foreach (string extension in extensions)
+ {
+ if (extensionList.Length > 0) { extensionList.Append(", "); }
+ extensionList.Append("*.");
+ extensionList.Append(extension);
+ }
+
+ return extensionList.ToString();
+ }
+
+ /// <summary>
+ /// Internal helper that generates a single filter
+ /// specification for this filter, used by the COM API.
+ /// </summary>
+ /// <returns>Filter specification for this filter</returns>
+ ///
+ internal ShellNativeMethods.FilterSpec GetFilterSpec()
+ {
+ StringBuilder filterList = new StringBuilder();
+ foreach (string extension in extensions)
+ {
+ if (filterList.Length > 0) { filterList.Append(";"); }
+
+ filterList.Append("*.");
+ filterList.Append(extension);
+
+ }
+ return new ShellNativeMethods.FilterSpec(DisplayName, filterList.ToString());
+ }
+
+ /// <summary>
+ /// Returns a string representation for this filter that includes
+ /// the display name and the list of extensions.
+ /// </summary>
+ /// <returns>A <see cref="System.String"/>.</returns>
+ public override string ToString()
+ {
+ return string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ "{0} ({1})",
+ rawDisplayName,
+ CommonFileDialogFilter.GetDisplayExtensionList(extensions));
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilterCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilterCollection.cs
new file mode 100644
index 0000000000..49ee6a2010
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFilterCollection.cs
@@ -0,0 +1,29 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Collections.ObjectModel;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Provides a strongly typed collection for file dialog filters.
+ /// </summary>
+ public class CommonFileDialogFilterCollection : Collection<CommonFileDialogFilter>
+ {
+ // Make the default constructor internal so users can't instantiate this
+ // collection by themselves.
+ internal CommonFileDialogFilterCollection() { }
+
+ internal ShellNativeMethods.FilterSpec[] GetAllFilterSpecs()
+ {
+ ShellNativeMethods.FilterSpec[] filterSpecs = new ShellNativeMethods.FilterSpec[this.Count];
+
+ for (int i = 0; i < this.Count; i++)
+ {
+ filterSpecs[i] = this[i].GetFilterSpec();
+ }
+
+ return filterSpecs;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFolderChangeEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFolderChangeEventArgs.cs
new file mode 100644
index 0000000000..e794c86000
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogFolderChangeEventArgs.cs
@@ -0,0 +1,28 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.ComponentModel;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Creates the event data associated with <see cref="CommonFileDialog.FolderChanging"/> event.
+ /// </summary>
+ ///
+ public class CommonFileDialogFolderChangeEventArgs : CancelEventArgs
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ /// <param name="folder">The name of the folder.</param>
+ public CommonFileDialogFolderChangeEventArgs(string folder)
+ {
+ Folder = folder;
+ }
+
+ /// <summary>
+ /// Gets or sets the name of the folder.
+ /// </summary>
+ public string Folder { get; set; }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogGroupBox.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogGroupBox.cs
new file mode 100644
index 0000000000..cb0b49db7c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogGroupBox.cs
@@ -0,0 +1,93 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Windows.Markup;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Represents a group box control for the Common File Dialog.
+ /// </summary>note
+ [ContentProperty("Items")]
+ public class CommonFileDialogGroupBox : CommonFileDialogProminentControl
+ {
+ private Collection<DialogControl> items;
+ /// <summary>
+ /// Gets the collection of controls for this group box.
+ /// </summary>
+ public Collection<DialogControl> Items
+ {
+ get { return items; }
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogGroupBox()
+ : base(string.Empty)
+ {
+ Initialize();
+ }
+
+ /// <summary>
+ /// Create a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogGroupBox(string text)
+ : base(text)
+ {
+ Initialize();
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogGroupBox(string name, string text)
+ : base(name, text)
+ {
+ Initialize();
+ }
+
+ /// <summary>
+ /// Initializes the item collection for this class.
+ /// </summary>
+ private void Initialize()
+ {
+ items = new Collection<DialogControl>();
+ }
+
+ /// <summary>
+ /// Attach the GroupBox control to the dialog object
+ /// </summary>
+ /// <param name="dialog">Target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogGroupBox.Attach: dialog parameter can not be null");
+
+ // Start a visual group
+ dialog.StartVisualGroup(this.Id, this.Text);
+
+ // Add child controls
+ foreach (CommonFileDialogControl item in this.items)
+ {
+ item.HostingDialog = HostingDialog;
+ item.Attach(dialog);
+ }
+
+ // End visual group
+ dialog.EndVisualGroup();
+
+ // Make this control prominent if needed
+ if (IsProminent)
+ dialog.MakeProminent(this.Id);
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogLabel.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogLabel.cs
new file mode 100644
index 0000000000..373a5c4f68
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogLabel.cs
@@ -0,0 +1,45 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Diagnostics;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Defines the label controls in the Common File Dialog.
+ /// </summary>
+ public class CommonFileDialogLabel : CommonFileDialogControl
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogLabel() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogLabel(string text) : base(text) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogLabel(string name, string text) : base(name, text) { }
+
+ /// <summary>
+ /// Attach this control to the dialog object
+ /// </summary>
+ /// <param name="dialog">Target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialog.Attach: dialog parameter can not be null");
+
+ // Add a text control
+ dialog.AddText(this.Id, this.Text);
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogMenu.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogMenu.cs
new file mode 100644
index 0000000000..3fa81e297d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogMenu.cs
@@ -0,0 +1,102 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Windows.Markup;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Defines the menu controls for the Common File Dialog.
+ /// </summary>
+ [ContentProperty("Items")]
+ public class CommonFileDialogMenu : CommonFileDialogProminentControl
+ {
+ private Collection<CommonFileDialogMenuItem> items = new Collection<CommonFileDialogMenuItem>();
+ /// <summary>
+ /// Gets the collection of CommonFileDialogMenuItem objects.
+ /// </summary>
+ public Collection<CommonFileDialogMenuItem> Items
+ {
+ get { return items; }
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogMenu() : base() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogMenu(string text) : base(text) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogMenu(string name, string text) : base(name, text) { }
+
+ /// <summary>
+ /// Attach the Menu control to the dialog object.
+ /// </summary>
+ /// <param name="dialog">the target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogMenu.Attach: dialog parameter can not be null");
+
+ // Add the menu control
+ dialog.AddMenu(this.Id, this.Text);
+
+ // Add the menu items
+ foreach (CommonFileDialogMenuItem item in this.items)
+ dialog.AddControlItem(this.Id, item.Id, item.Text);
+
+ // Make prominent as needed
+ if (IsProminent)
+ dialog.MakeProminent(this.Id);
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+ }
+ }
+
+ /// <summary>
+ /// Creates the CommonFileDialogMenuItem items for the Common File Dialog.
+ /// </summary>
+ public class CommonFileDialogMenuItem : CommonFileDialogControl
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogMenuItem() : base(string.Empty) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogMenuItem(string text) : base(text) { }
+
+ /// <summary>
+ /// Occurs when a user clicks a menu item.
+ /// </summary>
+ public event EventHandler Click = delegate { };
+ internal void RaiseClickEvent()
+ {
+ // Make sure that this control is enabled and has a specified delegate
+ if (Enabled) { Click(this, EventArgs.Empty); }
+ }
+
+ /// <summary>
+ /// Attach this control to the dialog object
+ /// </summary>
+ /// <param name="dialog">Target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ // Items are added via the menu itself
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogProminentControl.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogProminentControl.cs
new file mode 100644
index 0000000000..efdd9755fe
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogProminentControl.cs
@@ -0,0 +1,47 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Windows.Markup;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Defines the properties and constructors for all prominent controls in the Common File Dialog.
+ /// </summary>
+ [ContentProperty("Items")]
+ public abstract class CommonFileDialogProminentControl : CommonFileDialogControl
+ {
+ private bool isProminent;
+
+ /// <summary>
+ /// Gets or sets the prominent value of this control.
+ /// </summary>
+ /// <remarks>Only one control can be specified as prominent. If more than one control is specified prominent,
+ /// then an 'E_UNEXPECTED' exception will be thrown when these controls are added to the dialog.
+ /// A group box control can only be specified as prominent if it contains one control and that control is of type 'CommonFileDialogProminentControl'.
+ /// </remarks>
+ public bool IsProminent
+ {
+ get { return isProminent; }
+ set { isProminent = value; }
+ }
+
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ protected CommonFileDialogProminentControl() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ protected CommonFileDialogProminentControl(string text) : base(text) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ protected CommonFileDialogProminentControl(string name, string text) : base(name, text) { }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogRadioButtonList.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogRadioButtonList.cs
new file mode 100644
index 0000000000..0dd4439d1b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogRadioButtonList.cs
@@ -0,0 +1,153 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Windows.Markup;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Represents a radio button list for the Common File Dialog.
+ /// </summary>
+ [ContentProperty("Items")]
+ public class CommonFileDialogRadioButtonList : CommonFileDialogControl, ICommonFileDialogIndexedControls
+ {
+ private Collection<CommonFileDialogRadioButtonListItem> items = new Collection<CommonFileDialogRadioButtonListItem>();
+ /// <summary>
+ /// Gets the collection of CommonFileDialogRadioButtonListItem objects
+ /// </summary>
+ public Collection<CommonFileDialogRadioButtonListItem> Items
+ {
+ get { return items; }
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogRadioButtonList() { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ public CommonFileDialogRadioButtonList(string name) : base(name, string.Empty) { }
+
+ #region ICommonFileDialogIndexedControls Members
+
+ private int selectedIndex = -1;
+ /// <summary>
+ /// Gets or sets the current index of the selected item.
+ /// </summary>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")]
+ public int SelectedIndex
+ {
+ get { return selectedIndex; }
+ set
+ {
+ // Don't update this property if it hasn't changed
+ if (selectedIndex == value) { return; }
+
+ // If the native dialog has not been created yet
+ if (HostingDialog == null)
+ {
+ selectedIndex = value;
+ }
+ else if (value >= 0 && value < items.Count)
+ {
+ selectedIndex = value;
+ ApplyPropertyChange("SelectedIndex");
+ }
+ else
+ {
+ throw new IndexOutOfRangeException(LocalizedMessages.RadioButtonListIndexOutOfBounds);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Occurs when the user changes the SelectedIndex.
+ /// </summary>
+ ///
+ /// <remarks>
+ /// By initializing the SelectedIndexChanged event with an empty
+ /// delegate, we can skip the test to determine
+ /// if the SelectedIndexChanged is null.
+ /// test.
+ /// </remarks>
+ public event EventHandler SelectedIndexChanged = delegate { };
+
+ /// <summary>
+ /// Occurs when the user changes the SelectedIndex.
+ /// </summary>
+ /// <remarks>Because this method is defined in an interface, we can either
+ /// have it as public, or make it private and explicitly implement (like below).
+ /// Making it public doesn't really help as its only internal (but can't have this
+ /// internal because of the interface)
+ /// </remarks>
+ void ICommonFileDialogIndexedControls.RaiseSelectedIndexChangedEvent()
+ {
+ // Make sure that this control is enabled and has a specified delegate
+ if (Enabled) { SelectedIndexChanged(this, EventArgs.Empty); }
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Attach the RadioButtonList control to the dialog object
+ /// </summary>
+ /// <param name="dialog">The target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogRadioButtonList.Attach: dialog parameter can not be null");
+
+ // Add the radio button list control
+ dialog.AddRadioButtonList(this.Id);
+
+ // Add the radio button list items
+ for (int index = 0; index < items.Count; index++)
+ {
+ dialog.AddControlItem(this.Id, index, items[index].Text);
+ }
+
+ // Set the currently selected item
+ if (selectedIndex >= 0 && selectedIndex < items.Count)
+ {
+ dialog.SetSelectedControlItem(this.Id, this.selectedIndex);
+ }
+ else if (selectedIndex != -1)
+ {
+ throw new IndexOutOfRangeException(LocalizedMessages.RadioButtonListIndexOutOfBounds);
+ }
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+ }
+ }
+
+ /// <summary>
+ /// Represents a list item for the CommonFileDialogRadioButtonList object.
+ /// </summary>
+ public class CommonFileDialogRadioButtonListItem
+ {
+ /// <summary>
+ /// Gets or sets the string that will be displayed for this list item.
+ /// </summary>
+ public string Text { get; set; }
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogRadioButtonListItem() : this(string.Empty) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The string that you want to display for this list item.</param>
+ public CommonFileDialogRadioButtonListItem(string text)
+ {
+ Text = text;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogResult.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogResult.cs
new file mode 100644
index 0000000000..b026dcdc69
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogResult.cs
@@ -0,0 +1,25 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Specifies identifiers to indicate the return value of a CommonFileDialog dialog.
+ /// </summary>
+ public enum CommonFileDialogResult
+ {
+ /// <summary>
+ /// Default value for enumeration, a dialog box should never return this value.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// The dialog box return value is OK (usually sent from a button labeled OK or Save).
+ /// </summary>
+ Ok = 1,
+
+ /// <summary>
+ /// The dialog box return value is Cancel (usually sent from a button labeled Cancel).
+ /// </summary>
+ Cancel = 2,
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogSeperator.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogSeperator.cs
new file mode 100644
index 0000000000..c2d1d11e35
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogSeperator.cs
@@ -0,0 +1,27 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Diagnostics;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Defines the class for the simplest separator controls.
+ /// </summary>
+ public class CommonFileDialogSeparator : CommonFileDialogControl
+ {
+ /// <summary>
+ /// Attach the Separator control to the dialog object
+ /// </summary>
+ /// <param name="dialog">Target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogSeparator.Attach: dialog parameter can not be null");
+
+ // Add a separator
+ dialog.AddSeparator(this.Id);
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogStandardFilters.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogStandardFilters.cs
new file mode 100644
index 0000000000..4f24ccb82f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogStandardFilters.cs
@@ -0,0 +1,62 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Defines the class of commonly used file filters.
+ /// </summary>
+ public static class CommonFileDialogStandardFilters
+ {
+ private static CommonFileDialogFilter textFilesFilter;
+ /// <summary>
+ /// Gets a value that specifies the filter for *.txt files.
+ /// </summary>
+ public static CommonFileDialogFilter TextFiles
+ {
+ get
+ {
+ if (textFilesFilter == null)
+ {
+ textFilesFilter = new CommonFileDialogFilter(LocalizedMessages.CommonFiltersText, "*.txt");
+ }
+ return textFilesFilter;
+ }
+ }
+
+ private static CommonFileDialogFilter pictureFilesFilter;
+ /// <summary>
+ /// Gets a value that specifies the filter for picture files.
+ /// </summary>
+ public static CommonFileDialogFilter PictureFiles
+ {
+ get
+ {
+ if (pictureFilesFilter == null)
+ {
+ pictureFilesFilter = new CommonFileDialogFilter(LocalizedMessages.CommonFiltersPicture,
+ "*.bmp, *.jpg, *.jpeg, *.png, *.ico");
+ }
+ return pictureFilesFilter;
+ }
+
+ }
+ private static CommonFileDialogFilter officeFilesFilter;
+ /// <summary>
+ /// Gets a value that specifies the filter for Microsoft Office files.
+ /// </summary>
+ public static CommonFileDialogFilter OfficeFiles
+ {
+ get
+ {
+ if (officeFilesFilter == null)
+ {
+ officeFilesFilter = new CommonFileDialogFilter(LocalizedMessages.CommonFiltersOffice,
+ "*.doc, *.docx, *.xls, *.xlsx, *.ppt, *.pptx");
+ }
+ return officeFilesFilter;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogTextBox.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogTextBox.cs
new file mode 100644
index 0000000000..106c4f1ee1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialogTextBox.cs
@@ -0,0 +1,101 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Defines the text box controls in the Common File Dialog.
+ /// </summary>
+ public class CommonFileDialogTextBox : CommonFileDialogControl
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonFileDialogTextBox() : base(string.Empty) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified text.
+ /// </summary>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogTextBox(string text) : base(text) { }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name and text.
+ /// </summary>
+ /// <param name="name">The name of this control.</param>
+ /// <param name="text">The text to display for this control.</param>
+ public CommonFileDialogTextBox(string name, string text) : base(name, text) { }
+
+ internal bool Closed { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value for the text string contained in the CommonFileDialogTextBox.
+ /// </summary>
+ public override string Text
+ {
+ get
+ {
+ if (!Closed)
+ {
+ SyncValue();
+ }
+
+ return base.Text;
+ }
+
+ set
+ {
+ if (customizedDialog != null)
+ {
+ customizedDialog.SetEditBoxText(this.Id, value);
+ }
+
+ base.Text = value;
+ }
+ }
+
+ /// <summary>
+ /// Holds an instance of the customized (/native) dialog and should
+ /// be null until after the Attach() call is made.
+ /// </summary>
+ private IFileDialogCustomize customizedDialog;
+
+ /// <summary>
+ /// Attach the TextBox control to the dialog object
+ /// </summary>
+ /// <param name="dialog">Target dialog</param>
+ internal override void Attach(IFileDialogCustomize dialog)
+ {
+ Debug.Assert(dialog != null, "CommonFileDialogTextBox.Attach: dialog parameter can not be null");
+
+ // Add a text entry control
+ dialog.AddEditBox(this.Id, this.Text);
+
+ // Set to local instance in order to gate access to same.
+ customizedDialog = dialog;
+
+ // Sync unmanaged properties with managed properties
+ SyncUnmanagedProperties();
+
+ Closed = false;
+ }
+
+ internal void SyncValue()
+ {
+ // Make sure that the local native dialog instance is NOT
+ // null. If it's null, just return the "textValue" var,
+ // otherwise, use the native call to get the text value,
+ // setting the textValue member variable then return it.
+
+ if (customizedDialog != null)
+ {
+ string textValue;
+ customizedDialog.GetEditBoxText(this.Id, out textValue);
+
+ base.Text = textValue;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonOpenFileDialog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonOpenFileDialog.cs
new file mode 100644
index 0000000000..bd4ee21859
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonOpenFileDialog.cs
@@ -0,0 +1,193 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Creates a Vista or Windows 7 Common File Dialog, allowing the user to select one or more files.
+ /// </summary>
+ ///
+ public sealed class CommonOpenFileDialog : CommonFileDialog
+ {
+ private NativeFileOpenDialog openDialogCoClass;
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonOpenFileDialog()
+ : base()
+ {
+ // For Open file dialog, allow read only files.
+ base.EnsureReadOnly = true;
+ }
+
+ /// <summary>
+ /// Creates a new instance of this class with the specified name.
+ /// </summary>
+ /// <param name="name">The name of this dialog.</param>
+ public CommonOpenFileDialog(string name)
+ : base(name)
+ {
+ // For Open file dialog, allow read only files.
+ base.EnsureReadOnly = true;
+ }
+
+ #region Public API specific to Open
+
+ /// <summary>
+ /// Gets a collection of the selected file names.
+ /// </summary>
+ /// <remarks>This property should only be used when the
+ /// <see cref="CommonOpenFileDialog.Multiselect"/>
+ /// property is <b>true</b>.</remarks>
+ public IEnumerable<string> FileNames
+ {
+ get
+ {
+ CheckFileNamesAvailable();
+ return base.FileNameCollection;
+ }
+ }
+
+ /// <summary>
+ /// Gets a collection of the selected items as ShellObject objects.
+ /// </summary>
+ /// <remarks>This property should only be used when the
+ /// <see cref="CommonOpenFileDialog.Multiselect"/>
+ /// property is <b>true</b>.</remarks>
+ public ICollection<ShellObject> FilesAsShellObject
+ {
+ get
+ {
+ // Check if we have selected files from the user.
+ CheckFileItemsAvailable();
+
+ // temp collection to hold our shellobjects
+ ICollection<ShellObject> resultItems = new Collection<ShellObject>();
+
+ // Loop through our existing list of filenames, and try to create a concrete type of
+ // ShellObject (e.g. ShellLibrary, FileSystemFolder, ShellFile, etc)
+ foreach (IShellItem si in items)
+ {
+ resultItems.Add(ShellObjectFactory.Create(si));
+ }
+
+ return resultItems;
+ }
+ }
+
+
+ private bool multiselect;
+ /// <summary>
+ /// Gets or sets a value that determines whether the user can select more than one file.
+ /// </summary>
+ public bool Multiselect
+ {
+ get { return multiselect; }
+ set { multiselect = value; }
+ }
+
+ private bool isFolderPicker;
+ /// <summary>
+ /// Gets or sets a value that determines whether the user can select folders or files.
+ /// Default value is false.
+ /// </summary>
+ public bool IsFolderPicker
+ {
+ get { return isFolderPicker; }
+ set { isFolderPicker = value; }
+ }
+
+ private bool allowNonFileSystem;
+ /// <summary>
+ /// Gets or sets a value that determines whether the user can select non-filesystem items,
+ /// such as <b>Library</b>, <b>Search Connectors</b>, or <b>Known Folders</b>.
+ /// </summary>
+ public bool AllowNonFileSystemItems
+ {
+ get { return allowNonFileSystem; }
+ set { allowNonFileSystem = value; }
+ }
+ #endregion
+
+ internal override IFileDialog GetNativeFileDialog()
+ {
+ Debug.Assert(openDialogCoClass != null, "Must call Initialize() before fetching dialog interface");
+
+ return (IFileDialog)openDialogCoClass;
+ }
+
+ internal override void InitializeNativeFileDialog()
+ {
+ if (openDialogCoClass == null)
+ {
+ openDialogCoClass = new NativeFileOpenDialog();
+ }
+ }
+
+ internal override void CleanUpNativeFileDialog()
+ {
+ if (openDialogCoClass != null)
+ {
+ Marshal.ReleaseComObject(openDialogCoClass);
+ }
+ }
+
+ internal override void PopulateWithFileNames(Collection<string> names)
+ {
+ IShellItemArray resultsArray;
+ uint count;
+
+ openDialogCoClass.GetResults(out resultsArray);
+ resultsArray.GetCount(out count);
+ names.Clear();
+ for (int i = 0; i < count; i++)
+ {
+ names.Add(GetFileNameFromShellItem(GetShellItemAt(resultsArray, i)));
+ }
+ }
+
+ internal override void PopulateWithIShellItems(Collection<IShellItem> items)
+ {
+ IShellItemArray resultsArray;
+ uint count;
+
+ openDialogCoClass.GetResults(out resultsArray);
+ resultsArray.GetCount(out count);
+ items.Clear();
+ for (int i = 0; i < count; i++)
+ {
+ items.Add(GetShellItemAt(resultsArray, i));
+ }
+ }
+
+ internal override ShellNativeMethods.FileOpenOptions GetDerivedOptionFlags(ShellNativeMethods.FileOpenOptions flags)
+ {
+ if (multiselect)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.AllowMultiSelect;
+ }
+ if (isFolderPicker)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.PickFolders;
+ }
+
+ if (!allowNonFileSystem)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.ForceFilesystem;
+ }
+ else if (allowNonFileSystem)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.AllNonStorageItems;
+ }
+
+ return flags;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonSaveFileDialog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonSaveFileDialog.cs
new file mode 100644
index 0000000000..54d0ca6de0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonSaveFileDialog.cs
@@ -0,0 +1,305 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+using System.Text;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ /// <summary>
+ /// Creates a Vista or Windows 7 Common File Dialog, allowing the user to select the filename and location for a saved file.
+ /// </summary>
+ /// <permission cref="System.Security.Permissions.FileDialogPermission">
+ /// to save a file. Associated enumeration: <see cref="System.Security.Permissions.SecurityAction.LinkDemand"/>.
+ /// </permission>
+ public sealed class CommonSaveFileDialog : CommonFileDialog
+ {
+ private NativeFileSaveDialog saveDialogCoClass;
+
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommonSaveFileDialog() { }
+ /// <summary>
+ /// Creates a new instance of this class with the specified name.
+ /// </summary>
+ /// <param name="name">The name of this dialog.</param>
+ public CommonSaveFileDialog(string name) : base(name) { }
+
+ #region Public API specific to Save
+
+ private bool overwritePrompt = true;
+ /// <summary>
+ /// Gets or sets a value that controls whether to prompt before
+ /// overwriting an existing file of the same name. Default value is true.
+ /// </summary>
+ /// <permission cref="System.InvalidOperationException">
+ /// This property cannot be changed when the dialog is showing.
+ /// </permission>
+ public bool OverwritePrompt
+ {
+ get { return overwritePrompt; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.OverwritePromptCannotBeChanged);
+ overwritePrompt = value;
+ }
+ }
+
+ private bool createPrompt;
+ /// <summary>
+ /// Gets or sets a value that controls whether to prompt for creation if the item returned in the save dialog does not exist.
+ /// </summary>
+ /// <remarks>Note that this does not actually create the item.</remarks>
+ /// <permission cref="System.InvalidOperationException">
+ /// This property cannot be changed when the dialog is showing.
+ /// </permission>
+ public bool CreatePrompt
+ {
+ get { return createPrompt; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.CreatePromptCannotBeChanged);
+ createPrompt = value;
+ }
+ }
+
+ private bool isExpandedMode;
+ /// <summary>
+ /// Gets or sets a value that controls whether to the save dialog
+ /// displays in expanded mode.
+ /// </summary>
+ /// <remarks>Expanded mode controls whether the dialog
+ /// shows folders for browsing or hides them.</remarks>
+ /// <permission cref="System.InvalidOperationException">
+ /// This property cannot be changed when the dialog is showing.
+ /// </permission>
+ public bool IsExpandedMode
+ {
+ get { return isExpandedMode; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.IsExpandedModeCannotBeChanged);
+ isExpandedMode = value;
+ }
+ }
+
+ private bool alwaysAppendDefaultExtension;
+ /// <summary>
+ /// Gets or sets a value that controls whether the
+ /// returned file name has a file extension that matches the
+ /// currently selected file type. If necessary, the dialog appends the correct
+ /// file extension.
+ /// </summary>
+ /// <permission cref="System.InvalidOperationException">
+ /// This property cannot be changed when the dialog is showing.
+ /// </permission>
+ public bool AlwaysAppendDefaultExtension
+ {
+ get { return alwaysAppendDefaultExtension; }
+ set
+ {
+ ThrowIfDialogShowing(LocalizedMessages.AlwaysAppendDefaultExtensionCannotBeChanged);
+ alwaysAppendDefaultExtension = value;
+ }
+ }
+
+ /// <summary>
+ /// Sets an item to appear as the initial entry in a <b>Save As</b> dialog.
+ /// </summary>
+ /// <param name="item">The initial entry to be set in the dialog.</param>
+ /// <remarks>The name of the item is displayed in the file name edit box,
+ /// and the containing folder is opened in the view. This would generally be
+ /// used when the application is saving an item that already exists.</remarks>
+ public void SetSaveAsItem(ShellObject item)
+ {
+ if (item == null)
+ {
+ throw new ArgumentNullException("item");
+ }
+
+ InitializeNativeFileDialog();
+ IFileSaveDialog nativeDialog = GetNativeFileDialog() as IFileSaveDialog;
+
+ // Get the native IShellItem from ShellObject
+ if (nativeDialog != null)
+ {
+ nativeDialog.SetSaveAsItem(item.NativeShellItem);
+ }
+ }
+
+ /// <summary>
+ /// Specifies which properties will be collected in the save dialog.
+ /// </summary>
+ /// <param name="appendDefault">True to show default properties for the currently selected
+ /// filetype in addition to the properties specified by propertyList. False to show only properties
+ /// specified by pList.
+ /// <param name="propertyList">List of properties to collect. This parameter can be null.</param>
+ /// </param>
+ /// <remarks>
+ /// SetCollectedPropertyKeys can be called at any time before the dialog is displayed or while it
+ /// is visible. If different properties are to be collected depending on the chosen filetype,
+ /// then SetCollectedProperties can be called in response to CommonFileDialog::FileTypeChanged event.
+ /// Note: By default, no properties are collected in the save dialog.
+ /// </remarks>
+ public void SetCollectedPropertyKeys(bool appendDefault, params PropertyKey[] propertyList)
+ {
+ // Loop through all our property keys and create a semicolon-delimited property list string.
+ // The string we pass to PSGetPropertyDescriptionListFromString must
+ // start with "prop:", followed a list of canonical names for each
+ // property that is to collected.
+ if (propertyList != null && propertyList.Length > 0 && propertyList[0] != null)
+ {
+ StringBuilder sb = new StringBuilder("prop:");
+ foreach (PropertyKey key in propertyList)
+ {
+ string canonicalName = ShellPropertyDescriptionsCache.Cache.GetPropertyDescription(key).CanonicalName;
+ if (!string.IsNullOrEmpty(canonicalName)) { sb.AppendFormat("{0};", canonicalName); }
+ }
+
+ Guid guid = new Guid(ShellIIDGuid.IPropertyDescriptionList);
+ IPropertyDescriptionList propertyDescriptionList = null;
+
+ try
+ {
+ int hr = PropertySystemNativeMethods.PSGetPropertyDescriptionListFromString(
+ sb.ToString(),
+ ref guid,
+ out propertyDescriptionList);
+
+ // If we get a IPropertyDescriptionList, setit on the native dialog.
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ InitializeNativeFileDialog();
+ IFileSaveDialog nativeDialog = GetNativeFileDialog() as IFileSaveDialog;
+
+ if (nativeDialog != null)
+ {
+ hr = nativeDialog.SetCollectedProperties(propertyDescriptionList, appendDefault);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+ }
+ }
+ }
+ finally
+ {
+ if (propertyDescriptionList != null)
+ {
+ Marshal.ReleaseComObject(propertyDescriptionList);
+ }
+ }
+ }
+ }
+
+ /// <summary>
+ /// Retrieves the set of property values for a saved item or an item in the process of being saved.
+ /// </summary>
+ /// <returns>Collection of property values collected from the save dialog</returns>
+ /// <remarks>This property can be called while the dialog is showing to retrieve the current
+ /// set of values in the metadata collection pane. It can also be called after the dialog
+ /// has closed, to retrieve the final set of values. The call to this method will fail
+ /// unless property collection has been turned on with a call to SetCollectedPropertyKeys method.
+ /// </remarks>
+ public ShellPropertyCollection CollectedProperties
+ {
+ get
+ {
+ InitializeNativeFileDialog();
+ IFileSaveDialog nativeDialog = GetNativeFileDialog() as IFileSaveDialog;
+
+ if (nativeDialog != null)
+ {
+ IPropertyStore propertyStore;
+ HResult hr = nativeDialog.GetProperties(out propertyStore);
+
+ if (propertyStore != null && CoreErrorHelper.Succeeded(hr))
+ {
+ return new ShellPropertyCollection(propertyStore);
+ }
+ }
+
+ return null;
+ }
+ }
+
+ #endregion
+
+ internal override void InitializeNativeFileDialog()
+ {
+ if (saveDialogCoClass == null)
+ {
+ saveDialogCoClass = new NativeFileSaveDialog();
+ }
+ }
+
+ internal override IFileDialog GetNativeFileDialog()
+ {
+ Debug.Assert(saveDialogCoClass != null, "Must call Initialize() before fetching dialog interface");
+ return (IFileDialog)saveDialogCoClass;
+ }
+
+ internal override void PopulateWithFileNames(
+ System.Collections.ObjectModel.Collection<string> names)
+ {
+ IShellItem item;
+ saveDialogCoClass.GetResult(out item);
+
+ if (item == null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.SaveFileNullItem);
+ }
+ names.Clear();
+ names.Add(GetFileNameFromShellItem(item));
+ }
+
+ internal override void PopulateWithIShellItems(System.Collections.ObjectModel.Collection<IShellItem> items)
+ {
+ IShellItem item;
+ saveDialogCoClass.GetResult(out item);
+
+ if (item == null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.SaveFileNullItem);
+ }
+ items.Clear();
+ items.Add(item);
+ }
+
+ internal override void CleanUpNativeFileDialog()
+ {
+ if (saveDialogCoClass != null)
+ {
+ Marshal.ReleaseComObject(saveDialogCoClass);
+ }
+ }
+
+ internal override ShellNativeMethods.FileOpenOptions GetDerivedOptionFlags(ShellNativeMethods.FileOpenOptions flags)
+ {
+ if (overwritePrompt)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.OverwritePrompt;
+ }
+ if (createPrompt)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.CreatePrompt;
+ }
+ if (!isExpandedMode)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.DefaultNoMiniMode;
+ }
+ if (alwaysAppendDefaultExtension)
+ {
+ flags |= ShellNativeMethods.FileOpenOptions.StrictFileTypes;
+ }
+ return flags;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/ICommonFileDialogIndexedControls.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/ICommonFileDialogIndexedControls.cs
new file mode 100644
index 0000000000..75d29c1829
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/ICommonFileDialogIndexedControls.cs
@@ -0,0 +1,23 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs.Controls
+{
+ /// <summary>
+ /// Specifies a property, event and method that indexed controls need
+ /// to implement.
+ /// </summary>
+ ///
+ /// <remarks>
+ /// not sure where else to put this, so leaving here for now.
+ /// </remarks>
+ interface ICommonFileDialogIndexedControls
+ {
+ int SelectedIndex { get; set; }
+
+ event EventHandler SelectedIndexChanged;
+
+ void RaiseSelectedIndexChangedEvent();
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml
new file mode 100644
index 0000000000..34a7de57f1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml
@@ -0,0 +1,171 @@
+<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->
+
+<UserControl x:Class="Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation.CommandLink"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ Width="325"
+ Height="63"
+ HorizontalAlignment="Left"
+ Margin="0,0,0,12"
+ >
+ <UserControl.Resources>
+ <Style TargetType="{x:Type RadioButton}">
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type RadioButton}">
+ <Canvas>
+ <Canvas Name="Normal" Opacity="1">
+ <StackPanel Margin="7,7,7,7" Orientation="Horizontal">
+ <Image Source="{Binding Path=Icon}" />
+ <StackPanel Margin="6,0,0,10">
+ <TextBlock FontFamily="Segoe" FontSize="16" Foreground="#282671" Text="{Binding Path=Link}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ <TextBlock FontFamily="Segoe" FontSize="10" Foreground="#282671" Text="{Binding Path=Note}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ </StackPanel>
+ </StackPanel>
+ </Canvas>
+ <Canvas Opacity="0" Name="Selected">
+ <Rectangle Stroke="Cyan" Fill="White" RadiusX="2" RadiusY ="2" Width="520" Height="63"/>
+ <StackPanel Margin="7,7,7,7" Orientation="Horizontal">
+ <Image Source="{Binding Path=Icon}" />
+ <StackPanel Margin="6,0,0,10">
+ <TextBlock FontFamily="Segoe" FontSize="16" Foreground="#5380f6" Text="{Binding Path=Link}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ <TextBlock FontFamily="Segoe" FontSize="10" Foreground="#5380f6" Text="{Binding Path=Note}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ </StackPanel>
+ </StackPanel>
+ </Canvas>
+ <Canvas Opacity="0" Name="Hover">
+ <Rectangle Stroke="Gray" RadiusX="2" RadiusY ="2" Width="520" Height="63">
+ <Rectangle.Fill>
+ <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
+ <LinearGradientBrush.GradientStops>
+ <GradientStop Color="White" Offset="0"/>
+ <GradientStop Color="#F9F9F9" Offset="0.30"/>
+ </LinearGradientBrush.GradientStops>
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ </Rectangle>
+ <StackPanel Margin="7,7,7,7" Orientation="Horizontal">
+ <Image Source="{Binding Path=Icon}" />
+ <StackPanel Margin="6,0,0,10">
+ <TextBlock FontFamily="Segoe" FontSize="16" Foreground="#5380f6" Text="{Binding Path=Link}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ <TextBlock FontFamily="Segoe" FontSize="10" Foreground="#5380f6" Text="{Binding Path=Note}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ </StackPanel>
+ </StackPanel>
+ </Canvas>
+ <Canvas Opacity="0" Name="Pressed">
+ <Rectangle Stroke="#6868a9" RadiusX="2" RadiusY ="2" Width="520" Height="63">
+ <Rectangle.Fill>
+ <LinearGradientBrush StartPoint="0,0.25" EndPoint="1,0.75">
+ <LinearGradientBrush.GradientStops>
+ <GradientStop Color="#93b9db" Offset="0"/>
+ <GradientStop Color="#ebf6fa" Offset="0.50"/>
+ <GradientStop Color="#93b9db" Offset="1"/>
+ </LinearGradientBrush.GradientStops>
+ </LinearGradientBrush>
+ </Rectangle.Fill>
+ <Rectangle.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="LightGray" GlowSize="3"/>
+ </Rectangle.BitmapEffect>
+ </Rectangle>
+ <StackPanel Margin="7,7,7,7" Orientation="Horizontal">
+ <Image Source="{Binding Path=Icon}" />
+ <StackPanel Margin="6,0,0,10">
+ <TextBlock FontFamily="Segoe" FontSize="16" Foreground="#294073" Text="{Binding Path=Link}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ <TextBlock FontFamily="Segoe" FontSize="10" Foreground="#294073" Text="{Binding Path=Note}">
+ <TextBlock.BitmapEffect>
+ <OuterGlowBitmapEffect GlowColor="White" GlowSize="5"/>
+ </TextBlock.BitmapEffect>
+ </TextBlock>
+ </StackPanel>
+ </StackPanel>
+ </Canvas>
+ </Canvas>
+ <ControlTemplate.Triggers>
+ <DataTrigger Value="True" Binding="{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}">
+ <DataTrigger.EnterActions>
+ <BeginStoryboard>
+ <Storyboard Storyboard.TargetName="Selected" Storyboard.TargetProperty="Opacity">
+ <DoubleAnimation AccelerationRatio="0.2" DecelerationRatio="0.3" From="0.3" To="0.7" Duration="0:0:2" AutoReverse="True" RepeatBehavior="Forever"/>
+ </Storyboard>
+ </BeginStoryboard>
+ </DataTrigger.EnterActions>
+ <DataTrigger.ExitActions>
+ <BeginStoryboard>
+ <Storyboard Storyboard.TargetName="Selected" Storyboard.TargetProperty="Opacity">
+ <DoubleAnimation To="0" Duration="0:0:1" />
+ </Storyboard>
+ </BeginStoryboard>
+ </DataTrigger.ExitActions>
+ </DataTrigger>
+ <EventTrigger RoutedEvent="Button.MouseEnter">
+ <EventTrigger.Actions>
+ <BeginStoryboard>
+ <Storyboard Storyboard.TargetName="Hover" Storyboard.TargetProperty="Opacity">
+ <DoubleAnimation To="1" Duration="0:0:0.2"/>
+ </Storyboard>
+ </BeginStoryboard>
+ </EventTrigger.Actions>
+ </EventTrigger>
+ <EventTrigger RoutedEvent="Button.MouseLeave">
+ <EventTrigger.Actions>
+ <BeginStoryboard>
+ <Storyboard Storyboard.TargetName="Hover" Storyboard.TargetProperty="Opacity">
+ <DoubleAnimation To="0" Duration="0:0:0.5"/>
+ </Storyboard>
+ </BeginStoryboard>
+ </EventTrigger.Actions>
+ </EventTrigger>
+ <EventTrigger RoutedEvent="Button.PreviewMouseLeftButtonDown">
+ <EventTrigger.Actions>
+ <BeginStoryboard>
+ <Storyboard Storyboard.TargetName="Pressed" Storyboard.TargetProperty="Opacity">
+ <DoubleAnimation To="1" Duration="0:0:0.2"/>
+ </Storyboard>
+ </BeginStoryboard>
+ </EventTrigger.Actions>
+ </EventTrigger>
+ <EventTrigger RoutedEvent="Button.PreviewMouseLeftButtonUp">
+ <EventTrigger.Actions>
+ <BeginStoryboard>
+ <Storyboard Storyboard.TargetName="Pressed" Storyboard.TargetProperty="Opacity">
+ <DoubleAnimation To="0" Duration="0:0:0.5"/>
+ </Storyboard>
+ </BeginStoryboard>
+ </EventTrigger.Actions>
+ </EventTrigger>
+ </ControlTemplate.Triggers>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+ </UserControl.Resources>
+ <RadioButton GroupName="commandLinkGroup" Name="button"/>
+</UserControl>
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml.cs
new file mode 100644
index 0000000000..59464842c6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWPF.xaml.cs
@@ -0,0 +1,132 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.ComponentModel;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
+using System.Windows.Media;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation
+{
+ /// <summary>
+ /// Implements a CommandLink button that can be used in WPF user interfaces.
+ /// </summary>
+ public partial class CommandLink : UserControl, INotifyPropertyChanged
+ {
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommandLink()
+ {
+ // Throw PlatformNotSupportedException if the user is not running Vista or beyond
+ CoreHelpers.ThrowIfNotVista();
+
+ this.DataContext = this;
+ InitializeComponent();
+ this.button.Click += new RoutedEventHandler(button_Click);
+ }
+
+ void button_Click(object sender, RoutedEventArgs e)
+ {
+ e.Source = this;
+ if (Click != null)
+ {
+ Click(sender, e);
+ }
+ }
+
+ /// <summary>
+ /// Routed UI command to use for this button
+ /// </summary>
+ public RoutedUICommand Command { get; set; }
+
+ /// <summary>
+ /// Occurs when the control is clicked.
+ /// </summary>
+ public event RoutedEventHandler Click;
+
+ private string link;
+
+ /// <summary>
+ /// Specifies the main instruction text
+ /// </summary>
+ public string Link
+ {
+ get { return link; }
+ set
+ {
+ link = value;
+
+ if (PropertyChanged != null)
+ {
+ PropertyChanged(this, new PropertyChangedEventArgs("Link"));
+ }
+ }
+ }
+ private string note;
+
+ /// <summary>
+ /// Specifies the supporting note text
+ /// </summary>
+ public string Note
+ {
+ get { return note; }
+ set
+ {
+ note = value;
+ if (PropertyChanged != null)
+ {
+ PropertyChanged(this, new PropertyChangedEventArgs("Note"));
+ }
+ }
+ }
+ private ImageSource icon;
+
+ /// <summary>
+ /// Icon to set for the command link button
+ /// </summary>
+ public ImageSource Icon
+ {
+ get { return icon; }
+ set
+ {
+ icon = value;
+ if (PropertyChanged != null)
+ {
+ PropertyChanged(this, new PropertyChangedEventArgs("Icon"));
+ }
+ }
+ }
+
+ /// <summary>
+ /// Indicates if the button is in a checked state
+ /// </summary>
+ public bool? IsCheck
+ {
+ get { return button.IsChecked; }
+ set { button.IsChecked = value; }
+ }
+
+
+ #region INotifyPropertyChanged Members
+
+ /// <summary>
+ /// Occurs when a property value changes.
+ /// </summary>
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ #endregion
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ public static bool IsPlatformSupported
+ {
+ get
+ {
+ return CoreHelpers.RunningOnVista;
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWinforms.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWinforms.cs
new file mode 100644
index 0000000000..a2fe9b7bfb
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Controls/CommandLinkWinforms.cs
@@ -0,0 +1,152 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.ComponentModel;
+using System.Text;
+using System.Windows.Forms;
+using Microsoft.WindowsAPICodePack.Shell;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Controls.WindowsForms
+{
+ /// <summary>
+ /// Implements a CommandLink button that can be used in
+ /// WinForms user interfaces.
+ /// </summary>
+ public class CommandLink : Button
+ {
+ /// <summary>
+ /// Gets a System.Windows.Forms.CreateParams on the base class when
+ /// creating a window.
+ /// </summary>
+ protected override CreateParams CreateParams
+ {
+
+ get
+ {
+ // Add BS_COMMANDLINK style before control creation.
+ CreateParams cp = base.CreateParams;
+
+ cp.Style = AddCommandLinkStyle(cp.Style);
+
+ return cp;
+ }
+ }
+
+ // Let Windows handle the rendering.
+ /// <summary>
+ /// Creates a new instance of this class.
+ /// </summary>
+ public CommandLink()
+ {
+ CoreHelpers.ThrowIfNotVista();
+
+ FlatStyle = FlatStyle.System;
+ }
+
+ // Add Design-Time Support.
+
+ /// <summary>
+ /// Increase default width.
+ /// </summary>
+ protected override System.Drawing.Size DefaultSize
+ {
+ get { return new System.Drawing.Size(180, 60); }
+ }
+
+ /// <summary>
+ /// Specifies the supporting note text
+ /// </summary>
+ [Category("Appearance")]
+ [Description("Specifies the supporting note text.")]
+ [BrowsableAttribute(true)]
+ [DefaultValue("(Note Text)")]
+ public string NoteText
+ {
+ get { return (GetNote(this)); }
+ set
+ {
+ SetNote(this, value);
+ }
+ }
+
+ /// <summary>
+ /// Enable shield icon to be set at design-time.
+ /// </summary>
+ [Category("Appearance")]
+ [Description("Indicates whether the button should be decorated with the security shield icon (Windows Vista only).")]
+ [BrowsableAttribute(true)]
+ [DefaultValue(false)]
+ public bool UseElevationIcon
+ {
+ get { return (useElevationIcon); }
+ set
+ {
+ useElevationIcon = value;
+ SetShieldIcon(this, this.useElevationIcon);
+ }
+ }
+ private bool useElevationIcon;
+
+
+ #region Interop helpers
+
+ private static int AddCommandLinkStyle(int style)
+ {
+ // Only add BS_COMMANDLINK style on Windows Vista or above.
+ // Otherwise, button creation will fail.
+ if (CoreHelpers.RunningOnVista)
+ {
+ style |= ShellNativeMethods.CommandLink;
+ }
+
+ return style;
+ }
+
+ private static string GetNote(System.Windows.Forms.Button Button)
+ {
+ IntPtr retVal = CoreNativeMethods.SendMessage(
+ Button.Handle,
+ ShellNativeMethods.GetNoteLength,
+ IntPtr.Zero,
+ IntPtr.Zero);
+
+ // Add 1 for null terminator, to get the entire string back.
+ int len = ((int)retVal) + 1;
+ StringBuilder strBld = new StringBuilder(len);
+
+ retVal = CoreNativeMethods.SendMessage(Button.Handle, ShellNativeMethods.GetNote, ref len, strBld);
+ return strBld.ToString();
+ }
+
+ private static void SetNote(System.Windows.Forms.Button button, string text)
+ {
+ // This call will be ignored on versions earlier than Windows Vista.
+ CoreNativeMethods.SendMessage(button.Handle, ShellNativeMethods.SetNote, 0, text);
+ }
+
+ static internal void SetShieldIcon(System.Windows.Forms.Button Button, bool Show)
+ {
+ IntPtr fRequired = new IntPtr(Show ? 1 : 0);
+ CoreNativeMethods.SendMessage(
+ Button.Handle,
+ ShellNativeMethods.SetShield,
+ IntPtr.Zero,
+ fRequired);
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ public static bool IsPlatformSupported
+ {
+ get
+ {
+ // We need Windows Vista onwards ...
+ return CoreHelpers.RunningOnVista;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CustomDictionary.xml b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CustomDictionary.xml
new file mode 100644
index 0000000000..dcdeb48fb7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CustomDictionary.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Dictionary>
+ <Words>
+ <Recognized>
+ <Word>Redirectable</Word>
+ <Word>Relaunch</Word>
+ <Word>Transcoded</Word>
+ <Word>Unlocalized</Word>
+ <Word>Cc</Word>
+ <Word>Blu</Word>
+ <Word>Multiselect</Word>
+ <Word>Precreate</Word>
+ <Word>Roamable</Word>
+ <Word>Svcd</Word>
+ <Word>Vcd</Word>
+ <Word>Csc</Word>
+ <Word>Oem</Word>
+ <Word>Unshare</Word>
+ <Word>Param</Word>
+ </Recognized>
+ </Words>
+ <Acronyms>
+ <CasingExceptions>
+ <Acronym>API</Acronym>
+ <!-- COME BACK TO FIX THE BELOW -->
+ <Acronym>TTYTDD</Acronym>
+ <Acronym>SFGAO</Acronym>
+ <Acronym>DOP</Acronym>
+ <Acronym>DRM</Acronym>
+ <Acronym>DTV</Acronym>
+ <Acronym>DVDID</Acronym>
+ <Acronym>EXIF</Acronym>
+ <Acronym>EXIFS</Acronym>
+ <Acronym>FRN</Acronym>
+ <Acronym>GPS</Acronym>
+ <Acronym>ID</Acronym>
+ <Acronym>ISO</Acronym>
+ <Acronym>LCID</Acronym>
+ <Acronym>MCDI</Acronym>
+ <Acronym>MIME</Acronym>
+ <Acronym>SAP</Acronym>
+ <Acronym>ATSC</Acronym>
+ <Acronym>CDR</Acronym>
+ <Acronym>CDRW</Acronym>
+ <Acronym>DOS</Acronym>
+ <Acronym>HDDVD</Acronym>
+ <Acronym>HDDVDR</Acronym>
+ <Acronym>HDDVDRAM</Acronym>
+ <Acronym>HDDVDROM</Acronym>
+ <Acronym>ROM</Acronym>
+ <Acronym>Csc</Acronym>
+ </CasingExceptions>
+ </Acronyms>
+ <DiscreteExceptions>
+ <Term>Wildcards</Term>
+ <Term>Showplaces</Term>
+ </DiscreteExceptions>
+</Dictionary> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellObjects.cd b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellObjects.cd
new file mode 100644
index 0000000000..ae8f19cac6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellObjects.cd
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ClassDiagram MajorVersion="1" MinorVersion="1">
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellObject" Collapsed="true">
+ <Position X="4.75" Y="0.5" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>AAoAAAgAAGAACQANgAJASAYAQABAAIAAAAAAAAAiAiQ=</HashCode>
+ <FileName>Common\ShellObject.cs</FileName>
+ </TypeIdentifier>
+ <Lollipop Position="0.2" />
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellLibrary" Collapsed="true">
+ <Position X="1" Y="4.25" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>AGIAoEAQACAAABBRCIAARCQCAAIABAAMCAEEAAPQKAQ=</HashCode>
+ <FileName>Common\ShellLibrary.cs</FileName>
+ </TypeIdentifier>
+ <Lollipop Orientation="Bottom" Position="0.531" />
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.FileSystemKnownFolder" Collapsed="true">
+ <Position X="2.5" Y="7.5" Width="2" />
+ <TypeIdentifier>
+ <HashCode>BAAAABAAACAgAAoAAkSCIIAAQARAAAAIAoAEIAAACAA=</HashCode>
+ <FileName>KnownFolders\FileSystemKnownFolder.cs</FileName>
+ </TypeIdentifier>
+ <Lollipop Orientation="Bottom" Position="0.242" />
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellContainer" Collapsed="true">
+ <Position X="4.25" Y="2" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>ACAAAAIAAKAAABAAAAAABAAAAAAAAIAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellObjectContainer.cs</FileName>
+ </TypeIdentifier>
+ <Lollipop Position="0.179" />
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellLink" Collapsed="true">
+ <Position X="2" Y="1.5" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>AAQAAACAAAAAAEKAAIAAAIAABAAgESAAIAACAAQAAAA=</HashCode>
+ <FileName>Common\ShellLink.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.NonFileSystemKnownFolder" Collapsed="true">
+ <Position X="5" Y="7.5" Width="2.25" />
+ <TypeIdentifier>
+ <HashCode>BAAAABAAACAgAAoAAkSCIIAAQARAAAAIAoAEIAAACAA=</HashCode>
+ <FileName>KnownFolders\NonFileSystemKnownFolder.cs</FileName>
+ </TypeIdentifier>
+ <Lollipop Orientation="Bottom" Position="0.273" />
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellFile" Collapsed="true">
+ <Position X="8.5" Y="2.75" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAgAAAAAAAIAAAAAAAAABAAAAAAAAAABAAAAAAA=</HashCode>
+ <FileName>Common\ShellFile.cs</FileName>
+ </TypeIdentifier>
+ <Lollipop Position="0.2" />
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellFolder" Collapsed="true">
+ <Position X="4.75" Y="4.25" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellFolder.cs</FileName>
+ <NewMemberFileName>ShellFolder.cs</NewMemberFileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellObjectNode" Collapsed="true">
+ <Position X="7" Y="1.5" Width="2.25" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellObjectNode.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellNonFileSystemItem" Collapsed="true">
+ <Position X="6.25" Y="2.75" Width="1.75" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellNonFileSystemItem.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellSearchCollection" Collapsed="true">
+ <Position X="8.75" Y="4.25" Width="1.75" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellSearchCollection.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellFileSystemFolder" Collapsed="true">
+ <Position X="2.75" Y="6.25" Width="1.75" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAIAIAAAAAAABAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellFileSystemFolder.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellNonFileSystemFolder" Collapsed="true">
+ <Position X="5" Y="6.25" Width="2" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellNonFileSystemFolder.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellSavedSearchCollection" Collapsed="true">
+ <Position X="7.25" Y="6.25" Width="2.25" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellSavedSearchCollection.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellSearchConnector" Collapsed="true">
+ <Position X="9.75" Y="6.25" Width="1.75" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellSearchConnector.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellSearchFolder" Collapsed="true">
+ <Position X="12" Y="6.25" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>AAQAEBAAAAAQAAABBEAAAQAIAIAAAAAAAJBAAgAAAAA=</HashCode>
+ <FileName>Common\ShellSearchFolder.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Interface Name="Microsoft.WindowsAPICodePack.Shell.IKnownFolder" Collapsed="true">
+ <Position X="8" Y="7.5" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>BAAAABAAAAAgAAoAAkCAIIAAQARAAAAIAoAEIAAACAA=</HashCode>
+ <FileName>KnownFolders\IKnownFolder.cs</FileName>
+ </TypeIdentifier>
+ </Interface>
+ <Font Name="Segoe UI" Size="9" />
+</ClassDiagram> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellThumbnailClassDiagram.cd b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellThumbnailClassDiagram.cd
new file mode 100644
index 0000000000..b60a69a949
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Design/ShellThumbnailClassDiagram.cd
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ClassDiagram MajorVersion="1" MinorVersion="1" GroupingSetting="Access" MembersFormat="FullSignature">
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ShellThumbnail">
+ <Position X="0.5" Y="0.5" Width="4" />
+ <TypeIdentifier>
+ <HashCode>QAABAABAAAAAAASAABkIABggAQAACgABgBIQAAEAAEI=</HashCode>
+ <FileName>Common\ShellThumbnail.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.DefaultIconSize">
+ <Position X="5.25" Y="0.5" Width="1.5" />
+ <TypeIdentifier>
+ <HashCode>gAAAAAAAAAAAAAAQAAAAAABgAAAAAAAAAAAAAAAEAAA=</HashCode>
+ <FileName>Common\DefaultShellImageSizes.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.DefaultThumbnailSize">
+ <Position X="7" Y="0.5" Width="1.75" />
+ <TypeIdentifier>
+ <HashCode>gAAAAAAAAAAAAAAQAAAAAABgAAAAAAAAAAAAAAAEAAA=</HashCode>
+ <FileName>Common\DefaultShellImageSizes.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Enum Name="Microsoft.WindowsAPICodePack.Shell.ShellThumbnailRetrievalOptions">
+ <Position X="5.25" Y="2.5" Width="2.5" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAACAAAAAIAAAAAAAAAAAAAAAIAAAAAA=</HashCode>
+ <FileName>Common\ShellThumbnailEnums.cs</FileName>
+ </TypeIdentifier>
+ </Enum>
+ <Enum Name="Microsoft.WindowsAPICodePack.Shell.ShellThumbnailFormatOptions">
+ <Position X="8.25" Y="2.5" Width="2.25" />
+ <TypeIdentifier>
+ <HashCode>BAAAAAAAAAAAAAAAACAAIAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>Common\ShellThumbnailEnums.cs</FileName>
+ </TypeIdentifier>
+ </Enum>
+ <Font Name="Segoe UI" Size="9" />
+</ClassDiagram> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/DesktopWindowManagerNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/DesktopWindowManagerNativeMethods.cs
new file mode 100644
index 0000000000..974c1440a6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/DesktopWindowManagerNativeMethods.cs
@@ -0,0 +1,65 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Security;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ internal static class DWMMessages
+ {
+ internal const int WM_DWMCOMPOSITIONCHANGED = 0x031E;
+ internal const int WM_DWMNCRENDERINGCHANGED = 0x031F;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct Margins
+ {
+ public int LeftWidth; // width of left border that retains its size
+ public int RightWidth; // width of right border that retains its size
+ public int TopHeight; // height of top border that retains its size
+ public int BottomHeight; // height of bottom border that retains its size
+
+ public Margins(bool fullWindow)
+ {
+ LeftWidth = RightWidth = TopHeight = BottomHeight = (fullWindow ? -1 : 0);
+ }
+ };
+
+ internal enum CompositionEnable
+ {
+ Disable = 0,
+ Enable = 1
+ }
+
+ /// <summary>
+ /// Internal class that contains interop declarations for
+ /// functions that are not benign and are performance critical.
+ /// </summary>
+ [SuppressUnmanagedCodeSecurity]
+ internal static class DesktopWindowManagerNativeMethods
+ {
+ [DllImport("DwmApi.dll")]
+ internal static extern int DwmExtendFrameIntoClientArea(
+ IntPtr hwnd,
+ ref Margins m);
+
+ [DllImport("DwmApi.dll", PreserveSig = false)]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool DwmIsCompositionEnabled();
+
+ [DllImport("DwmApi.dll")]
+ internal static extern int DwmEnableComposition(
+ CompositionEnable compositionAction);
+
+ [DllImport("user32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool GetWindowRect(IntPtr hwnd, [Out] out NativeRect rect);
+
+ [DllImport("user32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool GetClientRect(IntPtr hwnd, [Out] out NativeRect rect);
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassEvents.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassEvents.cs
new file mode 100644
index 0000000000..d21351aec3
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassEvents.cs
@@ -0,0 +1,22 @@
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Event argument for The GlassAvailabilityChanged event
+ /// </summary>
+ public class AeroGlassCompositionChangedEventArgs : EventArgs
+ {
+ internal AeroGlassCompositionChangedEventArgs(bool avialbility)
+ {
+ GlassAvailable = avialbility;
+ }
+
+ /// <summary>
+ /// The new GlassAvailable state
+ /// </summary>
+ public bool GlassAvailable { get; private set; }
+
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassForm.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassForm.cs
new file mode 100644
index 0000000000..b850b08e15
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassForm.cs
@@ -0,0 +1,144 @@
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+using MS.WindowsAPICodePack.Internal;
+
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Windows Glass Form
+ /// Inherit from this form to be able to enable glass on Windows Form
+ /// </summary>
+ public class GlassForm : Form
+ {
+ #region properties
+
+ /// <summary>
+ /// Get determines if AeroGlass is enabled on the desktop. Set enables/disables AreoGlass on the desktop.
+ /// </summary>
+ public static bool AeroGlassCompositionEnabled
+ {
+ set
+ {
+ DesktopWindowManagerNativeMethods.DwmEnableComposition(
+ value ? CompositionEnable.Enable : CompositionEnable.Disable);
+ }
+ get
+ {
+ return DesktopWindowManagerNativeMethods.DwmIsCompositionEnabled();
+ }
+ }
+
+ #endregion
+
+ #region events
+
+ /// <summary>
+ /// Fires when the availability of Glass effect changes.
+ /// </summary>
+ public event EventHandler<AeroGlassCompositionChangedEventArgs> AeroGlassCompositionChanged;
+
+ #endregion
+
+ #region operations
+
+ /// <summary>
+ /// Makes the background of current window transparent
+ /// </summary>
+ public void SetAeroGlassTransparency()
+ {
+ this.BackColor = Color.Transparent;
+ }
+
+ /// <summary>
+ /// Excludes a Control from the AeroGlass frame.
+ /// </summary>
+ /// <param name="control">The control to exclude.</param>
+ /// <remarks>Many non-WPF rendered controls (i.e., the ExplorerBrowser control) will not
+ /// render properly on top of an AeroGlass frame. </remarks>
+ public void ExcludeControlFromAeroGlass(Control control)
+ {
+ if (control == null) { throw new ArgumentNullException("control"); }
+
+ if (AeroGlassCompositionEnabled)
+ {
+ Rectangle clientScreen = this.RectangleToScreen(this.ClientRectangle);
+ Rectangle controlScreen = control.RectangleToScreen(control.ClientRectangle);
+
+ Margins margins = new Margins();
+ margins.LeftWidth = controlScreen.Left - clientScreen.Left;
+ margins.RightWidth = clientScreen.Right - controlScreen.Right;
+ margins.TopHeight = controlScreen.Top - clientScreen.Top;
+ margins.BottomHeight = clientScreen.Bottom - controlScreen.Bottom;
+
+ // Extend the Frame into client area
+ DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(Handle, ref margins);
+ }
+ }
+
+ /// <summary>
+ /// Resets the AeroGlass exclusion area.
+ /// </summary>
+ public void ResetAeroGlass()
+ {
+ if (this.Handle != IntPtr.Zero)
+ {
+ Margins margins = new Margins(true);
+ DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(this.Handle, ref margins);
+ }
+ }
+ #endregion
+
+ #region implementation
+ /// <summary>
+ /// Catches the DWM messages to this window and fires the appropriate event.
+ /// </summary>
+ /// <param name="m"></param>
+
+ protected override void WndProc(ref System.Windows.Forms.Message m)
+ {
+ if (m.Msg == DWMMessages.WM_DWMCOMPOSITIONCHANGED
+ || m.Msg == DWMMessages.WM_DWMNCRENDERINGCHANGED)
+ {
+ if (AeroGlassCompositionChanged != null)
+ {
+ AeroGlassCompositionChanged.Invoke(this,
+ new AeroGlassCompositionChangedEventArgs(AeroGlassCompositionEnabled));
+ }
+ }
+
+ base.WndProc(ref m);
+ }
+
+ /// <summary>
+ /// Initializes the Form for AeroGlass
+ /// </summary>
+ /// <param name="e">The arguments for this event</param>
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ ResetAeroGlass();
+ }
+
+ /// <summary>
+ /// Overide OnPaint to paint the background as black.
+ /// </summary>
+ /// <param name="e">PaintEventArgs</param>
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);
+
+ if (DesignMode == false)
+ {
+ if (AeroGlassCompositionEnabled && e != null)
+ {
+ // Paint the all the regions black to enable glass
+ e.Graphics.FillRectangle(Brushes.Black, this.ClientRectangle);
+ }
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassWindow.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassWindow.cs
new file mode 100644
index 0000000000..894cea6651
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/DesktopWindowManager/GlassWindow.cs
@@ -0,0 +1,150 @@
+using System;
+using System.Windows.Interop;
+using System.Windows.Media;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+using System.Windows;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+
+ /// <summary>
+ /// WPF Glass Window
+ /// Inherit from this window class to enable glass on a WPF window
+ /// </summary>
+ public class GlassWindow : Window
+ {
+ #region properties
+
+ /// <summary>
+ /// Get determines if AeroGlass is enabled on the desktop. Set enables/disables AreoGlass on the desktop.
+ /// </summary>
+ public static bool AeroGlassCompositionEnabled
+ {
+ set
+ {
+ DesktopWindowManagerNativeMethods.DwmEnableComposition(
+ value ? CompositionEnable.Enable : CompositionEnable.Disable);
+ }
+ get
+ {
+ return DesktopWindowManagerNativeMethods.DwmIsCompositionEnabled();
+ }
+ }
+
+ #endregion
+
+ #region events
+
+ /// <summary>
+ /// Fires when the availability of Glass effect changes.
+ /// </summary>
+ public event EventHandler<AeroGlassCompositionChangedEventArgs> AeroGlassCompositionChanged;
+
+ #endregion
+
+ #region operations
+
+ /// <summary>
+ /// Makes the background of current window transparent from both Wpf and Windows Perspective
+ /// </summary>
+ public void SetAeroGlassTransparency()
+ {
+ // Set the Background to transparent from Win32 perpective
+ HwndSource.FromHwnd(windowHandle).CompositionTarget.BackgroundColor = System.Windows.Media.Colors.Transparent;
+
+ // Set the Background to transparent from WPF perpective
+ this.Background = Brushes.Transparent;
+ }
+
+ /// <summary>
+ /// Excludes a UI element from the AeroGlass frame.
+ /// </summary>
+ /// <param name="element">The element to exclude.</param>
+ /// <remarks>Many non-WPF rendered controls (i.e., the ExplorerBrowser control) will not
+ /// render properly on top of an AeroGlass frame. </remarks>
+ public void ExcludeElementFromAeroGlass(FrameworkElement element)
+ {
+ if (AeroGlassCompositionEnabled && element != null)
+ {
+ // calculate total size of window nonclient area
+ HwndSource hwndSource = PresentationSource.FromVisual(this) as HwndSource;
+ NativeRect windowRect;
+ NativeRect clientRect;
+ DesktopWindowManagerNativeMethods.GetWindowRect(hwndSource.Handle, out windowRect);
+ DesktopWindowManagerNativeMethods.GetClientRect(hwndSource.Handle, out clientRect);
+ Size nonClientSize = new Size(
+ (double)(windowRect.Right - windowRect.Left) - (double)(clientRect.Right - clientRect.Left),
+ (double)(windowRect.Bottom - windowRect.Top) - (double)(clientRect.Bottom - clientRect.Top));
+
+ // calculate size of element relative to nonclient area
+ GeneralTransform transform = element.TransformToAncestor(this);
+ Point topLeftFrame = transform.Transform(new Point(0, 0));
+ Point bottomRightFrame = transform.Transform(new Point(
+ element.ActualWidth + nonClientSize.Width,
+ element.ActualHeight + nonClientSize.Height));
+
+ // Create a margin structure
+ Margins margins = new Margins();
+ margins.LeftWidth = (int)topLeftFrame.X;
+ margins.RightWidth = (int)(this.ActualWidth - bottomRightFrame.X);
+ margins.TopHeight = (int)(topLeftFrame.Y);
+ margins.BottomHeight = (int)(this.ActualHeight - bottomRightFrame.Y);
+
+ // Extend the Frame into client area
+ DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(windowHandle, ref margins);
+ }
+ }
+
+ /// <summary>
+ /// Resets the AeroGlass exclusion area.
+ /// </summary>
+ public void ResetAeroGlass()
+ {
+ Margins margins = new Margins(true);
+ DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(windowHandle, ref margins);
+ }
+
+ #endregion
+
+ #region implementation
+ private IntPtr windowHandle;
+
+ private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
+ {
+ if (msg == DWMMessages.WM_DWMCOMPOSITIONCHANGED
+ || msg == DWMMessages.WM_DWMNCRENDERINGCHANGED)
+ {
+ if (AeroGlassCompositionChanged != null)
+ {
+ AeroGlassCompositionChanged.Invoke(this,
+ new AeroGlassCompositionChangedEventArgs(AeroGlassCompositionEnabled));
+ }
+
+ handled = true;
+ }
+ return IntPtr.Zero;
+ }
+
+ /// <summary>
+ /// OnSourceInitialized
+ /// Override SourceInitialized to initialize windowHandle for this window.
+ /// A valid windowHandle is available only after the sourceInitialized is completed
+ /// </summary>
+ /// <param name="e">EventArgs</param>
+ protected override void OnSourceInitialized(EventArgs e)
+ {
+ base.OnSourceInitialized(e);
+ WindowInteropHelper interopHelper = new WindowInteropHelper(this);
+ this.windowHandle = interopHelper.Handle;
+
+ // add Window Proc hook to capture DWM messages
+ HwndSource source = HwndSource.FromHwnd(windowHandle);
+ source.AddHook(new HwndSourceHook(WndProc));
+
+ ResetAeroGlass();
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/CommonControlException.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/CommonControlException.cs
new file mode 100644
index 0000000000..c7eace18df
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/CommonControlException.cs
@@ -0,0 +1,61 @@
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ /// <summary>
+ /// An exception thrown when an error occurs while dealing with Control objects.
+ /// </summary>
+ [Serializable]
+ public class CommonControlException : COMException
+ {
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public CommonControlException() { }
+
+ /// <summary>
+ /// Initializes an excpetion with a custom message.
+ /// </summary>
+ /// <param name="message"></param>
+ public CommonControlException(string message) : base(message) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and inner exception.
+ /// </summary>
+ /// <param name="message"></param>
+ /// <param name="innerException"></param>
+ public CommonControlException(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ }
+
+ /// <summary>
+ /// Initializes an exception with custom message and error code.
+ /// </summary>
+ /// <param name="message"></param>
+ /// <param name="errorCode"></param>
+ public CommonControlException(string message, int errorCode) : base(message, errorCode) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and error code.
+ /// </summary>
+ /// <param name="message"></param>
+ /// <param name="errorCode"></param>
+ internal CommonControlException(string message, HResult errorCode) : this(message, (int)errorCode) { }
+
+ /// <summary>
+ /// Initializes an exception from serialization info and a context.
+ /// </summary>
+ /// <param name="info"></param>
+ /// <param name="context"></param>
+ protected CommonControlException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context)
+ : base(info, context)
+ {
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml
new file mode 100644
index 0000000000..9d5cee96ed
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml
@@ -0,0 +1,8 @@
+<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->
+<UserControl x:Class="Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation.ExplorerBrowser"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+ <Grid x:Name="root">
+ <TextBlock Margin="10,10,10,10"> Explorer Browser Control </TextBlock>
+ </Grid>
+</UserControl>
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml.cs
new file mode 100644
index 0000000000..24ff186f00
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml.cs
@@ -0,0 +1,987 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+using System;
+using System.Collections.ObjectModel;
+using System.Threading;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Forms.Integration;
+using System.Windows.Threading;
+using Microsoft.WindowsAPICodePack.Shell;
+
+
+namespace Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation
+{
+ /// <summary>
+ /// Interaction logic for ExplorerBrowser.xaml
+ /// </summary>
+ public partial class ExplorerBrowser : UserControl, IDisposable
+ {
+ /// <summary>
+ /// The underlying WinForms control
+ /// </summary>
+ public Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser ExplorerBrowserControl
+ {
+ get;
+ set;
+ }
+
+ private ObservableCollection<ShellObject> selectedItems;
+ private ObservableCollection<ShellObject> items;
+ private ObservableCollection<ShellObject> navigationLog;
+ private DispatcherTimer dtCLRUpdater = new DispatcherTimer();
+
+ private ShellObject initialNavigationTarget;
+ private ExplorerBrowserViewMode? initialViewMode;
+
+ private AutoResetEvent itemsChanged = new AutoResetEvent(false);
+ private AutoResetEvent selectionChanged = new AutoResetEvent(false);
+ private int selectionChangeWaitCount;
+
+ /// <summary>
+ /// Hosts the ExplorerBrowser WinForms wrapper in this control
+ /// </summary>
+ public ExplorerBrowser()
+ {
+ InitializeComponent();
+
+ // the ExplorerBrowser WinForms control
+ ExplorerBrowserControl = new Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser();
+
+ // back the dependency collection properties with instances
+ SelectedItems = selectedItems = new ObservableCollection<ShellObject>();
+ Items = items = new ObservableCollection<ShellObject>();
+ NavigationLog = navigationLog = new ObservableCollection<ShellObject>();
+
+ // hook up events for collection synchronization
+ ExplorerBrowserControl.ItemsChanged += new EventHandler(ItemsChanged);
+ ExplorerBrowserControl.SelectionChanged += new EventHandler(SelectionChanged);
+ ExplorerBrowserControl.ViewEnumerationComplete += new EventHandler(ExplorerBrowserControl_ViewEnumerationComplete);
+ ExplorerBrowserControl.ViewSelectedItemChanged += new EventHandler(ExplorerBrowserControl_ViewSelectedItemChanged);
+ ExplorerBrowserControl.NavigationLog.NavigationLogChanged += new EventHandler<NavigationLogEventArgs>(NavigationLogChanged);
+
+ // host the control
+ WindowsFormsHost host = new WindowsFormsHost();
+ try
+ {
+ host.Child = ExplorerBrowserControl;
+ this.root.Children.Clear();
+ this.root.Children.Add(host);
+ }
+ catch
+ {
+ host.Dispose();
+ throw;
+ }
+
+ Loaded += new RoutedEventHandler(ExplorerBrowser_Loaded);
+ }
+
+ void ExplorerBrowserControl_ViewSelectedItemChanged(object sender, EventArgs e)
+ {
+ }
+
+ void ExplorerBrowserControl_ViewEnumerationComplete(object sender, EventArgs e)
+ {
+ itemsChanged.Set();
+ selectionChanged.Set();
+ }
+
+ /// <summary>
+ /// To avoid the 'Dispatcher processing has been suspended' InvalidOperationException on Win7,
+ /// the ExplorerBorwser native control is initialized after this control is fully loaded.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ void ExplorerBrowser_Loaded(object sender, RoutedEventArgs e)
+ {
+ // setup timer to update dependency properties from CLR properties of WinForms ExplorerBrowser object
+ dtCLRUpdater.Tick += new EventHandler(UpdateDependencyPropertiesFromCLRPRoperties);
+ dtCLRUpdater.Interval = new TimeSpan(100 * 10000); // 100ms
+ dtCLRUpdater.Start();
+
+ if (initialNavigationTarget != null)
+ {
+ ExplorerBrowserControl.Navigate(initialNavigationTarget);
+ initialNavigationTarget = null;
+ }
+
+ if (initialViewMode != null)
+ {
+ ExplorerBrowserControl.ContentOptions.ViewMode = (ExplorerBrowserViewMode)initialViewMode;
+ initialViewMode = null;
+ }
+ }
+
+ /// <summary>
+ /// Map changes to the CLR flags to the dependency properties
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ void UpdateDependencyPropertiesFromCLRPRoperties(object sender, EventArgs e)
+ {
+ AlignLeft = ExplorerBrowserControl.ContentOptions.AlignLeft;
+ AutoArrange = ExplorerBrowserControl.ContentOptions.AutoArrange;
+ CheckSelect = ExplorerBrowserControl.ContentOptions.CheckSelect;
+ ExtendedTiles = ExplorerBrowserControl.ContentOptions.ExtendedTiles;
+ FullRowSelect = ExplorerBrowserControl.ContentOptions.FullRowSelect;
+ HideFileNames = ExplorerBrowserControl.ContentOptions.HideFileNames;
+ NoBrowserViewState = ExplorerBrowserControl.ContentOptions.NoBrowserViewState;
+ NoColumnHeader = ExplorerBrowserControl.ContentOptions.NoColumnHeader;
+ NoHeaderInAllViews = ExplorerBrowserControl.ContentOptions.NoHeaderInAllViews;
+ NoIcons = ExplorerBrowserControl.ContentOptions.NoIcons;
+ NoSubfolders = ExplorerBrowserControl.ContentOptions.NoSubfolders;
+ SingleClickActivate = ExplorerBrowserControl.ContentOptions.SingleClickActivate;
+ SingleSelection = ExplorerBrowserControl.ContentOptions.SingleSelection;
+ ThumbnailSize = ExplorerBrowserControl.ContentOptions.ThumbnailSize;
+ ViewMode = ExplorerBrowserControl.ContentOptions.ViewMode;
+ AlwaysNavigate = ExplorerBrowserControl.NavigationOptions.AlwaysNavigate;
+ NavigateOnce = ExplorerBrowserControl.NavigationOptions.NavigateOnce;
+ AdvancedQueryPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.AdvancedQuery;
+ CommandsPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Commands;
+ CommandsOrganizePane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.CommandsOrganize;
+ CommandsViewPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.CommandsView;
+ DetailsPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Details;
+ NavigationPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Navigation;
+ PreviewPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Preview;
+ QueryPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Query;
+ NavigationLogIndex = ExplorerBrowserControl.NavigationLog.CurrentLocationIndex;
+
+ if (itemsChanged.WaitOne(1, false))
+ {
+ items.Clear();
+ foreach (ShellObject obj in ExplorerBrowserControl.Items)
+ {
+ items.Add(obj);
+ }
+ }
+
+ if (selectionChanged.WaitOne(1, false))
+ {
+ selectionChangeWaitCount = 4;
+ }
+ else if (selectionChangeWaitCount > 0)
+ {
+ selectionChangeWaitCount--;
+
+ if (selectionChangeWaitCount == 0)
+ {
+ selectedItems.Clear();
+ foreach (ShellObject obj in ExplorerBrowserControl.SelectedItems)
+ {
+ selectedItems.Add(obj);
+ }
+ }
+ }
+ }
+
+ /// <summary>
+ /// Synchronize NavigationLog collection to dependency collection
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="args"></param>
+ void NavigationLogChanged(object sender, NavigationLogEventArgs args)
+ {
+ navigationLog.Clear();
+ foreach (ShellObject obj in ExplorerBrowserControl.NavigationLog.Locations)
+ {
+ navigationLog.Add(obj);
+ }
+ }
+
+ /// <summary>
+ /// Synchronize SelectedItems collection to dependency collection
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ void SelectionChanged(object sender, EventArgs e)
+ {
+ selectionChanged.Set();
+ }
+
+ // Synchronize ItemsCollection to dependency collection
+ void ItemsChanged(object sender, EventArgs e)
+ {
+ itemsChanged.Set();
+ }
+
+ /// <summary>
+ /// The items in the ExplorerBrowser window
+ /// </summary>
+ public ObservableCollection<ShellObject> Items
+ {
+ get
+ {
+ return (ObservableCollection<ShellObject>)GetValue(ItemsProperty);
+ }
+ set
+ {
+ SetValue(ItemsPropertyKey, value);
+ }
+ }
+
+ private static readonly DependencyPropertyKey ItemsPropertyKey =
+ DependencyProperty.RegisterReadOnly(
+ "Items", typeof(ObservableCollection<ShellObject>),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(null));
+
+ /// <summary>
+ /// The items in the ExplorerBrowser window
+ /// </summary>
+ public static readonly DependencyProperty ItemsProperty = ItemsPropertyKey.DependencyProperty;
+
+ /// <summary>
+ /// The selected items in the ExplorerBrowser window
+ /// </summary>
+ public ObservableCollection<ShellObject> SelectedItems
+ {
+ get
+ {
+ return (ObservableCollection<ShellObject>)GetValue(SelectedItemsProperty);
+ }
+ internal set
+ {
+ SetValue(SelectedItemsPropertyKey, value);
+ }
+ }
+
+ private static readonly DependencyPropertyKey SelectedItemsPropertyKey =
+ DependencyProperty.RegisterReadOnly(
+ "SelectedItems", typeof(ObservableCollection<ShellObject>),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(null));
+
+ /// <summary>
+ /// The selected items in the ExplorerBrowser window
+ /// </summary>
+ public ObservableCollection<ShellObject> NavigationLog
+ {
+ get
+ {
+ return (ObservableCollection<ShellObject>)GetValue(NavigationLogProperty);
+ }
+ internal set
+ {
+ SetValue(NavigationLogPropertyKey, value);
+ }
+ }
+
+ private static readonly DependencyPropertyKey NavigationLogPropertyKey =
+ DependencyProperty.RegisterReadOnly(
+ "NavigationLog", typeof(ObservableCollection<ShellObject>),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(null));
+
+ /// <summary>
+ /// The NavigationLog
+ /// </summary>
+ public static readonly DependencyProperty NavigationLogProperty = NavigationLogPropertyKey.DependencyProperty;
+
+ /// <summary>
+ /// The selected items in the ExplorerBrowser window
+ /// </summary>
+ public static readonly DependencyProperty SelectedItemsProperty = SelectedItemsPropertyKey.DependencyProperty;
+
+
+ /// <summary>
+ /// The location the explorer browser is navigating to
+ /// </summary>
+ public ShellObject NavigationTarget
+ {
+ get
+ {
+ return (ShellObject)GetValue(NavigationTargetProperty);
+ }
+ set
+ {
+ SetValue(NavigationTargetProperty, value);
+ }
+ }
+
+ /// <summary>
+ /// The DependencyProperty for the NavigationTarget property
+ /// </summary>
+ public static readonly DependencyProperty NavigationTargetProperty =
+ DependencyProperty.Register(
+ "NavigationTarget", typeof(ShellObject),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(null, navigationTargetChanged));
+
+ private static void navigationTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+
+ if (instance.ExplorerBrowserControl.explorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.Navigate((ShellObject)e.NewValue);
+ }
+ else
+ {
+ instance.initialNavigationTarget = (ShellObject)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// The view should be left-aligned.
+ /// </summary>
+ public bool AlignLeft
+ {
+ get { return (bool)GetValue(AlignLeftProperty); }
+ set { SetValue(AlignLeftProperty, value); }
+ }
+
+ internal static DependencyProperty AlignLeftProperty =
+ DependencyProperty.Register(
+ "AlignLeft", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnAlignLeftChanged));
+
+ private static void OnAlignLeftChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ instance.ExplorerBrowserControl.ContentOptions.AlignLeft = (bool)e.NewValue;
+ }
+
+
+ /// <summary>
+ /// Automatically arrange the elements in the view.
+ /// </summary>
+ public bool AutoArrange
+ {
+ get { return (bool)GetValue(AutoArrangeProperty); }
+ set { SetValue(AutoArrangeProperty, value); }
+ }
+
+ internal static DependencyProperty AutoArrangeProperty =
+ DependencyProperty.Register(
+ "AutoArrange", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnAutoArrangeChanged));
+
+ private static void OnAutoArrangeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ instance.ExplorerBrowserControl.ContentOptions.AutoArrange = (bool)e.NewValue;
+ }
+
+ /// <summary>
+ /// Turns on check mode for the view
+ /// </summary>
+ public bool CheckSelect
+ {
+ get { return (bool)GetValue(CheckSelectProperty); }
+ set { SetValue(CheckSelectProperty, value); }
+ }
+
+ internal static DependencyProperty CheckSelectProperty =
+ DependencyProperty.Register(
+ "CheckSelect", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnCheckSelectChanged));
+
+ private static void OnCheckSelectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.CheckSelect = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// When the view is in "tile view mode" the layout of a single item should be extended to the width of the view.
+ /// </summary>
+ public bool ExtendedTiles
+ {
+ get { return (bool)GetValue(ExtendedTilesProperty); }
+ set { SetValue(ExtendedTilesProperty, value); }
+ }
+
+ internal static DependencyProperty ExtendedTilesProperty =
+ DependencyProperty.Register(
+ "ExtendedTiles", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnExtendedTilesChanged));
+
+ private static void OnExtendedTilesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ instance.ExplorerBrowserControl.ContentOptions.ExtendedTiles = (bool)e.NewValue;
+ }
+
+ /// <summary>
+ /// When an item is selected, the item and all its sub-items are highlighted.
+ /// </summary>
+ public bool FullRowSelect
+ {
+ get { return (bool)GetValue(FullRowSelectProperty); }
+ set { SetValue(FullRowSelectProperty, value); }
+ }
+
+ internal static DependencyProperty FullRowSelectProperty =
+ DependencyProperty.Register(
+ "FullRowSelect", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnFullRowSelectChanged));
+
+ private static void OnFullRowSelectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.FullRowSelect = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// The view should not display file names
+ /// </summary>
+ public bool HideFileNames
+ {
+ get { return (bool)GetValue(HideFileNamesProperty); }
+ set { SetValue(HideFileNamesProperty, value); }
+ }
+
+ internal static DependencyProperty HideFileNamesProperty =
+ DependencyProperty.Register(
+ "HideFileNames", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnHideFileNamesChanged));
+
+ private static void OnHideFileNamesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.HideFileNames = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// The view should not save view state in the browser.
+ /// </summary>
+ public bool NoBrowserViewState
+ {
+ get { return (bool)GetValue(NoBrowserViewStateProperty); }
+ set { SetValue(NoBrowserViewStateProperty, value); }
+ }
+
+ internal static DependencyProperty NoBrowserViewStateProperty =
+ DependencyProperty.Register(
+ "NoBrowserViewState", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnNoBrowserViewStateChanged));
+
+ private static void OnNoBrowserViewStateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.NoBrowserViewState = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Do not display a column header in the view in any view mode.
+ /// </summary>
+ public bool NoColumnHeader
+ {
+ get { return (bool)GetValue(NoColumnHeaderProperty); }
+ set { SetValue(NoColumnHeaderProperty, value); }
+ }
+
+ internal static DependencyProperty NoColumnHeaderProperty =
+ DependencyProperty.Register(
+ "NoColumnHeader", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnNoColumnHeaderChanged));
+
+ private static void OnNoColumnHeaderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ instance.ExplorerBrowserControl.ContentOptions.NoColumnHeader = (bool)e.NewValue;
+ }
+
+ /// <summary>
+ /// Only show the column header in details view mode.
+ /// </summary>
+ public bool NoHeaderInAllViews
+ {
+ get { return (bool)GetValue(NoHeaderInAllViewsProperty); }
+ set { SetValue(NoHeaderInAllViewsProperty, value); }
+ }
+
+ internal static DependencyProperty NoHeaderInAllViewsProperty =
+ DependencyProperty.Register(
+ "NoHeaderInAllViews", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnNoHeaderInAllViewsChanged));
+
+ private static void OnNoHeaderInAllViewsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.NoHeaderInAllViews = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// The view should not display icons.
+ /// </summary>
+ public bool NoIcons
+ {
+ get { return (bool)GetValue(NoIconsProperty); }
+ set { SetValue(NoIconsProperty, value); }
+ }
+
+ internal static DependencyProperty NoIconsProperty =
+ DependencyProperty.Register(
+ "NoIcons", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnNoIconsChanged));
+
+ private static void OnNoIconsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.NoIcons = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Do not show subfolders.
+ /// </summary>
+ public bool NoSubfolders
+ {
+ get { return (bool)GetValue(NoSubfoldersProperty); }
+ set { SetValue(NoSubfoldersProperty, value); }
+ }
+
+ internal static DependencyProperty NoSubfoldersProperty =
+ DependencyProperty.Register(
+ "NoSubfolders", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnNoSubfoldersChanged));
+
+ private static void OnNoSubfoldersChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.NoSubfolders = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Navigate with a single click
+ /// </summary>
+ public bool SingleClickActivate
+ {
+ get { return (bool)GetValue(SingleClickActivateProperty); }
+ set { SetValue(SingleClickActivateProperty, value); }
+ }
+
+ internal static DependencyProperty SingleClickActivateProperty =
+ DependencyProperty.Register(
+ "SingleClickActivate", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnSingleClickActivateChanged));
+
+ private static void OnSingleClickActivateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.SingleClickActivate = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Do not allow more than a single item to be selected.
+ /// </summary>
+ public bool SingleSelection
+ {
+ get { return (bool)GetValue(SingleSelectionProperty); }
+ set { SetValue(SingleSelectionProperty, value); }
+ }
+
+ internal static DependencyProperty SingleSelectionProperty =
+ DependencyProperty.Register(
+ "SingleSelection", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnSingleSelectionChanged));
+
+ private static void OnSingleSelectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.SingleSelection = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// The size of the thumbnails in the explorer browser
+ /// </summary>
+ public int ThumbnailSize
+ {
+ get { return (int)GetValue(ThumbnailSizeProperty); }
+ set { SetValue(ThumbnailSizeProperty, value); }
+ }
+
+ internal static DependencyProperty ThumbnailSizeProperty =
+ DependencyProperty.Register(
+ "ThumbnailSize", typeof(int),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(32, OnThumbnailSizeChanged));
+
+ private static void OnThumbnailSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.ContentOptions.ThumbnailSize = (int)e.NewValue;
+ }
+ }
+
+
+
+ /// <summary>
+ /// The various view modes of the explorer browser control
+ /// </summary>
+ public ExplorerBrowserViewMode ViewMode
+ {
+ get { return (ExplorerBrowserViewMode)GetValue(ViewModeProperty); }
+ set { SetValue(ViewModeProperty, value); }
+ }
+
+ internal static DependencyProperty ViewModeProperty =
+ DependencyProperty.Register(
+ "ViewMode", typeof(ExplorerBrowserViewMode),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(ExplorerBrowserViewMode.Auto, OnViewModeChanged));
+
+ private static void OnViewModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+
+ if (instance.ExplorerBrowserControl != null)
+ {
+ if (instance.ExplorerBrowserControl.explorerBrowserControl == null)
+ {
+ instance.initialViewMode = (ExplorerBrowserViewMode)e.NewValue;
+ }
+ else
+ {
+ instance.ExplorerBrowserControl.ContentOptions.ViewMode = (ExplorerBrowserViewMode)e.NewValue;
+ }
+ }
+ }
+
+
+ /// <summary>
+ /// Always navigate, even if you are attempting to navigate to the current folder.
+ /// </summary>
+ public bool AlwaysNavigate
+ {
+ get { return (bool)GetValue(AlwaysNavigateProperty); }
+ set { SetValue(AlwaysNavigateProperty, value); }
+ }
+
+ internal static DependencyProperty AlwaysNavigateProperty =
+ DependencyProperty.Register(
+ "AlwaysNavigate", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnAlwaysNavigateChanged));
+
+ private static void OnAlwaysNavigateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.AlwaysNavigate = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Do not navigate further than the initial navigation.
+ /// </summary>
+ public bool NavigateOnce
+ {
+ get { return (bool)GetValue(NavigateOnceProperty); }
+ set { SetValue(NavigateOnceProperty, value); }
+ }
+
+ internal static DependencyProperty NavigateOnceProperty =
+ DependencyProperty.Register(
+ "NavigateOnce", typeof(bool),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(false, OnNavigateOnceChanged));
+
+ private static void OnNavigateOnceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.NavigateOnce = (bool)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the AdvancedQuery pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState AdvancedQueryPane
+ {
+ get { return (PaneVisibilityState)GetValue(AdvancedQueryPaneProperty); }
+ set { SetValue(AdvancedQueryPaneProperty, value); }
+ }
+
+ internal static DependencyProperty AdvancedQueryPaneProperty =
+ DependencyProperty.Register(
+ "AdvancedQueryPane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnAdvancedQueryPaneChanged));
+
+ private static void OnAdvancedQueryPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.AdvancedQuery = (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the Commands pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState CommandsPane
+ {
+ get { return (PaneVisibilityState)GetValue(CommandsPaneProperty); }
+ set { SetValue(CommandsPaneProperty, value); }
+ }
+
+ internal static DependencyProperty CommandsPaneProperty =
+ DependencyProperty.Register(
+ "CommandsPane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnCommandsPaneChanged));
+
+ private static void OnCommandsPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.Commands =
+ (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the Organize menu in the Commands pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState CommandsOrganizePane
+ {
+ get { return (PaneVisibilityState)GetValue(CommandsOrganizePaneProperty); }
+ set { SetValue(CommandsOrganizePaneProperty, value); }
+ }
+
+ internal static DependencyProperty CommandsOrganizePaneProperty =
+ DependencyProperty.Register(
+ "CommandsOrganizePane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnCommandsOrganizePaneChanged));
+
+ private static void OnCommandsOrganizePaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.CommandsOrganize =
+ (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the View menu in the Commands pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState CommandsViewPane
+ {
+ get { return (PaneVisibilityState)GetValue(CommandsViewPaneProperty); }
+ set { SetValue(CommandsViewPaneProperty, value); }
+ }
+
+ internal static DependencyProperty CommandsViewPaneProperty =
+ DependencyProperty.Register(
+ "CommandsViewPane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnCommandsViewPaneChanged));
+
+ private static void OnCommandsViewPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.CommandsView = (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the Details pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState DetailsPane
+ {
+ get { return (PaneVisibilityState)GetValue(DetailsPaneProperty); }
+ set { SetValue(DetailsPaneProperty, value); }
+ }
+
+ internal static DependencyProperty DetailsPaneProperty =
+ DependencyProperty.Register(
+ "DetailsPane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnDetailsPaneChanged));
+
+ private static void OnDetailsPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.Details = (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the Navigation pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState NavigationPane
+ {
+ get { return (PaneVisibilityState)GetValue(NavigationPaneProperty); }
+ set { SetValue(NavigationPaneProperty, value); }
+ }
+
+ internal static DependencyProperty NavigationPaneProperty =
+ DependencyProperty.Register(
+ "NavigationPane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnNavigationPaneChanged));
+
+ private static void OnNavigationPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.Navigation = (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the Preview pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState PreviewPane
+ {
+ get { return (PaneVisibilityState)GetValue(PreviewPaneProperty); }
+ set { SetValue(PreviewPaneProperty, value); }
+ }
+
+ internal static DependencyProperty PreviewPaneProperty =
+ DependencyProperty.Register(
+ "PreviewPane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnPreviewPaneChanged));
+
+ private static void OnPreviewPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.Preview = (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+ /// <summary>
+ /// Show/Hide the Query pane on subsequent navigation
+ /// </summary>
+ public PaneVisibilityState QueryPane
+ {
+ get { return (PaneVisibilityState)GetValue(QueryPaneProperty); }
+ set { SetValue(QueryPaneProperty, value); }
+ }
+
+ internal static DependencyProperty QueryPaneProperty =
+ DependencyProperty.Register(
+ "QueryPane", typeof(PaneVisibilityState),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(PaneVisibilityState.DoNotCare, OnQueryPaneChanged));
+
+ private static void OnQueryPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ {
+ instance.ExplorerBrowserControl.NavigationOptions.PaneVisibility.Query = (PaneVisibilityState)e.NewValue;
+ }
+ }
+
+
+ /// <summary>
+ /// Navigation log index
+ /// </summary>
+ public int NavigationLogIndex
+ {
+ get { return (int)GetValue(NavigationLogIndexProperty); }
+ set { SetValue(NavigationLogIndexProperty, value); }
+ }
+
+ internal static DependencyProperty NavigationLogIndexProperty =
+ DependencyProperty.Register(
+ "NavigationLogIndex", typeof(int),
+ typeof(ExplorerBrowser),
+ new PropertyMetadata(0, OnNavigationLogIndexChanged));
+
+ private static void OnNavigationLogIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ ExplorerBrowser instance = d as ExplorerBrowser;
+ if (instance.ExplorerBrowserControl != null)
+ instance.ExplorerBrowserControl.NavigationLog.NavigateLog((int)e.NewValue);
+ }
+
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Disposes the class
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Disposes the browser.
+ /// </summary>
+ /// <param name="disposed"></param>
+ protected virtual void Dispose(bool disposed)
+ {
+ if (disposed)
+ {
+ if (itemsChanged != null)
+ {
+ itemsChanged.Close();
+ }
+
+ if (selectionChanged != null)
+ {
+ selectionChanged.Close();
+ }
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs
new file mode 100644
index 0000000000..29ff0921cf
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs
@@ -0,0 +1,889 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+using System.Text;
+using System.Linq;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+
+namespace Microsoft.WindowsAPICodePack.Controls.WindowsForms
+{
+ /// <summary>
+ /// This class is a wrapper around the Windows Explorer Browser control.
+ /// </summary>
+ public sealed class ExplorerBrowser :
+ System.Windows.Forms.UserControl,
+ Microsoft.WindowsAPICodePack.Controls.IServiceProvider,
+ IExplorerPaneVisibility,
+ IExplorerBrowserEvents,
+ ICommDlgBrowser3,
+ IMessageFilter
+ {
+ #region properties
+ /// <summary>
+ /// Options that control how the ExplorerBrowser navigates
+ /// </summary>
+ public ExplorerBrowserNavigationOptions NavigationOptions { get; private set; }
+
+ /// <summary>
+ /// Options that control how the content of the ExplorerBorwser looks
+ /// </summary>
+ public ExplorerBrowserContentOptions ContentOptions { get; private set; }
+
+ private IShellItemArray shellItemsArray;
+ private ShellObjectCollection itemsCollection;
+ /// <summary>
+ /// The set of ShellObjects in the Explorer Browser
+ /// </summary>
+ public ShellObjectCollection Items
+ {
+ get
+ {
+ if (shellItemsArray != null)
+ {
+ Marshal.ReleaseComObject(shellItemsArray);
+ }
+
+ if (itemsCollection != null)
+ {
+ itemsCollection.Dispose();
+ itemsCollection = null;
+ }
+
+ shellItemsArray = GetItemsArray();
+ itemsCollection = new ShellObjectCollection(shellItemsArray, true);
+
+ return itemsCollection;
+ }
+ }
+
+ private IShellItemArray selectedShellItemsArray;
+ private ShellObjectCollection selectedItemsCollection;
+ /// <summary>
+ /// The set of selected ShellObjects in the Explorer Browser
+ /// </summary>
+ public ShellObjectCollection SelectedItems
+ {
+ get
+ {
+ if (selectedShellItemsArray != null)
+ {
+ Marshal.ReleaseComObject(selectedShellItemsArray);
+ }
+
+ if (selectedItemsCollection != null)
+ {
+ selectedItemsCollection.Dispose();
+ selectedItemsCollection = null;
+ }
+
+ selectedShellItemsArray = GetSelectedItemsArray();
+ selectedItemsCollection = new ShellObjectCollection(selectedShellItemsArray, true);
+
+ return selectedItemsCollection;
+ }
+ }
+
+ /// <summary>
+ /// Contains the navigation history of the ExplorerBrowser
+ /// </summary>
+ public ExplorerBrowserNavigationLog NavigationLog { get; private set; }
+
+ /// <summary>
+ /// The name of the property bag used to persist changes to the ExplorerBrowser's view state.
+ /// </summary>
+ public string PropertyBagName
+ {
+ get { return propertyBagName; }
+ set
+ {
+ propertyBagName = value;
+ if (explorerBrowserControl != null)
+ {
+ explorerBrowserControl.SetPropertyBag(propertyBagName);
+ }
+ }
+ }
+
+ #endregion
+
+ #region operations
+ /// <summary>
+ /// Clears the Explorer Browser of existing content, fills it with
+ /// content from the specified container, and adds a new point to the Travel Log.
+ /// </summary>
+ /// <param name="shellObject">The shell container to navigate to.</param>
+ /// <exception cref="System.Runtime.InteropServices.COMException">Will throw if navigation fails for any other reason.</exception>
+ public void Navigate(ShellObject shellObject)
+ {
+ if (shellObject == null)
+ {
+ throw new ArgumentNullException("shellObject");
+ }
+
+ if (explorerBrowserControl == null)
+ {
+ antecreationNavigationTarget = shellObject;
+ }
+ else
+ {
+ HResult hr = explorerBrowserControl.BrowseToObject(shellObject.NativeShellItem, 0);
+ if (hr != HResult.Ok)
+ {
+ if ((hr == HResult.ResourceInUse || hr == HResult.Canceled) && NavigationFailed != null)
+ {
+ NavigationFailedEventArgs args = new NavigationFailedEventArgs();
+ args.FailedLocation = shellObject;
+ NavigationFailed(this, args);
+ }
+ else
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserBrowseToObjectFailed, hr);
+ }
+ }
+ }
+ }
+
+ /// <summary>
+ /// Navigates within the navigation log. This does not change the set of
+ /// locations in the navigation log.
+ /// </summary>
+ /// <param name="direction">Forward of Backward</param>
+ /// <returns>True if the navigation succeeded, false if it failed for any reason.</returns>
+ public bool NavigateLogLocation(NavigationLogDirection direction)
+ {
+ return NavigationLog.NavigateLog(direction);
+ }
+
+ /// <summary>
+ /// Navigate within the navigation log. This does not change the set of
+ /// locations in the navigation log.
+ /// </summary>
+ /// <param name="navigationLogIndex">An index into the navigation logs Locations collection.</param>
+ /// <returns>True if the navigation succeeded, false if it failed for any reason.</returns>
+ public bool NavigateLogLocation(int navigationLogIndex)
+ {
+ return NavigationLog.NavigateLog(navigationLogIndex);
+ }
+ #endregion
+
+ #region events
+
+ /// <summary>
+ /// Fires when the SelectedItems collection changes.
+ /// </summary>
+ public event EventHandler SelectionChanged;
+
+ /// <summary>
+ /// Fires when the Items colection changes.
+ /// </summary>
+ public event EventHandler ItemsChanged;
+
+ /// <summary>
+ /// Fires when a navigation has been initiated, but is not yet complete.
+ /// </summary>
+ public event EventHandler<NavigationPendingEventArgs> NavigationPending;
+
+ /// <summary>
+ /// Fires when a navigation has been 'completed': no NavigationPending listener
+ /// has cancelled, and the ExplorerBorwser has created a new view. The view
+ /// will be populated with new items asynchronously, and ItemsChanged will be
+ /// fired to reflect this some time later.
+ /// </summary>
+ public event EventHandler<NavigationCompleteEventArgs> NavigationComplete;
+
+ /// <summary>
+ /// Fires when either a NavigationPending listener cancels the navigation, or
+ /// if the operating system determines that navigation is not possible.
+ /// </summary>
+ public event EventHandler<NavigationFailedEventArgs> NavigationFailed;
+
+ /// <summary>
+ /// Fires when the ExplorerBorwser view has finished enumerating files.
+ /// </summary>
+ public event EventHandler ViewEnumerationComplete;
+
+ /// <summary>
+ /// Fires when the item selected in the view has changed (i.e., a rename ).
+ /// This is not the same as SelectionChanged.
+ /// </summary>
+ public event EventHandler ViewSelectedItemChanged;
+
+ #endregion
+
+ #region implementation
+
+ #region construction
+ internal ExplorerBrowserClass explorerBrowserControl;
+
+ // for the IExplorerBrowserEvents Advise call
+ internal uint eventsCookie;
+
+ // name of the property bag that contains the view state options of the browser
+ string propertyBagName = typeof(ExplorerBrowser).FullName;
+
+ /// <summary>
+ /// Initializes the ExplorerBorwser WinForms wrapper.
+ /// </summary>
+ public ExplorerBrowser()
+ : base()
+ {
+ NavigationOptions = new ExplorerBrowserNavigationOptions(this);
+ ContentOptions = new ExplorerBrowserContentOptions(this);
+ NavigationLog = new ExplorerBrowserNavigationLog(this);
+ }
+
+ #endregion
+
+ #region message handlers
+
+ /// <summary>
+ /// Displays a placeholder for the explorer browser in design mode
+ /// </summary>
+ /// <param name="e">Contains information about the paint event.</param>
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ if (DesignMode && e != null)
+ {
+ using (LinearGradientBrush linGrBrush = new LinearGradientBrush(
+ ClientRectangle,
+ Color.Aqua,
+ Color.CadetBlue,
+ LinearGradientMode.ForwardDiagonal))
+ {
+ e.Graphics.FillRectangle(linGrBrush, ClientRectangle);
+ }
+
+ using (Font font = new Font("Garamond", 30))
+ {
+ using (StringFormat sf = new StringFormat())
+ {
+ sf.Alignment = StringAlignment.Center;
+ sf.LineAlignment = StringAlignment.Center;
+ e.Graphics.DrawString(
+ "ExplorerBrowserControl",
+ font,
+ Brushes.White,
+ ClientRectangle,
+ sf);
+ }
+ }
+ }
+
+ base.OnPaint(e);
+ }
+
+ ShellObject antecreationNavigationTarget;
+ ExplorerBrowserViewEvents viewEvents;
+
+ /// <summary>
+ /// Creates and initializes the native ExplorerBrowser control
+ /// </summary>
+ protected override void OnCreateControl()
+ {
+ base.OnCreateControl();
+
+ if (this.DesignMode == false)
+ {
+ explorerBrowserControl = new ExplorerBrowserClass();
+
+ // hooks up IExplorerPaneVisibility and ICommDlgBrowser event notifications
+ ExplorerBrowserNativeMethods.IUnknown_SetSite(explorerBrowserControl, this);
+
+ // hooks up IExplorerBrowserEvents event notification
+ explorerBrowserControl.Advise(
+ Marshal.GetComInterfaceForObject(this, typeof(IExplorerBrowserEvents)),
+ out eventsCookie);
+
+ // sets up ExplorerBrowser view connection point events
+ viewEvents = new ExplorerBrowserViewEvents(this);
+
+ NativeRect rect = new NativeRect();
+ rect.Top = ClientRectangle.Top;
+ rect.Left = ClientRectangle.Left;
+ rect.Right = ClientRectangle.Right;
+ rect.Bottom = ClientRectangle.Bottom;
+
+ explorerBrowserControl.Initialize(this.Handle, ref rect, null);
+
+ // Force an initial show frames so that IExplorerPaneVisibility works the first time it is set.
+ // This also enables the control panel to be browsed to. If it is not set, then navigating to
+ // the control panel succeeds, but no items are visible in the view.
+ explorerBrowserControl.SetOptions(ExplorerBrowserOptions.ShowFrames);
+
+ explorerBrowserControl.SetPropertyBag(propertyBagName);
+
+ if (antecreationNavigationTarget != null)
+ {
+ BeginInvoke(new MethodInvoker(
+ delegate
+ {
+ Navigate(antecreationNavigationTarget);
+ antecreationNavigationTarget = null;
+ }));
+ }
+ }
+
+ Application.AddMessageFilter(this);
+ }
+
+ /// <summary>
+ /// Sizes the native control to match the WinForms control wrapper.
+ /// </summary>
+ /// <param name="e">Contains information about the size changed event.</param>
+ protected override void OnSizeChanged(EventArgs e)
+ {
+ if (explorerBrowserControl != null)
+ {
+ NativeRect rect = new NativeRect();
+ rect.Top = ClientRectangle.Top;
+ rect.Left = ClientRectangle.Left;
+ rect.Right = ClientRectangle.Right;
+ rect.Bottom = ClientRectangle.Bottom;
+
+ IntPtr ptr = IntPtr.Zero;
+ explorerBrowserControl.SetRect(ref ptr, rect);
+ }
+
+ base.OnSizeChanged(e);
+ }
+
+ /// <summary>
+ /// Cleans up the explorer browser events+object when the window is being taken down.
+ /// </summary>
+ /// <param name="e">An EventArgs that contains event data.</param>
+ protected override void OnHandleDestroyed(EventArgs e)
+ {
+ if (explorerBrowserControl != null)
+ {
+ // unhook events
+ viewEvents.DisconnectFromView();
+ explorerBrowserControl.Unadvise(eventsCookie);
+ ExplorerBrowserNativeMethods.IUnknown_SetSite(explorerBrowserControl, null);
+
+ // destroy the explorer browser control
+ explorerBrowserControl.Destroy();
+
+ // release com reference to it
+ Marshal.ReleaseComObject(explorerBrowserControl);
+ explorerBrowserControl = null;
+ }
+
+ base.OnHandleDestroyed(e);
+ }
+ #endregion
+
+ #region object interfaces
+
+ #region IServiceProvider
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="guidService">calling service</param>
+ /// <param name="riid">requested interface guid</param>
+ /// <param name="ppvObject">caller-allocated memory for interface pointer</param>
+ /// <returns></returns>
+ HResult Microsoft.WindowsAPICodePack.Controls.IServiceProvider.QueryService(
+ ref Guid guidService, ref Guid riid, out IntPtr ppvObject)
+ {
+ HResult hr = HResult.Ok;
+
+ if (guidService.CompareTo(new Guid(ExplorerBrowserIIDGuid.IExplorerPaneVisibility)) == 0)
+ {
+ // Responding to this SID allows us to control the visibility of the
+ // explorer browser panes
+ ppvObject =
+ Marshal.GetComInterfaceForObject(this, typeof(IExplorerPaneVisibility));
+ hr = HResult.Ok;
+ }
+ else if (guidService.CompareTo(new Guid(ExplorerBrowserIIDGuid.ICommDlgBrowser)) == 0)
+ {
+ if (riid.CompareTo(new Guid(ExplorerBrowserIIDGuid.ICommDlgBrowser)) == 0)
+ {
+ ppvObject = Marshal.GetComInterfaceForObject(this, typeof(ICommDlgBrowser3));
+ hr = HResult.Ok;
+ }
+ // The below lines are commented out to decline requests for the ICommDlgBrowser2 interface.
+ // This interface is incorrectly marshaled back to unmanaged, and causes an exception.
+ // There is a bug for this, I have not figured the underlying cause.
+ // Remove this comment and uncomment the following code to enable the ICommDlgBrowser2 interface
+ //else if (riid.CompareTo(new Guid(ExplorerBrowserIIDGuid.ICommDlgBrowser2)) == 0)
+ //{
+ // ppvObject = Marshal.GetComInterfaceForObject(this, typeof(ICommDlgBrowser3));
+ // hr = HResult.Ok;
+ //}
+ else if (riid.CompareTo(new Guid(ExplorerBrowserIIDGuid.ICommDlgBrowser3)) == 0)
+ {
+ ppvObject = Marshal.GetComInterfaceForObject(this, typeof(ICommDlgBrowser3));
+ hr = HResult.Ok;
+ }
+ else
+ {
+ ppvObject = IntPtr.Zero;
+ hr = HResult.NoInterface;
+ }
+ }
+ else
+ {
+ IntPtr nullObj = IntPtr.Zero;
+ ppvObject = nullObj;
+ hr = HResult.NoInterface;
+ }
+
+ return hr;
+ }
+ #endregion
+
+ #region IExplorerPaneVisibility
+ /// <summary>
+ /// Controls the visibility of the explorer borwser panes
+ /// </summary>
+ /// <param name="explorerPane">a guid identifying the pane</param>
+ /// <param name="peps">the pane state desired</param>
+ /// <returns></returns>
+ HResult IExplorerPaneVisibility.GetPaneState(ref Guid explorerPane, out ExplorerPaneState peps)
+ {
+ switch (explorerPane.ToString())
+ {
+ case ExplorerBrowserViewPanes.AdvancedQuery:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.AdvancedQuery);
+ break;
+ case ExplorerBrowserViewPanes.Commands:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Commands);
+ break;
+ case ExplorerBrowserViewPanes.CommandsOrganize:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsOrganize);
+ break;
+ case ExplorerBrowserViewPanes.CommandsView:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsView);
+ break;
+ case ExplorerBrowserViewPanes.Details:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Details);
+ break;
+ case ExplorerBrowserViewPanes.Navigation:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Navigation);
+ break;
+ case ExplorerBrowserViewPanes.Preview:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Preview);
+ break;
+ case ExplorerBrowserViewPanes.Query:
+ peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Query);
+ break;
+ default:
+#if LOG_UNKNOWN_PANES
+ System.Diagnostics.Debugger.Log( 4, "ExplorerBrowser", "unknown pane view state. id=" + explorerPane.ToString( ) );
+#endif
+ peps = VisibilityToPaneState(PaneVisibilityState.Show);
+ break;
+ }
+
+ return HResult.Ok;
+ }
+
+ private static ExplorerPaneState VisibilityToPaneState(PaneVisibilityState visibility)
+ {
+ switch (visibility)
+ {
+ case PaneVisibilityState.DoNotCare:
+ return ExplorerPaneState.DoNotCare;
+
+ case PaneVisibilityState.Hide:
+ return ExplorerPaneState.DefaultOff | ExplorerPaneState.Force;
+
+ case PaneVisibilityState.Show:
+ return ExplorerPaneState.DefaultOn | ExplorerPaneState.Force;
+
+ default:
+ throw new ArgumentException("unexpected PaneVisibilityState");
+ }
+ }
+
+ #endregion
+
+ #region IExplorerBrowserEvents
+ HResult IExplorerBrowserEvents.OnNavigationPending(IntPtr pidlFolder)
+ {
+ bool canceled = false;
+
+ if (NavigationPending != null)
+ {
+ NavigationPendingEventArgs args = new NavigationPendingEventArgs();
+
+ // For some special items (like network machines), ShellObject.FromIDList
+ // might return null
+ args.PendingLocation = ShellObjectFactory.Create(pidlFolder);
+
+ if (args.PendingLocation != null)
+ {
+ foreach (Delegate del in NavigationPending.GetInvocationList())
+ {
+ del.DynamicInvoke(new object[] { this, args });
+ if (args.Cancel)
+ {
+ canceled = true;
+ }
+ }
+ }
+ }
+
+ return canceled ? HResult.Canceled : HResult.Ok;
+ }
+
+ HResult IExplorerBrowserEvents.OnViewCreated(object psv)
+ {
+ viewEvents.ConnectToView((IShellView)psv);
+
+ return HResult.Ok;
+ }
+
+ HResult IExplorerBrowserEvents.OnNavigationComplete(IntPtr pidlFolder)
+ {
+ // view mode may change
+ ContentOptions.folderSettings.ViewMode = GetCurrentViewMode();
+
+ if (NavigationComplete != null)
+ {
+ NavigationCompleteEventArgs args = new NavigationCompleteEventArgs();
+ args.NewLocation = ShellObjectFactory.Create(pidlFolder);
+ NavigationComplete(this, args);
+ }
+ return HResult.Ok;
+ }
+
+ HResult IExplorerBrowserEvents.OnNavigationFailed(IntPtr pidlFolder)
+ {
+ if (NavigationFailed != null)
+ {
+ NavigationFailedEventArgs args = new NavigationFailedEventArgs();
+ args.FailedLocation = ShellObjectFactory.Create(pidlFolder);
+ NavigationFailed(this, args);
+ }
+ return HResult.Ok;
+ }
+ #endregion
+
+ #region ICommDlgBrowser
+ HResult ICommDlgBrowser3.OnDefaultCommand(IntPtr ppshv)
+ {
+ return HResult.False;
+ //return HResult.Ok;
+ }
+
+ HResult ICommDlgBrowser3.OnStateChange(IntPtr ppshv, CommDlgBrowserStateChange uChange)
+ {
+ if (uChange == CommDlgBrowserStateChange.SelectionChange)
+ {
+ FireSelectionChanged();
+ }
+
+ return HResult.Ok;
+ }
+
+ HResult ICommDlgBrowser3.IncludeObject(IntPtr ppshv, IntPtr pidl)
+ {
+ // items in the view have changed, so the collections need updating
+ FireContentChanged();
+
+ return HResult.Ok;
+ }
+
+ #endregion
+
+ #region ICommDlgBrowser2 Members
+
+ // The below methods can be called into, but marshalling the response causes an exception to be
+ // thrown from unmanaged code. At this time, I decline calls requesting the ICommDlgBrowser2
+ // interface. This is logged as a bug, but moved to less of a priority, as it only affects being
+ // able to change the default action text for remapping the default action.
+
+ HResult ICommDlgBrowser3.GetDefaultMenuText(IShellView shellView, IntPtr text, int cchMax)
+ {
+ return HResult.False;
+ //return HResult.Ok;
+ //OK if new
+ //False if default
+ //other if error
+ }
+
+ HResult ICommDlgBrowser3.GetViewFlags(out uint pdwFlags)
+ {
+ //var flags = CommDlgBrowser2ViewFlags.NoSelectVerb;
+ //Marshal.WriteInt32(pdwFlags, 0);
+ pdwFlags = (uint)CommDlgBrowser2ViewFlags.ShowAllFiles;
+ return HResult.Ok;
+ }
+
+ HResult ICommDlgBrowser3.Notify(IntPtr pshv, CommDlgBrowserNotifyType notifyType)
+ {
+ return HResult.Ok;
+ }
+
+ #endregion
+
+ #region ICommDlgBrowser3 Members
+
+ HResult ICommDlgBrowser3.GetCurrentFilter(StringBuilder pszFileSpec, int cchFileSpec)
+ {
+ // If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
+ return HResult.Ok;
+ }
+
+ HResult ICommDlgBrowser3.OnColumnClicked(IShellView ppshv, int iColumn)
+ {
+ // If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
+ return HResult.Ok;
+ }
+
+ HResult ICommDlgBrowser3.OnPreViewCreated(IShellView ppshv)
+ {
+ // If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code
+ return HResult.Ok;
+ }
+
+ #endregion
+
+ #region IMessageFilter Members
+
+ bool IMessageFilter.PreFilterMessage(ref System.Windows.Forms.Message m)
+ {
+ HResult hr = HResult.False;
+ if (explorerBrowserControl != null)
+ {
+ // translate keyboard input
+ hr = ((IInputObject)explorerBrowserControl).TranslateAcceleratorIO(ref m);
+ }
+ return (hr == HResult.Ok);
+ }
+
+ #endregion
+
+ #endregion
+
+ #region utilities
+
+ /// <summary>
+ /// Returns the current view mode of the browser
+ /// </summary>
+ /// <returns></returns>
+ internal FolderViewMode GetCurrentViewMode()
+ {
+ IFolderView2 ifv2 = GetFolderView2();
+ uint viewMode = 0;
+ if (ifv2 != null)
+ {
+ try
+ {
+ HResult hr = ifv2.GetCurrentViewMode(out viewMode);
+ if (hr != HResult.Ok) { throw new ShellException(hr); }
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(ifv2);
+ ifv2 = null;
+ }
+ }
+ return (FolderViewMode)viewMode;
+ }
+
+ /// <summary>
+ /// Gets the IFolderView2 interface from the explorer browser.
+ /// </summary>
+ /// <returns></returns>
+ internal IFolderView2 GetFolderView2()
+ {
+ Guid iid = new Guid(ExplorerBrowserIIDGuid.IFolderView2);
+ IntPtr view = IntPtr.Zero;
+ if (this.explorerBrowserControl != null)
+ {
+ HResult hr = this.explorerBrowserControl.GetCurrentView(ref iid, out view);
+ switch (hr)
+ {
+ case HResult.Ok:
+ break;
+
+ case HResult.NoInterface:
+ case HResult.Fail:
+#if LOG_KNOWN_COM_ERRORS
+ Debugger.Log( 2, "ExplorerBrowser", "Unable to obtain view. Error=" + e.ToString( ) );
+#endif
+ return null;
+
+ default:
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserFailedToGetView, hr);
+ }
+
+ return (IFolderView2)Marshal.GetObjectForIUnknown(view);
+ }
+ return null;
+ }
+
+ /// <summary>
+ /// Gets the selected items in the explorer browser as an IShellItemArray
+ /// </summary>
+ /// <returns></returns>
+ internal IShellItemArray GetSelectedItemsArray()
+ {
+ IShellItemArray iArray = null;
+ IFolderView2 iFV2 = GetFolderView2();
+ if (iFV2 != null)
+ {
+ try
+ {
+ Guid iidShellItemArray = new Guid(ShellIIDGuid.IShellItemArray);
+ object oArray = null;
+ HResult hr = iFV2.Items((uint)ShellViewGetItemObject.Selection, ref iidShellItemArray, out oArray);
+ iArray = oArray as IShellItemArray;
+ if (hr != HResult.Ok &&
+ hr != HResult.ElementNotFound &&
+ hr != HResult.Fail)
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserUnexpectedError, hr);
+ }
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(iFV2);
+ iFV2 = null;
+ }
+ }
+
+ return iArray;
+ }
+
+ internal int GetItemsCount()
+ {
+ int itemsCount = 0;
+
+ IFolderView2 iFV2 = GetFolderView2();
+ if (iFV2 != null)
+ {
+ try
+ {
+ HResult hr = iFV2.ItemCount((uint)ShellViewGetItemObject.AllView, out itemsCount);
+
+ if (hr != HResult.Ok &&
+ hr != HResult.ElementNotFound &&
+ hr != HResult.Fail)
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserItemCount, hr);
+ }
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(iFV2);
+ iFV2 = null;
+ }
+ }
+
+ return itemsCount;
+ }
+
+ internal int GetSelectedItemsCount()
+ {
+ int itemsCount = 0;
+
+ IFolderView2 iFV2 = GetFolderView2();
+ if (iFV2 != null)
+ {
+ try
+ {
+ HResult hr = iFV2.ItemCount((uint)ShellViewGetItemObject.Selection, out itemsCount);
+
+ if (hr != HResult.Ok &&
+ hr != HResult.ElementNotFound &&
+ hr != HResult.Fail)
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserSelectedItemCount, hr);
+ }
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(iFV2);
+ iFV2 = null;
+ }
+ }
+
+ return itemsCount;
+ }
+
+ /// <summary>
+ /// Gets the items in the ExplorerBrowser as an IShellItemArray
+ /// </summary>
+ /// <returns></returns>
+ internal IShellItemArray GetItemsArray()
+ {
+ IShellItemArray iArray = null;
+ IFolderView2 iFV2 = GetFolderView2();
+ if (iFV2 != null)
+ {
+ try
+ {
+ Guid iidShellItemArray = new Guid(ShellIIDGuid.IShellItemArray);
+ object oArray = null;
+ HResult hr = iFV2.Items((uint)ShellViewGetItemObject.AllView, ref iidShellItemArray, out oArray);
+ if (hr != HResult.Ok &&
+ hr != HResult.Fail &&
+ hr != HResult.ElementNotFound &&
+ hr != HResult.InvalidArguments)
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserViewItems, hr);
+ }
+
+ iArray = oArray as IShellItemArray;
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(iFV2);
+ iFV2 = null;
+ }
+ }
+ return iArray;
+ }
+
+ #endregion
+
+ #region view event forwarding
+ internal void FireSelectionChanged()
+ {
+ if (SelectionChanged != null)
+ {
+ SelectionChanged(this, EventArgs.Empty);
+ }
+ }
+
+ internal void FireContentChanged()
+ {
+ if (ItemsChanged != null)
+ {
+ ItemsChanged.Invoke(this, EventArgs.Empty);
+ }
+ }
+
+ internal void FireContentEnumerationComplete()
+ {
+ if (ViewEnumerationComplete != null)
+ {
+ ViewEnumerationComplete.Invoke(this, EventArgs.Empty);
+ }
+ }
+
+ internal void FireSelectedItemChanged()
+ {
+ if (ViewSelectedItemChanged != null)
+ {
+ ViewSelectedItemChanged.Invoke(this, EventArgs.Empty);
+ }
+ }
+ #endregion
+
+ #endregion
+
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserContentOptions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserContentOptions.cs
new file mode 100644
index 0000000000..dfeccaef3b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserContentOptions.cs
@@ -0,0 +1,334 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Controls.WindowsForms;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ /// <summary>
+ /// These options control how the content of the Explorer Browser
+ /// is rendered.
+ /// </summary>
+ public class ExplorerBrowserContentOptions
+ {
+ #region construction
+ ExplorerBrowser eb;
+ internal ExplorerBrowserContentOptions(ExplorerBrowser eb)
+ {
+ this.eb = eb;
+ }
+ #endregion
+
+ #region ViewMode property
+ // This is a one-way property of the explorer browser.
+ // Keeping it around for the get implementations.
+ internal FolderSettings folderSettings = new FolderSettings();
+
+ /// <summary>
+ /// The viewing mode of the Explorer Browser
+ /// </summary>
+ public ExplorerBrowserViewMode ViewMode
+ {
+ get
+ {
+ return (ExplorerBrowserViewMode)folderSettings.ViewMode;
+ }
+ set
+ {
+ folderSettings.ViewMode = (FolderViewMode)value;
+
+ if (eb.explorerBrowserControl != null)
+ {
+ eb.explorerBrowserControl.SetFolderSettings(folderSettings);
+ }
+ }
+ }
+ #endregion
+
+ #region Flags property
+ /// <summary>
+ /// The binary representation of the ExplorerBrowser content flags
+ /// </summary>
+ public ExplorerBrowserContentSectionOptions Flags
+ {
+ get
+ {
+ return (ExplorerBrowserContentSectionOptions)folderSettings.Options;
+ }
+ set
+ {
+ folderSettings.Options = (FolderOptions)value | FolderOptions.UseSearchFolders | FolderOptions.NoWebView;
+ if (eb.explorerBrowserControl != null)
+ {
+ eb.explorerBrowserControl.SetFolderSettings(folderSettings);
+ }
+ }
+ }
+ #endregion
+
+ #region content flags to properties mapping
+ /// <summary>
+ /// The view should be left-aligned.
+ /// </summary>
+ public bool AlignLeft
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.AlignLeft);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.AlignLeft, value);
+ }
+ }
+ /// <summary>
+ /// Automatically arrange the elements in the view.
+ /// </summary>
+ public bool AutoArrange
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.AutoArrange);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.AutoArrange, value);
+ }
+ }
+ /// <summary>
+ /// Turns on check mode for the view
+ /// </summary>
+ public bool CheckSelect
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.CheckSelect);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.CheckSelect, value);
+ }
+ }
+ /// <summary>
+ /// When the view is in "tile view mode" the layout of a single item should be extended to the width of the view.
+ /// </summary>
+ public bool ExtendedTiles
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.ExtendedTiles);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.ExtendedTiles, value);
+ }
+ }
+ /// <summary>
+ /// When an item is selected, the item and all its sub-items are highlighted.
+ /// </summary>
+ public bool FullRowSelect
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.FullRowSelect);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.FullRowSelect, value);
+ }
+ }
+ /// <summary>
+ /// The view should not display file names
+ /// </summary>
+ public bool HideFileNames
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.HideFileNames);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.HideFileNames, value);
+ }
+ }
+ /// <summary>
+ /// The view should not save view state in the browser.
+ /// </summary>
+ public bool NoBrowserViewState
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.NoBrowserViewState);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.NoBrowserViewState, value);
+ }
+ }
+ /// <summary>
+ /// Do not display a column header in the view in any view mode.
+ /// </summary>
+ public bool NoColumnHeader
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.NoColumnHeader);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.NoColumnHeader, value);
+ }
+ }
+ /// <summary>
+ /// Only show the column header in details view mode.
+ /// </summary>
+ public bool NoHeaderInAllViews
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.NoHeaderInAllViews);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.NoHeaderInAllViews, value);
+ }
+ }
+ /// <summary>
+ /// The view should not display icons.
+ /// </summary>
+ public bool NoIcons
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.NoIcons);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.NoIcons, value);
+ }
+ }
+ /// <summary>
+ /// Do not show subfolders.
+ /// </summary>
+ public bool NoSubfolders
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.NoSubfolders);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.NoSubfolders, value);
+ }
+ }
+ /// <summary>
+ /// Navigate with a single click
+ /// </summary>
+ public bool SingleClickActivate
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.SingleClickActivate);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.SingleClickActivate, value);
+ }
+ }
+ /// <summary>
+ /// Do not allow more than a single item to be selected.
+ /// </summary>
+ public bool SingleSelection
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserContentSectionOptions.SingleSelection);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserContentSectionOptions.SingleSelection, value);
+ }
+ }
+
+ private bool IsFlagSet(ExplorerBrowserContentSectionOptions flag)
+ {
+ return (folderSettings.Options & (FolderOptions)flag) != 0;
+ }
+
+ private void SetFlag(ExplorerBrowserContentSectionOptions flag, bool value)
+ {
+ if (value)
+ folderSettings.Options |= (FolderOptions)flag;
+ else
+ folderSettings.Options = folderSettings.Options & ~(FolderOptions)flag;
+
+ if (eb.explorerBrowserControl != null)
+ eb.explorerBrowserControl.SetFolderSettings(folderSettings);
+ }
+
+ #endregion
+
+ #region thumbnail size
+ /// <summary>
+ /// The size of the thumbnails in pixels
+ /// </summary>
+ public int ThumbnailSize
+ {
+ get
+ {
+ int iconSize = 0;
+ IFolderView2 iFV2 = eb.GetFolderView2();
+ if (iFV2 != null)
+ {
+ try
+ {
+ int fvm = 0;
+ HResult hr = iFV2.GetViewModeAndIconSize(out fvm, out iconSize);
+ if (hr != HResult.Ok)
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserIconSize, hr);
+ }
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(iFV2);
+ iFV2 = null;
+ }
+ }
+
+ return iconSize;
+ }
+ set
+ {
+ IFolderView2 iFV2 = eb.GetFolderView2();
+ if (iFV2 != null)
+ {
+ try
+ {
+ int fvm = 0;
+ int iconSize = 0;
+ HResult hr = iFV2.GetViewModeAndIconSize(out fvm, out iconSize);
+ if (hr != HResult.Ok)
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserIconSize, hr);
+ }
+ hr = iFV2.SetViewModeAndIconSize(fvm, value);
+ if (hr != HResult.Ok)
+ {
+ throw new CommonControlException(LocalizedMessages.ExplorerBrowserIconSize, hr);
+ }
+ }
+ finally
+ {
+ Marshal.ReleaseComObject(iFV2);
+ iFV2 = null;
+ }
+ }
+ }
+ }
+ #endregion
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserDiagram.cd b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserDiagram.cd
new file mode 100644
index 0000000000..5188dd1d6d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserDiagram.cd
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ClassDiagram MajorVersion="1" MinorVersion="1">
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ExplorerBrowser">
+ <Position X="0.5" Y="0.5" Width="2" />
+ <Members>
+ <Field Name="explorerBrowserControl" Hidden="true" />
+ <Method Name="GetFolderView" Hidden="true" />
+ <Method Name="GetFolderView2" Hidden="true" />
+ <Method Name="GetItemsArray" Hidden="true" />
+ <Method Name="GetSelectedItemsArray" Hidden="true" />
+ <Method Name="IExplorerPaneVisibility.GetPaneState" Hidden="true" />
+ <Method Name="Microsoft.WindowsAPICodePack.Shell.IServiceProvider.QueryService" Hidden="true" />
+ <Method Name="OnCreateControl" Hidden="true" />
+ <Method Name="OnHandleDestroyed" Hidden="true" />
+ <Method Name="OnPaint" Hidden="true" />
+ <Method Name="OnSizeChanged" Hidden="true" />
+ <Method Name="VisibilityToPaneState" Hidden="true" />
+ </Members>
+ <TypeIdentifier>
+ <HashCode>AADgIAAAIAgBOAEAAABAQAAAAEAACAAGAAAQcACAAAA=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowser.cs</FileName>
+ </TypeIdentifier>
+ <Lollipop Position="0.2" />
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ExplorerBrowserContentOptions">
+ <Position X="3.5" Y="2.75" Width="2.75" />
+ <Compartments>
+ <Compartment Name="Fields" Collapsed="true" />
+ <Compartment Name="Methods" Collapsed="true" />
+ </Compartments>
+ <TypeIdentifier>
+ <HashCode>AAAABAAAAAoIAgEAAggAEAAgEQAAAAACABJAAAUAAAA=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowserContentOptions.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ExplorerBrowserPaneVisibility">
+ <Position X="0.5" Y="5" Width="2.75" />
+ <Compartments>
+ <Compartment Name="Fields" Collapsed="true" />
+ </Compartments>
+ <TypeIdentifier>
+ <HashCode>AABAggAAAAgJAAAAAACAABAAAAAAAAwFAAQAQAAAQBA=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowserPaneVisibility.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ExplorerBrowserNavigationLog">
+ <Position X="7.25" Y="4" Width="3" />
+ <Members>
+ <Method Name="ExplorerBrowserNavigationLog" Hidden="true" />
+ </Members>
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAABAAAAIgAAEAAAAAAABAAAAQAAAAAAQ=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowserNavigationLog.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.ExplorerBrowserNavigationOptions">
+ <Position X="2.75" Y="0.5" Width="3" />
+ <Members>
+ <Field Name="eb" Hidden="true" />
+ <Method Name="ExplorerBrowserNavigationOptions" Hidden="true" />
+ <Method Name="IsFlagSet" Hidden="true" />
+ <Method Name="SetFlag" Hidden="true" />
+ </Members>
+ <Compartments>
+ <Compartment Name="Methods" Collapsed="true" />
+ </Compartments>
+ <TypeIdentifier>
+ <HashCode>AAAABAAIAAAIAAAAEAACAAAgAAAAAAAAACAAAAAAAAA=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowserNavigationOptions.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.NavigationPendingArgs">
+ <Position X="5.75" Y="7.75" Width="2" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAQAAAAAAAAAAAAAAAAAAAABAAAAAAAAAgAAA=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowserEvents.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.NavigationCompleteArgs">
+ <Position X="0.75" Y="7.75" Width="2" />
+ <TypeIdentifier>
+ <HashCode>AAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowserEvents.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="Microsoft.WindowsAPICodePack.Shell.NavigationFailedArgs">
+ <Position X="3.25" Y="7.75" Width="1.75" />
+ <TypeIdentifier>
+ <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAA=</HashCode>
+ <FileName>ExplorerBrowser\ExplorerBrowserEvents.cs</FileName>
+ </TypeIdentifier>
+ </Class>
+ <Font Name="Segoe UI" Size="9" />
+</ClassDiagram> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEnums.cs
new file mode 100644
index 0000000000..3ccb002db9
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEnums.cs
@@ -0,0 +1,162 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ /// <summary>
+ /// Indicates the viewing mode of the explorer browser
+ /// </summary>
+ public enum ExplorerBrowserViewMode
+ {
+ /// <summary>
+ /// Choose the best view mode for the folder
+ /// </summary>
+ Auto = -1,
+
+ /// <summary>
+ /// (New for Windows7)
+ /// </summary>
+ Content = 8,
+
+ /// <summary>
+ /// Object names and other selected information, such as the size or date last updated, are shown.
+ /// </summary>
+ Details = 4,
+
+ /// <summary>
+ /// The view should display medium-size icons.
+ /// </summary>
+ Icon = 1,
+
+ /// <summary>
+ /// Object names are displayed in a list view.
+ /// </summary>
+ List = 3,
+
+ /// <summary>
+ /// The view should display small icons.
+ /// </summary>
+ SmallIcon = 2,
+
+ /// <summary>
+ /// The view should display thumbnail icons.
+ /// </summary>
+ Thumbnail = 5,
+
+ /// <summary>
+ /// The view should display icons in a filmstrip format.
+ /// </summary>
+ ThumbStrip = 7,
+
+ /// <summary>
+ /// The view should display large icons.
+ /// </summary>
+ Tile = 6
+ }
+
+ /// <summary>
+ /// Specifies the options that control subsequent navigation.
+ /// Typically use one, or a bitwise combination of these
+ /// flags to specify how the explorer browser navigates.
+ /// </summary>
+ [Flags]
+ public enum ExplorerBrowserNavigateOptions
+ {
+ /// <summary>
+ /// Always navigate, even if you are attempting to navigate to the current folder.
+ /// </summary>
+ AlwaysNavigate = 0x00000004,
+
+ /// <summary>
+ /// Do not navigate further than the initial navigation.
+ /// </summary>
+ NavigateOnce = 0x00000001,
+ }
+
+ /// <summary>
+ /// Indicates the content options of the explorer browser.
+ /// Typically use one, or a bitwise combination of these
+ /// flags to specify how conent should appear in the
+ /// explorer browser control
+ /// </summary>
+ [Flags]
+ public enum ExplorerBrowserContentSectionOptions
+ {
+ /// <summary>
+ /// No options.
+ /// </summary>
+ None = 0,
+ /// <summary>
+ /// The view should be left-aligned.
+ /// </summary>
+ AlignLeft = 0x00000800,
+ /// <summary>
+ /// Automatically arrange the elements in the view.
+ /// </summary>
+ AutoArrange = 0x00000001,
+ /// <summary>
+ /// Turns on check mode for the view
+ /// </summary>
+ CheckSelect = 0x08040000,
+ /// <summary>
+ /// When the view is set to "Tile" the layout of a single item should be extended to the width of the view.
+ /// </summary>
+ ExtendedTiles = 0x02000000,
+ /// <summary>
+ /// When an item is selected, the item and all its sub-items are highlighted.
+ /// </summary>
+ FullRowSelect = 0x00200000,
+ /// <summary>
+ /// The view should not display file names
+ /// </summary>
+ HideFileNames = 0x00020000,
+ /// <summary>
+ /// The view should not save view state in the browser.
+ /// </summary>
+ NoBrowserViewState = 0x10000000,
+ /// <summary>
+ /// Do not display a column header in the view in any view mode.
+ /// </summary>
+ NoColumnHeader = 0x00800000,
+ /// <summary>
+ /// Only show the column header in details view mode.
+ /// </summary>
+ NoHeaderInAllViews = 0x01000000,
+ /// <summary>
+ /// The view should not display icons.
+ /// </summary>
+ NoIcons = 0x00001000,
+ /// <summary>
+ /// Do not show subfolders.
+ /// </summary>
+ NoSubfolders = 0x00000080,
+ /// <summary>
+ /// Navigate with a single click
+ /// </summary>
+ SingleClickActivate = 0x00008000,
+ /// <summary>
+ /// Do not allow more than a single item to be selected.
+ /// </summary>
+ SingleSelection = 0x00000040,
+ }
+
+ /// <summary>
+ /// Indicates the visibility state of an ExplorerBrowser pane
+ /// </summary>
+ public enum PaneVisibilityState
+ {
+ /// <summary>
+ /// Allow the explorer browser to determine if this pane is displayed.
+ /// </summary>
+ DoNotCare,
+ /// <summary>
+ /// Hide the pane
+ /// </summary>
+ Hide,
+ /// <summary>
+ /// Show the pane
+ /// </summary>
+ Show
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEvents.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEvents.cs
new file mode 100644
index 0000000000..1efcb79bdf
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserEvents.cs
@@ -0,0 +1,47 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+
+ /// <summary>
+ /// Event argument for The NavigationPending event
+ /// </summary>
+ public class NavigationPendingEventArgs : EventArgs
+ {
+ /// <summary>
+ /// The location being navigated to
+ /// </summary>
+ public ShellObject PendingLocation { get; set; }
+
+ /// <summary>
+ /// Set to 'True' to cancel the navigation.
+ /// </summary>
+ public bool Cancel { get; set; }
+
+ }
+
+ /// <summary>
+ /// Event argument for The NavigationComplete event
+ /// </summary>
+ public class NavigationCompleteEventArgs : EventArgs
+ {
+ /// <summary>
+ /// The new location of the explorer browser
+ /// </summary>
+ public ShellObject NewLocation { get; set; }
+ }
+
+ /// <summary>
+ /// Event argument for the NavigatinoFailed event
+ /// </summary>
+ public class NavigationFailedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// The location the the browser would have navigated to.
+ /// </summary>
+ public ShellObject FailedLocation { get; set; }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserPaneVisibility.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserPaneVisibility.cs
new file mode 100644
index 0000000000..23fe146ec2
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserPaneVisibility.cs
@@ -0,0 +1,57 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ /// <summary>
+ /// Controls the visibility of the various ExplorerBrowser panes on subsequent navigation
+ /// </summary>
+ public class ExplorerBrowserPaneVisibility
+ {
+ /// <summary>
+ /// The pane on the left side of the Windows Explorer window that hosts the folders tree and Favorites.
+ /// </summary>
+ public PaneVisibilityState Navigation { get; set; }
+
+
+ /// <summary>
+ /// Commands module along the top of the Windows Explorer window.
+ /// </summary>
+ public PaneVisibilityState Commands { get; set; }
+
+ /// <summary>
+ /// Organize menu within the commands module.
+ /// </summary>
+ public PaneVisibilityState CommandsOrganize { get; set; }
+
+
+ /// <summary>
+ /// View menu within the commands module.
+ /// </summary>
+ public PaneVisibilityState CommandsView { get; set; }
+
+
+ /// <summary>
+ /// Pane showing metadata along the bottom of the Windows Explorer window.
+ /// </summary>
+ public PaneVisibilityState Details { get; set; }
+
+
+ /// <summary>
+ /// Pane on the right of the Windows Explorer window that shows a large reading preview of the file.
+ /// </summary>
+ public PaneVisibilityState Preview { get; set; }
+
+
+ /// <summary>
+ /// Quick filter buttons to aid in a search.
+ /// </summary>
+ public PaneVisibilityState Query { get; set; }
+
+
+ /// <summary>
+ /// Additional fields and options to aid in a search.
+ /// </summary>
+ public PaneVisibilityState AdvancedQuery { get; set; }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserViewEvents.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserViewEvents.cs
new file mode 100644
index 0000000000..b47a1fe65e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowserViewEvents.cs
@@ -0,0 +1,161 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Controls;
+using Microsoft.WindowsAPICodePack.Controls.WindowsForms;
+
+namespace MS.WindowsAPICodePack.Internal
+{
+ /// <summary>
+ /// This provides a connection point container compatible dispatch interface for
+ /// hooking into the ExplorerBrowser view.
+ /// </summary>
+ [ComVisible(true)]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class ExplorerBrowserViewEvents : IDisposable
+ {
+ #region implementation
+ private uint viewConnectionPointCookie;
+ private object viewDispatch;
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2006:UseSafeHandleToEncapsulateNativeResources")]
+ private IntPtr nullPtr = IntPtr.Zero;
+
+ private Guid IID_DShellFolderViewEvents = new Guid(ExplorerBrowserIIDGuid.DShellFolderViewEvents);
+ private Guid IID_IDispatch = new Guid(ExplorerBrowserIIDGuid.IDispatch);
+ private ExplorerBrowser parent;
+ #endregion
+
+ #region contstruction
+ /// <summary>
+ /// Default constructor for ExplorerBrowserViewEvents
+ /// </summary>
+ public ExplorerBrowserViewEvents() : this(null) { }
+
+ internal ExplorerBrowserViewEvents(ExplorerBrowser parent)
+ {
+ this.parent = parent;
+ }
+ #endregion
+
+ #region operations
+ internal void ConnectToView(IShellView psv)
+ {
+ DisconnectFromView();
+
+ HResult hr = psv.GetItemObject(
+ ShellViewGetItemObject.Background,
+ ref IID_IDispatch,
+ out viewDispatch);
+
+ if (hr == HResult.Ok)
+ {
+ hr = ExplorerBrowserNativeMethods.ConnectToConnectionPoint(
+ this,
+ ref IID_DShellFolderViewEvents,
+ true,
+ viewDispatch,
+ ref viewConnectionPointCookie,
+ ref nullPtr);
+
+ if (hr != HResult.Ok)
+ {
+ Marshal.ReleaseComObject(viewDispatch);
+ }
+ }
+ }
+
+ internal void DisconnectFromView()
+ {
+ if (viewDispatch != null)
+ {
+ ExplorerBrowserNativeMethods.ConnectToConnectionPoint(
+ IntPtr.Zero,
+ ref IID_DShellFolderViewEvents,
+ false,
+ viewDispatch,
+ ref viewConnectionPointCookie,
+ ref nullPtr);
+
+ Marshal.ReleaseComObject(viewDispatch);
+ viewDispatch = null;
+ viewConnectionPointCookie = 0;
+ }
+ }
+ #endregion
+
+ #region IDispatch events
+ // These need to be public to be accessible via AutoDual reflection
+
+ /// <summary>
+ /// The view selection has changed
+ /// </summary>
+ [DispId(ExplorerBrowserViewDispatchIds.SelectionChanged)]
+ public void ViewSelectionChanged()
+ {
+ parent.FireSelectionChanged();
+ }
+
+ /// <summary>
+ /// The contents of the view have changed
+ /// </summary>
+ [DispId(ExplorerBrowserViewDispatchIds.ContentsChanged)]
+ public void ViewContentsChanged()
+ {
+ parent.FireContentChanged();
+ }
+
+ /// <summary>
+ /// The enumeration of files in the view is complete
+ /// </summary>
+ [DispId(ExplorerBrowserViewDispatchIds.FileListEnumDone)]
+ public void ViewFileListEnumDone()
+ {
+ parent.FireContentEnumerationComplete();
+ }
+
+ /// <summary>
+ /// The selected item in the view has changed (not the same as the selection has changed)
+ /// </summary>
+ [DispId(ExplorerBrowserViewDispatchIds.SelectedItemChanged)]
+ public void ViewSelectedItemChanged()
+ {
+ parent.FireSelectedItemChanged();
+ }
+ #endregion
+
+ /// <summary>
+ /// Finalizer for ExplorerBrowserViewEvents
+ /// </summary>
+ ~ExplorerBrowserViewEvents()
+ {
+ Dispose(false);
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Disconnects and disposes object.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Disconnects and disposes object.
+ /// </summary>
+ /// <param name="disposed"></param>
+ protected virtual void Dispose(bool disposed)
+ {
+ if (disposed)
+ {
+ DisconnectFromView();
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLog.cs
new file mode 100644
index 0000000000..7770264bd1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLog.cs
@@ -0,0 +1,262 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Controls.WindowsForms;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+
+ /// <summary>
+ /// The navigation log is a history of the locations visited by the explorer browser.
+ /// </summary>
+ public class ExplorerBrowserNavigationLog
+ {
+ #region operations
+ /// <summary>
+ /// Clears the contents of the navigation log.
+ /// </summary>
+ public void ClearLog()
+ {
+ // nothing to do
+ if (_locations.Count == 0) { return; }
+
+ bool oldCanNavigateBackward = CanNavigateBackward;
+ bool oldCanNavigateForward = CanNavigateForward;
+
+ _locations.Clear();
+ this.currentLocationIndex = -1;
+
+ NavigationLogEventArgs args = new NavigationLogEventArgs();
+ args.LocationsChanged = true;
+ args.CanNavigateBackwardChanged = (oldCanNavigateBackward != CanNavigateBackward);
+ args.CanNavigateForwardChanged = (oldCanNavigateForward != CanNavigateForward);
+ if (NavigationLogChanged != null)
+ {
+ NavigationLogChanged(this, args);
+ }
+ }
+ #endregion
+
+ #region properties
+ /// <summary>
+ /// Indicates the presence of locations in the log that can be
+ /// reached by calling Navigate(Forward)
+ /// </summary>
+ public bool CanNavigateForward
+ {
+ get
+ {
+ return (CurrentLocationIndex < (_locations.Count - 1));
+ }
+ }
+
+ /// <summary>
+ /// Indicates the presence of locations in the log that can be
+ /// reached by calling Navigate(Backward)
+ /// </summary>
+ public bool CanNavigateBackward
+ {
+ get
+ {
+ return (CurrentLocationIndex > 0);
+ }
+ }
+
+ /// <summary>
+ /// The navigation log
+ /// </summary>
+ public IEnumerable<ShellObject> Locations
+ {
+ get { foreach (var obj in _locations) { yield return obj; } }
+ }
+ private List<ShellObject> _locations = new List<ShellObject>();
+
+ /// <summary>
+ /// An index into the Locations collection. The ShellObject pointed to
+ /// by this index is the current location of the ExplorerBrowser.
+ /// </summary>
+ public int CurrentLocationIndex
+ {
+ get
+ {
+ return currentLocationIndex;
+ }
+ }
+
+
+ /// <summary>
+ /// Gets the shell object in the Locations collection pointed to
+ /// by CurrentLocationIndex.
+ /// </summary>
+ public ShellObject CurrentLocation
+ {
+ get
+ {
+ if (currentLocationIndex < 0) { return null; }
+
+ return _locations[currentLocationIndex];
+ }
+ }
+ #endregion
+
+ #region events
+ /// <summary>
+ /// Fires when the navigation log changes or
+ /// the current navigation position changes
+ /// </summary>
+ public event EventHandler<NavigationLogEventArgs> NavigationLogChanged;
+ #endregion
+
+ #region implementation
+
+ private ExplorerBrowser parent = null;
+
+ /// <summary>
+ /// The pending navigation log action. null if the user is not navigating
+ /// via the navigation log.
+ /// </summary>
+ private PendingNavigation pendingNavigation;
+
+ /// <summary>
+ /// The index into the Locations collection. -1 if the Locations colleciton
+ /// is empty.
+ /// </summary>
+ private int currentLocationIndex = -1;
+
+ internal ExplorerBrowserNavigationLog(ExplorerBrowser parent)
+ {
+ if (parent == null)
+ {
+ throw new ArgumentException(LocalizedMessages.NavigationLogNullParent, "parent");
+ }
+
+ // Hook navigation events from the parent to distinguish between
+ // navigation log induced navigation, and other navigations.
+ this.parent = parent;
+ this.parent.NavigationComplete += new EventHandler<NavigationCompleteEventArgs>(OnNavigationComplete);
+ this.parent.NavigationFailed += new EventHandler<NavigationFailedEventArgs>(OnNavigationFailed);
+ }
+
+ private void OnNavigationFailed(object sender, NavigationFailedEventArgs args)
+ {
+ pendingNavigation = null;
+ }
+
+ private void OnNavigationComplete(object sender, NavigationCompleteEventArgs args)
+ {
+ NavigationLogEventArgs eventArgs = new NavigationLogEventArgs();
+ bool oldCanNavigateBackward = CanNavigateBackward;
+ bool oldCanNavigateForward = CanNavigateForward;
+
+ if ((pendingNavigation != null))
+ {
+ // navigation log traversal in progress
+
+ // determine if new location is the same as the traversal request
+ int result = 0;
+ pendingNavigation.Location.NativeShellItem.Compare(
+ args.NewLocation.NativeShellItem, SICHINTF.SICHINT_ALLFIELDS, out result);
+ bool shellItemsEqual = (result == 0);
+ if (shellItemsEqual == false)
+ {
+ // new location is different than traversal request,
+ // behave is if it never happened!
+ // remove history following currentLocationIndex, append new item
+ if (currentLocationIndex < (_locations.Count - 1))
+ {
+ _locations.RemoveRange((int)currentLocationIndex + 1, (int)(_locations.Count - (currentLocationIndex + 1)));
+ }
+ _locations.Add(args.NewLocation);
+ currentLocationIndex = (_locations.Count - 1);
+ eventArgs.LocationsChanged = true;
+ }
+ else
+ {
+ // log traversal successful, update index
+ currentLocationIndex = (int)pendingNavigation.Index;
+ eventArgs.LocationsChanged = false;
+ }
+ pendingNavigation = null;
+ }
+ else
+ {
+ // remove history following currentLocationIndex, append new item
+ if (currentLocationIndex < (_locations.Count - 1))
+ {
+ _locations.RemoveRange((int)currentLocationIndex + 1, (int)(_locations.Count - (currentLocationIndex + 1)));
+ }
+ _locations.Add(args.NewLocation);
+ currentLocationIndex = (_locations.Count - 1);
+ eventArgs.LocationsChanged = true;
+ }
+
+ // update event args
+ eventArgs.CanNavigateBackwardChanged = (oldCanNavigateBackward != CanNavigateBackward);
+ eventArgs.CanNavigateForwardChanged = (oldCanNavigateForward != CanNavigateForward);
+
+ if (NavigationLogChanged != null)
+ {
+ NavigationLogChanged(this, eventArgs);
+ }
+ }
+
+ internal bool NavigateLog(NavigationLogDirection direction)
+ {
+ // determine proper index to navigate to
+ int locationIndex = 0;
+ if (direction == NavigationLogDirection.Backward && CanNavigateBackward)
+ {
+ locationIndex = (currentLocationIndex - 1);
+ }
+ else if (direction == NavigationLogDirection.Forward && CanNavigateForward)
+ {
+ locationIndex = (currentLocationIndex + 1);
+ }
+ else
+ {
+ return false;
+ }
+
+ // initiate traversal request
+ ShellObject location = _locations[(int)locationIndex];
+ pendingNavigation = new PendingNavigation(location, locationIndex);
+ parent.Navigate(location);
+ return true;
+ }
+
+ internal bool NavigateLog(int index)
+ {
+ // can't go anywhere
+ if (index >= _locations.Count || index < 0) { return false; }
+
+ // no need to re navigate to the same location
+ if (index == currentLocationIndex) { return false; }
+
+ // initiate traversal request
+ ShellObject location = _locations[(int)index];
+ pendingNavigation = new PendingNavigation(location, index);
+ parent.Navigate(location);
+ return true;
+ }
+
+ #endregion
+ }
+
+ /// <summary>
+ /// A navigation traversal request
+ /// </summary>
+ internal class PendingNavigation
+ {
+ internal PendingNavigation(ShellObject location, int index)
+ {
+ Location = location;
+ Index = index;
+ }
+
+ internal ShellObject Location { get; set; }
+ internal int Index { get; set; }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEnums.cs
new file mode 100644
index 0000000000..b7e3ba3dde
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEnums.cs
@@ -0,0 +1,21 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ /// <summary>
+ /// The direction argument for Navigate
+ /// </summary>
+ public enum NavigationLogDirection
+ {
+ /// <summary>
+ /// Navigates forward through the navigation log
+ /// </summary>
+ Forward,
+
+ /// <summary>
+ /// Navigates backward through the travel log
+ /// </summary>
+ Backward
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEvents.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEvents.cs
new file mode 100644
index 0000000000..377738e121
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationLogEvents.cs
@@ -0,0 +1,27 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ /// <summary>
+ /// The event argument for NavigationLogChangedEvent
+ /// </summary>
+ public class NavigationLogEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Indicates CanNavigateForward has changed
+ /// </summary>
+ public bool CanNavigateForwardChanged { get; set; }
+
+ /// <summary>
+ /// Indicates CanNavigateBackward has changed
+ /// </summary>
+ public bool CanNavigateBackwardChanged { get; set; }
+
+ /// <summary>
+ /// Indicates the Locations collection has changed
+ /// </summary>
+ public bool LocationsChanged { get; set; }
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationOptions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationOptions.cs
new file mode 100644
index 0000000000..e34a8c50b7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ExplorerBrowser/NavigationOptions.cs
@@ -0,0 +1,105 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+using Microsoft.WindowsAPICodePack.Controls.WindowsForms;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+
+ /// <summary>
+ /// These options control the results subsequent navigations of the ExplorerBrowser
+ /// </summary>
+ public class ExplorerBrowserNavigationOptions
+ {
+ #region construction
+ ExplorerBrowser eb;
+ internal ExplorerBrowserNavigationOptions(ExplorerBrowser eb)
+ {
+ this.eb = eb;
+ PaneVisibility = new ExplorerBrowserPaneVisibility();
+ }
+ #endregion
+
+ #region Flags property
+ /// <summary>
+ /// The binary flags that are passed to the explorer browser control's GetOptions/SetOptions methods
+ /// </summary>
+ public ExplorerBrowserNavigateOptions Flags
+ {
+ get
+ {
+ ExplorerBrowserOptions ebo = new ExplorerBrowserOptions();
+ if (eb.explorerBrowserControl != null)
+ {
+ eb.explorerBrowserControl.GetOptions(out ebo);
+ return (ExplorerBrowserNavigateOptions)ebo;
+ }
+ return (ExplorerBrowserNavigateOptions)ebo;
+ }
+ set
+ {
+ ExplorerBrowserOptions ebo = (ExplorerBrowserOptions)value;
+ if (eb.explorerBrowserControl != null)
+ {
+ // Always forcing SHOWFRAMES because we handle IExplorerPaneVisibility
+ eb.explorerBrowserControl.SetOptions(ebo | ExplorerBrowserOptions.ShowFrames);
+ }
+ }
+ }
+ #endregion
+
+ #region control flags to properties mapping
+ /// <summary>
+ /// Do not navigate further than the initial navigation.
+ /// </summary>
+ public bool NavigateOnce
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserNavigateOptions.NavigateOnce);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserNavigateOptions.NavigateOnce, value);
+ }
+ }
+ /// <summary>
+ /// Always navigate, even if you are attempting to navigate to the current folder.
+ /// </summary>
+ public bool AlwaysNavigate
+ {
+ get
+ {
+ return IsFlagSet(ExplorerBrowserNavigateOptions.AlwaysNavigate);
+ }
+ set
+ {
+ SetFlag(ExplorerBrowserNavigateOptions.AlwaysNavigate, value);
+ }
+ }
+
+ private bool IsFlagSet(ExplorerBrowserNavigateOptions flag)
+ {
+ return (Flags & flag) != 0;
+ }
+
+ private void SetFlag(ExplorerBrowserNavigateOptions flag, bool value)
+ {
+ if (value)
+ {
+ Flags |= flag;
+ }
+ else
+ {
+ Flags = Flags & ~flag;
+ }
+ }
+ #endregion
+
+ #region ExplorerBrowser pane visibility
+ /// <summary>
+ /// Controls the visibility of the various ExplorerBrowser panes on subsequent navigation
+ /// </summary>
+ public ExplorerBrowserPaneVisibility PaneVisibility { get; private set; }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/GlobalSuppressions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/GlobalSuppressions.cs
new file mode 100644
index 0000000000..ec82e06bd8
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/GlobalSuppressions.cs
@@ -0,0 +1,871 @@
+// This file is used by Code Analysis to maintain SuppressMessage
+// attributes that are applied to this project.
+// Project-level suppressions either have no target or are given
+// a specific target and scoped to a namespace, type, member, etc.
+//
+// To add a suppression to this file, right-click the message in the
+// Error List, point to "Suppress Message(s)", and click
+// "In Project Suppression File".
+// You do not need to add suppressions to this file manually.
+
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", Scope = "member", Target = "Microsoft.WindowsAPICodePack.ApplicationServices.PowerPersonalityGuids.#All")]
+
+#region CA1709 - Identifiers should use proper casing - "API" acronym chosen for clarity
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Controls", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Dialogs", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Shell", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Shell.Interop", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Taskbar", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "MS.WindowsAPICodePack.Internal", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Dialogs.Controls", MessageId = "API")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Sensors", MessageId = "API")]
+#endregion
+
+#region CA1709 - Identifiers should use proper casing - acronyms capitalized for clarity
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaHDDVDROM", MessageId = "HDDVDROM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaHDDVDRAM", MessageId = "HDDVDRAM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaHDDVDR", MessageId = "HDDVDR")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaCDRW", MessageId = "CDRW")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaCDR", MessageId = "CDR")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaBluRayROM", MessageId = "ROM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcons.#DriveHDDVD", MessageId = "HDDVD")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaHDDVDROM", MessageId = "HDDVDROM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaHDDVDRAM", MessageId = "HDDVDRAM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaHDDVDR", MessageId = "HDDVDR")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaCDRW", MessageId = "CDRW")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaCDR", MessageId = "CDR")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaBluRayROM", MessageId = "ROM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#DriveHDDVD", MessageId = "HDDVD")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellSearchFolder.#SetFolderTypeID(System.Guid)", MessageId = "ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectCollection.#BuildShellIDList()", MessageId = "ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.QueryParserManagerOption.#AppendLCIDToLocalizedPath", MessageId = "LCID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsDTVContent", MessageId="DTV")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsSAP", MessageId="SAP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsATSCContent", MessageId="ATSC")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync.#HandlerID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync.#HandlerCollectionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync.#ItemID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemShell.#SFGAOFlagsStrings", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ISOSpeed", MessageId="ISO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#EXIFVersion", MessageId="EXIF")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Music.#AlbumID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Identity.#ProviderID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Identity.#UniqueID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Document.#ClientID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Document.#DocumentID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+PropGroup.#GPS", MessageId="GPS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Link.#TargetSFGAOFlagsStrings", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Link.#TargetSFGAOFlags", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Search.#EntryID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media.#ContentID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media.#ClassSecondaryID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media.#CollectionGroupID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media.#DVDID", MessageId="DVDID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media.#ClassPrimaryID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media.#CollectionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media.#MCDI", MessageId="MCDI")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPropGroup.#GPS", MessageId="GPS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Photo.#ISOSpeed", MessageId="ISO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Photo.#EXIFVersion", MessageId="EXIF")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink.#TargetSFGAOFlagsStrings", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink.#TargetSFGAOFlags", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#ImageID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DOP", MessageId="DOP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#VersionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DOPNumerator", MessageId="DOP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DOPDenominator", MessageId="DOP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#ID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#ConversationID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#CcName", MessageId="Cc")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#CcAddress", MessageId="Cc")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#MCDI", MessageId="MCDI")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#CollectionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#ClassPrimaryID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#ClassSecondaryID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#ContentID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#DVDID", MessageId="DVDID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#CollectionGroupID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+AppUserModel.#ID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Sync.#HandlerID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Sync.#ItemID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Sync.#HandlerCollectionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+RecordedTV.#IsSAP", MessageId="SAP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+RecordedTV.#IsATSCContent", MessageId="ATSC")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+RecordedTV.#IsDTVContent", MessageId="DTV")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#ProviderItemID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DescriptionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#MIMEType", MessageId="MIME")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DRM", MessageId="DRM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#SFGAOFlags", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#GPS", MessageId="GPS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FileFRN", MessageId="FRN")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#AcquisitionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Message.#ConversationID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Message.#CcName", MessageId="Cc")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Message.#CcAddress", MessageId="Cc")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyConditionOperation.#DOSWildCards", MessageId="DOS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#SFGAOFlags", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#FileFRN", MessageId="FRN")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#DescriptionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#ProviderItemID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#MIMEType", MessageId="MIME")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#AcquisitionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Contact.#TTYTDDTelephone", MessageId="TTYTDD")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Shell.#SFGAOFlagsStrings", MessageId="SFGAO")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMusic.#AlbumID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+GPS.#VersionID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+GPS.#DOPNumerator", MessageId="DOP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+GPS.#DOPDenominator", MessageId="DOP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Image.#ImageID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemContact.#TTYTDDTelephone", MessageId="TTYTDD")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemIdentity.#ProviderID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemIdentity.#UniqueID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#ClientID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#DocumentID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch.#EntryID", MessageId="ID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.ExtendedLinguisticServices.MappingAvailableServices.#TransliterationDevanagariToLatin", MessageId="Devanagari")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.ExtendedLinguisticServices.MappingAvailableServices.#TransliterationHantToHans", MessageId="Hant")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.ExtendedLinguisticServices.MappingAvailableServices.#TransliterationHansToHant", MessageId="Hant")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Dialogs.CommonOpenFileDialog.#Multiselect", MessageId="Multiselect")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.Interop.Message.#LParam", MessageId="Param")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.Interop.Message.#WParam", MessageId="Param")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.KnownFolders.#Ringtones", MessageId="Ringtones")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.KnownFolders.#SamplePlaylists", MessageId="Playlists")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.KnownFolders.#Playlists", MessageId="Playlists")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.KnownFolders.#PublicRingtones", MessageId="Ringtones")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.RedirectionCapability.#Redirectable", MessageId="Redirectable")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaBluRay", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaBluRayRE", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#DriveBluRay", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaSvcd", MessageId="Svcd")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaBluRayROM", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaVcd", MessageId="Vcd")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIconIdentifier.#MediaBluRayR", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaBluRayR", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaBluRay", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaBluRayRE", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIcons.#DriveBluRay", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaSvcd", MessageId="Svcd")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaBluRayROM", MessageId="Blu")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.StockIcons.#MediaVcd", MessageId="Vcd")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.QueryParserManagerOption.#UnlocalizedSchemaBinaryPath", MessageId="Unlocalized")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.DefinitionOptions.#Roamable", MessageId="Roamable")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.DefinitionOptions.#Precreate", MessageId="Precreate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.ShellObjectChangeTypes.#NetUnshare", MessageId="Unshare")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#TranscodedForSync", MessageId="Transcoded")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Photo.#TranscodedForSync", MessageId="Transcoded")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#RelaunchCommand", MessageId="Relaunch")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#RelaunchDisplayNameResource", MessageId="Relaunch")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#RelaunchIconResource", MessageId="Relaunch")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+AppUserModel.#RelaunchDisplayNameResource", MessageId="Relaunch")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+AppUserModel.#RelaunchIconResource", MessageId="Relaunch")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+AppUserModel.#RelaunchCommand", MessageId="Relaunch")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Video.#TranscodedForSync", MessageId="Transcoded")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#TranscodedForSync", MessageId="Transcoded")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties.#GetProperty`1(System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties.#GetProperty`1(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+GPS.#DOP", MessageId = "DOP")]
+#endregion
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+GPS", MessageId = "GPS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS", MessageId = "GPS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDRM", MessageId = "DRM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+DRM", MessageId = "DRM")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.MessageListener.#get_Running()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.Interop.ShellObjectWatcherNativeMethods.#CreateBindCtx(System.Int32,System.Runtime.InteropServices.ComTypes.IBindCtx&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.#SHGetPathFromIDListW(System.IntPtr,System.Text.StringBuilder)")]
+
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1805:DoNotInitializeUnnecessarily", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.MessageListener.#.cctor()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1805:DoNotInitializeUnnecessarily", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ChangeNotifyLock.#.ctor(Microsoft.WindowsAPICodePack.Shell.Interop.Message)")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant", Justification = "There are places where unsigned values are used, which is considered not Cls compliant.")]
+
+// Suppressed - Valid
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA2210:AssembliesShouldHaveValidStrongNames")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchCondition.#GetSubConditions()", Justification = "This method either creates a new instance of an object or has the potential of throwing an exception.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties.#GetPropertyWriter()", Justification = "This method either creates a new instance of an object or has the potential of throwing an exception.")]
+
+// There is logic that needs to be intialized within the static constructor that would require a different implementation if moved inline.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1810:InitializeReferenceTypeStaticFieldsInline", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.FolderIdentifiers.#.cctor()")]
+
+// These enum's do not represent flags (even though their values may suggest it)
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnailFormatOption")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnailRetrievalOption")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarProgressBarState")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2217:DoNotMarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyColumnStateOptions")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2217:DoNotMarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Controls.ExplorerBrowserContentSectionOptions")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2217:DoNotMarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyTypeOptions")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2217:DoNotMarkEnumsWithFlags", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectChangeTypes")]
+
+// For whatever reason, the FxCop dictionary won't accept these exceptions.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "WildCards", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyConditionOperation.#DOSWildCards")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "ShowPlaces", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.#ShowPlacesList")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Csc", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.KnownFolders.#SearchCsc")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "X", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.NativePoint.#X")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Y", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.NativePoint.#Y")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.NativePoint.#.ctor(System.Int32,System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.NativePoint.#.ctor(System.Int32,System.Int32)")]
+
+// Excessive switch/case.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties.#CreateTypedProperty(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#CreateTypedProperty(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,Microsoft.WindowsAPICodePack.Shell.PropertySystem.IPropertyStore)")]
+
+// Follows native values
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Controls.ExplorerBrowserViewMode")]
+
+// Initialized via being marshaled.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.Interop.LogFont", Justification = "Initialized via marshaler.")]
+
+// Need to index based on this type.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1043:UseIntegralOrStringArgumentForIndexers", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#Item[Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey]")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1043:UseIntegralOrStringArgumentForIndexers", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PropertyHandlers.PropertyStoreCache.#Item[Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey]")]
+
+// This exception is captured, but thrown later.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpList.#Refresh()")]
+
+// This needs to be read-write collection for WPF databinding
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation.ExplorerBrowser.#Items")]
+
+// This interface probably isn't required, or could be converted to something else.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1040:AvoidEmptyInterfaces", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Taskbar.IJumpListTask")]
+
+// Fix these
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation")]
+
+// Investigate further?
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Interoperability", "CA1408:DoNotUseAutoDualClassInterfaceType", Scope = "type", Target = "MS.WindowsAPICodePack.Internal.ExplorerBrowserViewEvents")]
+
+// Suppressed - FxCop bug?
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail.#SetImage(System.Windows.Media.Imaging.BitmapSource)")]
+
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PreviewHandlers.PreviewHandler.#Microsoft.WindowsAPICodePack.Shell.Interop.IPreviewHandler.DoPreview()", Justification = "The exception is handled at a later time.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PreviewHandlers.PreviewHandler`1.#Microsoft.WindowsAPICodePack.Shell.Interop.IPreviewHandler.DoPreview()", Justification = "The exception is handled at a later time.")]
+
+#region CA1006 - Nested Generic Types - Investigate
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#NamespaceClsid")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication.#FollowUpIconIndex")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyDevicesNotifications.#MissedCall")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyDevicesNotifications.#NewMessage")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyDevicesNotifications.#NewVoicemail")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyDevicesNotifications.#StorageFull")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyDevicesNotifications.#StorageFullLinkText")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#AcquisitionID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#Capacity")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DateAccessed")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DateAcquired")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DateArchived")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DateCompleted")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DateCreated")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DateImported")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DateModified")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#DueDate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#EndDate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FileAllocationSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FileAttributes")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FileCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FileFRN")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FlagColor")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FlagStatus")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FreeSpace")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#Importance")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsAttachment")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsDefaultNonOwnerSaveLocation")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsDefaultSaveLocation")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsDeleted")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsEncrypted")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsFlagged")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsFlaggedComplete")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsIncomplete")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsLocationSupported")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsPinnedToNamespaceTree")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsRead")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsSearchOnlyItem")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsSendToTarget")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#IsShared")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#ItemDate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#NamespaceCLSID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#OfflineAvailability")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#OfflineStatus")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#PerceivedType")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#PercentFull")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#Priority")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#Rating")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#Sensitivity")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#SFGAOFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#ShareUserRating")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#SharingStatus")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#SimpleRating")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#Size")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#StartDate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#Thumbnail")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#ThumbnailCacheId")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#TotalFileSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#ExcludeFromShowInNewInstall")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#IsDestListSeparator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#PreventPinning")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#ChannelCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#EncodingBitrate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#IsVariableBitRate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#PeakValue")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#SampleRate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#SampleSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#StreamNumber")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCalendar.#IsOnline")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCalendar.#IsRecurring")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCalendar.#ReminderTime")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCalendar.#ResponseStatus")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCalendar.#ShowTimeAs")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication.#DateItemExpires")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication.#FollowupIconIndex")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication.#HeaderItem")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication.#SecurityFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication.#TaskStatus")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemContact.#Anniversary")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemContact.#Birthday")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemContact.#GenderValue")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#BatteryLife")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#BatteryPlusCharging")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#ChargingState")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#Connected")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#ContainerId")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#IsDefault")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#IsNetworkConnected")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#IsShared")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#IsSoftwareInstalling")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#LaunchDeviceStageFromExplorer")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#LocalMachine")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#MissedCalls")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#NewPictures")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#NotificationStore")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#NotWorkingProperly")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#Paired")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#Roaming")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#SafeRemovalRequired")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#SignalStrength")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#StorageCapacity")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#StorageFreeSpace")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#StorageFreeSpacePercent")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#TextMessages")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices.#Voicemail")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#ByteCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#CharacterCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#DateCreated")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#DatePrinted")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#DateSaved")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#HiddenSlideCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#LineCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#MultimediaClipCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#NoteCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#PageCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#ParagraphCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#Security")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#SlideCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#TotalEditingTime")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument.#WordCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDRM.#DatePlayExpires")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDRM.#DatePlayStarts")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDRM.#IsProtected")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDRM.#PlayCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#Altitude")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#AltitudeDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#AltitudeNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#AltitudeRef")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#Date")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestBearing")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestBearingDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestBearingNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestDistance")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestDistanceDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestDistanceNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#Differential")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DOP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DOPDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DOPNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#ImgDirection")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#ImgDirectionDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#ImgDirectionNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#Speed")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#SpeedDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#SpeedNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#Track")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#TrackDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#TrackNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemIdentity.#IsMeIdentity")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemIdentity.#ProviderID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#BitDepth")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#ColorSpace")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#CompressedBitsPerPixel")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#CompressedBitsPerPixelDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#CompressedBitsPerPixelNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#Compression")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#HorizontalResolution")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#HorizontalSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#ResolutionUnit")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#VerticalResolution")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage.#VerticalSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink.#DateVisited")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink.#Status")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink.#TargetSFGAOFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#AverageLevel")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#DateEncoded")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#Duration")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#FrameCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia.#Year")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#DateReceived")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#DateSent")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#Flags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#HasAttachments")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#IsFwdOrReply")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#ProofInProgress")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#ToDoFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMusic.#IsCompilation")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMusic.#TrackNumber")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemNote.#Color")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#Aperture")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ApertureDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ApertureNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#Brightness")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#BrightnessDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#BrightnessNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#Contrast")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#DateTaken")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#DigitalZoom")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#DigitalZoomDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#DigitalZoomNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureBias")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureBiasDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureBiasNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureIndex")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureIndexDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureIndexNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureProgram")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureTime")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureTimeDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ExposureTimeNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#Flash")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FlashEnergy")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FlashEnergyDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FlashEnergyNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FNumber")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FNumberDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FNumberNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalLength")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalLengthDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalLengthInFilm")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalLengthNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalPlaneXResolution")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalPlaneXResolutionDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalPlaneXResolutionNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalPlaneYResolution")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalPlaneYResolutionDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#FocalPlaneYResolutionNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#GainControl")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#GainControlDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#GainControlNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ISOSpeed")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#LightSource")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#MakerNoteOffset")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#MaxAperture")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#MaxApertureDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#MaxApertureNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#MeteringMode")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#Orientation")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#PhotometricInterpretation")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ProgramMode")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#Saturation")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#Sharpness")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ShutterSpeed")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ShutterSpeedDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#ShutterSpeedNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#SubjectDistance")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#SubjectDistanceDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#SubjectDistanceNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#TranscodedForSync")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto.#WhiteBalance")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#ChannelNumber")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#DateContentExpires")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsATSCContent")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsClosedCaptioningAvailable")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsDTVContent")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsHDContent")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsRepeatBroadcast")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#IsSAP")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#OriginalBroadcastDate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV.#RecordingTime")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch.#EntryID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch.#GatherTime")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch.#HitCount")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch.#IsClosedDirectory")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch.#IsFullyContained")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch.#Rank")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSoftware.#DateLastUsed")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync.#HandlerCollectionID")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync.#HandlerType")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync.#ProgressPercentage")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync.#State")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#EncodingBitrate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#FourCC")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#FrameHeight")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#FrameRate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#FrameWidth")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#HorizontalAspectRatio")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#SampleSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#StreamNumber")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#TranscodedForSync")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#VerticalAspectRatio")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVolume.#IsMappedDrive")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVolume.#IsRoot")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo.#TotalBitrate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyDevicesNotifications.#LowBattery")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel.#IsDestinationListSeparator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio.#IsVariableBitrate")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestinationBearing")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestinationBearingDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestinationBearingNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestinationDistance")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestinationDistanceNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#ImageDirection")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#ImageDirectionDenominator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#ImageDirectionNumerator")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS.#DestinationDistanceDenominator")]
+#endregion
+
+#region CA1034 - Visible Nested Types - Investigate, should be fixed when we address Property System issues
+// The layout of the PropertySystem has many public types nested within a type
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyContactJA")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertyDevicesNotifications")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAppUserModel")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemAudio")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCalendar")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemComputer")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemContact")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevice")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDeviceInterface")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDevices")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDocument")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemDRM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemGPS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemIdentity")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemIdentityProvider")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemImage")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemJournal")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLayoutPattern")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMedia")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMusic")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemNote")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPhoto")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPropGroup")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemPropList")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemRecordedTV")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSearch")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemShell")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSoftware")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemSync")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemTask")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVideo")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemVolume")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+AppUserModel")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Audio")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Calendar")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Communication")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Computer")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Contact")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Contact+JA")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Device")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+DeviceInterface")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Devices")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Devices+Notifications")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Document")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+DRM")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+GPS")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Identity")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+IdentityProvider")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Image")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+JA")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Journal")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+LayoutPattern")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Link")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Message")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Music")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Note")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Notifications")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Photo")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+PropGroup")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+PropList")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+RecordedTV")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Search")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Shell")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Software")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Sync")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Task")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Video")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "For this entire generated class, there are generics using nullable values, which is a nested generic throwing this excpetion.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Volume")]
+#endregion
+
+#region CA1065 - Investigate and fix
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations", Justification = "In this case, an exception is thrown from a property getter, which can happen when wrappin a native API call.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.ExplorerBrowserContentOptions.#ThumbnailSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations", Justification = "In this case, an exception is thrown from a property getter, which can happen when wrappin a native API call.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObject.#Parent")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations", Justification = "In this case, an exception is thrown from a property getter, which can happen when wrappin a native API call.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#Item[Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey]")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations", Justification = "In this case, an exception is thrown from a property getter, which can happen when wrappin a native API call.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#Item[System.String]")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations", Justification = "In this case, an exception is thrown from a property getter, which can happen when wrappin a native API call.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchCondition.#PropertyKey")]
+#endregion
+
+#region CA1710 - Use Correct suffix - won't fix (for now?)
+// Changing the type names will break the naming pattern in the ShellObject area.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellFileSystemFolder")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellFolder")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellSearchConnector")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellSearchFolder")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellNonFileSystemFolder")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.ShellLibrary")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.FileSystemKnownFolder")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.NonFileSystemKnownFolder")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification = "The naming pattern in the ShellObject area would be too confusing if every type ended in Dictionary or List.", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.IKnownFolder")]
+#endregion
+
+#region CA1724 - Conflicting typename/namespace - Fix - Property System Changes
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Shell")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Media")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Scope = "type", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem")]
+#endregion
+
+#region CA1726 - Flags reserved name - Investigate, but they may be valid use of the word.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FlagColor")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FlagColorText")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FlagStatus")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#FlagStatusText")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#FlagColor")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#FlagStatus")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#FlagStatusText")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.ExplorerBrowserContentOptions.#Flags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.ExplorerBrowserNavigationOptions.#Flags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystem.#SFGAOFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemCommunication.#SecurityFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink.#TargetSFGAOFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemLink.#TargetSFGAOFlagsStrings")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#Flags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemMessage.#ToDoFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties+PropertySystemShell.#SFGAOFlagsStrings")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.#TypeFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.#ViewFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Communication.#SecurityFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Link.#TargetSFGAOFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Link.#TargetSFGAOFlagsStrings")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Message.#Flags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System+Message.#ToDoFlags")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flag", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties+System.#FlagColorText")]
+
+#endregion
+
+#region CA1806 - Ignoring Method Results - Fix these eventually.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.Margins@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassWindow.#ResetAeroGlass()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.Margins@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassWindow.#ExcludeElementFromAeroGlass(System.Windows.FrameworkElement)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.Margins@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassForm.#ExcludeControlFromAeroGlass(System.Windows.Forms.Control)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.Margins@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassForm.#ResetAeroGlass()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.IPropertyStore.SetValue(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,MS.WindowsAPICodePack.Internal.PropVariant@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarNativeMethods.#SetWindowProperty(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailNativeMethods.ReleaseDC(System.IntPtr,System.IntPtr)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailScreenCapture.#GrabWindowBitmap(System.IntPtr,System.Drawing.Size)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertySystemNativeMethods.PSGetNameFromPropertyKey(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,System.String@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.#CanonicalName")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.SHCreateShellItemArrayFromDataObject(System.Runtime.InteropServices.ComTypes.IDataObject,System.Guid@,Microsoft.WindowsAPICodePack.Shell.IShellItemArray@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectCollection.#FromDataObject(System.Runtime.InteropServices.ComTypes.IDataObject)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.SHCreateItemFromParsingName(System.String,System.IntPtr,System.Guid@,Microsoft.WindowsAPICodePack.Shell.IShellItem@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellLibrary.#.ctor(System.String,System.String,System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.SHCreateItemFromParsingName(System.String,System.IntPtr,System.Guid@,Microsoft.WindowsAPICodePack.Shell.IShellItem@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellLibrary.#DefaultSaveFolder")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.SHGetDesktopFolder(Microsoft.WindowsAPICodePack.Shell.IShellFolder@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellContainer.#GetEnumerator()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertySystemNativeMethods.PSGetNameFromPropertyKey(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,System.String@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateLeafCondition(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.String,Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertySystemNativeMethods.PSGetNameFromPropertyKey(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,System.String@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateLeafCondition(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.Int32,Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertySystemNativeMethods.PSGetNameFromPropertyKey(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,System.String@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateLeafCondition(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.Double,Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertySystemNativeMethods.PSGetNameFromPropertyKey(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,System.String@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateLeafCondition(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.DateTime,Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertySystemNativeMethods.PSGetNameFromPropertyKey(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,System.String@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateLeafCondition(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.Boolean,Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.IPropertyStore.SetValue(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,MS.WindowsAPICodePack.Internal.PropVariant@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpListSeparator.#NativeShellLink")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.IPropertyStore.SetValue(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey@,MS.WindowsAPICodePack.Internal.PropVariant@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpListLink.#NativeShellLink")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.MARGINS@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassWindow.#ResetAeroGlass()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.MARGINS@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassWindow.#ExcludeElementFromAeroGlass(System.Windows.FrameworkElement)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmEnableComposition(MS.WindowsAPICodePack.Internal.CompositionEnable)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassWindow.#AeroGlassCompositionEnabled")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.MARGINS@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassForm.#ResetAeroGlass()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.MARGINS@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassForm.#ExcludeControlFromAeroGlass(System.Windows.Forms.Control)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.SHCreateItemFromParsingName(System.String,System.IntPtr,System.Guid@,Microsoft.WindowsAPICodePack.Shell.IShellItem2@)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.#ApplyNativeSettings(Microsoft.WindowsAPICodePack.Dialogs.IFileDialog)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.DwmEnableComposition(MS.WindowsAPICodePack.Internal.CompositionEnable)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassForm.#AeroGlassCompositionEnabled")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailNativeMethods.DwmInvalidateIconicBitmaps(System.IntPtr)", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarWindowManager.#InvalidatePreview(Microsoft.WindowsAPICodePack.Taskbar.TaskbarWindow)")]
+#endregion
+
+#region CA1811 - Uncalled code - Mostly getters for properties, investigate.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Uncalled property getters. Removing the getter can affect Marshaling and will raise a Read-Only FxCop warning.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailProxyWindow.#WindowsControl")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Uncalled property getters. Removing the getter can affect Marshaling and will raise a Read-Only FxCop warning.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpListCustomCategoryCollection.#IsReadOnly")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Uncalled property getters. Removing the getter can affect Marshaling and will raise a Read-Only FxCop warning.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog+NativeDialogEventSink.#Cookie")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Uncalled property getters. Removing the getter can affect Marshaling and will raise a Read-Only FxCop warning.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail.#AddedToTaskbar")]
+#endregion
+
+#region CA1822 - Investigate these, probably leave as is.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailManager.#SetThumbnailClip(System.IntPtr,System.Nullable`1<System.Drawing.Rectangle>)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetProgressValue(System.Int32,System.Int32,System.Windows.Window)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetProgressValue(System.Int32,System.Int32,System.IntPtr)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetProgressState(Microsoft.WindowsAPICodePack.Taskbar.TaskbarProgressBarState,System.Windows.Window)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetProgressState(Microsoft.WindowsAPICodePack.Taskbar.TaskbarProgressBarState,System.IntPtr)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetOverlayIcon(System.Windows.Window,System.Drawing.Icon,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetOverlayIcon(System.IntPtr,System.Drawing.Icon,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetCurrentProcessAppId(System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetApplicationIdForSpecificWindow(System.IntPtr,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#IsPlatformSupported")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#GetCurrentProcessAppId()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#SetApplicationIdForSpecificWindow(System.Windows.Window,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarManager.#AddButtons(System.Windows.UIElement,Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarManager.#AddButtons(System.IntPtr,Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton[])")]
+#endregion
+
+#region CA2000 - Dispose objects before they lose scope - Investigate.
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PreviewHandlers.PreviewHandler.#Microsoft.WindowsAPICodePack.Shell.Interop.IPreviewHandler.DoPreview()", Justification = "Control added to list which is disposed via IDisposable.")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#.ctor(System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailScreenCapture.#GrabWindowBitmap(System.IntPtr,System.Drawing.Size)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarWindowManager.#AddThumbnailButtons(System.Windows.UIElement,Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarWindowManager.#AddThumbnailButtons(System.IntPtr,Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#ParseStructuredQuery(System.String,System.Globalization.CultureInfo)")]
+#endregion
+
+#region CA2118, CA2122, CA2123 - LinkDemand related
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.Margins&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#DwmEnableComposition(MS.WindowsAPICodePack.Internal.CompositionEnable)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#DwmExtendFrameIntoClientArea(System.IntPtr,MS.WindowsAPICodePack.Internal.MARGINS&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#DwmIsCompositionEnabled()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#GetClientRect(System.IntPtr,MS.WindowsAPICodePack.Internal.CoreNativeMethods+Rect&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#GetWindowRect(System.IntPtr,MS.WindowsAPICodePack.Internal.CoreNativeMethods+Rect&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.ExplorerBrowserNativeMethods.#ConnectToConnectionPoint(System.Object,System.Guid&,System.Boolean,System.Object,System.UInt32&,System.IntPtr&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#GetClientRect(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.NativeRect&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.DesktopWindowManagerNativeMethods.#GetWindowRect(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.NativeRect&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectFactory.#IsVirtualKnownFolder(Microsoft.WindowsAPICodePack.Shell.IShellItem2)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.MessageListener.#.ctor()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PropertyHandlers.PropertyHandler.#.ctor()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PreviewHandlers.ShellObjectBasedPreviewHandler`1.#Microsoft.WindowsAPICodePack.Shell.Interop.IInitializeWithItem.Initialize(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.AccessModes)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.ThumbnailProviders.ShellObjectBasedThumbnailProvider.#Microsoft.WindowsAPICodePack.Shell.Interop.IInitializeWithItem.Initialize(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.AccessModes)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.#ProcessChangeNotificationEvent(Microsoft.WindowsAPICodePack.Shell.WindowMessageEventArgs)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.#ProcessParentChangeNotificationEvent(Microsoft.WindowsAPICodePack.Shell.WindowMessageEventArgs)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.#StopWatching()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StorageStream.#Read(System.Byte[],System.Int32,System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StorageStream.#Seek(System.Int64,System.IO.SeekOrigin)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StorageStream.#Write(System.Byte[],System.Int32,System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.#.ctor(Microsoft.WindowsAPICodePack.Shell.ShellObject,System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.MessageListener.#CrossThreadCreateWindow()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.IntPtrExtensions.#MarshalAs`1(System.IntPtr)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ReadOnlyIStreamStream.#Read(System.Byte[],System.Int32,System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ReadOnlyIStreamStream.#Seek(System.Int64,System.IO.SeekOrigin)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.ThumbnailProviders.ShellItemBasedThumbnailProvider.#Microsoft.WindowsAPICodePack.Shell.Interop.IInitializeWithItem.Initialize(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.AccessModes)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PreviewHandlers.ShellObjectBasedPreviewHandler.#Microsoft.WindowsAPICodePack.Shell.Interop.IInitializeWithItem.Initialize(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.AccessModes)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.ThumbnailProviders.ThumbnailProvider.#Microsoft.WindowsAPICodePack.Shell.Interop.IThumbnailProvider.GetThumbnail(System.UInt32,System.IntPtr&,System.UInt32&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.ReadOnlyIStreamStream.#Read(System.Byte[],System.Int32,System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.ReadOnlyIStreamStream.#Seek(System.Int64,System.IO.SeekOrigin)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.ThumbnailProviders.ShellItemBasedThumbnailProvider.#Microsoft.WindowsAPICodePack.Shell.Interop.IInitializeWithItem.Initialize(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.AccessMode)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.PreviewHandlers.ShellObjectBasedPreviewHandler.#Microsoft.WindowsAPICodePack.Shell.Interop.IInitializeWithItem.Initialize(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.AccessMode)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellExtensions.ThumbnailProvider.#Microsoft.WindowsAPICodePack.Shell.Interop.IThumbnailProvider.GetThumbnail(System.UInt32,System.IntPtr&,System.UInt32&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.MessageListenerWindow.#Initialize()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.MessageListenerWindow.#.ctor()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.ShellObjectWatcher.#ProcessChangeNotificationEvent(Microsoft.WindowsAPICodePack.Shell.WindowsMessageEventArgs)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.ShellObjectWatcher.#ProcessParentChangeNotificationEvent(Microsoft.WindowsAPICodePack.Shell.WindowsMessageEventArgs)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.#ProcessChangeNotificationEvent(Microsoft.WindowsAPICodePack.Shell.WindowsMessageEventArgs)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.#StartWatching()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.#ProcessParentChangeNotificationEvent(Microsoft.WindowsAPICodePack.Shell.WindowsMessageEventArgs)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectWatcher.ShellObjectWatcher.#StartWatching()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperty`1.#FormatForDisplay(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyDescriptionFormatOptions)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperty`1.#TryFormatForDisplay(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyDescriptionFormatOptions,System.String&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.CommandLink.#CreateParams")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.#AddPlace(System.String,Microsoft.WindowsAPICodePack.Shell.FileDialogAddPlaceLocation)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.CommonSaveFileDialog.#SetCollectedPropertyKeys(System.Boolean,Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification =" Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser.#GetFolderView2()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser.#GetItemsArray()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser.#GetSelectedItemsArray()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser.#Items")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser.#SelectedItems")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.ExplorerBrowserContentOptions.#ThumbnailSize")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "MS.WindowsAPICodePack.Internal.ExplorerBrowserViewEvents.#DisconnectFromView()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.FileSystemKnownFolder.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassForm.#WndProc(System.Windows.Forms.Message&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassWindow.#SetAeroGlassTransparency()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpList.#RemoveCustomCategoryItem(Microsoft.WindowsAPICodePack.Shell.IShellItem)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpListLink.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpListLink.#NativeShellLink")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpListSeparator.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.JumpListSeparator.#NativeShellLink")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.KnownFolders.#GetAllFolders()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.KnownFolderSettings.#GetFolderProperties(Microsoft.WindowsAPICodePack.Shell.IKnownFolderNative)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.NonFileSystemKnownFolder.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchCondition.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchCondition.#GetSubConditions()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateAndOrCondition(Microsoft.WindowsAPICodePack.Shell.SearchConditionType,System.Boolean,Microsoft.WindowsAPICodePack.Shell.SearchCondition[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateLeafCondition(System.String,MS.WindowsAPICodePack.Internal.PropVariant,System.String,Microsoft.WindowsAPICodePack.Shell.SearchConditionOperation)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#CreateNotCondition(Microsoft.WindowsAPICodePack.Shell.SearchCondition,System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.SearchConditionFactory.#ParseStructuredQuery(System.String,System.Globalization.CultureInfo)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellContainer.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellHelper.#GetParsingName(Microsoft.WindowsAPICodePack.Shell.IShellItem)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellHelper.#PidlFromShellItem(Microsoft.WindowsAPICodePack.Shell.IShellItem)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellLibrary.#GetFolders()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObject.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObject.#GetHashCode()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObject.#Name")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObject.#NativeShellItem2")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectCollection.#BuildShellIDList()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectCollection.#.ctor(Microsoft.WindowsAPICodePack.Shell.IShellItemArray,System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellObjectFactory.#Create(System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperties.#CreateTypedProperty(System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperty`1.#FormatForDisplay(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyDescriptionFormat)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperty`1.#GetImageReference()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperty`1.#StorePropVariantValue(MS.WindowsAPICodePack.Internal.PropVariant)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperty`1.#TryFormatForDisplay(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyDescriptionFormat,System.String&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellProperty`1.#ValueAsObject")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#.ctor(Microsoft.WindowsAPICodePack.Shell.ShellObject)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.#DisplayName")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.#Dispose(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.#EditInvitation")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyDescription.#GetSortDescriptionLabel(System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyWriter.#Close()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyWriter.#.ctor(Microsoft.WindowsAPICodePack.Shell.ShellObject)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyWriter.#WriteProperty(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.Object,System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyWriter.#WriteProperty(System.String,System.Object,System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellSearchFolder.#SetStacks(System.String[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellSearchFolder.#SetVisibleColumns(Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellSearchFolder.#SortColumns(Microsoft.WindowsAPICodePack.Shell.SortColumn[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnail.#ExtraLargeIcon")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnail.#GetHBitmap(System.Windows.Size)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnail.#Icon")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnail.#LargeIcon")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnail.#MediumIcon")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.ShellThumbnail.#SmallIcon")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.StockIcon.#GetHIcon()")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties.#GetPropertyDescription(System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail.#SetImage(System.Drawing.Bitmap)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail.#SetImage(System.Windows.Media.Imaging.BitmapSource)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailManager.#SetThumbnailClip(System.IntPtr,System.Nullable`1<System.Drawing.Rectangle>)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailNativeMethods.#EnableCustomWindowPreview(System.IntPtr,System.Boolean)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailScreenCapture.#GrabWindowBitmap(System.IntPtr,System.Drawing.Size)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailScreenCapture.#GrabWindowBitmap(System.Windows.UIElement,System.Int32,System.Int32,System.Int32,System.Int32)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarManager.#OwnerHandle")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarNativeMethods.#GetWindowPropertyStore(System.IntPtr)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.TaskbarNativeMethods.#SetWindowProperty(System.IntPtr,Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey,System.String)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolbarProxyWindow.#.ctor(System.IntPtr,Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolbarProxyWindow.#.ctor(System.Windows.UIElement,Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton[])")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Justification = "Suppressed all LinkDemand related warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolbarProxyWindow.#WindowToTellTaskbarAbout")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Suppressed all LinkDemand relaged warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.CommandLink.#CreateParams")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Suppressed all LinkDemand relaged warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.GlassForm.#WndProc(System.Windows.Forms.Message&)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Suppressed all LinkDemand relaged warnings.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser.#System.Windows.Forms.IMessageFilter.PreFilterMessage(System.Windows.Forms.Message&)")]
+#endregion
+
+#region CA2201 - Reserved Exception Types - Investigate and fix these
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes", Justification = "These can throw an exception deriving from ExternalException, which is reserved.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Dialogs.Controls.CommonFileDialogRadioButtonList.#Attach(Microsoft.WindowsAPICodePack.Dialogs.IFileDialogCustomize)")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes", Justification = "These can throw an exception deriving from ExternalException, which is reserved.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#Item[System.String]")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes", Justification = "These can throw an exception deriving from ExternalException, which is reserved.", Scope = "member", Target = "Microsoft.WindowsAPICodePack.Shell.PropertySystem.ShellPropertyCollection.#Item[Microsoft.WindowsAPICodePack.Shell.PropertySystem.PropertyKey]")]
+#endregion
+
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/IntPtrExtensions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/IntPtrExtensions.cs
new file mode 100644
index 0000000000..967cff9df7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/IntPtrExtensions.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal static class IntPtrExtensions
+ {
+ public static T MarshalAs<T>(this IntPtr ptr)
+ {
+ return (T)Marshal.PtrToStructure(ptr, typeof(T));
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMClasses.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMClasses.cs
new file mode 100644
index 0000000000..58a00219fa
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMClasses.cs
@@ -0,0 +1,22 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ [ComImport,
+ Guid(ShellIIDGuid.IShellLibrary),
+ CoClass(typeof(ShellLibraryCoClass))]
+ internal interface INativeShellLibrary : IShellLibrary
+ {
+ }
+
+ [ComImport,
+ ClassInterface(ClassInterfaceType.None),
+ TypeLibType(TypeLibTypeFlags.FCanCreate),
+ Guid(ShellCLSIDGuid.ShellLibrary)]
+ internal class ShellLibraryCoClass
+ {
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMGuids.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMGuids.cs
new file mode 100644
index 0000000000..484b13f075
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMGuids.cs
@@ -0,0 +1,85 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal static class ShellIIDGuid
+ {
+
+ // IID GUID strings for relevant Shell COM interfaces.
+ internal const string IModalWindow = "B4DB1657-70D7-485E-8E3E-6FCB5A5C1802";
+ internal const string IFileDialog = "42F85136-DB7E-439C-85F1-E4075D135FC8";
+ internal const string IFileOpenDialog = "D57C7288-D4AD-4768-BE02-9D969532D960";
+ internal const string IFileSaveDialog = "84BCCD23-5FDE-4CDB-AEA4-AF64B83D78AB";
+ internal const string IFileDialogEvents = "973510DB-7D7F-452B-8975-74A85828D354";
+ internal const string IFileDialogControlEvents = "36116642-D713-4B97-9B83-7484A9D00433";
+ internal const string IFileDialogCustomize = "E6FDD21A-163F-4975-9C8C-A69F1BA37034";
+
+ internal const string IShellItem = "43826D1E-E718-42EE-BC55-A1E261C37BFE";
+ internal const string IShellItem2 = "7E9FB0D3-919F-4307-AB2E-9B1860310C93";
+ internal const string IShellItemArray = "B63EA76D-1F85-456F-A19C-48159EFA858B";
+ internal const string IShellLibrary = "11A66EFA-382E-451A-9234-1E0E12EF3085";
+ internal const string IThumbnailCache = "F676C15D-596A-4ce2-8234-33996F445DB1";
+ internal const string ISharedBitmap = "091162a4-bc96-411f-aae8-c5122cd03363";
+ internal const string IShellFolder = "000214E6-0000-0000-C000-000000000046";
+ internal const string IShellFolder2 = "93F2F68C-1D1B-11D3-A30E-00C04F79ABD1";
+ internal const string IEnumIDList = "000214F2-0000-0000-C000-000000000046";
+ internal const string IShellLinkW = "000214F9-0000-0000-C000-000000000046";
+ internal const string CShellLink = "00021401-0000-0000-C000-000000000046";
+
+ internal const string IPropertyStore = "886D8EEB-8CF2-4446-8D02-CDBA1DBDCF99";
+ internal const string IPropertyStoreCache = "3017056d-9a91-4e90-937d-746c72abbf4f";
+ internal const string IPropertyDescription = "6F79D558-3E96-4549-A1D1-7D75D2288814";
+ internal const string IPropertyDescription2 = "57D2EDED-5062-400E-B107-5DAE79FE57A6";
+ internal const string IPropertyDescriptionList = "1F9FC1D0-C39B-4B26-817F-011967D3440E";
+ internal const string IPropertyEnumType = "11E1FBF9-2D56-4A6B-8DB3-7CD193A471F2";
+ internal const string IPropertyEnumType2 = "9B6E051C-5DDD-4321-9070-FE2ACB55E794";
+ internal const string IPropertyEnumTypeList = "A99400F4-3D84-4557-94BA-1242FB2CC9A6";
+ internal const string IPropertyStoreCapabilities = "c8e2d566-186e-4d49-bf41-6909ead56acc";
+
+ internal const string ICondition = "0FC988D4-C935-4b97-A973-46282EA175C8";
+ internal const string ISearchFolderItemFactory = "a0ffbc28-5482-4366-be27-3e81e78e06c2";
+ internal const string IConditionFactory = "A5EFE073-B16F-474f-9F3E-9F8B497A3E08";
+ internal const string IRichChunk = "4FDEF69C-DBC9-454e-9910-B34F3C64B510";
+ internal const string IPersistStream = "00000109-0000-0000-C000-000000000046";
+ internal const string IPersist = "0000010c-0000-0000-C000-000000000046";
+ internal const string IEnumUnknown = "00000100-0000-0000-C000-000000000046";
+ internal const string IQuerySolution = "D6EBC66B-8921-4193-AFDD-A1789FB7FF57";
+ internal const string IQueryParser = "2EBDEE67-3505-43f8-9946-EA44ABC8E5B0";
+ internal const string IQueryParserManager = "A879E3C4-AF77-44fb-8F37-EBD1487CF920";
+ }
+
+ internal static class ShellCLSIDGuid
+ {
+
+ // CLSID GUID strings for relevant coclasses.
+ internal const string FileOpenDialog = "DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7";
+ internal const string FileSaveDialog = "C0B4E2F3-BA21-4773-8DBA-335EC946EB8B";
+ internal const string KnownFolderManager = "4DF0C730-DF9D-4AE3-9153-AA6B82E9795A";
+ internal const string ShellLibrary = "D9B3211D-E57F-4426-AAEF-30A806ADD397";
+ internal const string SearchFolderItemFactory = "14010e02-bbbd-41f0-88e3-eda371216584";
+ internal const string ConditionFactory = "E03E85B0-7BE3-4000-BA98-6C13DE9FA486";
+ internal const string QueryParserManager = "5088B39A-29B4-4d9d-8245-4EE289222F66";
+ }
+
+ internal static class ShellKFIDGuid
+ {
+
+ internal const string ComputerFolder = "0AC0837C-BBF8-452A-850D-79D08E667CA7";
+ internal const string Favorites = "1777F761-68AD-4D8A-87BD-30B759FA33DD";
+ internal const string Documents = "FDD39AD0-238F-46AF-ADB4-6C85480369C7";
+ internal const string Profile = "5E6C858F-0E22-4760-9AFE-EA3317B67173";
+
+ internal const string GenericLibrary = "5c4f28b5-f869-4e84-8e60-f11db97c5cc7";
+ internal const string DocumentsLibrary = "7d49d726-3c21-4f05-99aa-fdc2c9474656";
+ internal const string MusicLibrary = "94d6ddcc-4a68-4175-a374-bd584a510b78";
+ internal const string PicturesLibrary = "b3690e58-e961-423b-b687-386ebfd83239";
+ internal const string VideosLibrary = "5fa96407-7e77-483c-ac93-691d05850de8";
+
+ internal const string Libraries = "1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE";
+ }
+
+ internal static class ShellBHIDGuid
+ {
+ internal const string ShellFolderObject = "3981e224-f559-11d3-8e3a-00c04f6837d5";
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMInterfaces.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMInterfaces.cs
new file mode 100644
index 0000000000..78e1bad2a2
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellCOMInterfaces.cs
@@ -0,0 +1,880 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Runtime.InteropServices.ComTypes;
+using System.Text;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Microsoft.WindowsAPICodePack.Taskbar;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal enum SICHINTF
+ {
+ SICHINT_DISPLAY = 0x00000000,
+ SICHINT_CANONICAL = 0x10000000,
+ SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL = 0x20000000,
+ SICHINT_ALLFIELDS = unchecked((int)0x80000000)
+ }
+
+ // Disable warning if a method declaration hides another inherited from a parent COM interface
+ // To successfully import a COM interface, all inherited methods need to be declared again with
+ // the exception of those already declared in "IUnknown"
+#pragma warning disable 108
+
+ #region COM Interfaces
+
+ [ComImport(),
+ Guid(ShellIIDGuid.IModalWindow),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IModalWindow
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime),
+ PreserveSig]
+ int Show([In] IntPtr parent);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IShellItem),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IShellItem
+ {
+ // Not supported: IBindCtx.
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult BindToHandler(
+ [In] IntPtr pbc,
+ [In] ref Guid bhid,
+ [In] ref Guid riid,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IShellFolder ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetParent([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetDisplayName(
+ [In] ShellNativeMethods.ShellItemDesignNameOptions sigdnName,
+ out IntPtr ppszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAttributes([In] ShellNativeMethods.ShellFileGetAttributesOptions sfgaoMask, out ShellNativeMethods.ShellFileGetAttributesOptions psfgaoAttribs);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Compare(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem psi,
+ [In] SICHINTF hint,
+ out int piOrder);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IShellItem2),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IShellItem2 : IShellItem
+ {
+ // Not supported: IBindCtx.
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult BindToHandler(
+ [In] IntPtr pbc,
+ [In] ref Guid bhid,
+ [In] ref Guid riid,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IShellFolder ppv);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetParent([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetDisplayName(
+ [In] ShellNativeMethods.ShellItemDesignNameOptions sigdnName,
+ [MarshalAs(UnmanagedType.LPWStr)] out string ppszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAttributes([In] ShellNativeMethods.ShellFileGetAttributesOptions sfgaoMask, out ShellNativeMethods.ShellFileGetAttributesOptions psfgaoAttribs);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Compare(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem psi,
+ [In] uint hint,
+ out int piOrder);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), PreserveSig]
+ int GetPropertyStore(
+ [In] ShellNativeMethods.GetPropertyStoreOptions Flags,
+ [In] ref Guid riid,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IPropertyStore ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetPropertyStoreWithCreateObject([In] ShellNativeMethods.GetPropertyStoreOptions Flags, [In, MarshalAs(UnmanagedType.IUnknown)] object punkCreateObject, [In] ref Guid riid, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetPropertyStoreForKeys([In] ref PropertyKey rgKeys, [In] uint cKeys, [In] ShellNativeMethods.GetPropertyStoreOptions Flags, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.IUnknown)] out IPropertyStore ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetPropertyDescriptionList([In] ref PropertyKey keyType, [In] ref Guid riid, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Update([In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetProperty([In] ref PropertyKey key, [Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCLSID([In] ref PropertyKey key, out Guid pclsid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFileTime([In] ref PropertyKey key, out System.Runtime.InteropServices.ComTypes.FILETIME pft);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetInt32([In] ref PropertyKey key, out int pi);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetString([In] ref PropertyKey key, [MarshalAs(UnmanagedType.LPWStr)] out string ppsz);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetUInt32([In] ref PropertyKey key, out uint pui);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetUInt64([In] ref PropertyKey key, out ulong pull);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetBool([In] ref PropertyKey key, out int pf);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IShellItemArray),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IShellItemArray
+ {
+ // Not supported: IBindCtx.
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult BindToHandler(
+ [In, MarshalAs(UnmanagedType.Interface)] IntPtr pbc,
+ [In] ref Guid rbhid,
+ [In] ref Guid riid,
+ out IntPtr ppvOut);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetPropertyStore(
+ [In] int Flags,
+ [In] ref Guid riid,
+ out IntPtr ppv);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetPropertyDescriptionList(
+ [In] ref PropertyKey keyType,
+ [In] ref Guid riid,
+ out IntPtr ppv);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetAttributes(
+ [In] ShellNativeMethods.ShellItemAttributeOptions dwAttribFlags,
+ [In] ShellNativeMethods.ShellFileGetAttributesOptions sfgaoMask,
+ out ShellNativeMethods.ShellFileGetAttributesOptions psfgaoAttribs);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetCount(out uint pdwNumItems);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetItemAt(
+ [In] uint dwIndex,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ // Not supported: IEnumShellItems (will use GetCount and GetItemAt instead).
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult EnumItems([MarshalAs(UnmanagedType.Interface)] out IntPtr ppenumShellItems);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IShellLibrary),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IShellLibrary
+ {
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult LoadLibraryFromItem(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem library,
+ [In] AccessModes grfMode);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void LoadLibraryFromKnownFolder(
+ [In] ref Guid knownfidLibrary,
+ [In] AccessModes grfMode);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem location);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void RemoveFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem location);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetFolders(
+ [In] ShellNativeMethods.LibraryFolderFilter lff,
+ [In] ref Guid riid,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItemArray ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ResolveFolder(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem folderToResolve,
+ [In] uint timeout,
+ [In] ref Guid riid,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDefaultSaveFolder(
+ [In] ShellNativeMethods.DefaultSaveFolderType dsft,
+ [In] ref Guid riid,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDefaultSaveFolder(
+ [In] ShellNativeMethods.DefaultSaveFolderType dsft,
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem si);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetOptions(
+ out ShellNativeMethods.LibraryOptions lofOptions);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOptions(
+ [In] ShellNativeMethods.LibraryOptions lofMask,
+ [In] ShellNativeMethods.LibraryOptions lofOptions);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolderType(out Guid ftid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFolderType([In] ref Guid ftid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetIcon([MarshalAs(UnmanagedType.LPWStr)] out string icon);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetIcon([In, MarshalAs(UnmanagedType.LPWStr)] string icon);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Commit();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Save(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem folderToSaveIn,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string libraryName,
+ [In] ShellNativeMethods.LibrarySaveOptions lsf,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem2 savedTo);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SaveInKnownFolder(
+ [In] ref Guid kfidToSaveIn,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string libraryName,
+ [In] ShellNativeMethods.LibrarySaveOptions lsf,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem2 savedTo);
+ };
+
+ [ComImportAttribute()]
+ [GuidAttribute("bcc18b79-ba16-442f-80c4-8a59c30c463b")]
+ [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
+ interface IShellItemImageFactory
+ {
+ [PreserveSig]
+ HResult GetImage(
+ [In, MarshalAs(UnmanagedType.Struct)] CoreNativeMethods.Size size,
+ [In] ShellNativeMethods.SIIGBF flags,
+ [Out] out IntPtr phbm);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IThumbnailCache),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ interface IThumbnailCache
+ {
+ void GetThumbnail([In] IShellItem pShellItem,
+ [In] uint cxyRequestedThumbSize,
+ [In] Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.ThumbnailOptions flags,
+ [Out] out ISharedBitmap ppvThumb,
+ [Out] out Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.ThumbnailCacheOptions pOutFlags,
+ [Out] Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.ThumbnailId pThumbnailID);
+
+ void GetThumbnailByID([In] Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.ThumbnailId thumbnailID,
+ [In] uint cxyRequestedThumbSize,
+ [Out] out ISharedBitmap ppvThumb,
+ [Out] out Microsoft.WindowsAPICodePack.Shell.ShellNativeMethods.ThumbnailCacheOptions pOutFlags);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.ISharedBitmap),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ interface ISharedBitmap
+ {
+ void GetSharedBitmap([Out] out IntPtr phbm);
+ void GetSize([Out] out CoreNativeMethods.Size pSize);
+ void GetFormat([Out] out ThumbnailAlphaType pat);
+ void InitializeBitmap([In] IntPtr hbm, [In] ThumbnailAlphaType wtsAT);
+ void Detach([Out] out IntPtr phbm);
+ }
+ [ComImport,
+ Guid(ShellIIDGuid.IShellFolder),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
+ ComConversionLoss]
+ internal interface IShellFolder
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ParseDisplayName(IntPtr hwnd, [In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc, [In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName, [In, Out] ref uint pchEaten, [Out] IntPtr ppidl, [In, Out] ref uint pdwAttributes);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult EnumObjects([In] IntPtr hwnd, [In] ShellNativeMethods.ShellFolderEnumerationOptions grfFlags, [MarshalAs(UnmanagedType.Interface)] out IEnumIDList ppenumIDList);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult BindToObject([In] IntPtr pidl, /*[In, MarshalAs(UnmanagedType.Interface)] IBindCtx*/ IntPtr pbc, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out IShellFolder ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void BindToStorage([In] ref IntPtr pidl, [In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc, [In] ref Guid riid, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void CompareIDs([In] IntPtr lParam, [In] ref IntPtr pidl1, [In] ref IntPtr pidl2);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void CreateViewObject([In] IntPtr hwndOwner, [In] ref Guid riid, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAttributesOf([In] uint cidl, [In] IntPtr apidl, [In, Out] ref uint rgfInOut);
+
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetUIObjectOf([In] IntPtr hwndOwner, [In] uint cidl, [In] IntPtr apidl, [In] ref Guid riid, [In, Out] ref uint rgfReserved, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDisplayNameOf([In] ref IntPtr pidl, [In] uint uFlags, out IntPtr pName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetNameOf([In] IntPtr hwnd, [In] ref IntPtr pidl, [In, MarshalAs(UnmanagedType.LPWStr)] string pszName, [In] uint uFlags, [Out] IntPtr ppidlOut);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IShellFolder2),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
+ ComConversionLoss]
+ internal interface IShellFolder2 : IShellFolder
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ParseDisplayName([In] IntPtr hwnd, [In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc, [In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName, [In, Out] ref uint pchEaten, [Out] IntPtr ppidl, [In, Out] ref uint pdwAttributes);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void EnumObjects([In] IntPtr hwnd, [In] ShellNativeMethods.ShellFolderEnumerationOptions grfFlags, [MarshalAs(UnmanagedType.Interface)] out IEnumIDList ppenumIDList);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void BindToObject([In] IntPtr pidl, /*[In, MarshalAs(UnmanagedType.Interface)] IBindCtx*/ IntPtr pbc, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out IShellFolder ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void BindToStorage([In] ref IntPtr pidl, [In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc, [In] ref Guid riid, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void CompareIDs([In] IntPtr lParam, [In] ref IntPtr pidl1, [In] ref IntPtr pidl2);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void CreateViewObject([In] IntPtr hwndOwner, [In] ref Guid riid, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAttributesOf([In] uint cidl, [In] IntPtr apidl, [In, Out] ref uint rgfInOut);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetUIObjectOf([In] IntPtr hwndOwner, [In] uint cidl, [In] IntPtr apidl, [In] ref Guid riid, [In, Out] ref uint rgfReserved, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDisplayNameOf([In] ref IntPtr pidl, [In] uint uFlags, out IntPtr pName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetNameOf([In] IntPtr hwnd, [In] ref IntPtr pidl, [In, MarshalAs(UnmanagedType.LPWStr)] string pszName, [In] uint uFlags, [Out] IntPtr ppidlOut);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDefaultSearchGUID(out Guid pguid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void EnumSearches([Out] out IntPtr ppenum);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDefaultColumn([In] uint dwRes, out uint pSort, out uint pDisplay);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDefaultColumnState([In] uint iColumn, out uint pcsFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDetailsEx([In] ref IntPtr pidl, [In] ref PropertyKey pscid, [MarshalAs(UnmanagedType.Struct)] out object pv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDetailsOf([In] ref IntPtr pidl, [In] uint iColumn, out IntPtr psd);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void MapColumnToSCID([In] uint iColumn, out PropertyKey pscid);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IEnumIDList),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IEnumIDList
+ {
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Next(uint celt, out IntPtr rgelt, out uint pceltFetched);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Skip([In] uint celt);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Reset();
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Clone([MarshalAs(UnmanagedType.Interface)] out IEnumIDList ppenum);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IShellLinkW),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IShellLinkW
+ {
+ void GetPath(
+ [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszFile,
+ int cchMaxPath,
+ //ref _WIN32_FIND_DATAW pfd,
+ IntPtr pfd,
+ uint fFlags);
+ void GetIDList(out IntPtr ppidl);
+ void SetIDList(IntPtr pidl);
+ void GetDescription(
+ [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszFile,
+ int cchMaxName);
+ void SetDescription(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszName);
+ void GetWorkingDirectory(
+ [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszDir,
+ int cchMaxPath
+ );
+ void SetWorkingDirectory(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszDir);
+ void GetArguments(
+ [Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszArgs,
+ int cchMaxPath);
+ void SetArguments(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszArgs);
+ void GetHotKey(out short wHotKey);
+ void SetHotKey(short wHotKey);
+ void GetShowCmd(out uint iShowCmd);
+ void SetShowCmd(uint iShowCmd);
+ void GetIconLocation(
+ [Out(), MarshalAs(UnmanagedType.LPWStr)] out StringBuilder pszIconPath,
+ int cchIconPath,
+ out int iIcon);
+ void SetIconLocation(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszIconPath,
+ int iIcon);
+ void SetRelativePath(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszPathRel,
+ uint dwReserved);
+ void Resolve(IntPtr hwnd, uint fFlags);
+ void SetPath(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszFile);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.CShellLink),
+ ClassInterface(ClassInterfaceType.None)]
+ internal class CShellLink { }
+
+ // Summary:
+ // Provides the managed definition of the IPersistStream interface, with functionality
+ // from IPersist.
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid("00000109-0000-0000-C000-000000000046")]
+ internal interface IPersistStream
+ {
+ // Summary:
+ // Retrieves the class identifier (CLSID) of an object.
+ //
+ // Parameters:
+ // pClassID:
+ // When this method returns, contains a reference to the CLSID. This parameter
+ // is passed uninitialized.
+ [PreserveSig]
+ void GetClassID(out Guid pClassID);
+ //
+ // Summary:
+ // Checks an object for changes since it was last saved to its current file.
+ //
+ // Returns:
+ // S_OK if the file has changed since it was last saved; S_FALSE if the file
+ // has not changed since it was last saved.
+ [PreserveSig]
+ HResult IsDirty();
+
+ [PreserveSig]
+ HResult Load([In, MarshalAs(UnmanagedType.Interface)] IStream stm);
+
+ [PreserveSig]
+ HResult Save([In, MarshalAs(UnmanagedType.Interface)] IStream stm, bool fRemember);
+
+ [PreserveSig]
+ HResult GetSizeMax(out ulong cbSize);
+ }
+
+ [ComImport(),
+ Guid(ShellIIDGuid.ICondition),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface ICondition : IPersistStream
+ {
+ // Summary:
+ // Retrieves the class identifier (CLSID) of an object.
+ //
+ // Parameters:
+ // pClassID:
+ // When this method returns, contains a reference to the CLSID. This parameter
+ // is passed uninitialized.
+ [PreserveSig]
+ void GetClassID(out Guid pClassID);
+ //
+ // Summary:
+ // Checks an object for changes since it was last saved to its current file.
+ //
+ // Returns:
+ // S_OK if the file has changed since it was last saved; S_FALSE if the file
+ // has not changed since it was last saved.
+ [PreserveSig]
+ HResult IsDirty();
+
+ [PreserveSig]
+ HResult Load([In, MarshalAs(UnmanagedType.Interface)] IStream stm);
+
+ [PreserveSig]
+ HResult Save([In, MarshalAs(UnmanagedType.Interface)] IStream stm, bool fRemember);
+
+ [PreserveSig]
+ HResult GetSizeMax(out ulong cbSize);
+
+ // For any node, return what kind of node it is.
+ [PreserveSig]
+ HResult GetConditionType([Out()] out SearchConditionType pNodeType);
+
+ // riid must be IID_IEnumUnknown, IID_IEnumVARIANT or IID_IObjectArray, or in the case of a negation node IID_ICondition.
+ // If this is a leaf node, E_FAIL will be returned.
+ // If this is a negation node, then if riid is IID_ICondition, *ppv will be set to a single ICondition, otherwise an enumeration of one.
+ // If this is a conjunction or a disjunction, *ppv will be set to an enumeration of the subconditions.
+ [PreserveSig]
+ HResult GetSubConditions([In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out object ppv);
+
+ // If this is not a leaf node, E_FAIL will be returned.
+ // Retrieve the property name, operation and value from the leaf node.
+ // Any one of ppszPropertyName, pcop and ppropvar may be NULL.
+ [PreserveSig]
+ HResult GetComparisonInfo(
+ [Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszPropertyName,
+ [Out] out SearchConditionOperation pcop,
+ [Out] PropVariant ppropvar);
+
+ // If this is not a leaf node, E_FAIL will be returned.
+ // *ppszValueTypeName will be set to the semantic type of the value, or to NULL if this is not meaningful.
+ [PreserveSig]
+ HResult GetValueType([Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszValueTypeName);
+
+ // If this is not a leaf node, E_FAIL will be returned.
+ // If the value of the leaf node is VT_EMPTY, *ppszNormalization will be set to an empty string.
+ // If the value is a string (VT_LPWSTR, VT_BSTR or VT_LPSTR), then *ppszNormalization will be set to a
+ // character-normalized form of the value.
+ // Otherwise, *ppszNormalization will be set to some (character-normalized) string representation of the value.
+ [PreserveSig]
+ HResult GetValueNormalization([Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszNormalization);
+
+ // Return information about what parts of the input produced the property, the operation and the value.
+ // Any one of ppPropertyTerm, ppOperationTerm and ppValueTerm may be NULL.
+ // For a leaf node returned by the parser, the position information of each IRichChunk identifies the tokens that
+ // contributed the property/operation/value, the string value is the corresponding part of the input string, and
+ // the PROPVARIANT is VT_EMPTY.
+ [PreserveSig]
+ HResult GetInputTerms([Out] out IRichChunk ppPropertyTerm, [Out] out IRichChunk ppOperationTerm, [Out] out IRichChunk ppValueTerm);
+
+ // Make a deep copy of this ICondition.
+ [PreserveSig]
+ HResult Clone([Out()] out ICondition ppc);
+ };
+
+ [ComImport,
+ Guid(ShellIIDGuid.IRichChunk),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IRichChunk
+ {
+ // The position *pFirstPos is zero-based.
+ // Any one of pFirstPos, pLength, ppsz and pValue may be NULL.
+ [PreserveSig]
+ HResult GetData(/*[out, annotation("__out_opt")] ULONG* pFirstPos, [out, annotation("__out_opt")] ULONG* pLength, [out, annotation("__deref_opt_out_opt")] LPWSTR* ppsz, [out, annotation("__out_opt")] PROPVARIANT* pValue*/);
+ }
+
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid(ShellIIDGuid.IEnumUnknown)]
+ internal interface IEnumUnknown
+ {
+ [PreserveSig]
+ HResult Next(UInt32 requestedNumber, ref IntPtr buffer, ref UInt32 fetchedNumber);
+ [PreserveSig]
+ HResult Skip(UInt32 number);
+ [PreserveSig]
+ HResult Reset();
+ [PreserveSig]
+ HResult Clone(out IEnumUnknown result);
+ }
+
+
+ [ComImport,
+ Guid(ShellIIDGuid.IConditionFactory),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IConditionFactory
+ {
+ [PreserveSig]
+ HResult MakeNot([In] ICondition pcSub, [In] bool fSimplify, [Out] out ICondition ppcResult);
+
+ [PreserveSig]
+ HResult MakeAndOr([In] SearchConditionType ct, [In] IEnumUnknown peuSubs, [In] bool fSimplify, [Out] out ICondition ppcResult);
+
+ [PreserveSig]
+ HResult MakeLeaf(
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszPropertyName,
+ [In] SearchConditionOperation cop,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszValueType,
+ [In] PropVariant ppropvar,
+ IRichChunk richChunk1,
+ IRichChunk richChunk2,
+ IRichChunk richChunk3,
+ [In] bool fExpand,
+ [Out] out ICondition ppcResult);
+
+ [PreserveSig]
+ HResult Resolve(/*[In] ICondition pc, [In] STRUCTURED_QUERY_RESOLVE_OPTION sqro, [In] ref SYSTEMTIME pstReferenceTime, [Out] out ICondition ppcResolved*/);
+
+ };
+
+ [ComImport,
+ Guid(ShellIIDGuid.IConditionFactory),
+ CoClass(typeof(ConditionFactoryCoClass))]
+ internal interface INativeConditionFactory : IConditionFactory
+ {
+ }
+
+ [ComImport,
+ ClassInterface(ClassInterfaceType.None),
+ TypeLibType(TypeLibTypeFlags.FCanCreate),
+ Guid(ShellCLSIDGuid.ConditionFactory)]
+ internal class ConditionFactoryCoClass
+ {
+ }
+
+
+
+ [ComImport,
+ Guid(ShellIIDGuid.ISearchFolderItemFactory),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface ISearchFolderItemFactory
+ {
+ [PreserveSig]
+ HResult SetDisplayName([In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName);
+
+ [PreserveSig]
+ HResult SetFolderTypeID([In] Guid ftid);
+
+ [PreserveSig]
+ HResult SetFolderLogicalViewMode([In] FolderLogicalViewMode flvm);
+
+ [PreserveSig]
+ HResult SetIconSize([In] int iIconSize);
+
+ [PreserveSig]
+ HResult SetVisibleColumns([In] uint cVisibleColumns, [In, MarshalAs(UnmanagedType.LPArray)] PropertyKey[] rgKey);
+
+ [PreserveSig]
+ HResult SetSortColumns([In] uint cSortColumns, [In, MarshalAs(UnmanagedType.LPArray)] SortColumn[] rgSortColumns);
+
+ [PreserveSig]
+ HResult SetGroupColumn([In] ref PropertyKey keyGroup);
+
+ [PreserveSig]
+ HResult SetStacks([In] uint cStackKeys, [In, MarshalAs(UnmanagedType.LPArray)] PropertyKey[] rgStackKeys);
+
+ [PreserveSig]
+ HResult SetScope([In, MarshalAs(UnmanagedType.Interface)] IShellItemArray ppv);
+
+ [PreserveSig]
+ HResult SetCondition([In] ICondition pCondition);
+
+ [PreserveSig]
+ int GetShellItem(ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out IShellItem ppv);
+
+ [PreserveSig]
+ HResult GetIDList([Out] IntPtr ppidl);
+ };
+
+ [ComImport,
+ Guid(ShellIIDGuid.ISearchFolderItemFactory),
+ CoClass(typeof(SearchFolderItemFactoryCoClass))]
+ internal interface INativeSearchFolderItemFactory : ISearchFolderItemFactory
+ {
+ }
+
+ [ComImport,
+ ClassInterface(ClassInterfaceType.None),
+ TypeLibType(TypeLibTypeFlags.FCanCreate),
+ Guid(ShellCLSIDGuid.SearchFolderItemFactory)]
+ internal class SearchFolderItemFactoryCoClass
+ {
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IQuerySolution),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ interface IQuerySolution : IConditionFactory
+ {
+ [PreserveSig]
+ HResult MakeNot([In] ICondition pcSub, [In] bool fSimplify, [Out] out ICondition ppcResult);
+
+ [PreserveSig]
+ HResult MakeAndOr([In] SearchConditionType ct, [In] IEnumUnknown peuSubs, [In] bool fSimplify, [Out] out ICondition ppcResult);
+
+ [PreserveSig]
+ HResult MakeLeaf(
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszPropertyName,
+ [In] SearchConditionOperation cop,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszValueType,
+ [In] PropVariant ppropvar,
+ IRichChunk richChunk1,
+ IRichChunk richChunk2,
+ IRichChunk richChunk3,
+ [In] bool fExpand,
+ [Out] out ICondition ppcResult);
+
+ [PreserveSig]
+ HResult Resolve(/*[In] ICondition pc, [In] int sqro, [In] ref SYSTEMTIME pstReferenceTime, [Out] out ICondition ppcResolved*/);
+
+ // Retrieve the condition tree and the "main type" of the solution.
+ // ppQueryNode and ppMainType may be NULL.
+ [PreserveSig]
+ HResult GetQuery([Out, MarshalAs(UnmanagedType.Interface)] out ICondition ppQueryNode, [Out, MarshalAs(UnmanagedType.Interface)] out IEntity ppMainType);
+
+ // Identify parts of the input string not accounted for.
+ // Each parse error is represented by an IRichChunk where the position information
+ // reflect token counts, the string is NULL and the value is a VT_I4
+ // where lVal is from the ParseErrorType enumeration. The valid
+ // values for riid are IID_IEnumUnknown and IID_IEnumVARIANT.
+ [PreserveSig]
+ HResult GetErrors([In] ref Guid riid, [Out] out /* void** */ IntPtr ppParseErrors);
+
+ // Report the query string, how it was tokenized and what LCID and word breaker were used (for recognizing keywords).
+ // ppszInputString, ppTokens, pLocale and ppWordBreaker may be NULL.
+ [PreserveSig]
+ HResult GetLexicalData([MarshalAs(UnmanagedType.LPWStr)] out string ppszInputString, [Out] /* ITokenCollection** */ out IntPtr ppTokens, [Out] out uint plcid, [Out] /* IUnknown** */ out IntPtr ppWordBreaker);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IQueryParser),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IQueryParser
+ {
+ // Parse parses an input string, producing a query solution.
+ // pCustomProperties should be an enumeration of IRichChunk objects, one for each custom property
+ // the application has recognized. pCustomProperties may be NULL, equivalent to an empty enumeration.
+ // For each IRichChunk, the position information identifies the character span of the custom property,
+ // the string value should be the name of an actual property, and the PROPVARIANT is completely ignored.
+ [PreserveSig]
+ HResult Parse([In, MarshalAs(UnmanagedType.LPWStr)] string pszInputString, [In] IEnumUnknown pCustomProperties, [Out] out IQuerySolution ppSolution);
+
+ // Set a single option. See STRUCTURED_QUERY_SINGLE_OPTION above.
+ [PreserveSig]
+ HResult SetOption([In] StructuredQuerySingleOption option, [In] PropVariant pOptionValue);
+
+ [PreserveSig]
+ HResult GetOption([In] StructuredQuerySingleOption option, [Out] PropVariant pOptionValue);
+
+ // Set a multi option. See STRUCTURED_QUERY_MULTIOPTION above.
+ [PreserveSig]
+ HResult SetMultiOption([In] StructuredQueryMultipleOption option, [In, MarshalAs(UnmanagedType.LPWStr)] string pszOptionKey, [In] PropVariant pOptionValue);
+
+ // Get a schema provider for browsing the currently loaded schema.
+ [PreserveSig]
+ HResult GetSchemaProvider([Out] out /*ISchemaProvider*/ IntPtr ppSchemaProvider);
+
+ // Restate a condition as a query string according to the currently selected syntax.
+ // The parameter fUseEnglish is reserved for future use; must be FALSE.
+ [PreserveSig]
+ HResult RestateToString([In] ICondition pCondition, [In] bool fUseEnglish, [Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszQueryString);
+
+ // Parse a condition for a given property. It can be anything that would go after 'PROPERTY:' in an AQS expession.
+ [PreserveSig]
+ HResult ParsePropertyValue([In, MarshalAs(UnmanagedType.LPWStr)] string pszPropertyName, [In, MarshalAs(UnmanagedType.LPWStr)] string pszInputString, [Out] out IQuerySolution ppSolution);
+
+ // Restate a condition for a given property. If the condition contains a leaf with any other property name, or no property name at all,
+ // E_INVALIDARG will be returned.
+ [PreserveSig]
+ HResult RestatePropertyValueToString([In] ICondition pCondition, [In] bool fUseEnglish, [Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszPropertyName, [Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszQueryString);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IQueryParserManager),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IQueryParserManager
+ {
+ // Create a query parser loaded with the schema for a certain catalog localize to a certain language, and initialized with
+ // standard defaults. One valid value for riid is IID_IQueryParser.
+ [PreserveSig]
+ HResult CreateLoadedParser([In, MarshalAs(UnmanagedType.LPWStr)] string pszCatalog, [In] ushort langidForKeywords, [In] ref Guid riid, [Out] out IQueryParser ppQueryParser);
+
+ // In addition to setting AQS/NQS and automatic wildcard for the given query parser, this sets up standard named entity handlers and
+ // sets the keyboard locale as locale for word breaking.
+ [PreserveSig]
+ HResult InitializeOptions([In] bool fUnderstandNQS, [In] bool fAutoWildCard, [In] IQueryParser pQueryParser);
+
+ // Change one of the settings for the query parser manager, such as the name of the schema binary, or the location of the localized and unlocalized
+ // schema binaries. By default, the settings point to the schema binaries used by Windows Shell.
+ [PreserveSig]
+ HResult SetOption([In] QueryParserManagerOption option, [In] PropVariant pOptionValue);
+
+ };
+
+ [ComImport,
+ Guid(ShellIIDGuid.IQueryParserManager),
+ CoClass(typeof(QueryParserManagerCoClass))]
+ internal interface INativeQueryParserManager : IQueryParserManager
+ {
+ }
+
+ [ComImport,
+ ClassInterface(ClassInterfaceType.None),
+ TypeLibType(TypeLibTypeFlags.FCanCreate),
+ Guid(ShellCLSIDGuid.QueryParserManager)]
+ internal class QueryParserManagerCoClass
+ {
+ }
+
+ [ComImport,
+ Guid("24264891-E80B-4fd3-B7CE-4FF2FAE8931F"),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IEntity
+ {
+ // TODO
+ }
+ #endregion
+
+#pragma warning restore 108
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeMethods.cs
new file mode 100644
index 0000000000..6130eb287e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeMethods.cs
@@ -0,0 +1,690 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Text;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal static class ShellNativeMethods
+ {
+ #region Shell Enums
+
+ [Flags]
+ internal enum FileOpenOptions
+ {
+ OverwritePrompt = 0x00000002,
+ StrictFileTypes = 0x00000004,
+ NoChangeDirectory = 0x00000008,
+ PickFolders = 0x00000020,
+ // Ensure that items returned are filesystem items.
+ ForceFilesystem = 0x00000040,
+ // Allow choosing items that have no storage.
+ AllNonStorageItems = 0x00000080,
+ NoValidate = 0x00000100,
+ AllowMultiSelect = 0x00000200,
+ PathMustExist = 0x00000800,
+ FileMustExist = 0x00001000,
+ CreatePrompt = 0x00002000,
+ ShareAware = 0x00004000,
+ NoReadOnlyReturn = 0x00008000,
+ NoTestFileCreate = 0x00010000,
+ HideMruPlaces = 0x00020000,
+ HidePinnedPlaces = 0x00040000,
+ NoDereferenceLinks = 0x00100000,
+ DontAddToRecent = 0x02000000,
+ ForceShowHidden = 0x10000000,
+ DefaultNoMiniMode = 0x20000000
+ }
+ internal enum ControlState
+ {
+ Inactive = 0x00000000,
+ Enable = 0x00000001,
+ Visible = 0x00000002
+ }
+ internal enum ShellItemDesignNameOptions
+ {
+ Normal = 0x00000000, // SIGDN_NORMAL
+ ParentRelativeParsing = unchecked((int)0x80018001), // SIGDN_INFOLDER | SIGDN_FORPARSING
+ DesktopAbsoluteParsing = unchecked((int)0x80028000), // SIGDN_FORPARSING
+ ParentRelativeEditing = unchecked((int)0x80031001), // SIGDN_INFOLDER | SIGDN_FOREDITING
+ DesktopAbsoluteEditing = unchecked((int)0x8004c000), // SIGDN_FORPARSING | SIGDN_FORADDRESSBAR
+ FileSystemPath = unchecked((int)0x80058000), // SIGDN_FORPARSING
+ Url = unchecked((int)0x80068000), // SIGDN_FORPARSING
+ ParentRelativeForAddressBar = unchecked((int)0x8007c001), // SIGDN_INFOLDER | SIGDN_FORPARSING | SIGDN_FORADDRESSBAR
+ ParentRelative = unchecked((int)0x80080001) // SIGDN_INFOLDER
+ }
+
+ /// <summary>
+ /// Indicate flags that modify the property store object retrieved by methods
+ /// that create a property store, such as IShellItem2::GetPropertyStore or
+ /// IPropertyStoreFactory::GetPropertyStore.
+ /// </summary>
+ [Flags]
+ internal enum GetPropertyStoreOptions
+ {
+ /// <summary>
+ /// Meaning to a calling process: Return a read-only property store that contains all
+ /// properties. Slow items (offline files) are not opened.
+ /// Combination with other flags: Can be overridden by other flags.
+ /// </summary>
+ Default = 0,
+
+ /// <summary>
+ /// Meaning to a calling process: Include only properties directly from the property
+ /// handler, which opens the file on the disk, network, or device. Meaning to a file
+ /// folder: Only include properties directly from the handler.
+ ///
+ /// Meaning to other folders: When delegating to a file folder, pass this flag on
+ /// to the file folder; do not do any multiplexing (MUX). When not delegating to a
+ /// file folder, ignore this flag instead of returning a failure code.
+ ///
+ /// Combination with other flags: Cannot be combined with GPS_TEMPORARY,
+ /// GPS_FASTPROPERTIESONLY, or GPS_BESTEFFORT.
+ /// </summary>
+ HandlePropertiesOnly = 0x1,
+
+ /// <summary>
+ /// Meaning to a calling process: Can write properties to the item.
+ /// Note: The store may contain fewer properties than a read-only store.
+ ///
+ /// Meaning to a file folder: ReadWrite.
+ ///
+ /// Meaning to other folders: ReadWrite. Note: When using default MUX,
+ /// return a single unmultiplexed store because the default MUX does not support ReadWrite.
+ ///
+ /// Combination with other flags: Cannot be combined with GPS_TEMPORARY, GPS_FASTPROPERTIESONLY,
+ /// GPS_BESTEFFORT, or GPS_DELAYCREATION. Implies GPS_HANDLERPROPERTIESONLY.
+ /// </summary>
+ ReadWrite = 0x2,
+
+ /// <summary>
+ /// Meaning to a calling process: Provides a writable store, with no initial properties,
+ /// that exists for the lifetime of the Shell item instance; basically, a property bag
+ /// attached to the item instance.
+ ///
+ /// Meaning to a file folder: Not applicable. Handled by the Shell item.
+ ///
+ /// Meaning to other folders: Not applicable. Handled by the Shell item.
+ ///
+ /// Combination with other flags: Cannot be combined with any other flag. Implies GPS_READWRITE
+ /// </summary>
+ Temporary = 0x4,
+
+ /// <summary>
+ /// Meaning to a calling process: Provides a store that does not involve reading from the
+ /// disk or network. Note: Some values may be different, or missing, compared to a store
+ /// without this flag.
+ ///
+ /// Meaning to a file folder: Include the "innate" and "fallback" stores only. Do not load the handler.
+ ///
+ /// Meaning to other folders: Include only properties that are available in memory or can
+ /// be computed very quickly (no properties from disk, network, or peripheral IO devices).
+ /// This is normally only data sources from the IDLIST. When delegating to other folders, pass this flag on to them.
+ ///
+ /// Combination with other flags: Cannot be combined with GPS_TEMPORARY, GPS_READWRITE,
+ /// GPS_HANDLERPROPERTIESONLY, or GPS_DELAYCREATION.
+ /// </summary>
+ FastPropertiesOnly = 0x8,
+
+ /// <summary>
+ /// Meaning to a calling process: Open a slow item (offline file) if necessary.
+ /// Meaning to a file folder: Retrieve a file from offline storage, if necessary.
+ /// Note: Without this flag, the handler is not created for offline files.
+ ///
+ /// Meaning to other folders: Do not return any properties that are very slow.
+ ///
+ /// Combination with other flags: Cannot be combined with GPS_TEMPORARY or GPS_FASTPROPERTIESONLY.
+ /// </summary>
+ OpensLowItem = 0x10,
+
+ /// <summary>
+ /// Meaning to a calling process: Delay memory-intensive operations, such as file access, until
+ /// a property is requested that requires such access.
+ ///
+ /// Meaning to a file folder: Do not create the handler until needed; for example, either
+ /// GetCount/GetAt or GetValue, where the innate store does not satisfy the request.
+ /// Note: GetValue might fail due to file access problems.
+ ///
+ /// Meaning to other folders: If the folder has memory-intensive properties, such as
+ /// delegating to a file folder or network access, it can optimize performance by
+ /// supporting IDelayedPropertyStoreFactory and splitting up its properties into a
+ /// fast and a slow store. It can then use delayed MUX to recombine them.
+ ///
+ /// Combination with other flags: Cannot be combined with GPS_TEMPORARY or
+ /// GPS_READWRITE
+ /// </summary>
+ DelayCreation = 0x20,
+
+ /// <summary>
+ /// Meaning to a calling process: Succeed at getting the store, even if some
+ /// properties are not returned. Note: Some values may be different, or missing,
+ /// compared to a store without this flag.
+ ///
+ /// Meaning to a file folder: Succeed and return a store, even if the handler or
+ /// innate store has an error during creation. Only fail if substores fail.
+ ///
+ /// Meaning to other folders: Succeed on getting the store, even if some properties
+ /// are not returned.
+ ///
+ /// Combination with other flags: Cannot be combined with GPS_TEMPORARY,
+ /// GPS_READWRITE, or GPS_HANDLERPROPERTIESONLY.
+ /// </summary>
+ BestEffort = 0x40,
+
+ /// <summary>
+ /// Mask for valid GETPROPERTYSTOREFLAGS values.
+ /// </summary>
+ MaskValid = 0xff,
+ }
+
+ internal enum ShellItemAttributeOptions
+ {
+ // if multiple items and the attirbutes together.
+ And = 0x00000001,
+ // if multiple items or the attributes together.
+ Or = 0x00000002,
+ // Call GetAttributes directly on the
+ // ShellFolder for multiple attributes.
+ AppCompat = 0x00000003,
+
+ // A mask for SIATTRIBFLAGS_AND, SIATTRIBFLAGS_OR, and SIATTRIBFLAGS_APPCOMPAT. Callers normally do not use this value.
+ Mask = 0x00000003,
+
+ // Windows 7 and later. Examine all items in the array to compute the attributes.
+ // Note that this can result in poor performance over large arrays and therefore it
+ // should be used only when needed. Cases in which you pass this flag should be extremely rare.
+ AllItems = 0x00004000
+ }
+
+ internal enum FileDialogEventShareViolationResponse
+ {
+ Default = 0x00000000,
+ Accept = 0x00000001,
+ Refuse = 0x00000002
+ }
+ internal enum FileDialogEventOverwriteResponse
+ {
+ Default = 0x00000000,
+ Accept = 0x00000001,
+ Refuse = 0x00000002
+ }
+ internal enum FileDialogAddPlacement
+ {
+ Bottom = 0x00000000,
+ Top = 0x00000001,
+ }
+
+ [Flags]
+ internal enum SIIGBF
+ {
+ ResizeToFit = 0x00,
+ BiggerSizeOk = 0x01,
+ MemoryOnly = 0x02,
+ IconOnly = 0x04,
+ ThumbnailOnly = 0x08,
+ InCacheOnly = 0x10,
+ }
+
+ [Flags]
+ internal enum ThumbnailOptions
+ {
+ Extract = 0x00000000,
+ InCacheOnly = 0x00000001,
+ FastExtract = 0x00000002,
+ ForceExtraction = 0x00000004,
+ SlowReclaim = 0x00000008,
+ ExtractDoNotCache = 0x00000020
+ }
+
+ [Flags]
+ internal enum ThumbnailCacheOptions
+ {
+ Default = 0x00000000,
+ LowQuality = 0x00000001,
+ Cached = 0x00000002,
+ }
+
+ [Flags]
+ internal enum ShellFileGetAttributesOptions
+ {
+ /// <summary>
+ /// The specified items can be copied.
+ /// </summary>
+ CanCopy = 0x00000001,
+
+ /// <summary>
+ /// The specified items can be moved.
+ /// </summary>
+ CanMove = 0x00000002,
+
+ /// <summary>
+ /// Shortcuts can be created for the specified items. This flag has the same value as DROPEFFECT.
+ /// The normal use of this flag is to add a Create Shortcut item to the shortcut menu that is displayed
+ /// during drag-and-drop operations. However, SFGAO_CANLINK also adds a Create Shortcut item to the Microsoft
+ /// Windows Explorer's File menu and to normal shortcut menus.
+ /// If this item is selected, your application's IContextMenu::InvokeCommand is invoked with the lpVerb
+ /// member of the CMINVOKECOMMANDINFO structure set to "link." Your application is responsible for creating the link.
+ /// </summary>
+ CanLink = 0x00000004,
+
+ /// <summary>
+ /// The specified items can be bound to an IStorage interface through IShellFolder::BindToObject.
+ /// </summary>
+ Storage = 0x00000008,
+
+ /// <summary>
+ /// The specified items can be renamed.
+ /// </summary>
+ CanRename = 0x00000010,
+
+ /// <summary>
+ /// The specified items can be deleted.
+ /// </summary>
+ CanDelete = 0x00000020,
+
+ /// <summary>
+ /// The specified items have property sheets.
+ /// </summary>
+ HasPropertySheet = 0x00000040,
+
+ /// <summary>
+ /// The specified items are drop targets.
+ /// </summary>
+ DropTarget = 0x00000100,
+
+ /// <summary>
+ /// This flag is a mask for the capability flags.
+ /// </summary>
+ CapabilityMask = 0x00000177,
+
+ /// <summary>
+ /// Windows 7 and later. The specified items are system items.
+ /// </summary>
+ System = 0x00001000,
+
+ /// <summary>
+ /// The specified items are encrypted.
+ /// </summary>
+ Encrypted = 0x00002000,
+
+ /// <summary>
+ /// Indicates that accessing the object = through IStream or other storage interfaces,
+ /// is a slow operation.
+ /// Applications should avoid accessing items flagged with SFGAO_ISSLOW.
+ /// </summary>
+ IsSlow = 0x00004000,
+
+ /// <summary>
+ /// The specified items are ghosted icons.
+ /// </summary>
+ Ghosted = 0x00008000,
+
+ /// <summary>
+ /// The specified items are shortcuts.
+ /// </summary>
+ Link = 0x00010000,
+
+ /// <summary>
+ /// The specified folder objects are shared.
+ /// </summary>
+ Share = 0x00020000,
+
+ /// <summary>
+ /// The specified items are read-only. In the case of folders, this means
+ /// that new items cannot be created in those folders.
+ /// </summary>
+ ReadOnly = 0x00040000,
+
+ /// <summary>
+ /// The item is hidden and should not be displayed unless the
+ /// Show hidden files and folders option is enabled in Folder Settings.
+ /// </summary>
+ Hidden = 0x00080000,
+
+ /// <summary>
+ /// This flag is a mask for the display attributes.
+ /// </summary>
+ DisplayAttributeMask = 0x000FC000,
+
+ /// <summary>
+ /// The specified folders contain one or more file system folders.
+ /// </summary>
+ FileSystemAncestor = 0x10000000,
+
+ /// <summary>
+ /// The specified items are folders.
+ /// </summary>
+ Folder = 0x20000000,
+
+ /// <summary>
+ /// The specified folders or file objects are part of the file system
+ /// that is, they are files, directories, or root directories).
+ /// </summary>
+ FileSystem = 0x40000000,
+
+ /// <summary>
+ /// The specified folders have subfolders = and are, therefore,
+ /// expandable in the left pane of Windows Explorer).
+ /// </summary>
+ HasSubFolder = unchecked((int)0x80000000),
+
+ /// <summary>
+ /// This flag is a mask for the contents attributes.
+ /// </summary>
+ ContentsMask = unchecked((int)0x80000000),
+
+ /// <summary>
+ /// When specified as input, SFGAO_VALIDATE instructs the folder to validate that the items
+ /// pointed to by the contents of apidl exist. If one or more of those items do not exist,
+ /// IShellFolder::GetAttributesOf returns a failure code.
+ /// When used with the file system folder, SFGAO_VALIDATE instructs the folder to discard cached
+ /// properties retrieved by clients of IShellFolder2::GetDetailsEx that may
+ /// have accumulated for the specified items.
+ /// </summary>
+ Validate = 0x01000000,
+
+ /// <summary>
+ /// The specified items are on removable media or are themselves removable devices.
+ /// </summary>
+ Removable = 0x02000000,
+
+ /// <summary>
+ /// The specified items are compressed.
+ /// </summary>
+ Compressed = 0x04000000,
+
+ /// <summary>
+ /// The specified items can be browsed in place.
+ /// </summary>
+ Browsable = 0x08000000,
+
+ /// <summary>
+ /// The items are nonenumerated items.
+ /// </summary>
+ Nonenumerated = 0x00100000,
+
+ /// <summary>
+ /// The objects contain new content.
+ /// </summary>
+ NewContent = 0x00200000,
+
+ /// <summary>
+ /// It is possible to create monikers for the specified file objects or folders.
+ /// </summary>
+ CanMoniker = 0x00400000,
+
+ /// <summary>
+ /// Not supported.
+ /// </summary>
+ HasStorage = 0x00400000,
+
+ /// <summary>
+ /// Indicates that the item has a stream associated with it that can be accessed
+ /// by a call to IShellFolder::BindToObject with IID_IStream in the riid parameter.
+ /// </summary>
+ Stream = 0x00400000,
+
+ /// <summary>
+ /// Children of this item are accessible through IStream or IStorage.
+ /// Those children are flagged with SFGAO_STORAGE or SFGAO_STREAM.
+ /// </summary>
+ StorageAncestor = 0x00800000,
+
+ /// <summary>
+ /// This flag is a mask for the storage capability attributes.
+ /// </summary>
+ StorageCapabilityMask = 0x70C50008,
+
+ /// <summary>
+ /// Mask used by PKEY_SFGAOFlags to remove certain values that are considered
+ /// to cause slow calculations or lack context.
+ /// Equal to SFGAO_VALIDATE | SFGAO_ISSLOW | SFGAO_HASSUBFOLDER.
+ /// </summary>
+ PkeyMask = unchecked((int)0x81044000),
+ }
+
+ [Flags]
+ internal enum ShellFolderEnumerationOptions : ushort
+ {
+ CheckingForChildren = 0x0010,
+ Folders = 0x0020,
+ NonFolders = 0x0040,
+ IncludeHidden = 0x0080,
+ InitializeOnFirstNext = 0x0100,
+ NetPrinterSearch = 0x0200,
+ Shareable = 0x0400,
+ Storage = 0x0800,
+ NavigationEnum = 0x1000,
+ FastItems = 0x2000,
+ FlatList = 0x4000,
+ EnableAsync = 0x8000
+ }
+
+ #endregion
+
+ #region Shell Structs
+
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
+ internal struct FilterSpec
+ {
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string Name;
+ [MarshalAs(UnmanagedType.LPWStr)]
+ internal string Spec;
+
+ internal FilterSpec(string name, string spec)
+ {
+ Name = name;
+ Spec = spec;
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
+ internal struct ThumbnailId
+ {
+ [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 16)]
+ byte rgbKey;
+ }
+
+ #endregion
+
+ #region Shell Helper Methods
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHCreateShellItemArrayFromDataObject(
+ System.Runtime.InteropServices.ComTypes.IDataObject pdo,
+ ref Guid riid,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItemArray iShellItemArray);
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHCreateItemFromParsingName(
+ [MarshalAs(UnmanagedType.LPWStr)] string path,
+ // The following parameter is not used - binding context.
+ IntPtr pbc,
+ ref Guid riid,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem2 shellItem);
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHCreateItemFromParsingName(
+ [MarshalAs(UnmanagedType.LPWStr)] string path,
+ // The following parameter is not used - binding context.
+ IntPtr pbc,
+ ref Guid riid,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem shellItem);
+
+ [DllImport("shlwapi.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int PathParseIconLocation(
+ [MarshalAs(UnmanagedType.LPWStr)] ref string pszIconFile);
+
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHCreateItemFromIDList(
+ /*PCIDLIST_ABSOLUTE*/ IntPtr pidl,
+ ref Guid riid,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem2 ppv);
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHParseDisplayName(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszName,
+ IntPtr pbc,
+ out IntPtr ppidl,
+ ShellFileGetAttributesOptions sfgaoIn,
+ out ShellFileGetAttributesOptions psfgaoOut
+ );
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHGetIDListFromObject(IntPtr iUnknown,
+ out IntPtr ppidl
+ );
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHGetDesktopFolder(
+ [MarshalAs(UnmanagedType.Interface)] out IShellFolder ppshf
+ );
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int SHCreateShellItem(
+ IntPtr pidlParent,
+ [In, MarshalAs(UnmanagedType.Interface)] IShellFolder psfParent,
+ IntPtr pidl,
+ [MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi
+ );
+
+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern uint ILGetSize(IntPtr pidl);
+
+ [DllImport("shell32.dll", CharSet = CharSet.None)]
+ public static extern void ILFree(IntPtr pidl);
+
+ [DllImport("gdi32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool DeleteObject(IntPtr hObject);
+
+ #endregion
+
+ #region Shell Library Enums
+
+ internal enum LibraryFolderFilter
+ {
+ ForceFileSystem = 1,
+ StorageItems = 2,
+ AllItems = 3
+ };
+
+ [Flags]
+ internal enum LibraryOptions
+ {
+ Default = 0,
+ PinnedToNavigationPane = 0x1,
+ MaskAll = 0x1
+ };
+
+ internal enum DefaultSaveFolderType
+ {
+ Detect = 1,
+ Private = 2,
+ Public = 3
+ };
+
+ internal enum LibrarySaveOptions
+ {
+ FailIfThere = 0,
+ OverrideExisting = 1,
+ MakeUniqueName = 2
+ };
+
+ internal enum LibraryManageDialogOptions
+ {
+ Default = 0,
+ NonIndexableLocationWarning = 1
+ };
+
+
+ #endregion
+
+ #region Shell Library Helper Methods
+
+ [DllImport("Shell32", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
+ internal static extern int SHShowManageLibraryUI(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem library,
+ [In] IntPtr hwndOwner,
+ [In] string title,
+ [In] string instruction,
+ [In] LibraryManageDialogOptions lmdOptions);
+
+ #endregion
+
+ #region Command Link Definitions
+
+ internal const int CommandLink = 0x0000000E;
+ internal const uint SetNote = 0x00001609;
+ internal const uint GetNote = 0x0000160A;
+ internal const uint GetNoteLength = 0x0000160B;
+ internal const uint SetShield = 0x0000160C;
+
+ #endregion
+
+ #region Shell notification definitions
+ internal const int MaxPath = 260;
+
+ [DllImport("shell32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool SHGetPathFromIDListW(IntPtr pidl, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszPath);
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct ShellNotifyStruct
+ {
+ internal IntPtr item1;
+ internal IntPtr item2;
+ };
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct SHChangeNotifyEntry
+ {
+ internal IntPtr pIdl;
+
+ [MarshalAs(UnmanagedType.Bool)]
+ internal bool recursively;
+ }
+
+ [DllImport("shell32.dll")]
+ internal static extern uint SHChangeNotifyRegister(
+ IntPtr windowHandle,
+ ShellChangeNotifyEventSource sources,
+ ShellObjectChangeTypes events,
+ uint message,
+ int entries,
+ ref SHChangeNotifyEntry changeNotifyEntry);
+
+ [DllImport("shell32.dll")]
+ internal static extern IntPtr SHChangeNotification_Lock(
+ IntPtr windowHandle,
+ int processId,
+ out IntPtr pidl,
+ out uint lEvent);
+
+ [DllImport("shell32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern Boolean SHChangeNotification_Unlock(IntPtr hLock);
+
+ [DllImport("shell32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern Boolean SHChangeNotifyDeregister(uint hNotify);
+
+ [Flags]
+ internal enum ShellChangeNotifyEventSource
+ {
+ InterruptLevel = 0x0001,
+ ShellLevel = 0x0002,
+ RecursiveInterrupt = 0x1000,
+ NewDelivery = 0x8000
+ }
+
+
+
+ #endregion
+
+ internal const int InPlaceStringTruncated = 0x00401A0;
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeStructs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeStructs.cs
new file mode 100644
index 0000000000..46d7f4d4a1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/ShellNativeStructs.cs
@@ -0,0 +1,129 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// The STGM constants are flags that indicate
+ /// conditions for creating and deleting the object and access modes
+ /// for the object.
+ ///
+ /// You can combine these flags, but you can only choose one flag
+ /// from each group of related flags. Typically one flag from each
+ /// of the access and sharing groups must be specified for all
+ /// functions and methods which use these constants.
+ /// </summary>
+ [Flags]
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue", Justification="Follows native api.")]
+ public enum AccessModes
+ {
+ /// <summary>
+ /// Indicates that, in direct mode, each change to a storage
+ /// or stream element is written as it occurs.
+ /// </summary>
+ Direct = 0x00000000,
+
+ /// <summary>
+ /// Indicates that, in transacted mode, changes are buffered
+ /// and written only if an explicit commit operation is called.
+ /// </summary>
+ Transacted = 0x00010000,
+
+ /// <summary>
+ /// Provides a faster implementation of a compound file
+ /// in a limited, but frequently used, case.
+ /// </summary>
+ Simple = 0x08000000,
+
+ /// <summary>
+ /// Indicates that the object is read-only,
+ /// meaning that modifications cannot be made.
+ /// </summary>
+ Read = 0x00000000,
+
+ /// <summary>
+ /// Enables you to save changes to the object,
+ /// but does not permit access to its data.
+ /// </summary>
+ Write = 0x00000001,
+
+ /// <summary>
+ /// Enables access and modification of object data.
+ /// </summary>
+ ReadWrite = 0x00000002,
+
+ /// <summary>
+ /// Specifies that subsequent openings of the object are
+ /// not denied read or write access.
+ /// </summary>
+ ShareDenyNone = 0x00000040,
+
+ /// <summary>
+ /// Prevents others from subsequently opening the object in Read mode.
+ /// </summary>
+ ShareDenyRead = 0x00000030,
+
+ /// <summary>
+ /// Prevents others from subsequently opening the object
+ /// for Write or ReadWrite access.
+ /// </summary>
+ ShareDenyWrite = 0x00000020,
+
+ /// <summary>
+ /// Prevents others from subsequently opening the object in any mode.
+ /// </summary>
+ ShareExclusive = 0x00000010,
+
+ /// <summary>
+ /// Opens the storage object with exclusive access to the most
+ /// recently committed version.
+ /// </summary>
+ Priority = 0x00040000,
+
+ /// <summary>
+ /// Indicates that the underlying file is to be automatically destroyed when the root
+ /// storage object is released. This feature is most useful for creating temporary files.
+ /// </summary>
+ DeleteOnRelease = 0x04000000,
+
+ /// <summary>
+ /// Indicates that, in transacted mode, a temporary scratch file is usually used
+ /// to save modifications until the Commit method is called.
+ /// Specifying NoScratch permits the unused portion of the original file
+ /// to be used as work space instead of creating a new file for that purpose.
+ /// </summary>
+ NoScratch = 0x00100000,
+
+ /// <summary>
+ /// Indicates that an existing storage object
+ /// or stream should be removed before the new object replaces it.
+ /// </summary>
+ Create = 0x00001000,
+
+ /// <summary>
+ /// Creates the new object while preserving existing data in a stream named "Contents".
+ /// </summary>
+ Convert = 0x00020000,
+
+ /// <summary>
+ /// Causes the create operation to fail if an existing object with the specified name exists.
+ /// </summary>
+ FailIfThere = 0x00000000,
+
+ /// <summary>
+ /// This flag is used when opening a storage object with Transacted
+ /// and without ShareExclusive or ShareDenyWrite.
+ /// In this case, specifying NoSnapshot prevents the system-provided
+ /// implementation from creating a snapshot copy of the file.
+ /// Instead, changes to the file are written to the end of the file.
+ /// </summary>
+ NoSnapshot = 0x00200000,
+
+ /// <summary>
+ /// Supports direct mode for single-writer, multireader file operations.
+ /// </summary>
+ DirectSingleWriterMultipleReader = 0x00400000
+ };
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/WindowUtilities.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/WindowUtilities.cs
new file mode 100644
index 0000000000..30a7c4a5bf
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Common/WindowUtilities.cs
@@ -0,0 +1,222 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.Taskbar;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+
+ internal static class WindowUtilities
+ {
+ internal static System.Drawing.Point GetParentOffsetOfChild(IntPtr hwnd, IntPtr hwndParent)
+ {
+ var childScreenCoord = new NativePoint();
+
+ TabbedThumbnailNativeMethods.ClientToScreen(hwnd, ref childScreenCoord);
+
+ var parentScreenCoord = new NativePoint();
+
+ TabbedThumbnailNativeMethods.ClientToScreen(hwndParent, ref parentScreenCoord);
+
+ System.Drawing.Point offset = new System.Drawing.Point(
+ childScreenCoord.X - parentScreenCoord.X,
+ childScreenCoord.Y - parentScreenCoord.Y);
+
+ return offset;
+ }
+
+ internal static System.Drawing.Size GetNonClientArea(IntPtr hwnd)
+ {
+ var c = new NativePoint();
+
+ TabbedThumbnailNativeMethods.ClientToScreen(hwnd, ref c);
+
+ var r = new NativeRect();
+
+ TabbedThumbnailNativeMethods.GetWindowRect(hwnd, ref r);
+
+ return new System.Drawing.Size(c.X - r.Left, c.Y - r.Top);
+ }
+ }
+
+ [Flags]
+ internal enum WindowStyles
+ {
+ /// <summary>
+ /// The window has a thin-line border.
+ /// </summary>
+ Border = 0x00800000,
+
+ /// <summary>
+ /// The window has a title bar (includes the WS_BORDER style).
+ /// </summary>
+ Caption = 0x00C00000,
+
+ /// <summary>
+ /// The window is a child window.
+ /// A window with this style cannot have a menu bar.
+ /// This style cannot be used with the WS_POPUP style.
+ /// </summary>
+ Child = 0x40000000,
+
+ /// <summary>
+ /// Same as the WS_CHILD style.
+ /// </summary>
+ ChildWindow = 0x40000000,
+
+ /// <summary>
+ /// Excludes the area occupied by child windows when drawing occurs within the parent window.
+ /// This style is used when creating the parent window.
+ /// </summary>
+ ClipChildren = 0x02000000,
+
+ /// <summary>
+ /// Clips child windows relative to each other;
+ /// that is, when a particular child window receives a WM_PAINT message,
+ /// the WS_CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated.
+ /// If WS_CLIPSIBLINGS is not specified and child windows overlap, it is possible,
+ /// when drawing within the client area of a child window, to draw within the client area of a neighboring child window.
+ /// </summary>
+ ClipSiblings = 0x04000000,
+
+ /// <summary>
+ /// The window is initially disabled. A disabled window cannot receive input from the user.
+ /// To change this after a window has been created, use the EnableWindow function.
+ /// </summary>
+ Disabled = 0x08000000,
+
+ /// <summary>
+ /// The window has a border of a style typically used with dialog boxes.
+ /// A window with this style cannot have a title bar.
+ /// </summary>
+ DialogFrame = 0x0040000,
+
+ /// <summary>
+ /// The window is the first control of a group of controls.
+ /// The group consists of this first control and all controls defined after it, up to the next control with the WS_GROUP style.
+ /// The first control in each group usually has the WS_TABSTOP style so that the user can move from group to group.
+ /// The user can subsequently change the keyboard focus from one control in the group to the next control
+ /// in the group by using the direction keys.
+ ///
+ /// You can turn this style on and off to change dialog box navigation.
+ /// To change this style after a window has been created, use the SetWindowLong function.
+ /// </summary>
+ Group = 0x00020000,
+
+ /// <summary>
+ /// The window has a horizontal scroll bar.
+ /// </summary>
+ HorizontalScroll = 0x00100000,
+
+ /// <summary>
+ /// The window is initially minimized.
+ /// Same as the WS_MINIMIZE style.
+ /// </summary>
+ Iconic = 0x20000000,
+
+ /// <summary>
+ /// The window is initially maximized.
+ /// </summary>
+ Maximize = 0x01000000,
+
+ /// <summary>
+ /// The window has a maximize button.
+ /// Cannot be combined with the WS_EX_CONTEXTHELP style.
+ /// The WS_SYSMENU style must also be specifie
+ /// </summary>
+ MaximizeBox = 0x00010000,
+
+ /// <summary>
+ /// The window is initially minimized.
+ /// Same as the WS_ICONIC style.
+ /// </summary>
+ Minimize = 0x20000000,
+
+ /// <summary>
+ /// The window has a minimize button.
+ /// Cannot be combined with the WS_EX_CONTEXTHELP style.
+ /// The WS_SYSMENU style must also be specified.
+ /// </summary>
+ MinimizeBox = 0x00020000,
+
+ /// <summary>
+ /// The window is an overlapped window.
+ /// An overlapped window has a title bar and a border.
+ /// Same as the WS_TILED style.
+ /// </summary>
+ Overlapped = 0x00000000,
+
+ /// <summary>
+ /// The windows is a pop-up window.
+ /// This style cannot be used with the WS_CHILD style.
+ /// </summary>
+ Popup = unchecked((int)0x80000000),
+
+ /// <summary>
+ /// The window has a sizing border.
+ /// Same as the WS_THICKFRAME style.
+ /// </summary>
+ SizeBox = 0x00040000,
+
+ /// <summary>
+ /// The window has a window menu on its title bar.
+ /// The WS_CAPTION style must also be specified.
+ /// </summary>
+ SystemMenu = 0x00080000,
+
+ /// <summary>
+ /// The window is a control that can receive the keyboard focus when the user presses the TAB key.
+ /// Pressing the TAB key changes the keyboard focus to the next control with the WS_TABSTOP style.
+ ///
+ /// You can turn this style on and off to change dialog box navigation.
+ /// To change this style after a window has been created, use the SetWindowLong function.
+ /// For user-created windows and modeless dialogs to work with tab stops,
+ /// alter the message loop to call the IsDialogMessage function.
+ /// </summary>
+ Tabstop = 0x00010000,
+
+ /// <summary>
+ /// The window has a sizing border.
+ /// Same as the WS_SIZEBOX style.
+ /// </summary>
+ ThickFrame = 0x00040000,
+
+ /// <summary>
+ /// The window is an overlapped window.
+ /// An overlapped window has a title bar and a border.
+ /// Same as the WS_OVERLAPPED style.
+ /// </summary>
+ Tiled = 0x00000000,
+
+ /// <summary>
+ /// The window is initially visible.
+ ///
+ /// This style can be turned on and off by using the ShowWindow or SetWindowPos function.
+ /// </summary>
+ Visible = 0x10000000,
+
+ /// <summary>
+ /// The window has a vertical scroll bar.
+ /// </summary>
+ VerticalScroll = 0x00200000,
+
+ /// <summary>
+ /// The window is an overlapped window.
+ /// Same as the WS_OVERLAPPEDWINDOW style.
+ /// </summary>
+ TiledWindowMask = Overlapped | Caption | SystemMenu | ThickFrame | MinimizeBox | MaximizeBox,
+
+ /// <summary>
+ /// The window is a pop-up window.
+ /// The WS_CAPTION and WS_POPUPWINDOW styles must be combined to make the window menu visible.
+ /// </summary>
+ PopupWindowMask = Popup | Border | SystemMenu,
+
+ /// <summary>
+ /// The window is an overlapped window. Same as the WS_TILEDWINDOW style.
+ /// </summary>
+ OverlappedWindowMask = Overlapped | Caption | SystemMenu | ThickFrame | MinimizeBox | MaximizeBox,
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMClasses.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMClasses.cs
new file mode 100644
index 0000000000..cc35d9169a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMClasses.cs
@@ -0,0 +1,51 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+
+ // Dummy base interface for CommonFileDialog coclasses.
+ internal interface NativeCommonFileDialog
+ {
+ }
+
+ // Coclass interfaces - designed to "look like" the object
+ // in the API, so that the 'new' operator can be used in a
+ // straightforward way. Behind the scenes, the C# compiler
+ // morphs all 'new CoClass()' calls to 'new CoClassWrapper()'.
+
+ [ComImport,
+ Guid(ShellIIDGuid.IFileOpenDialog),
+ CoClass(typeof(FileOpenDialogRCW))]
+ internal interface NativeFileOpenDialog : IFileOpenDialog
+ {
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IFileSaveDialog),
+ CoClass(typeof(FileSaveDialogRCW))]
+ internal interface NativeFileSaveDialog : IFileSaveDialog
+ {
+ }
+
+ // .NET classes representing runtime callable wrappers.
+ [ComImport,
+ ClassInterface(ClassInterfaceType.None),
+ TypeLibType(TypeLibTypeFlags.FCanCreate),
+ Guid(ShellCLSIDGuid.FileOpenDialog)]
+ internal class FileOpenDialogRCW
+ {
+ }
+
+ [ComImport,
+ ClassInterface(ClassInterfaceType.None),
+ TypeLibType(TypeLibTypeFlags.FCanCreate),
+ Guid(ShellCLSIDGuid.FileSaveDialog)]
+ internal class FileSaveDialogRCW
+ {
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMInterfaces.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMInterfaces.cs
new file mode 100644
index 0000000000..9d07efd143
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Dialogs/DialogsCOMInterfaces.cs
@@ -0,0 +1,507 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Dialogs
+{
+ // Disable warning if a method declaration hides another inherited from a parent COM interface
+ // To successfully import a COM interface, all inherited methods need to be declared again with
+ // the exception of those already declared in "IUnknown"
+#pragma warning disable 0108
+
+ [ComImport(),
+ Guid(ShellIIDGuid.IFileDialog),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFileDialog : IModalWindow
+ {
+ // Defined on IModalWindow - repeated here due to requirements of COM interop layer.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime),
+ PreserveSig]
+ int Show([In] IntPtr parent);
+
+ // IFileDialog-Specific interface members.
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileTypes(
+ [In] uint cFileTypes,
+ [In, MarshalAs(UnmanagedType.LPArray)] ShellNativeMethods.FilterSpec[] rgFilterSpec);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileTypeIndex([In] uint iFileType);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFileTypeIndex(out uint piFileType);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Advise(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialogEvents pfde,
+ out uint pdwCookie);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Unadvise([In] uint dwCookie);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOptions([In] ShellNativeMethods.FileOpenOptions fos);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetOptions(out ShellNativeMethods.FileOpenOptions pfos);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDefaultFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolder([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCurrentSelection([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileName([In, MarshalAs(UnmanagedType.LPWStr)] string pszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFileName([MarshalAs(UnmanagedType.LPWStr)] out string pszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetTitle([In, MarshalAs(UnmanagedType.LPWStr)] string pszTitle);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOkButtonLabel([In, MarshalAs(UnmanagedType.LPWStr)] string pszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileNameLabel([In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetResult([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddPlace([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi, ShellNativeMethods.FileDialogAddPlacement fdap);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDefaultExtension([In, MarshalAs(UnmanagedType.LPWStr)] string pszDefaultExtension);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Close([MarshalAs(UnmanagedType.Error)] int hr);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetClientGuid([In] ref Guid guid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ClearClientData();
+
+ // Not supported: IShellItemFilter is not defined, converting to IntPtr.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFilter([MarshalAs(UnmanagedType.Interface)] IntPtr pFilter);
+ }
+
+ [ComImport(),
+ Guid(ShellIIDGuid.IFileOpenDialog),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFileOpenDialog : IFileDialog
+ {
+ // Defined on IModalWindow - repeated here due to requirements of COM interop layer.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime),
+ PreserveSig]
+ int Show([In] IntPtr parent);
+
+ // Defined on IFileDialog - repeated here due to requirements of COM interop layer.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileTypes([In] uint cFileTypes, [In] ref ShellNativeMethods.FilterSpec rgFilterSpec);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileTypeIndex([In] uint iFileType);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFileTypeIndex(out uint piFileType);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Advise(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialogEvents pfde,
+ out uint pdwCookie);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Unadvise([In] uint dwCookie);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOptions([In] ShellNativeMethods.FileOpenOptions fos);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetOptions(out ShellNativeMethods.FileOpenOptions pfos);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDefaultFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolder([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCurrentSelection([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileName([In, MarshalAs(UnmanagedType.LPWStr)] string pszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFileName([MarshalAs(UnmanagedType.LPWStr)] out string pszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetTitle([In, MarshalAs(UnmanagedType.LPWStr)] string pszTitle);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOkButtonLabel([In, MarshalAs(UnmanagedType.LPWStr)] string pszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileNameLabel([In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetResult([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddPlace([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi, ShellNativeMethods.FileDialogAddPlacement fdap);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDefaultExtension([In, MarshalAs(UnmanagedType.LPWStr)] string pszDefaultExtension);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Close([MarshalAs(UnmanagedType.Error)] int hr);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetClientGuid([In] ref Guid guid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ClearClientData();
+
+ // Not supported: IShellItemFilter is not defined, converting to IntPtr.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFilter([MarshalAs(UnmanagedType.Interface)] IntPtr pFilter);
+
+ // Defined by IFileOpenDialog.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetResults([MarshalAs(UnmanagedType.Interface)] out IShellItemArray ppenum);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSelectedItems([MarshalAs(UnmanagedType.Interface)] out IShellItemArray ppsai);
+ }
+
+ [ComImport(),
+ Guid(ShellIIDGuid.IFileSaveDialog),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFileSaveDialog : IFileDialog
+ {
+ // Defined on IModalWindow - repeated here due to requirements of COM interop layer.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime),
+ PreserveSig]
+ int Show([In] IntPtr parent);
+
+ // Defined on IFileDialog - repeated here due to requirements of COM interop layer.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileTypes(
+ [In] uint cFileTypes,
+ [In] ref ShellNativeMethods.FilterSpec rgFilterSpec);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileTypeIndex([In] uint iFileType);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFileTypeIndex(out uint piFileType);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Advise(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialogEvents pfde,
+ out uint pdwCookie);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Unadvise([In] uint dwCookie);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOptions([In] ShellNativeMethods.FileOpenOptions fos);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetOptions(out ShellNativeMethods.FileOpenOptions pfos);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDefaultFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFolder([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolder([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCurrentSelection([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileName([In, MarshalAs(UnmanagedType.LPWStr)] string pszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFileName([MarshalAs(UnmanagedType.LPWStr)] out string pszName);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetTitle([In, MarshalAs(UnmanagedType.LPWStr)] string pszTitle);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOkButtonLabel([In, MarshalAs(UnmanagedType.LPWStr)] string pszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFileNameLabel([In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetResult([MarshalAs(UnmanagedType.Interface)] out IShellItem ppsi);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddPlace(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem psi,
+ ShellNativeMethods.FileDialogAddPlacement fdap);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetDefaultExtension([In, MarshalAs(UnmanagedType.LPWStr)] string pszDefaultExtension);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Close([MarshalAs(UnmanagedType.Error)] int hr);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetClientGuid([In] ref Guid guid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ClearClientData();
+
+ // Not supported: IShellItemFilter is not defined, converting to IntPtr.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetFilter([MarshalAs(UnmanagedType.Interface)] IntPtr pFilter);
+
+ // Defined by IFileSaveDialog interface.
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetSaveAsItem([In, MarshalAs(UnmanagedType.Interface)] IShellItem psi);
+
+ // Not currently supported: IPropertyStore.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetProperties([In, MarshalAs(UnmanagedType.Interface)] IntPtr pStore);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ int SetCollectedProperties(
+ [In] IPropertyDescriptionList pList,
+ [In] bool fAppendDefault);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ [PreserveSig]
+ HResult GetProperties(out IPropertyStore ppStore);
+
+ // Not currently supported: IPropertyStore, IFileOperationProgressSink.
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ApplyProperties(
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem psi,
+ [In, MarshalAs(UnmanagedType.Interface)] IntPtr pStore,
+ [In, ComAliasName("ShellObjects.wireHWND")] ref IntPtr hwnd,
+ [In, MarshalAs(UnmanagedType.Interface)] IntPtr pSink);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IFileDialogEvents),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFileDialogEvents
+ {
+ // NOTE: some of these callbacks are cancelable - returning S_FALSE means that
+ // the dialog should not proceed (e.g. with closing, changing folder); to
+ // support this, we need to use the PreserveSig attribute to enable us to return
+ // the proper HRESULT.
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime),
+ PreserveSig]
+ HResult OnFileOk([In, MarshalAs(UnmanagedType.Interface)] IFileDialog pfd);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime),
+ PreserveSig]
+ HResult OnFolderChanging(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialog pfd,
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem psiFolder);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnFolderChange([In, MarshalAs(UnmanagedType.Interface)] IFileDialog pfd);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnSelectionChange([In, MarshalAs(UnmanagedType.Interface)] IFileDialog pfd);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnShareViolation(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialog pfd,
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem psi,
+ out ShellNativeMethods.FileDialogEventShareViolationResponse pResponse);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnTypeChange([In, MarshalAs(UnmanagedType.Interface)] IFileDialog pfd);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnOverwrite([In, MarshalAs(UnmanagedType.Interface)] IFileDialog pfd,
+ [In, MarshalAs(UnmanagedType.Interface)] IShellItem psi,
+ out ShellNativeMethods.FileDialogEventOverwriteResponse pResponse);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IFileDialogCustomize),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFileDialogCustomize
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void EnableOpenDropDown([In] int dwIDCtl);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddMenu(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddPushButton(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddComboBox([In] int dwIDCtl);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddRadioButtonList([In] int dwIDCtl);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddCheckButton(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel,
+ [In] bool bChecked);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddEditBox(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddSeparator([In] int dwIDCtl);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddText(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetControlLabel(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetControlState(
+ [In] int dwIDCtl,
+ [Out] out ShellNativeMethods.ControlState pdwState);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetControlState(
+ [In] int dwIDCtl,
+ [In] ShellNativeMethods.ControlState dwState);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetEditBoxText(
+ [In] int dwIDCtl,
+ [MarshalAs(UnmanagedType.LPWStr)] out string ppszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetEditBoxText(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCheckButtonState(
+ [In] int dwIDCtl,
+ [Out] out bool pbChecked);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetCheckButtonState(
+ [In] int dwIDCtl,
+ [In] bool bChecked);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void AddControlItem(
+ [In] int dwIDCtl,
+ [In] int dwIDItem,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void RemoveControlItem(
+ [In] int dwIDCtl,
+ [In] int dwIDItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void RemoveAllControlItems([In] int dwIDCtl);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetControlItemState(
+ [In] int dwIDCtl,
+ [In] int dwIDItem,
+ [Out] out ShellNativeMethods.ControlState pdwState);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetControlItemState(
+ [In] int dwIDCtl,
+ [In] int dwIDItem,
+ [In] ShellNativeMethods.ControlState dwState);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSelectedControlItem(
+ [In] int dwIDCtl,
+ [Out] out int pdwIDItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetSelectedControlItem(
+ [In] int dwIDCtl,
+ [In] int dwIDItem); // Not valid for OpenDropDown.
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void StartVisualGroup(
+ [In] int dwIDCtl,
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszLabel);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void EndVisualGroup();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void MakeProminent([In] int dwIDCtl);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IFileDialogControlEvents),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFileDialogControlEvents
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnItemSelected(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialogCustomize pfdc,
+ [In] int dwIDCtl,
+ [In] int dwIDItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnButtonClicked(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialogCustomize pfdc,
+ [In] int dwIDCtl);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnCheckButtonToggled(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialogCustomize pfdc,
+ [In] int dwIDCtl,
+ [In] bool bChecked);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void OnControlActivating(
+ [In, MarshalAs(UnmanagedType.Interface)] IFileDialogCustomize pfdc,
+ [In] int dwIDCtl);
+ }
+ // Restore the warning
+#pragma warning restore 0108
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMGuids.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMGuids.cs
new file mode 100644
index 0000000000..7b389fcaef
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMGuids.cs
@@ -0,0 +1,51 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ internal static class ExplorerBrowserIIDGuid
+ {
+ // IID GUID strings for relevant Shell COM interfaces.
+ internal const string IExplorerBrowser = "DFD3B6B5-C10C-4BE9-85F6-A66969F402F6";
+ internal const string IKnownFolderManager = "8BE2D872-86AA-4d47-B776-32CCA40C7018";
+ internal const string IFolderView = "cde725b0-ccc9-4519-917e-325d72fab4ce";
+ internal const string IFolderView2 = "1af3a467-214f-4298-908e-06b03e0b39f9";
+ internal const string IServiceProvider = "6d5140c1-7436-11ce-8034-00aa006009fa";
+ internal const string IExplorerPaneVisibility = "e07010ec-bc17-44c0-97b0-46c7c95b9edc";
+ internal const string IExplorerBrowserEvents = "361bbdc7-e6ee-4e13-be58-58e2240c810f";
+ internal const string IInputObject = "68284fAA-6A48-11D0-8c78-00C04fd918b4";
+ internal const string IShellView = "000214E3-0000-0000-C000-000000000046";
+ internal const string IDispatch = "00020400-0000-0000-C000-000000000046";
+ internal const string DShellFolderViewEvents = "62112AA2-EBE4-11cf-A5FB-0020AFE7292D";
+
+ internal const string ICommDlgBrowser = "000214F1-0000-0000-C000-000000000046";
+ internal const string ICommDlgBrowser2 = "10339516-2894-11d2-9039-00C04F8EEB3E";
+ internal const string ICommDlgBrowser3 = "c8ad25a1-3294-41ee-8165-71174bd01c57";
+
+ }
+
+ internal static class ExplorerBrowserViewPanes
+ {
+ internal const string Navigation = "cb316b22-25f7-42b8-8a09-540d23a43c2f";
+ internal const string Commands = "d9745868-ca5f-4a76-91cd-f5a129fbb076";
+ internal const string CommandsOrganize = "72e81700-e3ec-4660-bf24-3c3b7b648806";
+ internal const string CommandsView = "21f7c32d-eeaa-439b-bb51-37b96fd6a943";
+ internal const string Details = "43abf98b-89b8-472d-b9ce-e69b8229f019";
+ internal const string Preview = "893c63d1-45c8-4d17-be19-223be71be365";
+ internal const string Query = "65bcde4f-4f07-4f27-83a7-1afca4df7ddd";
+ internal const string AdvancedQuery = "b4e9db8b-34ba-4c39-b5cc-16a1bd2c411c";
+ }
+
+ internal static class ExplorerBrowserCLSIDGuid
+ {
+ // CLSID GUID strings for relevant coclasses.
+ internal const string ExplorerBrowser = "71F96385-DDD6-48D3-A0C1-AE06E8B055FB";
+ }
+
+ internal static class ExplorerBrowserViewDispatchIds
+ {
+ internal const int SelectionChanged = 200;
+ internal const int ContentsChanged = 207;
+ internal const int FileListEnumDone = 201;
+ internal const int SelectedItemChanged = 220;
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMInterfaces.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMInterfaces.cs
new file mode 100644
index 0000000000..03a37bef0c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserCOMInterfaces.cs
@@ -0,0 +1,796 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+using MS.WindowsAPICodePack.Internal;
+using System.Text;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+
+ internal enum ShellViewGetItemObject
+ {
+ Background = 0x00000000,
+ Selection = 0x00000001,
+ AllView = 0x00000002,
+ Checked = 0x00000003,
+ TypeMask = 0x0000000F,
+ ViewOrderFlag = unchecked((int)0x80000000)
+ }
+
+ [Flags]
+ internal enum FolderOptions
+ {
+ AutoArrange = 0x00000001,
+ AbbreviatedNames = 0x00000002,
+ SnapToGrid = 0x00000004,
+ OwnerData = 0x00000008,
+ BestFitWindow = 0x00000010,
+ Desktop = 0x00000020,
+ SingleSelection = 0x00000040,
+ NoSubfolders = 0x00000080,
+ Transparent = 0x00000100,
+ NoClientEdge = 0x00000200,
+ NoScroll = 0x00000400,
+ AlignLeft = 0x00000800,
+ NoIcons = 0x00001000,
+ ShowSelectionAlways = 0x00002000,
+ NoVisible = 0x00004000,
+ SingleClickActivate = 0x00008000,
+ NoWebView = 0x00010000,
+ HideFilenames = 0x00020000,
+ CheckSelect = 0x00040000,
+ NoEnumRefresh = 0x00080000,
+ NoGrouping = 0x00100000,
+ FullRowSelect = 0x00200000,
+ NoFilters = 0x00400000,
+ NoColumnHeaders = 0x00800000,
+ NoHeaderInAllViews = 0x01000000,
+ ExtendedTiles = 0x02000000,
+ TriCheckSelect = 0x04000000,
+ AutoCheckSelect = 0x08000000,
+ NoBrowserViewState = 0x10000000,
+ SubsetGroups = 0x20000000,
+ UseSearchFolders = 0x40000000,
+ AllowRightToLeftReading = unchecked((int)0x80000000)
+ }
+
+ internal enum FolderViewMode
+ {
+ Auto = -1,
+ First = 1,
+ Icon = 1,
+ SmallIcon = 2,
+ List = 3,
+ Details = 4,
+ Thumbnail = 5,
+ Tile = 6,
+ Thumbstrip = 7,
+ Content = 8,
+ Last = 8
+ }
+
+ internal enum ExplorerPaneState
+ {
+ DoNotCare = 0x00000000,
+ DefaultOn = 0x00000001,
+ DefaultOff = 0x00000002,
+ StateMask = 0x0000ffff,
+ InitialState = 0x00010000,
+ Force = 0x00020000
+ }
+
+ [StructLayout(LayoutKind.Sequential, Pack = 4)]
+ internal class FolderSettings
+ {
+ public FolderViewMode ViewMode;
+ public FolderOptions Options;
+ }
+
+ [Flags]
+ internal enum ExplorerBrowserOptions
+ {
+ NavigateOnce = 0x00000001,
+ ShowFrames = 0x00000002,
+ AlwaysNavigate = 0x00000004,
+ NoTravelLog = 0x00000008,
+ NoWrapperWindow = 0x00000010,
+ HtmlSharepointView = 0x00000020
+ }
+
+ internal enum CommDlgBrowserStateChange
+ {
+ SetFocus = 0,
+ KillFocus = 1,
+ SelectionChange = 2,
+ Rename = 3,
+ StateChange = 4
+ }
+
+ internal enum CommDlgBrowserNotifyType
+ {
+ Done = 1,
+ Start = 2
+ }
+
+ internal enum CommDlgBrowser2ViewFlags
+ {
+ ShowAllFiles = 0x00000001,
+ IsFileSave = 0x00000002,
+ AllowPreviewPane = 0x00000004,
+ NoSelectVerb = 0x00000008,
+ NoIncludeItem = 0x00000010,
+ IsFolderPicker = 0x00000020
+ }
+
+ // Disable warning if a method declaration hides another inherited from a parent COM interface
+ // To successfully import a COM interface, all inherited methods need to be declared again with
+ // the exception of those already declared in "IUnknown"
+#pragma warning disable 108
+
+
+ [ComImport,
+ TypeLibType(TypeLibTypeFlags.FCanCreate),
+ ClassInterface(ClassInterfaceType.None),
+ Guid(ExplorerBrowserCLSIDGuid.ExplorerBrowser)]
+ internal class ExplorerBrowserClass : IExplorerBrowser
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void Initialize(IntPtr hwndParent, [In]ref NativeRect prc, [In] FolderSettings pfs);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void Destroy();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void SetRect([In, Out] ref IntPtr phdwp, NativeRect rcBrowser);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void SetPropertyBag([MarshalAs(UnmanagedType.LPWStr)] string pszPropertyBag);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void SetEmptyText([MarshalAs(UnmanagedType.LPWStr)] string pszEmptyText);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern HResult SetFolderSettings(FolderSettings pfs);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern HResult Advise(IntPtr psbe, out uint pdwCookie);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern HResult Unadvise(uint dwCookie);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void SetOptions([In]ExplorerBrowserOptions dwFlag);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void GetOptions(out ExplorerBrowserOptions pdwFlag);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void BrowseToIDList(IntPtr pidl, uint uFlags);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern HResult BrowseToObject([MarshalAs(UnmanagedType.IUnknown)] object punk, uint uFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void FillFromObject([MarshalAs(UnmanagedType.IUnknown)] object punk, int dwFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void RemoveAll();
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern HResult GetCurrentView(ref Guid riid, out IntPtr ppv);
+ }
+
+
+ [ComImport,
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
+ Guid(ExplorerBrowserIIDGuid.IExplorerBrowser)]
+ internal interface IExplorerBrowser
+ {
+ /// <summary>
+ /// Prepares the browser to be navigated.
+ /// </summary>
+ /// <param name="hwndParent">A handle to the owner window or control.</param>
+ /// <param name="prc">A pointer to a RECT containing the coordinates of the bounding rectangle
+ /// the browser will occupy. The coordinates are relative to hwndParent. If this parameter is NULL,
+ /// then method IExplorerBrowser::SetRect should subsequently be called.</param>
+ /// <param name="pfs">A pointer to a FOLDERSETTINGS structure that determines how the folder will be
+ /// displayed in the view. If this parameter is NULL, then method IExplorerBrowser::SetFolderSettings
+ /// should be called, otherwise, the default view settings for the folder are used.</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Initialize(IntPtr hwndParent, [In] ref NativeRect prc, [In] FolderSettings pfs);
+
+ /// <summary>
+ /// Destroys the browser.
+ /// </summary>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Destroy();
+
+ /// <summary>
+ /// Sets the size and position of the view windows created by the browser.
+ /// </summary>
+ /// <param name="phdwp">A pointer to a DeferWindowPos handle. This paramater can be NULL.</param>
+ /// <param name="rcBrowser">The coordinates that the browser will occupy.</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetRect([In, Out] ref IntPtr phdwp, NativeRect rcBrowser);
+
+ /// <summary>
+ /// Sets the name of the property bag.
+ /// </summary>
+ /// <param name="pszPropertyBag">A pointer to a constant, null-terminated, Unicode string that contains
+ /// the name of the property bag. View state information that is specific to the application of the
+ /// client is stored (persisted) using this name.</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetPropertyBag([MarshalAs(UnmanagedType.LPWStr)] string pszPropertyBag);
+
+ /// <summary>
+ /// Sets the default empty text.
+ /// </summary>
+ /// <param name="pszEmptyText">A pointer to a constant, null-terminated, Unicode string that contains
+ /// the empty text.</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetEmptyText([MarshalAs(UnmanagedType.LPWStr)] string pszEmptyText);
+
+ /// <summary>
+ /// Sets the folder settings for the current view.
+ /// </summary>
+ /// <param name="pfs">A pointer to a FOLDERSETTINGS structure that contains the folder settings
+ /// to be applied.</param>
+ /// <returns></returns>
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult SetFolderSettings(FolderSettings pfs);
+
+ /// <summary>
+ /// Initiates a connection with IExplorerBrowser for event callbacks.
+ /// </summary>
+ /// <param name="psbe">A pointer to the IExplorerBrowserEvents interface of the object to be
+ /// advised of IExplorerBrowser events</param>
+ /// <param name="pdwCookie">When this method returns, contains a token that uniquely identifies
+ /// the event listener. This allows several event listeners to be subscribed at a time.</param>
+ /// <returns></returns>
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Advise(IntPtr psbe, out uint pdwCookie);
+
+ /// <summary>
+ /// Terminates an advisory connection.
+ /// </summary>
+ /// <param name="dwCookie">A connection token previously returned from IExplorerBrowser::Advise.
+ /// Identifies the connection to be terminated.</param>
+ /// <returns></returns>
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Unadvise([In] uint dwCookie);
+
+ /// <summary>
+ /// Sets the current browser options.
+ /// </summary>
+ /// <param name="dwFlag">One or more EXPLORER_BROWSER_OPTIONS flags to be set.</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetOptions([In]ExplorerBrowserOptions dwFlag);
+
+ /// <summary>
+ /// Gets the current browser options.
+ /// </summary>
+ /// <param name="pdwFlag">When this method returns, contains the current EXPLORER_BROWSER_OPTIONS
+ /// for the browser.</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetOptions(out ExplorerBrowserOptions pdwFlag);
+
+ /// <summary>
+ /// Browses to a pointer to an item identifier list (PIDL)
+ /// </summary>
+ /// <param name="pidl">A pointer to a const ITEMIDLIST (item identifier list) that specifies an object's
+ /// location as the destination to navigate to. This parameter can be NULL.</param>
+ /// <param name="uFlags">A flag that specifies the category of the pidl. This affects how
+ /// navigation is accomplished</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void BrowseToIDList(IntPtr pidl, uint uFlags);
+
+ /// <summary>
+ /// Browse to an object
+ /// </summary>
+ /// <param name="punk">A pointer to an object to browse to. If the object cannot be browsed,
+ /// an error value is returned.</param>
+ /// <param name="uFlags">A flag that specifies the category of the pidl. This affects how
+ /// navigation is accomplished. </param>
+ /// <returns></returns>
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult BrowseToObject([MarshalAs(UnmanagedType.IUnknown)] object punk, uint uFlags);
+
+ /// <summary>
+ /// Creates a results folder and fills it with items.
+ /// </summary>
+ /// <param name="punk">An interface pointer on the source object that will fill the IResultsFolder</param>
+ /// <param name="dwFlags">One of the EXPLORER_BROWSER_FILL_FLAGS</param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void FillFromObject([MarshalAs(UnmanagedType.IUnknown)] object punk, int dwFlags);
+
+ /// <summary>
+ /// Removes all items from the results folder.
+ /// </summary>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void RemoveAll();
+
+ /// <summary>
+ /// Gets an interface for the current view of the browser.
+ /// </summary>
+ /// <param name="riid">A reference to the desired interface ID.</param>
+ /// <param name="ppv">When this method returns, contains the interface pointer requested in riid.
+ /// This will typically be IShellView or IShellView2. </param>
+ /// <returns></returns>
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetCurrentView(ref Guid riid, out IntPtr ppv);
+ }
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.IServiceProvider),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IServiceProvider
+ {
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ HResult QueryService(ref Guid guidService, ref Guid riid, out IntPtr ppvObject);
+ };
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.IFolderView),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFolderView
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCurrentViewMode([Out] out uint pViewMode);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetCurrentViewMode(uint ViewMode);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolder(ref Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Item(int iItemIndex, out IntPtr ppidl);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void ItemCount(uint uFlags, out int pcItems);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Items(uint uFlags, ref Guid riid, [Out, MarshalAs(UnmanagedType.IUnknown)] out object ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSelectionMarkedItem(out int piItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFocusedItem(out int piItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetItemPosition(IntPtr pidl, out NativePoint ppt);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSpacing([Out] out NativePoint ppt);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDefaultSpacing(out NativePoint ppt);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAutoArrange();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SelectItem(int iItem, uint dwFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SelectAndPositionItems(uint cidl, IntPtr apidl, ref NativePoint apt, uint dwFlags);
+ }
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.IFolderView2),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IFolderView2 : IFolderView
+ {
+ // IFolderView
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetCurrentViewMode(out uint pViewMode);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetCurrentViewMode(uint ViewMode);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolder(ref Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void Item(int iItemIndex, out IntPtr ppidl);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult ItemCount(uint uFlags, out int pcItems);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Items(uint uFlags, ref Guid riid, [Out, MarshalAs(UnmanagedType.IUnknown)] out object ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSelectionMarkedItem(out int piItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetFocusedItem(out int piItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetItemPosition(IntPtr pidl, out NativePoint ppt);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSpacing([Out] out NativePoint ppt);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDefaultSpacing(out NativePoint ppt);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAutoArrange();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SelectItem(int iItem, uint dwFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SelectAndPositionItems(uint cidl, IntPtr apidl, ref NativePoint apt, uint dwFlags);
+
+ // IFolderView2
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetGroupBy(IntPtr key, bool fAscending);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetGroupBy(ref IntPtr pkey, ref bool pfAscending);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetViewProperty(IntPtr pidl, IntPtr propkey, object propvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetViewProperty(IntPtr pidl, IntPtr propkey, out object ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetTileViewProperties(IntPtr pidl, [MarshalAs(UnmanagedType.LPWStr)] string pszPropList);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetExtendedTileViewProperties(IntPtr pidl, [MarshalAs(UnmanagedType.LPWStr)] string pszPropList);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetText(int iType, [MarshalAs(UnmanagedType.LPWStr)] string pwszText);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetCurrentFolderFlags(uint dwMask, uint dwFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCurrentFolderFlags(out uint pdwFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSortColumnCount(out int pcColumns);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetSortColumns(IntPtr rgSortColumns, int cColumns);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSortColumns(out IntPtr rgSortColumns, int cColumns);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetItem(int iItem, ref Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetVisibleItem(int iStart, bool fPrevious, out int piItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSelectedItem(int iStart, out int piItem);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSelection(bool fNoneImpliesFolder, out IShellItemArray ppsia);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSelectionState(IntPtr pidl, out uint pdwFlags);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void InvokeVerbOnSelection([In, MarshalAs(UnmanagedType.LPWStr)] string pszVerb);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult SetViewModeAndIconSize(int uViewMode, int iImageSize);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetViewModeAndIconSize(out int puViewMode, out int piImageSize);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetGroupSubsetCount(uint cVisibleRows);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetGroupSubsetCount(out uint pcVisibleRows);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void SetRedraw(bool fRedrawOn);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void IsMoveInSameFolder();
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void DoRename();
+ }
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.IExplorerPaneVisibility),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IExplorerPaneVisibility
+ {
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetPaneState(ref Guid explorerPane, out ExplorerPaneState peps);
+ };
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.IExplorerBrowserEvents),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IExplorerBrowserEvents
+ {
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnNavigationPending(IntPtr pidlFolder);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnViewCreated([MarshalAs(UnmanagedType.IUnknown)] object psv);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnNavigationComplete(IntPtr pidlFolder);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnNavigationFailed(IntPtr pidlFolder);
+ }
+
+ #region Unused - Keeping for debugging bug #885228
+
+ //[ComImport,
+ // Guid(ExplorerBrowserIIDGuid.ICommDlgBrowser),
+ // InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ //internal interface ICommDlgBrowser
+ //{
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult OnDefaultCommand(IntPtr ppshv);
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult OnStateChange(
+ // IntPtr ppshv,
+ // CommDlgBrowserStateChange uChange);
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult IncludeObject(
+ // IntPtr ppshv,
+ // IntPtr pidl);
+ //}
+
+ //[ComImport,
+ // Guid(ExplorerBrowserIIDGuid.ICommDlgBrowser2),
+ // InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ //internal interface ICommDlgBrowser2
+ //{
+ // // dlg
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult OnDefaultCommand(IntPtr ppshv);
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult OnStateChange(
+ // IntPtr ppshv,
+ // CommDlgBrowserStateChange uChange);
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult IncludeObject(
+ // IntPtr ppshv,
+ // IntPtr pidl);
+
+ // // dlg2
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult GetDefaultMenuText(
+ // [In] IShellView shellView,
+ // StringBuilder buffer, //A pointer to a buffer that is used by the Shell browser to return the default shortcut menu text.
+ // [In] int bufferMaxLength); //should be max size = 260?
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult GetViewFlags(CommDlgBrowser2ViewFlags pdwFlags);
+
+
+ // [PreserveSig]
+ // [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ // HResult Notify(
+ // IntPtr pshv,
+ // CommDlgBrowserNotifyType notifyType);
+ //}
+
+ #endregion
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.ICommDlgBrowser3),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface ICommDlgBrowser3
+ {
+ // dlg1
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnDefaultCommand(IntPtr ppshv);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnStateChange(
+ IntPtr ppshv,
+ CommDlgBrowserStateChange uChange);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult IncludeObject(
+ IntPtr ppshv,
+ IntPtr pidl);
+
+ // dlg2
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetDefaultMenuText(
+ IShellView shellView,
+ IntPtr buffer, //A pointer to a buffer that is used by the Shell browser to return the default shortcut menu text.
+ int bufferMaxLength); //should be max size = 260?
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetViewFlags(
+ [Out] out uint pdwFlags); // CommDlgBrowser2ViewFlags
+
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Notify(
+ IntPtr pshv, CommDlgBrowserNotifyType notifyType);
+
+ // dlg3
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetCurrentFilter(
+ StringBuilder pszFileSpec,
+ int cchFileSpec);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnColumnClicked(
+ IShellView ppshv,
+ int iColumn);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult OnPreViewCreated(IShellView ppshv);
+ }
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.IInputObject),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IInputObject
+ {
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult UIActivateIO(bool fActivate, ref System.Windows.Forms.Message pMsg);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult HasFocusIO();
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult TranslateAcceleratorIO(ref System.Windows.Forms.Message pMsg);
+
+ };
+
+ [ComImport,
+ Guid(ExplorerBrowserIIDGuid.IShellView),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IShellView
+ {
+ // IOleWindow
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetWindow(
+ out IntPtr phwnd);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult ContextSensitiveHelp(
+ bool fEnterMode);
+
+ // IShellView
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult TranslateAccelerator(
+ IntPtr pmsg);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult EnableModeless(
+ bool fEnable);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult UIActivate(
+ uint uState);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Refresh();
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult CreateViewWindow(
+ [MarshalAs(UnmanagedType.IUnknown)] object psvPrevious,
+ IntPtr pfs,
+ [MarshalAs(UnmanagedType.IUnknown)] object psb,
+ IntPtr prcView,
+ out IntPtr phWnd);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult DestroyViewWindow();
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetCurrentInfo(
+ out IntPtr pfs);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult AddPropertySheetPages(
+ uint dwReserved,
+ IntPtr pfn,
+ uint lparam);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult SaveViewState();
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult SelectItem(
+ IntPtr pidlItem,
+ uint uFlags);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetItemObject(
+ ShellViewGetItemObject uItem,
+ ref Guid riid,
+ [MarshalAs(UnmanagedType.IUnknown)] out object ppv);
+ }
+
+#pragma warning restore 108
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserNativeMethods.cs
new file mode 100644
index 0000000000..430d3ef97f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ExplorerBrowser/ExplorerBrowserNativeMethods.cs
@@ -0,0 +1,33 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Security;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Controls
+{
+ /// <summary>
+ /// Internal class that contains interop declarations for
+ /// functions that are not benign and are performance critical.
+ /// </summary>
+ [SuppressUnmanagedCodeSecurity]
+ internal static class ExplorerBrowserNativeMethods
+ {
+ [DllImport("SHLWAPI.DLL", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern HResult IUnknown_SetSite(
+ [In, MarshalAs(UnmanagedType.IUnknown)] object punk,
+ [In, MarshalAs(UnmanagedType.IUnknown)] object punkSite);
+
+
+ [DllImport("SHLWAPI.DLL", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern HResult ConnectToConnectionPoint(
+ [In, MarshalAs(UnmanagedType.IUnknown)] object punk,
+ ref Guid riidEvent,
+ [MarshalAs(UnmanagedType.Bool)] bool fConnect,
+ [In, MarshalAs(UnmanagedType.IUnknown)] object punkTarget,
+ ref uint pdwCookie,
+ ref IntPtr ppcpOut);
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMGuids.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMGuids.cs
new file mode 100644
index 0000000000..a0d6564841
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMGuids.cs
@@ -0,0 +1,25 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal static class KnownFoldersIIDGuid
+ {
+ // IID GUID strings for relevant Shell COM interfaces.
+ internal const string IKnownFolder = "3AA7AF7E-9B36-420c-A8E3-F77D4674A488";
+ internal const string IKnownFolderManager = "8BE2D872-86AA-4d47-B776-32CCA40C7018";
+ }
+
+ internal static class KnownFoldersCLSIDGuid
+ {
+ // CLSID GUID strings for relevant coclasses.
+ internal const string KnownFolderManager = "4df0c730-df9d-4ae3-9153-aa6b82e9795a";
+ }
+
+ internal static class KnownFoldersKFIDGuid
+ {
+ internal const string ComputerFolder = "0AC0837C-BBF8-452A-850D-79D08E667CA7";
+ internal const string Favorites = "1777F761-68AD-4D8A-87BD-30B759FA33DD";
+ internal const string Documents = "FDD39AD0-238F-46AF-ADB4-6C85480369C7";
+ internal const string Profile = "5E6C858F-0E22-4760-9AFE-EA3317B67173";
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMInterfaces.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMInterfaces.cs
new file mode 100644
index 0000000000..04c9fef9d7
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersCOMInterfaces.cs
@@ -0,0 +1,185 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ // Disable warning if a method declaration hides another inherited from a parent COM interface
+ // To successfully import a COM interface, all inherited methods need to be declared again with
+ // the exception of those already declared in "IUnknown"
+#pragma warning disable 0108
+
+ [ComImport,
+ Guid(KnownFoldersIIDGuid.IKnownFolder),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IKnownFolderNative
+ {
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ Guid GetId();
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ FolderCategory GetCategory();
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ [PreserveSig]
+ HResult GetShellItem([In] int i,
+ ref Guid interfaceGuid,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IShellItem2 shellItem);
+
+ [return: MarshalAs(UnmanagedType.LPWStr)]
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ string GetPath([In] int option);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void SetPath([In] int i, [In] string path);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void GetIDList([In] int i,
+ [Out] out IntPtr itemIdentifierListPointer);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ Guid GetFolderType();
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ RedirectionCapability GetRedirectionCapabilities();
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolderDefinition(
+ [Out, MarshalAs(UnmanagedType.Struct)] out KnownFoldersSafeNativeMethods.NativeFolderDefinition definition);
+
+ }
+
+ [ComImport,
+ Guid(KnownFoldersIIDGuid.IKnownFolderManager),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IKnownFolderManager
+ {
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void FolderIdFromCsidl(int csidl,
+ [Out] out Guid knownFolderID);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void FolderIdToCsidl([In, MarshalAs(UnmanagedType.LPStruct)] Guid id,
+ [Out] out int csidl);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolderIds([Out] out IntPtr folders,
+ [Out] out UInt32 count);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetFolder([In, MarshalAs(UnmanagedType.LPStruct)] Guid id,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IKnownFolderNative knownFolder);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void GetFolderByName(string canonicalName,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IKnownFolderNative knownFolder);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void RegisterFolder(
+ [In, MarshalAs(UnmanagedType.LPStruct)] Guid knownFolderGuid,
+ [In] ref KnownFoldersSafeNativeMethods.NativeFolderDefinition knownFolderDefinition);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void UnregisterFolder(
+ [In, MarshalAs(UnmanagedType.LPStruct)] Guid knownFolderGuid);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void FindFolderFromPath(
+ [In, MarshalAs(UnmanagedType.LPWStr)] string path,
+ [In] int mode,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IKnownFolderNative knownFolder);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ HResult FindFolderFromIDList(IntPtr pidl, [Out, MarshalAs(UnmanagedType.Interface)] out IKnownFolderNative knownFolder);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ void Redirect();
+ }
+
+ [ComImport]
+ [Guid("4df0c730-df9d-4ae3-9153-aa6b82e9795a")]
+ internal class KnownFolderManagerClass : IKnownFolderManager
+ {
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void FolderIdFromCsidl(int csidl,
+ [Out] out Guid knownFolderID);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void FolderIdToCsidl(
+ [In, MarshalAs(UnmanagedType.LPStruct)] Guid id,
+ [Out] out int csidl);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void GetFolderIds(
+ [Out] out IntPtr folders,
+ [Out] out UInt32 count);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern HResult GetFolder(
+ [In, MarshalAs(UnmanagedType.LPStruct)] Guid id,
+ [Out, MarshalAs(UnmanagedType.Interface)]
+ out IKnownFolderNative knownFolder);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void GetFolderByName(
+ string canonicalName,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IKnownFolderNative knownFolder);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void RegisterFolder(
+ [In, MarshalAs(UnmanagedType.LPStruct)] Guid knownFolderGuid,
+ [In] ref KnownFoldersSafeNativeMethods.NativeFolderDefinition knownFolderDefinition);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void UnregisterFolder(
+ [In, MarshalAs(UnmanagedType.LPStruct)] Guid knownFolderGuid);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void FindFolderFromPath(
+ [In, MarshalAs(UnmanagedType.LPWStr)] string path,
+ [In] int mode,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IKnownFolderNative knownFolder);
+
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern HResult FindFolderFromIDList(IntPtr pidl, [Out, MarshalAs(UnmanagedType.Interface)] out IKnownFolderNative knownFolder);
+
+ [MethodImpl(MethodImplOptions.InternalCall,
+ MethodCodeType = MethodCodeType.Runtime)]
+ public virtual extern void Redirect();
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersNativeMethods.cs
new file mode 100644
index 0000000000..a63a55747f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/KnownFolders/KnownFoldersNativeMethods.cs
@@ -0,0 +1,43 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Security;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Internal class that contains interop declarations for
+ /// functions that are considered benign but that
+ /// are performance critical.
+ /// </summary>
+ /// <remarks>
+ /// Functions that are benign but not performance critical
+ /// should be located in the NativeMethods class.
+ /// </remarks>
+ [SuppressUnmanagedCodeSecurity]
+ internal static class KnownFoldersSafeNativeMethods
+ {
+ #region KnownFolders
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct NativeFolderDefinition
+ {
+ internal FolderCategory category;
+ internal IntPtr name;
+ internal IntPtr description;
+ internal Guid parentId;
+ internal IntPtr relativePath;
+ internal IntPtr parsingName;
+ internal IntPtr tooltip;
+ internal IntPtr localizedName;
+ internal IntPtr icon;
+ internal IntPtr security;
+ internal UInt32 attributes;
+ internal DefinitionOptions definitionOptions;
+ internal Guid folderTypeId;
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemCOMInterfaces.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemCOMInterfaces.cs
new file mode 100644
index 0000000000..14d84f78e6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemCOMInterfaces.cs
@@ -0,0 +1,345 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ // Disable warning if a method declaration hides another inherited from a parent COM interface
+ // To successfully import a COM interface, all inherited methods need to be declared again with
+ // the exception of those already declared in "IUnknown"
+#pragma warning disable 108
+
+ #region Property System COM Interfaces
+
+ [ComImport]
+ [Guid(ShellIIDGuid.IPropertyStoreCapabilities)]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ interface IPropertyStoreCapabilities
+ {
+ HResult IsPropertyWritable([In]ref PropertyKey propertyKey);
+ }
+
+ /// <summary>
+ /// An in-memory property store cache
+ /// </summary>
+ [ComImport]
+ [Guid(ShellIIDGuid.IPropertyStoreCache)]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ interface IPropertyStoreCache
+ {
+ /// <summary>
+ /// Gets the state of a property stored in the cache
+ /// </summary>
+ /// <param name="key"></param>
+ /// <param name="state"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetState(ref PropertyKey key, [Out] out PropertyStoreCacheState state);
+
+ /// <summary>
+ /// Gets the valeu and state of a property in the cache
+ /// </summary>
+ /// <param name="propKey"></param>
+ /// <param name="pv"></param>
+ /// <param name="state"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetValueAndState(ref PropertyKey propKey, [Out] PropVariant pv, [Out] out PropertyStoreCacheState state);
+
+ /// <summary>
+ /// Sets the state of a property in the cache.
+ /// </summary>
+ /// <param name="propKey"></param>
+ /// <param name="state"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult SetState(ref PropertyKey propKey, PropertyStoreCacheState state);
+
+ /// <summary>
+ /// Sets the value and state in the cache.
+ /// </summary>
+ /// <param name="propKey"></param>
+ /// <param name="pv"></param>
+ /// <param name="state"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult SetValueAndState(ref PropertyKey propKey, [In] PropVariant pv, PropertyStoreCacheState state);
+ }
+
+ /// <summary>
+ /// A property store
+ /// </summary>
+ [ComImport]
+ [Guid(ShellIIDGuid.IPropertyStore)]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ interface IPropertyStore
+ {
+ /// <summary>
+ /// Gets the number of properties contained in the property store.
+ /// </summary>
+ /// <param name="propertyCount"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetCount([Out] out uint propertyCount);
+
+ /// <summary>
+ /// Get a property key located at a specific index.
+ /// </summary>
+ /// <param name="propertyIndex"></param>
+ /// <param name="key"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetAt([In] uint propertyIndex, out PropertyKey key);
+
+ /// <summary>
+ /// Gets the value of a property from the store
+ /// </summary>
+ /// <param name="key"></param>
+ /// <param name="pv"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetValue([In] ref PropertyKey key, [Out] PropVariant pv);
+
+ /// <summary>
+ /// Sets the value of a property in the store
+ /// </summary>
+ /// <param name="key"></param>
+ /// <param name="pv"></param>
+ /// <returns></returns>
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), PreserveSig]
+ HResult SetValue([In] ref PropertyKey key, [In] PropVariant pv);
+
+ /// <summary>
+ /// Commits the changes.
+ /// </summary>
+ /// <returns></returns>
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult Commit();
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IPropertyDescriptionList),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IPropertyDescriptionList
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCount(out uint pcElem);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAt([In] uint iElem, [In] ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out IPropertyDescription ppv);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IPropertyDescription),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IPropertyDescription
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetPropertyKey(out PropertyKey pkey);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCanonicalName([MarshalAs(UnmanagedType.LPWStr)] out string ppszName);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetPropertyType(out VarEnum pvartype);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime),
+ PreserveSig]
+ HResult GetDisplayName(out IntPtr ppszName);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetEditInvitation(out IntPtr ppszInvite);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetTypeFlags([In] PropertyTypeOptions mask, out PropertyTypeOptions ppdtFlags);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetViewFlags(out PropertyViewOptions ppdvFlags);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetDefaultColumnWidth(out uint pcxChars);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetDisplayType(out PropertyDisplayType pdisplaytype);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetColumnState(out PropertyColumnStateOptions pcsFlags);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetGroupingRange(out PropertyGroupingRange pgr);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRelativeDescriptionType(out PropertySystemNativeMethods.RelativeDescriptionType prdt);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRelativeDescription([In] PropVariant propvar1, [In] PropVariant propvar2, [MarshalAs(UnmanagedType.LPWStr)] out string ppszDesc1, [MarshalAs(UnmanagedType.LPWStr)] out string ppszDesc2);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetSortDescription(out PropertySortDescription psd);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetSortDescriptionLabel([In] bool fDescending, out IntPtr ppszDescription);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetAggregationType(out PropertyAggregationType paggtype);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetConditionType(out PropertyConditionType pcontype, out PropertyConditionOperation popDefault);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult GetEnumTypeList([In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out IPropertyEnumTypeList ppv);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void CoerceToCanonicalValue([In, Out] PropVariant propvar);
+ [PreserveSig]
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] // Note: this method signature may be wrong, but it is not used.
+ HResult FormatForDisplay([In] PropVariant propvar, [In] ref PropertyDescriptionFormatOptions pdfFlags, [MarshalAs(UnmanagedType.LPWStr)] out string ppszDisplay);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult IsValueCanonical([In] PropVariant propvar);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IPropertyDescription2),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IPropertyDescription2 : IPropertyDescription
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetPropertyKey(out PropertyKey pkey);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCanonicalName([MarshalAs(UnmanagedType.LPWStr)] out string ppszName);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetPropertyType(out VarEnum pvartype);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDisplayName([MarshalAs(UnmanagedType.LPWStr)] out string ppszName);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetEditInvitation([MarshalAs(UnmanagedType.LPWStr)] out string ppszInvite);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetTypeFlags([In] PropertyTypeOptions mask, out PropertyTypeOptions ppdtFlags);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetViewFlags(out PropertyViewOptions ppdvFlags);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDefaultColumnWidth(out uint pcxChars);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDisplayType(out PropertyDisplayType pdisplaytype);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetColumnState(out uint pcsFlags);
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetGroupingRange(out PropertyGroupingRange pgr);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRelativeDescriptionType(out PropertySystemNativeMethods.RelativeDescriptionType prdt);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRelativeDescription(
+ [In] PropVariant propvar1,
+ [In] PropVariant propvar2,
+ [MarshalAs(UnmanagedType.LPWStr)] out string ppszDesc1,
+ [MarshalAs(UnmanagedType.LPWStr)] out string ppszDesc2);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSortDescription(out PropertySortDescription psd);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetSortDescriptionLabel([In] int fDescending, [MarshalAs(UnmanagedType.LPWStr)] out string ppszDescription);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAggregationType(out PropertyAggregationType paggtype);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetConditionType(
+ out PropertyConditionType pcontype,
+ out PropertyConditionOperation popDefault);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetEnumTypeList([In] ref Guid riid, out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void CoerceToCanonicalValue([In, Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void FormatForDisplay([In] PropVariant propvar, [In] ref PropertyDescriptionFormatOptions pdfFlags, [MarshalAs(UnmanagedType.LPWStr)] out string ppszDisplay);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ HResult IsValueCanonical([In] PropVariant propvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetImageReferenceForValue(
+ [In] PropVariant propvar,
+ [Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszImageRes);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IPropertyEnumType),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IPropertyEnumType
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetEnumType([Out] out PropEnumType penumtype);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetValue([Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRangeMinValue([Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRangeSetValue([Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDisplayText([Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszDisplay);
+ }
+
+ [ComImport,
+ Guid(ShellIIDGuid.IPropertyEnumType2),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IPropertyEnumType2 : IPropertyEnumType
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetEnumType([Out] out PropEnumType penumtype);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetValue([Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRangeMinValue([Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetRangeSetValue([Out] PropVariant ppropvar);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetDisplayText([Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszDisplay);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetImageReference([Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszImageRes);
+ }
+
+
+ [ComImport,
+ Guid(ShellIIDGuid.IPropertyEnumTypeList),
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IPropertyEnumTypeList
+ {
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetCount([Out] out uint pctypes);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetAt(
+ [In] uint itype,
+ [In] ref Guid riid, // riid may be IID_IPropertyEnumType
+ [Out, MarshalAs(UnmanagedType.Interface)] out IPropertyEnumType ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void GetConditionAt(
+ [In] uint index,
+ [In] ref Guid riid,
+ out IntPtr ppv);
+
+ [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
+ void FindMatchingIndex(
+ [In] PropVariant propvarCmp,
+ [Out] out uint pnIndex);
+ }
+
+ #endregion
+
+#pragma warning restore 108
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemNativeMethods.cs
new file mode 100644
index 0000000000..12ffa7079b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/PropertySystem/PropertySystemNativeMethods.cs
@@ -0,0 +1,62 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ internal static class PropertySystemNativeMethods
+ {
+ #region Property Definitions
+
+ internal enum RelativeDescriptionType
+ {
+ General,
+ Date,
+ Size,
+ Count,
+ Revision,
+ Length,
+ Duration,
+ Speed,
+ Rate,
+ Rating,
+ Priority
+ }
+
+ #endregion
+
+ #region Property System Helpers
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int PSGetNameFromPropertyKey(
+ ref PropertyKey propkey,
+ [Out, MarshalAs(UnmanagedType.LPWStr)] out string ppszCanonicalName
+ );
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern HResult PSGetPropertyDescription(
+ ref PropertyKey propkey,
+ ref Guid riid,
+ [Out, MarshalAs(UnmanagedType.Interface)] out IPropertyDescription ppv
+ );
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int PSGetPropertyKeyFromName(
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszCanonicalName,
+ out PropertyKey propkey
+ );
+
+ [DllImport("propsys.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ internal static extern int PSGetPropertyDescriptionListFromString(
+ [In, MarshalAs(UnmanagedType.LPWStr)] string pszPropList,
+ [In] ref Guid riid,
+ out IPropertyDescriptionList ppv
+ );
+
+
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellExtensions/HandlerNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellExtensions/HandlerNativeMethods.cs
new file mode 100644
index 0000000000..7acf53182f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellExtensions/HandlerNativeMethods.cs
@@ -0,0 +1,226 @@
+using System;
+using System.Drawing;
+using System.Runtime.InteropServices;
+using System.Runtime.InteropServices.ComTypes;
+
+namespace Microsoft.WindowsAPICodePack.Shell.Interop
+{
+ internal static class HandlerNativeMethods
+ {
+ [DllImport("user32.dll")]
+ internal static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
+
+ [DllImport("user32.dll", CharSet = CharSet.Auto)]
+ internal static extern IntPtr GetFocus();
+
+ internal static readonly Guid PreviewHandlerGuid = new Guid("{8895b1c6-b41f-4c1c-a562-0d564250836f}");
+ internal static readonly Guid ThumbnailProviderGuid = new Guid("{e357fccd-a995-4576-b01f-234630154e96}");
+ }
+
+ #region Interfaces
+
+ /// <summary>
+ /// ComVisible interface for native IThumbnailProvider
+ /// </summary>
+ [ComVisible(true)]
+ [Guid("e357fccd-a995-4576-b01f-234630154e96")]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ public interface IThumbnailProvider
+ {
+ /// <summary>
+ /// Gets a pointer to a bitmap to display as a thumbnail
+ /// </summary>
+ /// <param name="squareLength"></param>
+ /// <param name="bitmapHandle"></param>
+ /// <param name="bitmapType"></param>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "2#"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "1#")]
+ void GetThumbnail(uint squareLength, out IntPtr bitmapHandle, out UInt32 bitmapType);
+ }
+
+ /// <summary>
+ /// Provides means by which to intiailze with a file.
+ /// </summary>
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid("b7d14566-0509-4cce-a71f-0a554233bd9b")]
+ public interface IInitializeWithFile
+ {
+ /// <summary>
+ /// Initializes with a file.
+ /// </summary>
+ /// <param name="filePath"></param>
+ /// <param name="fileMode"></param>
+ void Initialize([MarshalAs(UnmanagedType.LPWStr)] string filePath, AccessModes fileMode);
+ }
+
+ /// <summary>
+ /// Provides means by which to initialize with a stream.
+ /// </summary>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")]
+ [ComVisible(true)]
+ [Guid("b824b49d-22ac-4161-ac8a-9916e8fa3f7f")]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ public interface IInitializeWithStream
+ {
+ /// <summary>
+ /// Initializes with a stream.
+ /// </summary>
+ /// <param name="stream"></param>
+ /// <param name="fileMode"></param>
+ void Initialize(IStream stream, AccessModes fileMode);
+ }
+
+ /// <summary>
+ /// Provides means by which to initialize with a ShellObject
+ /// </summary>
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid("7f73be3f-fb79-493c-a6c7-7ee14e245841")]
+ public interface IInitializeWithItem
+ {
+ /// <summary>
+ /// Initializes with ShellItem
+ /// </summary>
+ /// <param name="shellItem"></param>
+ /// <param name="accessMode"></param>
+ void Initialize(IntPtr shellItem, AccessModes accessMode);
+ }
+
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid("fc4801a3-2ba9-11cf-a229-00aa003d7352")]
+ interface IObjectWithSite
+ {
+ void SetSite([In, MarshalAs(UnmanagedType.IUnknown)] object pUnkSite);
+ void GetSite(ref Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppvSite);
+ }
+
+ [ComImport]
+ [Guid("00000114-0000-0000-C000-000000000046")]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ interface IOleWindow
+ {
+ void GetWindow(out IntPtr phwnd);
+ void ContextSensitiveHelp([MarshalAs(UnmanagedType.Bool)] bool fEnterMode);
+ }
+
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid("8895b1c6-b41f-4c1c-a562-0d564250836f")]
+ interface IPreviewHandler
+ {
+ void SetWindow(IntPtr hwnd, ref RECT rect);
+ void SetRect(ref RECT rect);
+ void DoPreview();
+ void Unload();
+ void SetFocus();
+ void QueryFocus(out IntPtr phwnd);
+ [PreserveSig]
+ uint TranslateAccelerator(ref MSG pmsg);
+ }
+
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid("fec87aaf-35f9-447a-adb7-20234491401a")]
+ interface IPreviewHandlerFrame
+ {
+ void GetWindowContext(IntPtr pinfo);
+ [PreserveSig]
+ uint TranslateAccelerator(ref MSG pmsg);
+ };
+
+ [ComImport]
+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+ [Guid("8327b13c-b63f-4b24-9b8a-d010dcc3f599")]
+ interface IPreviewHandlerVisuals
+ {
+ void SetBackgroundColor(COLORREF color);
+ void SetFont(ref LogFont plf);
+ void SetTextColor(COLORREF color);
+ }
+ #endregion
+
+ #region Structs
+
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
+ internal class LogFont
+ {
+ internal int height;
+ internal int width;
+ internal int escapement;
+ internal int orientation;
+ internal int weight;
+ internal byte italic;
+ internal byte underline;
+ internal byte strikeOut;
+ internal byte charSet;
+ internal byte outPrecision;
+ internal byte clipPrecision;
+ internal byte quality;
+ internal byte pitchAndFamily;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
+ internal string lfFaceName = string.Empty;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct COLORREF
+ {
+ public uint Dword;
+ public Color Color
+ {
+ get
+ {
+ return Color.FromArgb(
+ (int)(0x000000FFU & Dword),
+ (int)(0x0000FF00U & Dword) >> 8,
+ (int)(0x00FF0000U & Dword) >> 16);
+ }
+ }
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct MSG
+ {
+ public IntPtr hwnd;
+ public int message;
+ public IntPtr wParam;
+ public IntPtr lParam;
+ public int time;
+ public int pt_x;
+ public int pt_y;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct RECT
+ {
+ public readonly int left;
+ public readonly int top;
+ public readonly int right;
+ public readonly int bottom;
+ public Rectangle ToRectangle() { return Rectangle.FromLTRB(left, top, right, bottom); }
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Thumbnail Alpha Types
+ /// </summary>
+ public enum ThumbnailAlphaType
+ {
+ /// <summary>
+ /// Let the system decide.
+ /// </summary>
+ Unknown = 0,
+
+ /// <summary>
+ /// No transparency
+ /// </summary>
+ NoAlphaChannel = 1,
+
+ /// <summary>
+ /// Has transparency
+ /// </summary>
+ HasAlphaChannel = 2,
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellObjectWatcher/ShellObjectWatcherNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellObjectWatcher/ShellObjectWatcherNativeMethods.cs
new file mode 100644
index 0000000000..bc74d737cf
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/ShellObjectWatcher/ShellObjectWatcherNativeMethods.cs
@@ -0,0 +1,198 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using MS.WindowsAPICodePack.Internal;
+using System.Runtime.InteropServices;
+using System.Runtime.InteropServices.ComTypes;
+
+namespace Microsoft.WindowsAPICodePack.Shell.Interop
+{
+
+ internal static class ShellObjectWatcherNativeMethods
+ {
+ [DllImport("Ole32.dll")]
+ public static extern HResult CreateBindCtx(
+ int reserved, // must be 0
+ [Out] out IBindCtx bindCtx);
+
+ [DllImport("User32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ public static extern uint RegisterClassEx(
+ ref WindowClassEx windowClass
+ );
+
+ [DllImport("User32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ public static extern IntPtr CreateWindowEx(
+ int extendedStyle,
+ [MarshalAs(UnmanagedType.LPWStr)]
+ string className, //string className, //optional
+ [MarshalAs(UnmanagedType.LPWStr)]
+ string windowName, //window name
+ int style,
+ int x,
+ int y,
+ int width,
+ int height,
+ IntPtr parentHandle,
+ IntPtr menuHandle,
+ IntPtr instanceHandle,
+ IntPtr additionalData);
+
+ [DllImport("User32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ public static extern bool GetMessage(
+ [Out] out Message message,
+ IntPtr windowHandle,
+ uint filterMinMessage,
+ uint filterMaxMessage);
+
+ [DllImport("User32.dll")]
+ public static extern int DefWindowProc(
+ IntPtr hwnd,
+ uint msg,
+ IntPtr wparam,
+ IntPtr lparam);
+
+ [DllImport("User32.dll")]
+ public static extern void DispatchMessage([In] ref Message message);
+
+ public delegate int WndProcDelegate(IntPtr hwnd, uint msg, IntPtr wparam, IntPtr lparam);
+ }
+
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
+ internal struct WindowClassEx
+ {
+ internal uint Size;
+ internal uint Style;
+
+ internal ShellObjectWatcherNativeMethods.WndProcDelegate WndProc;
+
+ internal int ExtraClassBytes;
+ internal int ExtraWindowBytes;
+ internal IntPtr InstanceHandle;
+ internal IntPtr IconHandle;
+ internal IntPtr CursorHandle;
+ internal IntPtr BackgroundBrushHandle;
+
+ internal string MenuName;
+ internal string ClassName;
+
+ internal IntPtr SmallIconHandle;
+ }
+
+ /// <summary>
+ /// Wraps the native Windows MSG structure.
+ /// </summary>
+ public struct Message
+ {
+ private IntPtr windowHandle;
+ private uint msg;
+ private IntPtr wparam;
+ private IntPtr lparam;
+ private int time;
+ private NativePoint point;
+
+ /// <summary>
+ /// Gets the window handle
+ /// </summary>
+ public IntPtr WindowHandle { get { return windowHandle; } }
+
+ /// <summary>
+ /// Gets the window message
+ /// </summary>
+ public uint Msg { get { return msg; } }
+
+ /// <summary>
+ /// Gets the WParam
+ /// </summary>
+ public IntPtr WParam { get { return wparam; } }
+
+ /// <summary>
+ /// Gets the LParam
+ /// </summary>
+ public IntPtr LParam { get { return lparam; } }
+
+ /// <summary>
+ /// Gets the time
+ /// </summary>
+ public int Time { get { return time; } }
+
+ /// <summary>
+ /// Gets the point
+ /// </summary>
+ public NativePoint Point { get { return point; } }
+
+ /// <summary>
+ /// Creates a new instance of the Message struct
+ /// </summary>
+ /// <param name="windowHandle">Window handle</param>
+ /// <param name="msg">Message</param>
+ /// <param name="wparam">WParam</param>
+ /// <param name="lparam">LParam</param>
+ /// <param name="time">Time</param>
+ /// <param name="point">Point</param>
+ internal Message(IntPtr windowHandle, uint msg, IntPtr wparam, IntPtr lparam, int time, NativePoint point)
+ : this()
+ {
+ this.windowHandle = windowHandle;
+ this.msg = msg;
+ this.wparam = wparam;
+ this.lparam = lparam;
+ this.time = time;
+ this.point = point;
+ }
+
+ /// <summary>
+ /// Determines if two messages are equal.
+ /// </summary>
+ /// <param name="first">First message</param>
+ /// <param name="second">Second message</param>
+ /// <returns>True if first and second message are equal; false otherwise.</returns>
+ public static bool operator ==(Message first, Message second)
+ {
+ return first.WindowHandle == second.WindowHandle
+ && first.Msg == second.Msg
+ && first.WParam == second.WParam
+ && first.LParam == second.LParam
+ && first.Time == second.Time
+ && first.Point == second.Point;
+ }
+
+ /// <summary>
+ /// Determines if two messages are not equal.
+ /// </summary>
+ /// <param name="first">First message</param>
+ /// <param name="second">Second message</param>
+ /// <returns>True if first and second message are not equal; false otherwise.</returns>
+ public static bool operator !=(Message first, Message second)
+ {
+ return !(first == second);
+ }
+
+ /// <summary>
+ /// Determines if this message is equal to another.
+ /// </summary>
+ /// <param name="obj">Another message</param>
+ /// <returns>True if this message is equal argument; false otherwise.</returns>
+ public override bool Equals(object obj)
+ {
+ return (obj != null && obj is Message) ? this == (Message)obj : false;
+ }
+
+ /// <summary>
+ /// Gets a hash code for the message.
+ /// </summary>
+ /// <returns>Hash code for this message.</returns>
+ public override int GetHashCode()
+ {
+ int hash = WindowHandle.GetHashCode();
+ hash = hash * 31 + Msg.GetHashCode();
+ hash = hash * 31 + WParam.GetHashCode();
+ hash = hash * 31 + LParam.GetHashCode();
+ hash = hash * 31 + Time.GetHashCode();
+ hash = hash * 31 + Point.GetHashCode();
+ return hash;
+ }
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/StockIcons/StockIconsNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/StockIcons/StockIconsNativeMethods.cs
new file mode 100644
index 0000000000..0ffd3361f6
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/StockIcons/StockIconsNativeMethods.cs
@@ -0,0 +1,83 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal static class StockIconsNativeMethods
+ {
+ #region StockIcon declarations
+
+ /// <summary>
+ /// Specifies options for the appearance of the
+ /// stock icon.
+ /// </summary>
+ [Flags]
+ internal enum StockIconOptions
+ {
+ /// <summary>
+ /// Retrieve the small version of the icon, as specified by
+ /// SM_CXICON and SM_CYICON system metrics.
+ /// </summary>
+ Large = 0x000000000,
+
+ /// <summary>
+ /// Retrieve the small version of the icon, as specified by
+ /// SM_CXSMICON and SM_CYSMICON system metrics.
+ /// </summary>
+ Small = 0x000000001,
+
+ /// <summary>
+ /// Retrieve the shell-sized icons (instead of the
+ /// size specified by the system metrics).
+ /// </summary>
+ ShellSize = 0x000000004,
+
+ /// <summary>
+ /// Specified that the hIcon member of the SHSTOCKICONINFO
+ /// structure receives a handle to the specified icon.
+ /// </summary>
+ Handle = 0x000000100,
+
+ /// <summary>
+ /// Specifies that the iSysImageImage member of the SHSTOCKICONINFO
+ /// structure receives the index of the specified
+ /// icon in the system imagelist.
+ /// </summary>
+ SystemIndex = 0x000004000,
+
+ /// <summary>
+ /// Adds the link overlay to the icon.
+ /// </summary>
+ LinkOverlay = 0x000008000,
+
+ ///<summary>
+ /// Adds the system highlight color to the icon.
+ /// </summary>
+ Selected = 0x000010000
+ }
+
+ [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
+ internal struct StockIconInfo
+ {
+ internal UInt32 StuctureSize;
+ internal IntPtr Handle;
+ internal Int32 ImageIndex;
+ internal Int32 Identifier;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
+ internal string Path;
+ }
+
+ [PreserveSig]
+ [DllImport("Shell32.dll", CharSet = CharSet.Unicode,
+ ExactSpelling = true, SetLastError = false)]
+ internal static extern HResult SHGetStockIconInfo(
+ StockIconIdentifier identifier,
+ StockIconOptions flags,
+ ref StockIconInfo info);
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TabbedThumbnailNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TabbedThumbnailNativeMethods.cs
new file mode 100644
index 0000000000..9c10ad4208
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TabbedThumbnailNativeMethods.cs
@@ -0,0 +1,210 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ internal static class TabbedThumbnailNativeMethods
+ {
+ internal const int DisplayFrame = 0x00000001;
+
+ internal const int ForceIconicRepresentation = 7;
+ internal const int HasIconicBitmap = 10;
+
+ internal const uint WmDwmSendIconicThumbnail = 0x0323;
+ internal const uint WmDwmSendIconicLivePreviewBitmap = 0x0326;
+
+ internal const uint WaActive = 1;
+ internal const uint WaClickActive = 2;
+
+ internal const int ScClose = 0xF060;
+ internal const int ScMaximize = 0xF030;
+ internal const int ScMinimize = 0xF020;
+
+ internal const uint MsgfltAdd = 1;
+ internal const uint MsgfltRemove = 2;
+
+ [DllImport("dwmapi.dll")]
+ internal static extern int DwmSetIconicThumbnail(
+ IntPtr hwnd, IntPtr hbitmap, uint flags);
+
+ [DllImport("dwmapi.dll")]
+ internal static extern int DwmInvalidateIconicBitmaps(IntPtr hwnd);
+
+ [DllImport("dwmapi.dll")]
+ internal static extern int DwmSetIconicLivePreviewBitmap(
+ IntPtr hwnd,
+ IntPtr hbitmap,
+ ref NativePoint ptClient,
+ uint flags);
+
+ [DllImport("dwmapi.dll")]
+ internal static extern int DwmSetIconicLivePreviewBitmap(
+ IntPtr hwnd, IntPtr hbitmap, IntPtr ptClient, uint flags);
+
+ [DllImport("dwmapi.dll", PreserveSig = true)]
+ internal static extern int DwmSetWindowAttribute(
+ IntPtr hwnd,
+ //DWMWA_* values.
+ uint dwAttributeToSet,
+ IntPtr pvAttributeValue,
+ uint cbAttribute);
+
+ [DllImport("user32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool GetWindowRect(IntPtr hwnd, ref NativeRect rect);
+
+ [DllImport("user32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool GetClientRect(IntPtr hwnd, ref NativeRect rect);
+
+ internal static bool GetClientSize(IntPtr hwnd, out System.Drawing.Size size)
+ {
+ NativeRect rect = new NativeRect();
+ if (!GetClientRect(hwnd, ref rect))
+ {
+ size = new System.Drawing.Size(-1, -1);
+ return false;
+ }
+ size = new System.Drawing.Size(rect.Right, rect.Bottom);
+ return true;
+ }
+
+ [DllImport("user32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool ClientToScreen(
+ IntPtr hwnd,
+ ref NativePoint point);
+
+
+ [DllImport("gdi32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ internal static extern bool StretchBlt(
+ IntPtr hDestDC, int destX, int destY, int destWidth, int destHeight,
+ IntPtr hSrcDC, int srcX, int srcY, int srcWidth, int srcHeight,
+ uint operation);
+
+ [DllImport("user32.dll")]
+ internal static extern IntPtr GetWindowDC(IntPtr hwnd);
+
+ [DllImport("user32.dll")]
+ internal static extern int ReleaseDC(IntPtr hwnd, IntPtr hdc);
+
+ [DllImport("user32.dll", SetLastError = true)]
+ internal static extern IntPtr ChangeWindowMessageFilter(uint message, uint dwFlag);
+
+ /// <summary>
+ /// Sets the specified iconic thumbnail for the specified window.
+ /// This is typically done in response to a DWM message.
+ /// </summary>
+ /// <param name="hwnd">The window handle.</param>
+ /// <param name="hBitmap">The thumbnail bitmap.</param>
+ internal static void SetIconicThumbnail(IntPtr hwnd, IntPtr hBitmap)
+ {
+ int rc = DwmSetIconicThumbnail(
+ hwnd,
+ hBitmap,
+ DisplayFrame);
+ if (rc != 0)
+ {
+ throw Marshal.GetExceptionForHR(rc);
+ }
+ }
+
+ /// <summary>
+ /// Sets the specified peek (live preview) bitmap for the specified
+ /// window. This is typically done in response to a DWM message.
+ /// </summary>
+ /// <param name="hwnd">The window handle.</param>
+ /// <param name="bitmap">The thumbnail bitmap.</param>
+ /// <param name="displayFrame">Whether to display a standard window
+ /// frame around the bitmap.</param>
+ internal static void SetPeekBitmap(IntPtr hwnd, IntPtr bitmap, bool displayFrame)
+ {
+ int rc = DwmSetIconicLivePreviewBitmap(
+ hwnd,
+ bitmap,
+ IntPtr.Zero,
+ displayFrame ? DisplayFrame : (uint)0);
+ if (rc != 0)
+ {
+ throw Marshal.GetExceptionForHR(rc);
+ }
+ }
+
+ /// <summary>
+ /// Sets the specified peek (live preview) bitmap for the specified
+ /// window. This is typically done in response to a DWM message.
+ /// </summary>
+ /// <param name="hwnd">The window handle.</param>
+ /// <param name="bitmap">The thumbnail bitmap.</param>
+ /// <param name="offset">The client area offset at which to display
+ /// the specified bitmap. The rest of the parent window will be
+ /// displayed as "remembered" by the DWM.</param>
+ /// <param name="displayFrame">Whether to display a standard window
+ /// frame around the bitmap.</param>
+ internal static void SetPeekBitmap(IntPtr hwnd, IntPtr bitmap, System.Drawing.Point offset, bool displayFrame)
+ {
+ var nativePoint = new NativePoint(offset.X, offset.Y);
+ int rc = DwmSetIconicLivePreviewBitmap(
+ hwnd,
+ bitmap,
+ ref nativePoint,
+ displayFrame ? DisplayFrame : (uint)0);
+
+ if (rc != 0)
+ {
+ Exception e = Marshal.GetExceptionForHR(rc);
+
+ if (e is ArgumentException)
+ {
+ // Ignore argument exception as it's not really recommended to be throwing
+ // exception when rendering the peek bitmap. If it's some other kind of exception,
+ // then throw it.
+ }
+ else
+ {
+ throw e;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Call this method to either enable custom previews on the taskbar (second argument as true)
+ /// or to disable (second argument as false). If called with True, the method will call DwmSetWindowAttribute
+ /// for the specific window handle and let DWM know that we will be providing a custom bitmap for the thumbnail
+ /// as well as Aero peek.
+ /// </summary>
+ /// <param name="hwnd"></param>
+ /// <param name="enable"></param>
+ internal static void EnableCustomWindowPreview(IntPtr hwnd, bool enable)
+ {
+ IntPtr t = Marshal.AllocHGlobal(4);
+ Marshal.WriteInt32(t, enable ? 1 : 0);
+
+ try
+ {
+ int rc = DwmSetWindowAttribute(hwnd, HasIconicBitmap, t, 4);
+ if (rc != 0)
+ {
+ throw Marshal.GetExceptionForHR(rc);
+ }
+
+ rc = DwmSetWindowAttribute(hwnd, ForceIconicRepresentation, t, 4);
+ if (rc != 0)
+ {
+ throw Marshal.GetExceptionForHR(rc);
+ }
+ }
+ finally
+ {
+ Marshal.FreeHGlobal(t);
+ }
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarCOMInterfaces.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarCOMInterfaces.cs
new file mode 100644
index 0000000000..96ef577417
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarCOMInterfaces.cs
@@ -0,0 +1,154 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ [ComImportAttribute()]
+ [GuidAttribute("6332DEBF-87B5-4670-90C0-5E57B408A49E")]
+ [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface ICustomDestinationList
+ {
+ void SetAppID(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszAppID);
+ [PreserveSig]
+ HResult BeginList(
+ out uint cMaxSlots,
+ ref Guid riid,
+ [Out(), MarshalAs(UnmanagedType.Interface)] out object ppvObject);
+ [PreserveSig]
+ HResult AppendCategory(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszCategory,
+ [MarshalAs(UnmanagedType.Interface)] IObjectArray poa);
+ void AppendKnownCategory(
+ [MarshalAs(UnmanagedType.I4)] KnownDestinationCategory category);
+ [PreserveSig]
+ HResult AddUserTasks(
+ [MarshalAs(UnmanagedType.Interface)] IObjectArray poa);
+ void CommitList();
+ void GetRemovedDestinations(
+ ref Guid riid,
+ [Out(), MarshalAs(UnmanagedType.Interface)] out object ppvObject);
+ void DeleteList(
+ [MarshalAs(UnmanagedType.LPWStr)] string pszAppID);
+ void AbortList();
+ }
+
+ [GuidAttribute("77F10CF0-3DB5-4966-B520-B7C54FD35ED6")]
+ [ClassInterfaceAttribute(ClassInterfaceType.None)]
+ [ComImportAttribute()]
+ internal class CDestinationList { }
+
+ [ComImportAttribute()]
+ [GuidAttribute("92CA9DCD-5622-4BBA-A805-5E9F541BD8C9")]
+ [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IObjectArray
+ {
+ void GetCount(out uint cObjects);
+ void GetAt(
+ uint iIndex,
+ ref Guid riid,
+ [Out(), MarshalAs(UnmanagedType.Interface)] out object ppvObject);
+ }
+
+ [ComImportAttribute()]
+ [GuidAttribute("5632B1A4-E38A-400A-928A-D4CD63230295")]
+ [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface IObjectCollection
+ {
+ // IObjectArray
+ [PreserveSig]
+ void GetCount(out uint cObjects);
+ [PreserveSig]
+ void GetAt(
+ uint iIndex,
+ ref Guid riid,
+ [Out(), MarshalAs(UnmanagedType.Interface)] out object ppvObject);
+
+ // IObjectCollection
+ void AddObject(
+ [MarshalAs(UnmanagedType.Interface)] object pvObject);
+ void AddFromArray(
+ [MarshalAs(UnmanagedType.Interface)] IObjectArray poaSource);
+ void RemoveObject(uint uiIndex);
+ void Clear();
+ }
+
+ [GuidAttribute("2D3468C1-36A7-43B6-AC24-D3F02FD9607A")]
+ [ClassInterfaceAttribute(ClassInterfaceType.None)]
+ [ComImportAttribute()]
+ internal class CEnumerableObjectCollection { }
+
+ [ComImportAttribute()]
+ [GuidAttribute("c43dc798-95d1-4bea-9030-bb99e2983a1a")]
+ [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
+ internal interface ITaskbarList4
+ {
+ // ITaskbarList
+ [PreserveSig]
+ void HrInit();
+ [PreserveSig]
+ void AddTab(IntPtr hwnd);
+ [PreserveSig]
+ void DeleteTab(IntPtr hwnd);
+ [PreserveSig]
+ void ActivateTab(IntPtr hwnd);
+ [PreserveSig]
+ void SetActiveAlt(IntPtr hwnd);
+
+ // ITaskbarList2
+ [PreserveSig]
+ void MarkFullscreenWindow(
+ IntPtr hwnd,
+ [MarshalAs(UnmanagedType.Bool)] bool fFullscreen);
+
+ // ITaskbarList3
+ [PreserveSig]
+ void SetProgressValue(IntPtr hwnd, UInt64 ullCompleted, UInt64 ullTotal);
+ [PreserveSig]
+ void SetProgressState(IntPtr hwnd, TaskbarProgressBarStatus tbpFlags);
+ [PreserveSig]
+ void RegisterTab(IntPtr hwndTab, IntPtr hwndMDI);
+ [PreserveSig]
+ void UnregisterTab(IntPtr hwndTab);
+ [PreserveSig]
+ void SetTabOrder(IntPtr hwndTab, IntPtr hwndInsertBefore);
+ [PreserveSig]
+ void SetTabActive(IntPtr hwndTab, IntPtr hwndInsertBefore, uint dwReserved);
+ [PreserveSig]
+ HResult ThumbBarAddButtons(
+ IntPtr hwnd,
+ uint cButtons,
+ [MarshalAs(UnmanagedType.LPArray)] ThumbButton[] pButtons);
+ [PreserveSig]
+ HResult ThumbBarUpdateButtons(
+ IntPtr hwnd,
+ uint cButtons,
+ [MarshalAs(UnmanagedType.LPArray)] ThumbButton[] pButtons);
+ [PreserveSig]
+ void ThumbBarSetImageList(IntPtr hwnd, IntPtr himl);
+ [PreserveSig]
+ void SetOverlayIcon(
+ IntPtr hwnd,
+ IntPtr hIcon,
+ [MarshalAs(UnmanagedType.LPWStr)] string pszDescription);
+ [PreserveSig]
+ void SetThumbnailTooltip(
+ IntPtr hwnd,
+ [MarshalAs(UnmanagedType.LPWStr)] string pszTip);
+ [PreserveSig]
+ void SetThumbnailClip(
+ IntPtr hwnd,
+ IntPtr prcClip);
+
+ // ITaskbarList4
+ void SetTabProperties(IntPtr hwndTab, SetTabPropertiesOption stpFlags);
+ }
+
+ [GuidAttribute("56FDF344-FD6D-11d0-958A-006097C9A090")]
+ [ClassInterfaceAttribute(ClassInterfaceType.None)]
+ [ComImportAttribute()]
+ internal class CTaskbarList { }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarNativeMethods.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarNativeMethods.cs
new file mode 100644
index 0000000000..b5ae1251e8
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Interop/Taskbar/TaskbarNativeMethods.cs
@@ -0,0 +1,210 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ #region Enums
+ internal enum KnownDestinationCategory
+ {
+ Frequent = 1,
+ Recent
+ }
+
+ internal enum ShellAddToRecentDocs
+ {
+ Pidl = 0x1,
+ PathA = 0x2,
+ PathW = 0x3,
+ AppIdInfo = 0x4, // indicates the data type is a pointer to a SHARDAPPIDINFO structure
+ AppIdInfoIdList = 0x5, // indicates the data type is a pointer to a SHARDAPPIDINFOIDLIST structure
+ Link = 0x6, // indicates the data type is a pointer to an IShellLink instance
+ AppIdInfoLink = 0x7, // indicates the data type is a pointer to a SHARDAPPIDINFOLINK structure
+ }
+
+ internal enum TaskbarProgressBarStatus
+ {
+ NoProgress = 0,
+ Indeterminate = 0x1,
+ Normal = 0x2,
+ Error = 0x4,
+ Paused = 0x8
+ }
+
+ internal enum TaskbarActiveTabSetting
+ {
+ UseMdiThumbnail = 0x1,
+ UseMdiLivePreview = 0x2
+ }
+
+ internal enum ThumbButtonMask
+ {
+ Bitmap = 0x1,
+ Icon = 0x2,
+ Tooltip = 0x4,
+ THB_FLAGS = 0x8
+ }
+
+ [Flags]
+ internal enum ThumbButtonOptions
+ {
+ Enabled = 0x00000000,
+ Disabled = 0x00000001,
+ DismissOnClick = 0x00000002,
+ NoBackground = 0x00000004,
+ Hidden = 0x00000008,
+ NonInteractive = 0x00000010
+ }
+
+ internal enum SetTabPropertiesOption
+ {
+ None = 0x0,
+ UseAppThumbnailAlways = 0x1,
+ UseAppThumbnailWhenActive = 0x2,
+ UseAppPeekAlways = 0x4,
+ UseAppPeekWhenActive = 0x8
+ }
+
+ #endregion
+
+ #region Structs
+
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
+ internal struct ThumbButton
+ {
+ /// <summary>
+ /// WPARAM value for a THUMBBUTTON being clicked.
+ /// </summary>
+ internal const int Clicked = 0x1800;
+
+ [MarshalAs(UnmanagedType.U4)]
+ internal ThumbButtonMask Mask;
+ internal uint Id;
+ internal uint Bitmap;
+ internal IntPtr Icon;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
+ internal string Tip;
+ [MarshalAs(UnmanagedType.U4)]
+ internal ThumbButtonOptions Flags;
+ }
+ #endregion;
+
+ internal static class TaskbarNativeMethods
+ {
+ internal static class TaskbarGuids
+ {
+ internal static Guid IObjectArray = new Guid("92CA9DCD-5622-4BBA-A805-5E9F541BD8C9");
+ internal static Guid IUnknown = new Guid("00000000-0000-0000-C000-000000000046");
+ }
+
+ internal const int WmCommand = 0x0111;
+
+ // Register Window Message used by Shell to notify that the corresponding taskbar button has been added to the taskbar.
+ internal static readonly uint WmTaskbarButtonCreated = RegisterWindowMessage("TaskbarButtonCreated");
+
+ internal const uint WmDwmSendIconThumbnail = 0x0323;
+ internal const uint WmDwmSendIconicLivePreviewBitmap = 0x0326;
+
+ #region Methods
+
+ [DllImport("shell32.dll")]
+ internal static extern void SetCurrentProcessExplicitAppUserModelID(
+ [MarshalAs(UnmanagedType.LPWStr)] string AppID);
+
+ [DllImport("shell32.dll")]
+ internal static extern void GetCurrentProcessExplicitAppUserModelID(
+ [Out(), MarshalAs(UnmanagedType.LPWStr)] out string AppID);
+
+ [DllImport("shell32.dll")]
+ internal static extern void SHAddToRecentDocs(
+ ShellAddToRecentDocs flags,
+ [MarshalAs(UnmanagedType.LPWStr)] string path);
+
+ internal static void SHAddToRecentDocs(string path)
+ {
+ SHAddToRecentDocs(ShellAddToRecentDocs.PathW, path);
+ }
+
+ [DllImport("user32.dll", EntryPoint = "RegisterWindowMessage", SetLastError = true, CharSet = CharSet.Unicode)]
+ internal static extern uint RegisterWindowMessage([MarshalAs(UnmanagedType.LPWStr)] string lpString);
+
+
+ [DllImport("shell32.dll")]
+ public static extern int SHGetPropertyStoreForWindow(
+ IntPtr hwnd,
+ ref Guid iid /*IID_IPropertyStore*/,
+ [Out(), MarshalAs(UnmanagedType.Interface)]out IPropertyStore propertyStore);
+
+ /// <summary>
+ /// Sets the window's application id by its window handle.
+ /// </summary>
+ /// <param name="hwnd">The window handle.</param>
+ /// <param name="appId">The application id.</param>
+ internal static void SetWindowAppId(IntPtr hwnd, string appId)
+ {
+ SetWindowProperty(hwnd, SystemProperties.System.AppUserModel.ID, appId);
+ }
+
+ internal static void SetWindowProperty(IntPtr hwnd, PropertyKey propkey, string value)
+ {
+ // Get the IPropertyStore for the given window handle
+ IPropertyStore propStore = GetWindowPropertyStore(hwnd);
+
+ // Set the value
+ using (PropVariant pv = new PropVariant(value))
+ {
+ HResult result = propStore.SetValue(ref propkey, pv);
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new ShellException(result);
+ }
+ }
+
+
+ // Dispose the IPropertyStore and PropVariant
+ Marshal.ReleaseComObject(propStore);
+ }
+
+ internal static IPropertyStore GetWindowPropertyStore(IntPtr hwnd)
+ {
+ IPropertyStore propStore;
+ Guid guid = new Guid(ShellIIDGuid.IPropertyStore);
+ int rc = SHGetPropertyStoreForWindow(
+ hwnd,
+ ref guid,
+ out propStore);
+ if (rc != 0)
+ {
+ throw Marshal.GetExceptionForHR(rc);
+ }
+ return propStore;
+ }
+
+ #endregion
+ }
+
+ /// <summary>
+ /// Thumbnail Alpha Types
+ /// </summary>
+ public enum ThumbnailAlphaType
+ {
+ /// <summary>
+ /// Let the system decide.
+ /// </summary>
+ Unknown = 0,
+
+ /// <summary>
+ /// No transparency
+ /// </summary>
+ NoAlphaChannel = 1,
+
+ /// <summary>
+ /// Has transparency
+ /// </summary>
+ HasAlphaChannel = 2,
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/DefinitionOptions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/DefinitionOptions.cs
new file mode 100644
index 0000000000..b66c1749e0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/DefinitionOptions.cs
@@ -0,0 +1,32 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Specifies behaviors for known folders.
+ /// </summary>
+ [Flags]
+ public enum DefinitionOptions
+ {
+ /// <summary>
+ /// No behaviors are defined.
+ /// </summary>
+ None = 0x0,
+ /// <summary>
+ /// Prevents a per-user known folder from being
+ /// redirected to a network location.
+ /// </summary>
+ LocalRedirectOnly = 0x2,
+
+ /// <summary>
+ /// The known folder can be roamed through PC-to-PC synchronization.
+ /// </summary>
+ Roamable = 0x4,
+
+ /// <summary>
+ /// Creates the known folder when the user first logs on.
+ /// </summary>
+ Precreate = 0x8
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FileSystemKnownFolder.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FileSystemKnownFolder.cs
new file mode 100644
index 0000000000..6f5fd0d751
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FileSystemKnownFolder.cs
@@ -0,0 +1,282 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a registered file system Known Folder
+ /// </summary>
+ public class FileSystemKnownFolder : ShellFileSystemFolder, IKnownFolder, IDisposable
+ {
+ #region Private Fields
+
+ private IKnownFolderNative knownFolderNative;
+ private KnownFolderSettings knownFolderSettings;
+
+ #endregion
+
+ #region Internal Constructors
+
+ internal FileSystemKnownFolder(IShellItem2 shellItem) : base(shellItem) { }
+
+ internal FileSystemKnownFolder(IKnownFolderNative kf)
+ {
+ Debug.Assert(kf != null);
+ knownFolderNative = kf;
+
+ // Set the native shell item
+ // and set it on the base class (ShellObject)
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+ knownFolderNative.GetShellItem(0, ref guid, out nativeShellItem);
+ }
+
+ #endregion
+
+ #region Private Members
+
+ private KnownFolderSettings KnownFolderSettings
+ {
+ get
+ {
+ if (knownFolderNative == null)
+ {
+ // We need to get the PIDL either from the NativeShellItem,
+ // or from base class's property (if someone already set it on us).
+ // Need to use the PIDL to get the native IKnownFolder interface.
+
+ // Get the PIDL for the ShellItem
+ if (nativeShellItem != null && base.PIDL == IntPtr.Zero)
+ {
+ base.PIDL = ShellHelper.PidlFromShellItem(nativeShellItem);
+ }
+
+ // If we have a valid PIDL, get the native IKnownFolder
+ if (base.PIDL != IntPtr.Zero)
+ {
+ knownFolderNative = KnownFolderHelper.FromPIDL(base.PIDL);
+ }
+
+ Debug.Assert(knownFolderNative != null);
+ }
+
+ // If this is the first time this property is being called,
+ // get the native Folder Defination (KnownFolder properties)
+ if (knownFolderSettings == null)
+ {
+ knownFolderSettings = new KnownFolderSettings(knownFolderNative);
+ }
+
+ return knownFolderSettings;
+ }
+ }
+
+ #endregion
+
+ #region IKnownFolder Members
+
+ /// <summary>
+ /// Gets the path for this known folder.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public override string Path
+ {
+ get { return KnownFolderSettings.Path; }
+ }
+
+ /// <summary>
+ /// Gets the category designation for this known folder.
+ /// </summary>
+ /// <value>A <see cref="FolderCategory"/> value.</value>
+ public FolderCategory Category
+ {
+ get { return KnownFolderSettings.Category; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's canonical name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string CanonicalName
+ {
+ get { return KnownFolderSettings.CanonicalName; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's description.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Description
+ {
+ get { return KnownFolderSettings.Description; }
+ }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's parent folder.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid ParentId
+ {
+ get { return KnownFolderSettings.ParentId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's relative path.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string RelativePath
+ {
+ get { return KnownFolderSettings.RelativePath; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's parsing name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public override string ParsingName
+ {
+ get { return base.ParsingName; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's tool tip text.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Tooltip
+ {
+ get { return KnownFolderSettings.Tooltip; }
+ }
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's tool tip text.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string TooltipResourceId
+ {
+ get { return KnownFolderSettings.TooltipResourceId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's localized name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string LocalizedName
+ {
+ get { return KnownFolderSettings.LocalizedName; }
+ }
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's localized name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string LocalizedNameResourceId
+ {
+ get { return KnownFolderSettings.LocalizedNameResourceId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's security attributes.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Security
+ {
+ get { return KnownFolderSettings.Security; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's file attributes,
+ /// such as "read-only".
+ /// </summary>
+ /// <value>A <see cref="System.IO.FileAttributes"/> value.</value>
+ public System.IO.FileAttributes FileAttributes
+ {
+ get { return KnownFolderSettings.FileAttributes; }
+ }
+
+ /// <summary>
+ /// Gets an value that describes this known folder's behaviors.
+ /// </summary>
+ /// <value>A <see cref="DefinitionOptions"/> value.</value>
+ public DefinitionOptions DefinitionOptions
+ {
+ get { return KnownFolderSettings.DefinitionOptions; }
+ }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's type.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid FolderTypeId
+ {
+ get { return KnownFolderSettings.FolderTypeId; }
+ }
+
+ /// <summary>
+ /// Gets a string representation of this known folder's type.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string FolderType
+ {
+ get { return KnownFolderSettings.FolderType; }
+ }
+ /// <summary>
+ /// Gets the unique identifier for this known folder.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid FolderId
+ {
+ get { return KnownFolderSettings.FolderId; }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether this known folder's path exists on the computer.
+ /// </summary>
+ /// <value>A bool<see cref="System.Boolean"/> value.</value>
+ /// <remarks>If this property value is <b>false</b>,
+ /// the folder might be a virtual folder (<see cref="Category"/> property will
+ /// be <see cref="FolderCategory.Virtual"/> for virtual folders)</remarks>
+ public bool PathExists
+ {
+ get { return KnownFolderSettings.PathExists; }
+ }
+
+ /// <summary>
+ /// Gets a value that states whether this known folder
+ /// can have its path set to a new value,
+ /// including any restrictions on the redirection.
+ /// </summary>
+ /// <value>A <see cref="RedirectionCapability"/> value.</value>
+ public RedirectionCapability Redirection
+ {
+ get { return KnownFolderSettings.Redirection; }
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release resources
+ /// </summary>
+ /// <param name="disposing">Indicates that this mothod is being called from Dispose() rather than the finalizer.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ knownFolderSettings = null;
+ }
+
+ if (knownFolderNative != null)
+ {
+ Marshal.ReleaseComObject(knownFolderNative);
+ knownFolderNative = null;
+ }
+
+ base.Dispose(disposing);
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderCategory.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderCategory.cs
new file mode 100644
index 0000000000..762cffa06b
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderCategory.cs
@@ -0,0 +1,45 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Specifies the categories for known folders.
+ /// </summary>
+ public enum FolderCategory
+ {
+ /// <summary>
+ /// The folder category is not specified.
+ /// </summary>
+ None = 0x00,
+ /// <summary>
+ /// The folder is a virtual folder. Virtual folders are not part
+ /// of the file system. For example, Control Panel and
+ /// Printers are virtual folders. A number of properties
+ /// such as folder path and redirection do not apply to this category.
+ /// </summary>
+ Virtual = 0x1,
+ /// <summary>
+ /// The folder is fixed. Fixed file system folders are not
+ /// managed by the Shell and are usually given a permanent
+ /// path when the system is installed. For example, the
+ /// Windows and Program Files folders are fixed folders.
+ /// A number of properties such as redirection do not apply
+ /// to this category.
+ /// </summary>
+ Fixed = 0x2,
+ /// <summary>
+ /// The folder is a common folder. Common folders are
+ /// used for sharing data and settings
+ /// accessible by all users of a system. For example,
+ /// all users share a common Documents folder as well
+ /// as their per-user Documents folder.
+ /// </summary>
+ Common = 0x3,
+ /// <summary>
+ /// Each user has their own copy of the folder. Per-user folders
+ /// are those stored under each user's profile and
+ /// accessible only by that user.
+ /// </summary>
+ PerUser = 0x4
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderProperties.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderProperties.cs
new file mode 100644
index 0000000000..aeb9ddccd9
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderProperties.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Windows.Media.Imaging;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Structure used internally to store property values for
+ /// a known folder. This structure holds the information
+ /// returned in the FOLDER_DEFINITION structure, and
+ /// resources referenced by fields in NativeFolderDefinition,
+ /// such as icon and tool tip.
+ /// </summary>
+ [StructLayout(LayoutKind.Sequential)]
+ internal struct FolderProperties
+ {
+ internal string name;
+ internal FolderCategory category;
+ internal string canonicalName;
+ internal string description;
+ internal Guid parentId;
+ internal string parent;
+ internal string relativePath;
+ internal string parsingName;
+ internal string tooltipResourceId;
+ internal string tooltip;
+ internal string localizedName;
+ internal string localizedNameResourceId;
+ internal string iconResourceId;
+ internal BitmapSource icon;
+ internal DefinitionOptions definitionOptions;
+ internal System.IO.FileAttributes fileAttributes;
+ internal Guid folderTypeId;
+ internal string folderType;
+ internal Guid folderId;
+ internal string path;
+ internal bool pathExists;
+ internal RedirectionCapability redirection;
+ internal string security;
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderTypes.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderTypes.cs
new file mode 100644
index 0000000000..a8050d6fd9
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FolderTypes.cs
@@ -0,0 +1,227 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// The FolderTypes values represent a view template applied to a folder,
+ /// usually based on its intended use and contents.
+ /// </summary>
+ internal static class FolderTypes
+ {
+ /// <summary>
+ /// No particular content type has been detected or specified. This value is not supported in Windows 7 and later systems.
+ /// </summary>
+ internal static Guid NotSpecified = new Guid(
+ 0x5c4f28b5, 0xf869, 0x4e84, 0x8e, 0x60, 0xf1, 0x1d, 0xb9, 0x7c, 0x5c, 0xc7);
+
+ /// <summary>
+ /// The folder is invalid. There are several things that can cause this judgement: hard disk errors, file system errors, and compression errors among them.
+ /// </summary>
+ internal static Guid Invalid = new Guid(
+ 0x57807898, 0x8c4f, 0x4462, 0xbb, 0x63, 0x71, 0x04, 0x23, 0x80, 0xb1, 0x09);
+
+ /// <summary>
+ /// The folder contains document files. These can be of mixed format—.doc, .txt, and others.
+ /// </summary>
+ internal static Guid Documents = new Guid(
+ 0x7d49d726, 0x3c21, 0x4f05, 0x99, 0xaa, 0xfd, 0xc2, 0xc9, 0x47, 0x46, 0x56);
+
+ /// <summary>
+ /// Image files, such as .jpg, .tif, or .png files.
+ /// </summary>
+ internal static Guid Pictures = new Guid(
+ 0xb3690e58, 0xe961, 0x423b, 0xb6, 0x87, 0x38, 0x6e, 0xbf, 0xd8, 0x32, 0x39);
+
+ /// <summary>
+ /// Windows 7 and later. The folder contains audio files, such as .mp3 and .wma files.
+ /// </summary>
+ internal static Guid Music = new Guid(
+ 0xaf9c03d6, 0x7db9, 0x4a15, 0x94, 0x64, 0x13, 0xbf, 0x9f, 0xb6, 0x9a, 0x2a);
+
+ /// <summary>
+ /// A list of music files displayed in Icons view. This value is not supported in Windows 7 and later systems.
+ /// </summary>
+ internal static Guid MusicIcons = new Guid(
+ 0x0b7467fb, 0x84ba, 0x4aae, 0xa0, 0x9b, 0x15, 0xb7, 0x10, 0x97, 0xaf, 0x9e);
+
+ /// <summary>
+ /// The folder is the Games folder found in the Start menu.
+ /// </summary>
+ internal static Guid Games = new Guid(
+ 0xb689b0d0, 0x76d3, 0x4cbb, 0x87, 0xf7, 0x58, 0x5d, 0x0e, 0x0c, 0xe0, 0x70);
+
+ /// <summary>
+ /// The Control Panel in category view. This is a virtual folder.
+ /// </summary>
+ internal static Guid ControlPanelCategory = new Guid(
+ 0xde4f0660, 0xfa10, 0x4b8f, 0xa4, 0x94, 0x06, 0x8b, 0x20, 0xb2, 0x23, 0x07);
+
+ /// <summary>
+ /// The Control Panel in classic view. This is a virtual folder.
+ /// </summary>
+ internal static Guid ControlPanelClassic = new Guid(
+ 0x0c3794f3, 0xb545, 0x43aa, 0xa3, 0x29, 0xc3, 0x74, 0x30, 0xc5, 0x8d, 0x2a);
+
+ /// <summary>
+ /// Printers that have been added to the system. This is a virtual folder.
+ /// </summary>
+ internal static Guid Printers = new Guid(
+ 0x2c7bbec6, 0xc844, 0x4a0a, 0x91, 0xfa, 0xce, 0xf6, 0xf5, 0x9c, 0xfd, 0xa1);
+
+ /// <summary>
+ /// The Recycle Bin. This is a virtual folder.
+ /// </summary>
+ internal static Guid RecycleBin = new Guid(
+ 0xd6d9e004, 0xcd87, 0x442b, 0x9d, 0x57, 0x5e, 0x0a, 0xeb, 0x4f, 0x6f, 0x72);
+
+ /// <summary>
+ /// The software explorer window used by the Add or Remove Programs control panel icon.
+ /// </summary>
+ internal static Guid SoftwareExplorer = new Guid(
+ 0xd674391b, 0x52d9, 0x4e07, 0x83, 0x4e, 0x67, 0xc9, 0x86, 0x10, 0xf3, 0x9d);
+
+ /// <summary>
+ /// The folder is a compressed archive, such as a compressed file with a .zip file name extension.
+ /// </summary>
+ internal static Guid CompressedFolder = new Guid(
+ 0x80213e82, 0xbcfd, 0x4c4f, 0x88, 0x17, 0xbb, 0x27, 0x60, 0x12, 0x67, 0xa9);
+
+ /// <summary>
+ /// An e-mail-related folder that contains contact information.
+ /// </summary>
+ internal static Guid Contacts = new Guid(
+ 0xde2b70ec, 0x9bf7, 0x4a93, 0xbd, 0x3d, 0x24, 0x3f, 0x78, 0x81, 0xd4, 0x92);
+
+ /// <summary>
+ /// A default library view without a more specific template. This value is not supported in Windows 7 and later systems.
+ /// </summary>
+ internal static Guid Library = new Guid(
+ 0x4badfc68, 0xc4ac, 0x4716, 0xa0, 0xa0, 0x4d, 0x5d, 0xaa, 0x6b, 0x0f, 0x3e);
+
+ /// <summary>
+ /// The Network Explorer folder.
+ /// </summary>
+ internal static Guid NetworkExplorer = new Guid(
+ 0x25cc242b, 0x9a7c, 0x4f51, 0x80, 0xe0, 0x7a, 0x29, 0x28, 0xfe, 0xbe, 0x42);
+
+ /// <summary>
+ /// The folder is the FOLDERID_UsersFiles folder.
+ /// </summary>
+ internal static Guid UserFiles = new Guid(
+ 0xcd0fc69b, 0x71e2, 0x46e5, 0x96, 0x90, 0x5b, 0xcd, 0x9f, 0x57, 0xaa, 0xb3);
+
+ /// <summary>
+ /// Windows 7 and later. The folder contains search results, but they are of mixed or no specific type.
+ /// </summary>
+ internal static Guid GenericSearchResults = new Guid(
+ 0x7fde1a1e, 0x8b31, 0x49a5, 0x93, 0xb8, 0x6b, 0xe1, 0x4c, 0xfa, 0x49, 0x43);
+
+ /// <summary>
+ /// Windows 7 and later. The folder is a library, but of no specified type.
+ /// </summary>
+ internal static Guid GenericLibrary = new Guid(
+ 0x5f4eab9a, 0x6833, 0x4f61, 0x89, 0x9d, 0x31, 0xcf, 0x46, 0x97, 0x9d, 0x49);
+
+ /// <summary>
+ /// Windows 7 and later. The folder contains video files. These can be of mixed format—.wmv, .mov, and others.
+ /// </summary>
+ internal static Guid Videos = new Guid(
+ 0x5fa96407, 0x7e77, 0x483c, 0xac, 0x93, 0x69, 0x1d, 0x05, 0x85, 0x0d, 0xe8);
+
+ /// <summary>
+ /// Windows 7 and later. The view shown when the user clicks the Windows Explorer button on the taskbar.
+ /// </summary>
+ internal static Guid UsersLibraries = new Guid(
+ 0xc4d98f09, 0x6124, 0x4fe0, 0x99, 0x42, 0x82, 0x64, 0x16, 0x8, 0x2d, 0xa9);
+
+ /// <summary>
+ /// Windows 7 and later. The homegroup view.
+ /// </summary>
+ internal static Guid OtherUsers = new Guid(
+ 0xb337fd00, 0x9dd5, 0x4635, 0xa6, 0xd4, 0xda, 0x33, 0xfd, 0x10, 0x2b, 0x7a);
+
+ /// <summary>
+ /// Windows 7 and later. A folder that contains communication-related files such as e-mails, calendar information, and contact information.
+ /// </summary>
+ internal static Guid Communications = new Guid(
+ 0x91475fe5, 0x586b, 0x4eba, 0x8d, 0x75, 0xd1, 0x74, 0x34, 0xb8, 0xcd, 0xf6);
+
+ /// <summary>
+ /// Windows 7 and later. The folder contains recorded television broadcasts.
+ /// </summary>
+ internal static Guid RecordedTV = new Guid(
+ 0x5557a28f, 0x5da6, 0x4f83, 0x88, 0x09, 0xc2, 0xc9, 0x8a, 0x11, 0xa6, 0xfa);
+
+ /// <summary>
+ /// Windows 7 and later. The folder contains saved game states.
+ /// </summary>
+ internal static Guid SavedGames = new Guid(
+ 0xd0363307, 0x28cb, 0x4106, 0x9f, 0x23, 0x29, 0x56, 0xe3, 0xe5, 0xe0, 0xe7);
+
+ /// <summary>
+ /// Windows 7 and later. The folder contains federated search OpenSearch results.
+ /// </summary>
+ internal static Guid OpenSearch = new Guid(
+ 0x8faf9629, 0x1980, 0x46ff, 0x80, 0x23, 0x9d, 0xce, 0xab, 0x9c, 0x3e, 0xe3);
+
+ /// <summary>
+ /// Windows 7 and later. Before you search.
+ /// </summary>
+ internal static Guid SearchConnector = new Guid(
+ 0x982725ee, 0x6f47, 0x479e, 0xb4, 0x47, 0x81, 0x2b, 0xfa, 0x7d, 0x2e, 0x8f);
+
+ /// <summary>
+ /// Windows 7 and later. A user's Searches folder, normally found at C:\Users\username\Searches.
+ /// </summary>
+ internal static Guid Searches = new Guid(
+ 0x0b0ba2e3, 0x405f, 0x415e, 0xa6, 0xee, 0xca, 0xd6, 0x25, 0x20, 0x78, 0x53);
+
+
+ static Dictionary<Guid, string> types;
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1810:InitializeReferenceTypeStaticFieldsInline")]
+ static FolderTypes()
+ {
+ types = new Dictionary<Guid, string>();
+ // Review: These Localized messages could probably be a reflected value of the field's name.
+ types.Add(NotSpecified, LocalizedMessages.FolderTypeNotSpecified);
+ types.Add(Invalid, LocalizedMessages.FolderTypeInvalid);
+ types.Add(Communications, LocalizedMessages.FolderTypeCommunications);
+ types.Add(CompressedFolder, LocalizedMessages.FolderTypeCompressedFolder);
+ types.Add(Contacts, LocalizedMessages.FolderTypeContacts);
+ types.Add(ControlPanelCategory, LocalizedMessages.FolderTypeCategory);
+ types.Add(ControlPanelClassic, LocalizedMessages.FolderTypeClassic);
+ types.Add(Documents, LocalizedMessages.FolderTypeDocuments);
+ types.Add(Games, LocalizedMessages.FolderTypeGames);
+ types.Add(GenericSearchResults, LocalizedMessages.FolderTypeSearchResults);
+ types.Add(GenericLibrary, LocalizedMessages.FolderTypeGenericLibrary);
+ types.Add(Library, LocalizedMessages.FolderTypeLibrary);
+ types.Add(Music, LocalizedMessages.FolderTypeMusic);
+ types.Add(MusicIcons, LocalizedMessages.FolderTypeMusicIcons);
+ types.Add(NetworkExplorer, LocalizedMessages.FolderTypeNetworkExplorer);
+ types.Add(OtherUsers, LocalizedMessages.FolderTypeOtherUsers);
+ types.Add(OpenSearch, LocalizedMessages.FolderTypeOpenSearch);
+ types.Add(Pictures, LocalizedMessages.FolderTypePictures);
+ types.Add(Printers, LocalizedMessages.FolderTypePrinters);
+ types.Add(RecycleBin, LocalizedMessages.FolderTypeRecycleBin);
+ types.Add(RecordedTV, LocalizedMessages.FolderTypeRecordedTV);
+ types.Add(SoftwareExplorer, LocalizedMessages.FolderTypeSoftwareExplorer);
+ types.Add(SavedGames, LocalizedMessages.FolderTypeSavedGames);
+ types.Add(SearchConnector, LocalizedMessages.FolderTypeSearchConnector);
+ types.Add(Searches, LocalizedMessages.FolderTypeSearches);
+ types.Add(UsersLibraries, LocalizedMessages.FolderTypeUserLibraries);
+ types.Add(UserFiles, LocalizedMessages.FolderTypeUserFiles);
+ types.Add(Videos, LocalizedMessages.FolderTypeVideos);
+ }
+
+ internal static string GetFolderType(Guid typeId)
+ {
+ string type;
+ return types.TryGetValue(typeId, out type) ? type : string.Empty;
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FoldersIdentifiers.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FoldersIdentifiers.cs
new file mode 100644
index 0000000000..fa40974b0c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/FoldersIdentifiers.cs
@@ -0,0 +1,592 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Reflection;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Contains the GUID identifiers for well-known folders.
+ /// </summary>
+ internal static class FolderIdentifiers
+ {
+ private static Dictionary<Guid, string> folders;
+
+ static FolderIdentifiers()
+ {
+ folders = new Dictionary<Guid, string>();
+ Type folderIDs = typeof(FolderIdentifiers);
+
+ FieldInfo[] fields = folderIDs.GetFields(BindingFlags.NonPublic | BindingFlags.Static);
+ foreach (FieldInfo f in fields)
+ {
+ // Ignore dictionary field.
+ if (f.FieldType == typeof(Guid))
+ {
+ Guid id = (Guid)f.GetValue(null);
+ string name = f.Name;
+ folders.Add(id, name);
+ }
+ }
+ }
+ /// <summary>
+ /// Returns the friendly name for a specified folder.
+ /// </summary>
+ /// <param name="folderId">The Guid identifier for a known folder.</param>
+ /// <returns>A <see cref="T:System.String"/> value.</returns>
+ internal static string NameForGuid(Guid folderId)
+ {
+ string folder;
+ if (!folders.TryGetValue(folderId, out folder))
+ {
+ throw new ArgumentException(LocalizedMessages.FolderIdsUnknownGuid, "folderId");
+ }
+ return folder;
+ }
+ /// <summary>
+ /// Returns a sorted list of name, guid pairs for
+ /// all known folders.
+ /// </summary>
+ /// <returns></returns>
+ internal static SortedList<string, Guid> GetAllFolders()
+ {
+ // Make a copy of the dictionary
+ // because the Keys and Values collections
+ // are mutable.
+ ICollection<Guid> keys = folders.Keys;
+
+ SortedList<string, Guid> slist = new SortedList<string, Guid>();
+ foreach (Guid g in keys)
+ {
+ slist.Add(folders[g], g);
+ }
+
+ return slist;
+ }
+
+ #region KnownFolder Guids
+
+ /// <summary>
+ /// Computer
+ /// </summary>
+ internal static Guid Computer = new Guid(0x0AC0837C, 0xBBF8, 0x452A, 0x85, 0x0D, 0x79, 0xD0, 0x8E, 0x66, 0x7C, 0xA7);
+
+ /// <summary>
+ /// Conflicts
+ /// </summary>
+ internal static Guid Conflict = new Guid(0x4bfefb45, 0x347d, 0x4006, 0xa5, 0xbe, 0xac, 0x0c, 0xb0, 0x56, 0x71, 0x92);
+
+ /// <summary>
+ /// Control Panel
+ /// </summary>
+ internal static Guid ControlPanel = new Guid(0x82A74AEB, 0xAEB4, 0x465C, 0xA0, 0x14, 0xD0, 0x97, 0xEE, 0x34, 0x6D, 0x63);
+
+ /// <summary>
+ /// Desktop
+ /// </summary>
+ internal static Guid Desktop = new Guid(0xB4BFCC3A, 0xDB2C, 0x424C, 0xB0, 0x29, 0x7F, 0xE9, 0x9A, 0x87, 0xC6, 0x41);
+
+ /// <summary>
+ /// Internet Explorer
+ /// </summary>
+ internal static Guid Internet = new Guid(0x4D9F7874, 0x4E0C, 0x4904, 0x96, 0x7B, 0x40, 0xB0, 0xD2, 0x0C, 0x3E, 0x4B);
+
+ /// <summary>
+ /// Network
+ /// </summary>
+ internal static Guid Network = new Guid(0xD20BEEC4, 0x5CA8, 0x4905, 0xAE, 0x3B, 0xBF, 0x25, 0x1E, 0xA0, 0x9B, 0x53);
+
+ /// <summary>
+ /// Printers
+ /// </summary>
+ internal static Guid Printers = new Guid(0x76FC4E2D, 0xD6AD, 0x4519, 0xA6, 0x63, 0x37, 0xBD, 0x56, 0x06, 0x81, 0x85);
+
+ /// <summary>
+ /// Sync Center
+ /// </summary>
+ internal static Guid SyncManager = new Guid(0x43668BF8, 0xC14E, 0x49B2, 0x97, 0xC9, 0x74, 0x77, 0x84, 0xD7, 0x84, 0xB7);
+
+ /// <summary>
+ /// Network Connections
+ /// </summary>
+ internal static Guid Connections = new Guid(0x6F0CD92B, 0x2E97, 0x45D1, 0x88, 0xFF, 0xB0, 0xD1, 0x86, 0xB8, 0xDE, 0xDD);
+
+ /// <summary>
+ /// Sync Setup
+ /// </summary>
+ internal static Guid SyncSetup = new Guid(0xf214138, 0xb1d3, 0x4a90, 0xbb, 0xa9, 0x27, 0xcb, 0xc0, 0xc5, 0x38, 0x9a);
+
+ /// <summary>
+ /// Sync Results
+ /// </summary>
+ internal static Guid SyncResults = new Guid(0x289a9a43, 0xbe44, 0x4057, 0xa4, 0x1b, 0x58, 0x7a, 0x76, 0xd7, 0xe7, 0xf9);
+
+ /// <summary>
+ /// Recycle Bin
+ /// </summary>
+ internal static Guid RecycleBin = new Guid(0xB7534046, 0x3ECB, 0x4C18, 0xBE, 0x4E, 0x64, 0xCD, 0x4C, 0xB7, 0xD6, 0xAC);
+
+ /// <summary>
+ /// Fonts
+ /// </summary>
+ internal static Guid Fonts = new Guid(0xFD228CB7, 0xAE11, 0x4AE3, 0x86, 0x4C, 0x16, 0xF3, 0x91, 0x0A, 0xB8, 0xFE);
+
+ /// <summary>
+ /// Startup
+ /// </summary>
+ internal static Guid Startup = new Guid(0xB97D20BB, 0xF46A, 0x4C97, 0xBA, 0x10, 0x5E, 0x36, 0x08, 0x43, 0x08, 0x54);
+
+ /// <summary>
+ /// Programs
+ /// </summary>
+ internal static Guid Programs = new Guid(0xA77F5D77, 0x2E2B, 0x44C3, 0xA6, 0xA2, 0xAB, 0xA6, 0x01, 0x05, 0x4A, 0x51);
+
+ /// <summary>
+ /// Start Menu
+ /// </summary>
+ internal static Guid StartMenu = new Guid(0x625B53C3, 0xAB48, 0x4EC1, 0xBA, 0x1F, 0xA1, 0xEF, 0x41, 0x46, 0xFC, 0x19);
+
+ /// <summary>
+ /// Recent Items
+ /// </summary>
+ internal static Guid Recent = new Guid(0xAE50C081, 0xEBD2, 0x438A, 0x86, 0x55, 0x8A, 0x09, 0x2E, 0x34, 0x98, 0x7A);
+
+ /// <summary>
+ /// SendTo
+ /// </summary>
+ internal static Guid SendTo = new Guid(0x8983036C, 0x27C0, 0x404B, 0x8F, 0x08, 0x10, 0x2D, 0x10, 0xDC, 0xFD, 0x74);
+
+ /// <summary>
+ /// Documents
+ /// </summary>
+ internal static Guid Documents = new Guid(0xFDD39AD0, 0x238F, 0x46AF, 0xAD, 0xB4, 0x6C, 0x85, 0x48, 0x03, 0x69, 0xC7);
+
+ /// <summary>
+ /// Favorites
+ /// </summary>
+ internal static Guid Favorites = new Guid(0x1777F761, 0x68AD, 0x4D8A, 0x87, 0xBD, 0x30, 0xB7, 0x59, 0xFA, 0x33, 0xDD);
+
+ /// <summary>
+ /// Network Shortcuts
+ /// </summary>
+ internal static Guid NetHood = new Guid(0xC5ABBF53, 0xE17F, 0x4121, 0x89, 0x00, 0x86, 0x62, 0x6F, 0xC2, 0xC9, 0x73);
+
+ /// <summary>
+ /// Printer Shortcuts
+ /// </summary>
+ internal static Guid PrintHood = new Guid(0x9274BD8D, 0xCFD1, 0x41C3, 0xB3, 0x5E, 0xB1, 0x3F, 0x55, 0xA7, 0x58, 0xF4);
+
+ /// <summary>
+ /// Templates
+ /// </summary>
+ internal static Guid Templates = new Guid(0xA63293E8, 0x664E, 0x48DB, 0xA0, 0x79, 0xDF, 0x75, 0x9E, 0x05, 0x09, 0xF7);
+
+ /// <summary>
+ /// Startup
+ /// </summary>
+ internal static Guid CommonStartup = new Guid(0x82A5EA35, 0xD9CD, 0x47C5, 0x96, 0x29, 0xE1, 0x5D, 0x2F, 0x71, 0x4E, 0x6E);
+
+ /// <summary>
+ /// Programs
+ /// </summary>
+ internal static Guid CommonPrograms = new Guid(0x0139D44E, 0x6AFE, 0x49F2, 0x86, 0x90, 0x3D, 0xAF, 0xCA, 0xE6, 0xFF, 0xB8);
+
+ /// <summary>
+ /// Start Menu
+ /// </summary>
+ internal static Guid CommonStartMenu = new Guid(0xA4115719, 0xD62E, 0x491D, 0xAA, 0x7C, 0xE7, 0x4B, 0x8B, 0xE3, 0xB0, 0x67);
+
+ /// <summary>
+ /// Public Desktop
+ /// </summary>
+ internal static Guid PublicDesktop = new Guid(0xC4AA340D, 0xF20F, 0x4863, 0xAF, 0xEF, 0xF8, 0x7E, 0xF2, 0xE6, 0xBA, 0x25);
+
+ /// <summary>
+ /// ProgramData
+ /// </summary>
+ internal static Guid ProgramData = new Guid(0x62AB5D82, 0xFDC1, 0x4DC3, 0xA9, 0xDD, 0x07, 0x0D, 0x1D, 0x49, 0x5D, 0x97);
+
+ /// <summary>
+ /// Templates
+ /// </summary>
+ internal static Guid CommonTemplates = new Guid(0xB94237E7, 0x57AC, 0x4347, 0x91, 0x51, 0xB0, 0x8C, 0x6C, 0x32, 0xD1, 0xF7);
+
+ /// <summary>
+ /// Public Documents
+ /// </summary>
+ internal static Guid PublicDocuments = new Guid(0xED4824AF, 0xDCE4, 0x45A8, 0x81, 0xE2, 0xFC, 0x79, 0x65, 0x08, 0x36, 0x34);
+
+ /// <summary>
+ /// Roaming
+ /// </summary>
+ internal static Guid RoamingAppData = new Guid(0x3EB685DB, 0x65F9, 0x4CF6, 0xA0, 0x3A, 0xE3, 0xEF, 0x65, 0x72, 0x9F, 0x3D);
+
+ /// <summary>
+ /// Local
+ /// </summary>
+ internal static Guid LocalAppData = new Guid(0xF1B32785, 0x6FBA, 0x4FCF, 0x9D, 0x55, 0x7B, 0x8E, 0x7F, 0x15, 0x70, 0x91);
+
+ /// <summary>
+ /// LocalLow
+ /// </summary>
+ internal static Guid LocalAppDataLow = new Guid(0xA520A1A4, 0x1780, 0x4FF6, 0xBD, 0x18, 0x16, 0x73, 0x43, 0xC5, 0xAF, 0x16);
+
+ /// <summary>
+ /// Temporary Internet Files
+ /// </summary>
+ internal static Guid InternetCache = new Guid(0x352481E8, 0x33BE, 0x4251, 0xBA, 0x85, 0x60, 0x07, 0xCA, 0xED, 0xCF, 0x9D);
+
+ /// <summary>
+ /// Cookies
+ /// </summary>
+ internal static Guid Cookies = new Guid(0x2B0F765D, 0xC0E9, 0x4171, 0x90, 0x8E, 0x08, 0xA6, 0x11, 0xB8, 0x4F, 0xF6);
+
+ /// <summary>
+ /// History
+ /// </summary>
+ internal static Guid History = new Guid(0xD9DC8A3B, 0xB784, 0x432E, 0xA7, 0x81, 0x5A, 0x11, 0x30, 0xA7, 0x59, 0x63);
+
+ /// <summary>
+ /// System32
+ /// </summary>
+ internal static Guid System = new Guid(0x1AC14E77, 0x02E7, 0x4E5D, 0xB7, 0x44, 0x2E, 0xB1, 0xAE, 0x51, 0x98, 0xB7);
+
+ /// <summary>
+ /// System32
+ /// </summary>
+ internal static Guid SystemX86 = new Guid(0xD65231B0, 0xB2F1, 0x4857, 0xA4, 0xCE, 0xA8, 0xE7, 0xC6, 0xEA, 0x7D, 0x27);
+
+ /// <summary>
+ /// Windows
+ /// </summary>
+ internal static Guid Windows = new Guid(0xF38BF404, 0x1D43, 0x42F2, 0x93, 0x05, 0x67, 0xDE, 0x0B, 0x28, 0xFC, 0x23);
+
+ /// <summary>
+ /// The user's username (%USERNAME%)
+ /// </summary>
+ internal static Guid Profile = new Guid(0x5E6C858F, 0x0E22, 0x4760, 0x9A, 0xFE, 0xEA, 0x33, 0x17, 0xB6, 0x71, 0x73);
+
+ /// <summary>
+ /// Pictures
+ /// </summary>
+ internal static Guid Pictures = new Guid(0x33E28130, 0x4E1E, 0x4676, 0x83, 0x5A, 0x98, 0x39, 0x5C, 0x3B, 0xC3, 0xBB);
+
+ /// <summary>
+ /// Program Files
+ /// </summary>
+ internal static Guid ProgramFilesX86 = new Guid(0x7C5A40EF, 0xA0FB, 0x4BFC, 0x87, 0x4A, 0xC0, 0xF2, 0xE0, 0xB9, 0xFA, 0x8E);
+
+ /// <summary>
+ /// Common Files
+ /// </summary>
+ internal static Guid ProgramFilesCommonX86 = new Guid(0xDE974D24, 0xD9C6, 0x4D3E, 0xBF, 0x91, 0xF4, 0x45, 0x51, 0x20, 0xB9, 0x17);
+
+ /// <summary>
+ /// Program Files
+ /// </summary>
+ internal static Guid ProgramFilesX64 = new Guid(0x6d809377, 0x6af0, 0x444b, 0x89, 0x57, 0xa3, 0x77, 0x3f, 0x02, 0x20, 0x0e);
+
+ /// <summary>
+ /// Common Files
+ /// </summary>
+ internal static Guid ProgramFilesCommonX64 = new Guid(0x6365d5a7, 0xf0d, 0x45e5, 0x87, 0xf6, 0xd, 0xa5, 0x6b, 0x6a, 0x4f, 0x7d);
+
+ /// <summary>
+ /// Program Files
+ /// </summary>
+ internal static Guid ProgramFiles = new Guid(0x905e63b6, 0xc1bf, 0x494e, 0xb2, 0x9c, 0x65, 0xb7, 0x32, 0xd3, 0xd2, 0x1a);
+
+ /// <summary>
+ /// Common Files
+ /// </summary>
+ internal static Guid ProgramFilesCommon = new Guid(0xF7F1ED05, 0x9F6D, 0x47A2, 0xAA, 0xAE, 0x29, 0xD3, 0x17, 0xC6, 0xF0, 0x66);
+
+ /// <summary>
+ /// Administrative Tools
+ /// </summary>
+ internal static Guid AdminTools = new Guid(0x724EF170, 0xA42D, 0x4FEF, 0x9F, 0x26, 0xB6, 0x0E, 0x84, 0x6F, 0xBA, 0x4F);
+
+ /// <summary>
+ /// Administrative Tools
+ /// </summary>
+ internal static Guid CommonAdminTools = new Guid(0xD0384E7D, 0xBAC3, 0x4797, 0x8F, 0x14, 0xCB, 0xA2, 0x29, 0xB3, 0x92, 0xB5);
+
+ /// <summary>
+ /// Music
+ /// </summary>
+ internal static Guid Music = new Guid(0x4BD8D571, 0x6D19, 0x48D3, 0xBE, 0x97, 0x42, 0x22, 0x20, 0x08, 0x0E, 0x43);
+
+ /// <summary>
+ /// Videos
+ /// </summary>
+ internal static Guid Videos = new Guid(0x18989B1D, 0x99B5, 0x455B, 0x84, 0x1C, 0xAB, 0x7C, 0x74, 0xE4, 0xDD, 0xFC);
+
+ /// <summary>
+ /// Public Pictures
+ /// </summary>
+ internal static Guid PublicPictures = new Guid(0xB6EBFB86, 0x6907, 0x413C, 0x9A, 0xF7, 0x4F, 0xC2, 0xAB, 0xF0, 0x7C, 0xC5);
+
+ /// <summary>
+ /// Public Music
+ /// </summary>
+ internal static Guid PublicMusic = new Guid(0x3214FAB5, 0x9757, 0x4298, 0xBB, 0x61, 0x92, 0xA9, 0xDE, 0xAA, 0x44, 0xFF);
+
+ /// <summary>
+ /// Public Videos
+ /// </summary>
+ internal static Guid PublicVideos = new Guid(0x2400183A, 0x6185, 0x49FB, 0xA2, 0xD8, 0x4A, 0x39, 0x2A, 0x60, 0x2B, 0xA3);
+
+ /// <summary>
+ /// Resources
+ /// </summary>
+ internal static Guid ResourceDir = new Guid(0x8AD10C31, 0x2ADB, 0x4296, 0xA8, 0xF7, 0xE4, 0x70, 0x12, 0x32, 0xC9, 0x72);
+
+ /// <summary>
+ /// None
+ /// </summary>
+ internal static Guid LocalizedResourcesDir = new Guid(0x2A00375E, 0x224C, 0x49DE, 0xB8, 0xD1, 0x44, 0x0D, 0xF7, 0xEF, 0x3D, 0xDC);
+
+ /// <summary>
+ /// OEM Links
+ /// </summary>
+ internal static Guid CommonOEMLinks = new Guid(0xC1BAE2D0, 0x10DF, 0x4334, 0xBE, 0xDD, 0x7A, 0xA2, 0x0B, 0x22, 0x7A, 0x9D);
+
+ /// <summary>
+ /// Temporary Burn Folder
+ /// </summary>
+ internal static Guid CDBurning = new Guid(0x9E52AB10, 0xF80D, 0x49DF, 0xAC, 0xB8, 0x43, 0x30, 0xF5, 0x68, 0x78, 0x55);
+
+ /// <summary>
+ /// Users
+ /// </summary>
+ internal static Guid UserProfiles = new Guid(0x0762D272, 0xC50A, 0x4BB0, 0xA3, 0x82, 0x69, 0x7D, 0xCD, 0x72, 0x9B, 0x80);
+
+ /// <summary>
+ /// Playlists
+ /// </summary>
+ internal static Guid Playlists = new Guid(0xDE92C1C7, 0x837F, 0x4F69, 0xA3, 0xBB, 0x86, 0xE6, 0x31, 0x20, 0x4A, 0x23);
+
+ /// <summary>
+ /// Sample Playlists
+ /// </summary>
+ internal static Guid SamplePlaylists = new Guid(0x15CA69B3, 0x30EE, 0x49C1, 0xAC, 0xE1, 0x6B, 0x5E, 0xC3, 0x72, 0xAF, 0xB5);
+
+ /// <summary>
+ /// Sample Music
+ /// </summary>
+ internal static Guid SampleMusic = new Guid(0xB250C668, 0xF57D, 0x4EE1, 0xA6, 0x3C, 0x29, 0x0E, 0xE7, 0xD1, 0xAA, 0x1F);
+
+ /// <summary>
+ /// Sample Pictures
+ /// </summary>
+ internal static Guid SamplePictures = new Guid(0xC4900540, 0x2379, 0x4C75, 0x84, 0x4B, 0x64, 0xE6, 0xFA, 0xF8, 0x71, 0x6B);
+
+ /// <summary>
+ /// Sample Videos
+ /// </summary>
+ internal static Guid SampleVideos = new Guid(0x859EAD94, 0x2E85, 0x48AD, 0xA7, 0x1A, 0x09, 0x69, 0xCB, 0x56, 0xA6, 0xCD);
+
+ /// <summary>
+ /// Slide Shows
+ /// </summary>
+ internal static Guid PhotoAlbums = new Guid(0x69D2CF90, 0xFC33, 0x4FB7, 0x9A, 0x0C, 0xEB, 0xB0, 0xF0, 0xFC, 0xB4, 0x3C);
+
+ /// <summary>
+ /// Public
+ /// </summary>
+ internal static Guid Public = new Guid(0xDFDF76A2, 0xC82A, 0x4D63, 0x90, 0x6A, 0x56, 0x44, 0xAC, 0x45, 0x73, 0x85);
+
+ /// <summary>
+ /// Programs and Features
+ /// </summary>
+ internal static Guid ChangeRemovePrograms = new Guid(0xdf7266ac, 0x9274, 0x4867, 0x8d, 0x55, 0x3b, 0xd6, 0x61, 0xde, 0x87, 0x2d);
+
+ /// <summary>
+ /// Installed Updates
+ /// </summary>
+ internal static Guid AppUpdates = new Guid(0xa305ce99, 0xf527, 0x492b, 0x8b, 0x1a, 0x7e, 0x76, 0xfa, 0x98, 0xd6, 0xe4);
+
+ /// <summary>
+ /// Get Programs
+ /// </summary>
+ internal static Guid AddNewPrograms = new Guid(0xde61d971, 0x5ebc, 0x4f02, 0xa3, 0xa9, 0x6c, 0x82, 0x89, 0x5e, 0x5c, 0x04);
+
+ /// <summary>
+ /// Downloads
+ /// </summary>
+ internal static Guid Downloads = new Guid(0x374de290, 0x123f, 0x4565, 0x91, 0x64, 0x39, 0xc4, 0x92, 0x5e, 0x46, 0x7b);
+
+ /// <summary>
+ /// Public Downloads
+ /// </summary>
+ internal static Guid PublicDownloads = new Guid(0x3d644c9b, 0x1fb8, 0x4f30, 0x9b, 0x45, 0xf6, 0x70, 0x23, 0x5f, 0x79, 0xc0);
+
+ /// <summary>
+ /// Searches
+ /// </summary>
+ internal static Guid SavedSearches = new Guid(0x7d1d3a04, 0xdebb, 0x4115, 0x95, 0xcf, 0x2f, 0x29, 0xda, 0x29, 0x20, 0xda);
+
+ /// <summary>
+ /// Quick Launch
+ /// </summary>
+ internal static Guid QuickLaunch = new Guid(0x52a4f021, 0x7b75, 0x48a9, 0x9f, 0x6b, 0x4b, 0x87, 0xa2, 0x10, 0xbc, 0x8f);
+
+ /// <summary>
+ /// Contacts
+ /// </summary>
+ internal static Guid Contacts = new Guid(0x56784854, 0xc6cb, 0x462b, 0x81, 0x69, 0x88, 0xe3, 0x50, 0xac, 0xb8, 0x82);
+
+ /// <summary>
+ /// Gadgets
+ /// </summary>
+ internal static Guid SidebarParts = new Guid(0xa75d362e, 0x50fc, 0x4fb7, 0xac, 0x2c, 0xa8, 0xbe, 0xaa, 0x31, 0x44, 0x93);
+
+ /// <summary>
+ /// Gadgets
+ /// </summary>
+ internal static Guid SidebarDefaultParts = new Guid(0x7b396e54, 0x9ec5, 0x4300, 0xbe, 0xa, 0x24, 0x82, 0xeb, 0xae, 0x1a, 0x26);
+
+ /// <summary>
+ /// Tree property value folder
+ /// </summary>
+ internal static Guid TreeProperties = new Guid(0x5b3749ad, 0xb49f, 0x49c1, 0x83, 0xeb, 0x15, 0x37, 0x0f, 0xbd, 0x48, 0x82);
+
+ /// <summary>
+ /// GameExplorer
+ /// </summary>
+ internal static Guid PublicGameTasks = new Guid(0xdebf2536, 0xe1a8, 0x4c59, 0xb6, 0xa2, 0x41, 0x45, 0x86, 0x47, 0x6a, 0xea);
+
+ /// <summary>
+ /// GameExplorer
+ /// </summary>
+ internal static Guid GameTasks = new Guid(0x54fae61, 0x4dd8, 0x4787, 0x80, 0xb6, 0x9, 0x2, 0x20, 0xc4, 0xb7, 0x0);
+
+ /// <summary>
+ /// Saved Games
+ /// </summary>
+ internal static Guid SavedGames = new Guid(0x4c5c32ff, 0xbb9d, 0x43b0, 0xb5, 0xb4, 0x2d, 0x72, 0xe5, 0x4e, 0xaa, 0xa4);
+
+ /// <summary>
+ /// Games
+ /// </summary>
+ internal static Guid Games = new Guid(0xcac52c1a, 0xb53d, 0x4edc, 0x92, 0xd7, 0x6b, 0x2e, 0x8a, 0xc1, 0x94, 0x34);
+
+ /// <summary>
+ /// Recorded TV
+ /// </summary>
+ internal static Guid RecordedTV = new Guid(0xbd85e001, 0x112e, 0x431e, 0x98, 0x3b, 0x7b, 0x15, 0xac, 0x09, 0xff, 0xf1);
+
+ /// <summary>
+ /// Microsoft Office Outlook
+ /// </summary>
+ internal static Guid SearchMapi = new Guid(0x98ec0e18, 0x2098, 0x4d44, 0x86, 0x44, 0x66, 0x97, 0x93, 0x15, 0xa2, 0x81);
+
+ /// <summary>
+ /// Offline Files
+ /// </summary>
+ internal static Guid SearchCsc = new Guid(0xee32e446, 0x31ca, 0x4aba, 0x81, 0x4f, 0xa5, 0xeb, 0xd2, 0xfd, 0x6d, 0x5e);
+
+ /// <summary>
+ /// Links
+ /// </summary>
+ internal static Guid Links = new Guid(0xbfb9d5e0, 0xc6a9, 0x404c, 0xb2, 0xb2, 0xae, 0x6d, 0xb6, 0xaf, 0x49, 0x68);
+
+ /// <summary>
+ /// The user's full name (for instance, Jean Philippe Bagel) entered when the user account was created.
+ /// </summary>
+ internal static Guid UsersFiles = new Guid(0xf3ce0f7c, 0x4901, 0x4acc, 0x86, 0x48, 0xd5, 0xd4, 0x4b, 0x04, 0xef, 0x8f);
+
+ /// <summary>
+ /// Search home
+ /// </summary>
+ internal static Guid SearchHome = new Guid(0x190337d1, 0xb8ca, 0x4121, 0xa6, 0x39, 0x6d, 0x47, 0x2d, 0x16, 0x97, 0x2a);
+
+ /// <summary>
+ /// Original Images
+ /// </summary>
+ internal static Guid OriginalImages = new Guid(0x2C36C0AA, 0x5812, 0x4b87, 0xbf, 0xd0, 0x4c, 0xd0, 0xdf, 0xb1, 0x9b, 0x39);
+
+ #endregion
+
+ #region Win7 KnownFolders Guids
+
+ /// <summary>
+ /// UserProgramFiles
+ /// </summary>
+ internal static Guid UserProgramFiles = new Guid(0x5cd7aee2, 0x2219, 0x4a67, 0xb8, 0x5d, 0x6c, 0x9c, 0xe1, 0x56, 0x60, 0xcb);
+
+ /// <summary>
+ /// UserProgramFilesCommon
+ /// </summary>
+ internal static Guid UserProgramFilesCommon = new Guid(0xbcbd3057, 0xca5c, 0x4622, 0xb4, 0x2d, 0xbc, 0x56, 0xdb, 0x0a, 0xe5, 0x16);
+
+ /// <summary>
+ /// Ringtones
+ /// </summary>
+ internal static Guid Ringtones = new Guid(0xC870044B, 0xF49E, 0x4126, 0xA9, 0xC3, 0xB5, 0x2A, 0x1F, 0xF4, 0x11, 0xE8);
+
+ /// <summary>
+ /// PublicRingtones
+ /// </summary>
+ internal static Guid PublicRingtones = new Guid(0xE555AB60, 0x153B, 0x4D17, 0x9F, 0x04, 0xA5, 0xFE, 0x99, 0xFC, 0x15, 0xEC);
+
+ /// <summary>
+ /// UsersLibraries
+ /// </summary>
+ internal static Guid UsersLibraries = new Guid(0xa302545d, 0xdeff, 0x464b, 0xab, 0xe8, 0x61, 0xc8, 0x64, 0x8d, 0x93, 0x9b);
+
+ /// <summary>
+ /// DocumentsLibrary
+ /// </summary>
+ internal static Guid DocumentsLibrary = new Guid(0x7b0db17d, 0x9cd2, 0x4a93, 0x97, 0x33, 0x46, 0xcc, 0x89, 0x02, 0x2e, 0x7c);
+
+ /// <summary>
+ /// MusicLibrary
+ /// </summary>
+ internal static Guid MusicLibrary = new Guid(0x2112ab0a, 0xc86a, 0x4ffe, 0xa3, 0x68, 0xd, 0xe9, 0x6e, 0x47, 0x1, 0x2e);
+
+ /// <summary>
+ /// PicturesLibrary
+ /// </summary>
+ internal static Guid PicturesLibrary = new Guid(0xa990ae9f, 0xa03b, 0x4e80, 0x94, 0xbc, 0x99, 0x12, 0xd7, 0x50, 0x41, 0x4);
+
+ /// <summary>
+ /// VideosLibrary
+ /// </summary>
+ internal static Guid VideosLibrary = new Guid(0x491e922f, 0x5643, 0x4af4, 0xa7, 0xeb, 0x4e, 0x7a, 0x13, 0x8d, 0x81, 0x74);
+
+ /// <summary>
+ /// RecordedTVLibrary
+ /// </summary>
+ internal static Guid RecordedTVLibrary = new Guid(0x1a6fdba2, 0xf42d, 0x4358, 0xa7, 0x98, 0xb7, 0x4d, 0x74, 0x59, 0x26, 0xc5);
+
+ /// <summary>
+ /// OtherUsers
+ /// </summary>
+ internal static Guid OtherUsers = new Guid(0x52528a6b, 0xb9e3, 0x4add, 0xb6, 0xd, 0x58, 0x8c, 0x2d, 0xba, 0x84, 0x2d);
+
+ /// <summary>
+ /// DeviceMetadataStore
+ /// </summary>
+ internal static Guid DeviceMetadataStore = new Guid(0x5ce4a5e9, 0xe4eb, 0x479d, 0xb8, 0x9f, 0x13, 0x0c, 0x02, 0x88, 0x61, 0x55);
+
+ /// <summary>
+ /// Libraries
+ /// </summary>
+ internal static Guid Libraries = new Guid(0x1b3ea5dc, 0xb587, 0x4786, 0xb4, 0xef, 0xbd, 0x1d, 0xc3, 0x32, 0xae, 0xae);
+
+ /// <summary>
+ /// UserPinned
+ /// </summary>
+ internal static Guid UserPinned = new Guid(0x9e3995ab, 0x1f9c, 0x4f13, 0xb8, 0x27, 0x48, 0xb2, 0x4b, 0x6c, 0x71, 0x74);
+
+ /// <summary>
+ /// ImplicitAppShortcuts
+ /// </summary>
+ internal static Guid ImplicitAppShortcuts = new Guid(0xbcb5256f, 0x79f6, 0x4cee, 0xb7, 0x25, 0xdc, 0x34, 0xe4, 0x2, 0xfd, 0x46);
+
+ #endregion
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/IKnownFolder.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/IKnownFolder.cs
new file mode 100644
index 0000000000..9c73084ac1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/IKnownFolder.cs
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.IO;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a registered or known folder in the system.
+ /// </summary>
+ public interface IKnownFolder : IDisposable, IEnumerable<ShellObject>
+ {
+ /// <summary>
+ /// Gets the path for this known folder.
+ /// </summary>
+ string Path { get; }
+
+ /// <summary>
+ /// Gets the category designation for this known folder.
+ /// </summary>
+ FolderCategory Category { get; }
+
+ /// <summary>
+ /// Gets this known folder's canonical name.
+ /// </summary>
+ string CanonicalName { get; }
+
+ /// <summary>
+ /// Gets this known folder's description.
+ /// </summary>
+ string Description { get; }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's parent folder.
+ /// </summary>
+ Guid ParentId { get; }
+
+ /// <summary>
+ /// Gets this known folder's relative path.
+ /// </summary>
+ string RelativePath { get; }
+
+ /// <summary>
+ /// Gets this known folder's parsing name.
+ /// </summary>
+ string ParsingName { get; }
+
+ /// <summary>
+ /// Gets this known folder's tool tip text.
+ /// </summary>
+ string Tooltip { get; }
+
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's tool tip text.
+ /// </summary>
+ string TooltipResourceId { get; }
+
+ /// <summary>
+ /// Gets this known folder's localized name.
+ /// </summary>
+ string LocalizedName { get; }
+
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's localized name.
+ /// </summary>
+ string LocalizedNameResourceId { get; }
+
+ /// <summary>
+ /// Gets this known folder's security attributes.
+ /// </summary>
+ string Security { get; }
+
+ /// <summary>
+ /// Gets this known folder's file attributes,
+ /// such as "read-only".
+ /// </summary>
+ FileAttributes FileAttributes { get; }
+
+ /// <summary>
+ /// Gets an value that describes this known folder's behaviors.
+ /// </summary>
+ DefinitionOptions DefinitionOptions { get; }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's type.
+ /// </summary>
+ Guid FolderTypeId { get; }
+
+ /// <summary>
+ /// Gets a string representation of this known folder's type.
+ /// </summary>
+ string FolderType { get; }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder.
+ /// </summary>
+ Guid FolderId { get; }
+
+ /// <summary>
+ /// Gets a value that indicates whether this known folder's path exists on the computer.
+ /// </summary>
+ /// <remarks>If this property value is <b>false</b>,
+ /// the folder might be a virtual folder (<see cref="Category"/> property will
+ /// be <see cref="FolderCategory.Virtual"/> for virtual folders)</remarks>
+ bool PathExists { get; }
+
+ /// <summary>
+ /// Gets a value that states whether this known folder
+ /// can have its path set to a new value,
+ /// including any restrictions on the redirection.
+ /// </summary>
+ RedirectionCapability Redirection { get; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderHelper.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderHelper.cs
new file mode 100644
index 0000000000..c038a7d8c3
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderHelper.cs
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Creates the helper class for known folders.
+ /// </summary>
+ public static class KnownFolderHelper
+ {
+ /// <summary>
+ /// Returns the native known folder (IKnownFolderNative) given a PID list
+ /// </summary>
+ /// <param name="pidl"></param>
+ /// <returns></returns>
+ internal static IKnownFolderNative FromPIDL(IntPtr pidl)
+ {
+ KnownFolderManagerClass knownFolderManager = new KnownFolderManagerClass();
+
+ IKnownFolderNative knownFolder;
+ HResult hr = knownFolderManager.FindFolderFromIDList(pidl, out knownFolder);
+
+ return (hr == HResult.Ok) ? knownFolder : null;
+ }
+
+ /// <summary>
+ /// Returns a known folder given a globally unique identifier.
+ /// </summary>
+ /// <param name="knownFolderId">A GUID for the requested known folder.</param>
+ /// <returns>A known folder representing the specified name.</returns>
+ /// <exception cref="System.ArgumentException">Thrown if the given Known Folder ID is invalid.</exception>
+ public static IKnownFolder FromKnownFolderId(Guid knownFolderId)
+ {
+ IKnownFolderNative knownFolderNative;
+ KnownFolderManagerClass knownFolderManager = new KnownFolderManagerClass();
+
+ HResult hr = knownFolderManager.GetFolder(knownFolderId, out knownFolderNative);
+ if (hr != HResult.Ok) { throw new ShellException(hr); }
+
+ IKnownFolder kf = GetKnownFolder(knownFolderNative);
+ if (kf == null)
+ {
+ throw new ArgumentException(LocalizedMessages.KnownFolderInvalidGuid, "knownFolderId");
+ }
+ return kf;
+ }
+
+ /// <summary>
+ /// Returns a known folder given a globally unique identifier.
+ /// </summary>
+ /// <param name="knownFolderId">A GUID for the requested known folder.</param>
+ /// <returns>A known folder representing the specified name. Returns null if Known Folder is not found or could not be created.</returns>
+ internal static IKnownFolder FromKnownFolderIdInternal(Guid knownFolderId)
+ {
+ IKnownFolderNative knownFolderNative;
+ IKnownFolderManager knownFolderManager = (IKnownFolderManager)new KnownFolderManagerClass();
+
+ HResult hr = knownFolderManager.GetFolder(knownFolderId, out knownFolderNative);
+
+ return (hr == HResult.Ok) ? GetKnownFolder(knownFolderNative) : null;
+ }
+
+ /// <summary>
+ /// Given a native KnownFolder (IKnownFolderNative), create the right type of
+ /// IKnownFolder object (FileSystemKnownFolder or NonFileSystemKnownFolder)
+ /// </summary>
+ /// <param name="knownFolderNative">Native Known Folder</param>
+ /// <returns></returns>
+ private static IKnownFolder GetKnownFolder(IKnownFolderNative knownFolderNative)
+ {
+ Debug.Assert(knownFolderNative != null, "Native IKnownFolder should not be null.");
+
+ // Get the native IShellItem2 from the native IKnownFolder
+ IShellItem2 shellItem;
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+ HResult hr = knownFolderNative.GetShellItem(0, ref guid, out shellItem);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { return null; }
+
+ bool isFileSystem = false;
+
+ // If we have a valid IShellItem, try to get the FileSystem attribute.
+ if (shellItem != null)
+ {
+ ShellNativeMethods.ShellFileGetAttributesOptions sfgao;
+ shellItem.GetAttributes(ShellNativeMethods.ShellFileGetAttributesOptions.FileSystem, out sfgao);
+
+ // Is this item a FileSystem item?
+ isFileSystem = (sfgao & ShellNativeMethods.ShellFileGetAttributesOptions.FileSystem) != 0;
+ }
+
+ // If it's FileSystem, create a FileSystemKnownFolder, else NonFileSystemKnownFolder
+ if (isFileSystem)
+ {
+ FileSystemKnownFolder kf = new FileSystemKnownFolder(knownFolderNative);
+ return kf;
+ }
+
+ NonFileSystemKnownFolder knownFsFolder = new NonFileSystemKnownFolder(knownFolderNative);
+ return knownFsFolder;
+ }
+
+ /// <summary>
+ /// Returns the known folder given its canonical name.
+ /// </summary>
+ /// <param name="canonicalName">A non-localized canonical name for the known folder, such as MyComputer.</param>
+ /// <returns>A known folder representing the specified name.</returns>
+ /// <exception cref="System.ArgumentException">Thrown if the given canonical name is invalid or if the KnownFolder could not be created.</exception>
+ public static IKnownFolder FromCanonicalName(string canonicalName)
+ {
+ IKnownFolderNative knownFolderNative;
+ IKnownFolderManager knownFolderManager = (IKnownFolderManager)new KnownFolderManagerClass();
+
+ knownFolderManager.GetFolderByName(canonicalName, out knownFolderNative);
+ IKnownFolder kf = KnownFolderHelper.GetKnownFolder(knownFolderNative);
+
+ if (kf == null)
+ {
+ throw new ArgumentException(LocalizedMessages.ShellInvalidCanonicalName, "canonicalName");
+ }
+ return kf;
+ }
+
+ /// <summary>
+ /// Returns a known folder given its shell path, such as <c>C:\users\public\documents</c> or
+ /// <c>::{645FF040-5081-101B-9F08-00AA002F954E}</c> for the Recycle Bin.
+ /// </summary>
+ /// <param name="path">The path for the requested known folder; either a physical path or a virtual path.</param>
+ /// <returns>A known folder representing the specified name.</returns>
+ public static IKnownFolder FromPath(string path)
+ {
+ return KnownFolderHelper.FromParsingName(path);
+ }
+
+ /// <summary>
+ /// Returns a known folder given its shell namespace parsing name, such as
+ /// <c>::{645FF040-5081-101B-9F08-00AA002F954E}</c> for the Recycle Bin.
+ /// </summary>
+ /// <param name="parsingName">The parsing name (or path) for the requested known folder.</param>
+ /// <returns>A known folder representing the specified name.</returns>
+ /// <exception cref="System.ArgumentException">Thrown if the given parsing name is invalid.</exception>
+ public static IKnownFolder FromParsingName(string parsingName)
+ {
+ if (parsingName == null)
+ {
+ throw new ArgumentNullException("parsingName");
+ }
+
+ IntPtr pidl = IntPtr.Zero;
+ IntPtr pidl2 = IntPtr.Zero;
+
+ try
+ {
+ pidl = ShellHelper.PidlFromParsingName(parsingName);
+
+ if (pidl == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.KnownFolderParsingName, "parsingName");
+ }
+
+ // It's probably a special folder, try to get it
+ IKnownFolderNative knownFolderNative = KnownFolderHelper.FromPIDL(pidl);
+ if (knownFolderNative != null)
+ {
+ IKnownFolder kf = KnownFolderHelper.GetKnownFolder(knownFolderNative);
+ if (kf == null)
+ {
+ throw new ArgumentException(LocalizedMessages.KnownFolderParsingName, "parsingName");
+ }
+ return kf;
+ }
+
+ // No physical storage was found for this known folder
+ // We'll try again with a different name
+
+ // try one more time with a trailing \0
+ pidl2 = ShellHelper.PidlFromParsingName(parsingName.PadRight(1, '\0'));
+
+ if (pidl2 == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.KnownFolderParsingName, "parsingName");
+ }
+
+ IKnownFolder kf2 = KnownFolderHelper.GetKnownFolder(KnownFolderHelper.FromPIDL(pidl));
+ if (kf2 == null)
+ {
+ throw new ArgumentException(LocalizedMessages.KnownFolderParsingName, "parsingName");
+ }
+
+ return kf2;
+ }
+ finally
+ {
+ ShellNativeMethods.ILFree(pidl);
+ ShellNativeMethods.ILFree(pidl2);
+ }
+
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderSettings.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderSettings.cs
new file mode 100644
index 0000000000..e1a2193524
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolderSettings.cs
@@ -0,0 +1,295 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Internal class to represent the KnownFolder settings/properties
+ /// </summary>
+ internal class KnownFolderSettings
+ {
+ private FolderProperties knownFolderProperties;
+
+ internal KnownFolderSettings(IKnownFolderNative knownFolderNative)
+ {
+ GetFolderProperties(knownFolderNative);
+ }
+
+ #region Private Methods
+
+ /// <summary>
+ /// Populates a structure that contains
+ /// this known folder's properties.
+ /// </summary>
+ private void GetFolderProperties(IKnownFolderNative knownFolderNative)
+ {
+ Debug.Assert(knownFolderNative != null);
+
+ KnownFoldersSafeNativeMethods.NativeFolderDefinition nativeFolderDefinition;
+ knownFolderNative.GetFolderDefinition(out nativeFolderDefinition);
+
+ try
+ {
+ knownFolderProperties.category = nativeFolderDefinition.category;
+ knownFolderProperties.canonicalName = Marshal.PtrToStringUni(nativeFolderDefinition.name);
+ knownFolderProperties.description = Marshal.PtrToStringUni(nativeFolderDefinition.description);
+ knownFolderProperties.parentId = nativeFolderDefinition.parentId;
+ knownFolderProperties.relativePath = Marshal.PtrToStringUni(nativeFolderDefinition.relativePath);
+ knownFolderProperties.parsingName = Marshal.PtrToStringUni(nativeFolderDefinition.parsingName);
+ knownFolderProperties.tooltipResourceId = Marshal.PtrToStringUni(nativeFolderDefinition.tooltip);
+ knownFolderProperties.localizedNameResourceId = Marshal.PtrToStringUni(nativeFolderDefinition.localizedName);
+ knownFolderProperties.iconResourceId = Marshal.PtrToStringUni(nativeFolderDefinition.icon);
+ knownFolderProperties.security = Marshal.PtrToStringUni(nativeFolderDefinition.security);
+ knownFolderProperties.fileAttributes = (System.IO.FileAttributes)nativeFolderDefinition.attributes;
+ knownFolderProperties.definitionOptions = nativeFolderDefinition.definitionOptions;
+ knownFolderProperties.folderTypeId = nativeFolderDefinition.folderTypeId;
+ knownFolderProperties.folderType = FolderTypes.GetFolderType(knownFolderProperties.folderTypeId);
+
+ bool pathExists;
+ knownFolderProperties.path = GetPath(out pathExists, knownFolderNative);
+ knownFolderProperties.pathExists = pathExists;
+
+ knownFolderProperties.redirection = knownFolderNative.GetRedirectionCapabilities();
+
+ // Turn tooltip, localized name and icon resource IDs
+ // into the actual resources.
+ knownFolderProperties.tooltip = CoreHelpers.GetStringResource(knownFolderProperties.tooltipResourceId);
+ knownFolderProperties.localizedName = CoreHelpers.GetStringResource(knownFolderProperties.localizedNameResourceId);
+
+ knownFolderProperties.folderId = knownFolderNative.GetId();
+
+ }
+ finally
+ {
+ // Clean up memory.
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.name);
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.description);
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.relativePath);
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.parsingName);
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.tooltip);
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.localizedName);
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.icon);
+ Marshal.FreeCoTaskMem(nativeFolderDefinition.security);
+ }
+ }
+
+ /// <summary>
+ /// Gets the path of this this known folder.
+ /// </summary>
+ /// <param name="fileExists">
+ /// Returns false if the folder is virtual, or a boolean
+ /// value that indicates whether this known folder exists.
+ /// </param>
+ /// <param name="knownFolderNative">Native IKnownFolder reference</param>
+ /// <returns>
+ /// A <see cref="System.String"/> containing the path, or <see cref="System.String.Empty"/> if this known folder does not exist.
+ /// </returns>
+ private string GetPath(out bool fileExists, IKnownFolderNative knownFolderNative)
+ {
+ Debug.Assert(knownFolderNative != null);
+
+ string kfPath = string.Empty;
+ fileExists = true;
+
+ // Virtual folders do not have path.
+ if (knownFolderProperties.category == FolderCategory.Virtual)
+ {
+ fileExists = false;
+ return kfPath;
+ }
+
+ try
+ {
+ kfPath = knownFolderNative.GetPath(0);
+ }
+ catch (System.IO.FileNotFoundException)
+ {
+ fileExists = false;
+ }
+ catch (System.IO.DirectoryNotFoundException)
+ {
+ fileExists = false;
+ }
+
+ return kfPath;
+ }
+
+ #endregion
+
+ #region KnownFolder Properties
+
+ /// <summary>
+ /// Gets the path for this known folder.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Path
+ {
+ get { return knownFolderProperties.path; }
+ }
+
+
+ /// <summary>
+ /// Gets the category designation for this known folder.
+ /// </summary>
+ /// <value>A <see cref="FolderCategory"/> value.</value>
+ public FolderCategory Category
+ {
+ get { return knownFolderProperties.category; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's canonical name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string CanonicalName
+ {
+ get { return knownFolderProperties.canonicalName; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's description.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Description
+ {
+ get { return knownFolderProperties.description; }
+ }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's parent folder.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid ParentId
+ {
+ get { return knownFolderProperties.parentId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's relative path.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string RelativePath
+ {
+ get { return knownFolderProperties.relativePath; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's tool tip text.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Tooltip
+ {
+ get { return knownFolderProperties.tooltip; }
+ }
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's tool tip text.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string TooltipResourceId
+ {
+ get { return knownFolderProperties.tooltipResourceId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's localized name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string LocalizedName
+ {
+ get { return knownFolderProperties.localizedName; }
+ }
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's localized name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string LocalizedNameResourceId
+ {
+ get { return knownFolderProperties.localizedNameResourceId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's security attributes.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Security
+ {
+ get { return knownFolderProperties.security; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's file attributes,
+ /// such as "read-only".
+ /// </summary>
+ /// <value>A <see cref="System.IO.FileAttributes"/> value.</value>
+ public System.IO.FileAttributes FileAttributes
+ {
+ get { return knownFolderProperties.fileAttributes; }
+ }
+
+ /// <summary>
+ /// Gets an value that describes this known folder's behaviors.
+ /// </summary>
+ /// <value>A <see cref="DefinitionOptions"/> value.</value>
+ public DefinitionOptions DefinitionOptions
+ {
+ get { return knownFolderProperties.definitionOptions; }
+ }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's type.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid FolderTypeId
+ {
+ get { return knownFolderProperties.folderTypeId; }
+ }
+
+ /// <summary>
+ /// Gets a string representation of this known folder's type.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string FolderType
+ {
+ get { return knownFolderProperties.folderType; }
+ }
+ /// <summary>
+ /// Gets the unique identifier for this known folder.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid FolderId
+ {
+ get { return knownFolderProperties.folderId; }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether this known folder's path exists on the computer.
+ /// </summary>
+ /// <value>A bool<see cref="System.Boolean"/> value.</value>
+ /// <remarks>If this property value is <b>false</b>,
+ /// the folder might be a virtual folder (<see cref="Category"/> property will
+ /// be <see cref="FolderCategory.Virtual"/> for virtual folders)</remarks>
+ public bool PathExists
+ {
+ get { return knownFolderProperties.pathExists; }
+ }
+
+ /// <summary>
+ /// Gets a value that states whether this known folder
+ /// can have its path set to a new value,
+ /// including any restrictions on the redirection.
+ /// </summary>
+ /// <value>A <see cref="RedirectionCapability"/> value.</value>
+ public RedirectionCapability Redirection
+ {
+ get { return knownFolderProperties.redirection; }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolders.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolders.cs
new file mode 100644
index 0000000000..286afcd219
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/KnownFolders.cs
@@ -0,0 +1,1331 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Defines properties for known folders that identify the path of standard known folders.
+ /// </summary>
+ public static class KnownFolders
+ {
+ /// <summary>
+ /// Gets a strongly-typed read-only collection of all the registered known folders.
+ /// </summary>
+ public static ICollection<IKnownFolder> All
+ {
+ get
+ {
+ return GetAllFolders();
+ }
+ }
+
+ private static ReadOnlyCollection<IKnownFolder> GetAllFolders()
+ {
+ // Should this method be thread-safe?? (It'll take a while
+ // to get a list of all the known folders, create the managed wrapper
+ // and return the read-only collection.
+
+ IList<IKnownFolder> foldersList = new List<IKnownFolder>();
+ uint count;
+ IntPtr folders = IntPtr.Zero;
+
+ try
+ {
+
+ KnownFolderManagerClass knownFolderManager = new KnownFolderManagerClass();
+ knownFolderManager.GetFolderIds(out folders, out count);
+
+ if (count > 0 && folders != IntPtr.Zero)
+ {
+ // Loop through all the KnownFolderID elements
+ for (int i = 0; i < count; i++)
+ {
+ // Read the current pointer
+ IntPtr current = new IntPtr(folders.ToInt64() + (Marshal.SizeOf(typeof(Guid)) * i));
+
+ // Convert to Guid
+ Guid knownFolderID = (Guid)Marshal.PtrToStructure(current, typeof(Guid));
+
+ IKnownFolder kf = KnownFolderHelper.FromKnownFolderIdInternal(knownFolderID);
+
+ // Add to our collection if it's not null (some folders might not exist on the system
+ // or we could have an exception that resulted in the null return from above method call
+ if (kf != null) { foldersList.Add(kf); }
+ }
+ }
+ }
+ finally
+ {
+ if (folders != IntPtr.Zero) { Marshal.FreeCoTaskMem(folders); }
+ }
+
+ return new ReadOnlyCollection<IKnownFolder>(foldersList);
+ }
+
+ private static IKnownFolder GetKnownFolder(Guid guid)
+ {
+ return KnownFolderHelper.FromKnownFolderId(guid);
+ }
+
+ #region Default Known Folders
+
+ /// <summary>
+ /// Gets the metadata for the <b>Computer</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Computer
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.Computer);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Conflict</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Conflict
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.Conflict);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ControlPanel</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ControlPanel
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.ControlPanel);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Desktop</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Desktop
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.Desktop);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Internet</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Internet
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.Internet);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Network</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Network
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.Network);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Printers</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Printers
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.Printers);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SyncManager</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SyncManager
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.SyncManager);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Connections</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Connections
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.Connections);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SyncSetup</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SyncSetup
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.SyncSetup);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SyncResults</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SyncResults
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.SyncResults);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>RecycleBin</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder RecycleBin
+ {
+ get
+ {
+ return GetKnownFolder(
+ FolderIdentifiers.RecycleBin);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Fonts</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Fonts
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Fonts);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Startup</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Startup
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Startup);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Programs</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Programs
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Programs);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>StartMenu</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder StartMenu
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.StartMenu);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>Recent</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Recent
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Recent);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>SendTo</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SendTo
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SendTo);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>Documents</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Documents
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Documents);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>Favorites</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Favorites
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Favorites);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>NetHood</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder NetHood
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.NetHood);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PrintHood</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PrintHood
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PrintHood);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Templates</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Templates
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Templates);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>CommonStartup</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder CommonStartup
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.CommonStartup);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>CommonPrograms</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder CommonPrograms
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.CommonPrograms);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>CommonStartMenu</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder CommonStartMenu
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.CommonStartMenu);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicDesktop</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PublicDesktop
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PublicDesktop);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ProgramData</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ProgramData
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ProgramData);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>CommonTemplates</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder CommonTemplates
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.CommonTemplates);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicDocuments</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PublicDocuments
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PublicDocuments);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>RoamingAppData</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder RoamingAppData
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.RoamingAppData);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>LocalAppData</b>
+ /// folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder LocalAppData
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.LocalAppData);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>LocalAppDataLow</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder LocalAppDataLow
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.LocalAppDataLow);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>InternetCache</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder InternetCache
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.InternetCache);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Cookies</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Cookies
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Cookies);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>History</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder History
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.History);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>System</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder System
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.System);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SystemX86</b>
+ /// folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SystemX86
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SystemX86);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Windows</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Windows
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Windows);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Profile</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Profile
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Profile);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>Pictures</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Pictures
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Pictures);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ProgramFilesX86</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ProgramFilesX86
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ProgramFilesX86);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ProgramFilesCommonX86</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ProgramFilesCommonX86
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ProgramFilesCommonX86);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ProgramsFilesX64</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ProgramFilesX64
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ProgramFilesX64);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b> ProgramFilesCommonX64</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ProgramFilesCommonX64
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ProgramFilesCommonX64);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ProgramFiles</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ProgramFiles
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ProgramFiles);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ProgramFilesCommon</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ProgramFilesCommon
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ProgramFilesCommon);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>AdminTools</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder AdminTools
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.AdminTools);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>CommonAdminTools</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder CommonAdminTools
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.CommonAdminTools);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>Music</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Music
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Music);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Videos</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Videos
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Videos);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicPictures</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PublicPictures
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PublicPictures);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicMusic</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PublicMusic
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PublicMusic);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicVideos</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PublicVideos
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PublicVideos);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ResourceDir</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ResourceDir
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ResourceDir);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>LocalizedResourcesDir</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder LocalizedResourcesDir
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.LocalizedResourcesDir);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>CommonOEMLinks</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder CommonOemLinks
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.CommonOEMLinks);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>CDBurning</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder CDBurning
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.CDBurning);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>UserProfiles</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder UserProfiles
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.UserProfiles);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Playlists</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Playlists
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Playlists);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SamplePlaylists</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SamplePlaylists
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SamplePlaylists);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SampleMusic</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SampleMusic
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SampleMusic);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SamplePictures</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SamplePictures
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SamplePictures);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SampleVideos</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SampleVideos
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SampleVideos);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PhotoAlbums</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PhotoAlbums
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PhotoAlbums);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Public</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Public
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Public);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ChangeRemovePrograms</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder ChangeRemovePrograms
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.ChangeRemovePrograms);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>AppUpdates</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder AppUpdates
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.AppUpdates);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>AddNewPrograms</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder AddNewPrograms
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.AddNewPrograms);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>Downloads</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Downloads
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Downloads);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicDownloads</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PublicDownloads
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PublicDownloads);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>SavedSearches</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SavedSearches
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SavedSearches);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>QuickLaunch</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder QuickLaunch
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.QuickLaunch);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Contacts</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Contacts
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Contacts);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SidebarParts</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SidebarParts
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SidebarParts);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SidebarDefaultParts</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SidebarDefaultParts
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SidebarDefaultParts);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>TreeProperties</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder TreeProperties
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.TreeProperties);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicGameTasks</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder PublicGameTasks
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.PublicGameTasks);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>GameTasks</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder GameTasks
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.GameTasks);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>SavedGames</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SavedGames
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SavedGames);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Games</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Games
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Games);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>RecordedTV</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ /// <remarks>This folder is not used.</remarks>
+ public static IKnownFolder RecordedTV
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.RecordedTV);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SearchMapi</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SearchMapi
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SearchMapi);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SearchCsc</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SearchCsc
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SearchCsc);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the per-user <b>Links</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder Links
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.Links);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>UsersFiles</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder UsersFiles
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.UsersFiles);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>SearchHome</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder SearchHome
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.SearchHome);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>OriginalImages</b> folder.
+ /// </summary>
+ /// <value>An <see cref="IKnownFolder"/> object.</value>
+ public static IKnownFolder OriginalImages
+ {
+ get
+ {
+ return GetKnownFolder(FolderIdentifiers.OriginalImages);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>UserProgramFiles</b> folder.
+ /// </summary>
+ public static IKnownFolder UserProgramFiles
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.UserProgramFiles);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>UserProgramFilesCommon</b> folder.
+ /// </summary>
+ public static IKnownFolder UserProgramFilesCommon
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.UserProgramFilesCommon);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Ringtones</b> folder.
+ /// </summary>
+ public static IKnownFolder Ringtones
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.Ringtones);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PublicRingtones</b> folder.
+ /// </summary>
+ public static IKnownFolder PublicRingtones
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.PublicRingtones);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>UsersLibraries</b> folder.
+ /// </summary>
+ public static IKnownFolder UsersLibraries
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.UsersLibraries);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>DocumentsLibrary</b> folder.
+ /// </summary>
+ public static IKnownFolder DocumentsLibrary
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.DocumentsLibrary);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>MusicLibrary</b> folder.
+ /// </summary>
+ public static IKnownFolder MusicLibrary
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.MusicLibrary);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>PicturesLibrary</b> folder.
+ /// </summary>
+ public static IKnownFolder PicturesLibrary
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.PicturesLibrary);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>VideosLibrary</b> folder.
+ /// </summary>
+ public static IKnownFolder VideosLibrary
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.VideosLibrary);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>RecordedTVLibrary</b> folder.
+ /// </summary>
+ public static IKnownFolder RecordedTVLibrary
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.RecordedTVLibrary);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>OtherUsers</b> folder.
+ /// </summary>
+ public static IKnownFolder OtherUsers
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.OtherUsers);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>DeviceMetadataStore</b> folder.
+ /// </summary>
+ public static IKnownFolder DeviceMetadataStore
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.DeviceMetadataStore);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>Libraries</b> folder.
+ /// </summary>
+ public static IKnownFolder Libraries
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.Libraries);
+ }
+ }
+
+ /// <summary>
+ ///Gets the metadata for the <b>UserPinned</b> folder.
+ /// </summary>
+ public static IKnownFolder UserPinned
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.UserPinned);
+ }
+ }
+
+ /// <summary>
+ /// Gets the metadata for the <b>ImplicitAppShortcuts</b> folder.
+ /// </summary>
+ public static IKnownFolder ImplicitAppShortcuts
+ {
+ get
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ return GetKnownFolder(FolderIdentifiers.ImplicitAppShortcuts);
+ }
+ }
+
+ #endregion
+
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/NonFileSystemKnownFolder.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/NonFileSystemKnownFolder.cs
new file mode 100644
index 0000000000..60130f6ba0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/NonFileSystemKnownFolder.cs
@@ -0,0 +1,282 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a registered non file system Known Folder
+ /// </summary>
+ public class NonFileSystemKnownFolder : ShellNonFileSystemFolder, IKnownFolder, IDisposable
+ {
+ #region Private Fields
+
+ private IKnownFolderNative knownFolderNative;
+ private KnownFolderSettings knownFolderSettings;
+
+ #endregion
+
+ #region Internal Constructors
+
+ internal NonFileSystemKnownFolder(IShellItem2 shellItem) : base(shellItem) { }
+
+ internal NonFileSystemKnownFolder(IKnownFolderNative kf)
+ {
+ Debug.Assert(kf != null);
+ knownFolderNative = kf;
+
+ // Set the native shell item
+ // and set it on the base class (ShellObject)
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+ knownFolderNative.GetShellItem(0, ref guid, out nativeShellItem);
+ }
+
+ #endregion
+
+ #region Private Members
+
+ private KnownFolderSettings KnownFolderSettings
+ {
+ get
+ {
+ if (knownFolderNative == null)
+ {
+ // We need to get the PIDL either from the NativeShellItem,
+ // or from base class's property (if someone already set it on us).
+ // Need to use the PIDL to get the native IKnownFolder interface.
+
+ // Get teh PIDL for the ShellItem
+ if (nativeShellItem != null && base.PIDL == IntPtr.Zero)
+ {
+ base.PIDL = ShellHelper.PidlFromShellItem(nativeShellItem);
+ }
+
+ // If we have a valid PIDL, get the native IKnownFolder
+ if (base.PIDL != IntPtr.Zero)
+ {
+ knownFolderNative = KnownFolderHelper.FromPIDL(base.PIDL);
+ }
+
+ Debug.Assert(knownFolderNative != null);
+ }
+
+ // If this is the first time this property is being called,
+ // get the native Folder Defination (KnownFolder properties)
+ if (knownFolderSettings == null)
+ {
+ knownFolderSettings = new KnownFolderSettings(knownFolderNative);
+ }
+
+ return knownFolderSettings;
+ }
+ }
+
+ #endregion
+
+ #region IKnownFolder Members
+
+ /// <summary>
+ /// Gets the path for this known folder.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Path
+ {
+ get { return KnownFolderSettings.Path; }
+ }
+
+ /// <summary>
+ /// Gets the category designation for this known folder.
+ /// </summary>
+ /// <value>A <see cref="FolderCategory"/> value.</value>
+ public FolderCategory Category
+ {
+ get { return KnownFolderSettings.Category; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's canonical name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string CanonicalName
+ {
+ get { return KnownFolderSettings.CanonicalName; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's description.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Description
+ {
+ get { return KnownFolderSettings.Description; }
+ }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's parent folder.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid ParentId
+ {
+ get { return KnownFolderSettings.ParentId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's relative path.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string RelativePath
+ {
+ get { return KnownFolderSettings.RelativePath; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's parsing name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public override string ParsingName
+ {
+ get { return base.ParsingName; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's tool tip text.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Tooltip
+ {
+ get { return KnownFolderSettings.Tooltip; }
+ }
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's tool tip text.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string TooltipResourceId
+ {
+ get { return KnownFolderSettings.TooltipResourceId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's localized name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string LocalizedName
+ {
+ get { return KnownFolderSettings.LocalizedName; }
+ }
+ /// <summary>
+ /// Gets the resource identifier for this
+ /// known folder's localized name.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string LocalizedNameResourceId
+ {
+ get { return KnownFolderSettings.LocalizedNameResourceId; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's security attributes.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string Security
+ {
+ get { return KnownFolderSettings.Security; }
+ }
+
+ /// <summary>
+ /// Gets this known folder's file attributes,
+ /// such as "read-only".
+ /// </summary>
+ /// <value>A <see cref="System.IO.FileAttributes"/> value.</value>
+ public System.IO.FileAttributes FileAttributes
+ {
+ get { return KnownFolderSettings.FileAttributes; }
+ }
+
+ /// <summary>
+ /// Gets an value that describes this known folder's behaviors.
+ /// </summary>
+ /// <value>A <see cref="DefinitionOptions"/> value.</value>
+ public DefinitionOptions DefinitionOptions
+ {
+ get { return KnownFolderSettings.DefinitionOptions; }
+ }
+
+ /// <summary>
+ /// Gets the unique identifier for this known folder's type.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid FolderTypeId
+ {
+ get { return KnownFolderSettings.FolderTypeId; }
+ }
+
+ /// <summary>
+ /// Gets a string representation of this known folder's type.
+ /// </summary>
+ /// <value>A <see cref="System.String"/> object.</value>
+ public string FolderType
+ {
+ get { return KnownFolderSettings.FolderType; }
+ }
+ /// <summary>
+ /// Gets the unique identifier for this known folder.
+ /// </summary>
+ /// <value>A <see cref="System.Guid"/> value.</value>
+ public Guid FolderId
+ {
+ get { return KnownFolderSettings.FolderId; }
+ }
+
+ /// <summary>
+ /// Gets a value that indicates whether this known folder's path exists on the computer.
+ /// </summary>
+ /// <value>A bool<see cref="System.Boolean"/> value.</value>
+ /// <remarks>If this property value is <b>false</b>,
+ /// the folder might be a virtual folder (<see cref="Category"/> property will
+ /// be <see cref="FolderCategory.Virtual"/> for virtual folders)</remarks>
+ public bool PathExists
+ {
+ get { return KnownFolderSettings.PathExists; }
+ }
+
+ /// <summary>
+ /// Gets a value that states whether this known folder
+ /// can have its path set to a new value,
+ /// including any restrictions on the redirection.
+ /// </summary>
+ /// <value>A <see cref="RedirectionCapability"/> value.</value>
+ public RedirectionCapability Redirection
+ {
+ get { return KnownFolderSettings.Redirection; }
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release resources
+ /// </summary>
+ /// <param name="disposing">Indicates that this mothod is being called from Dispose() rather than the finalizer.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ knownFolderSettings = null;
+ }
+
+ if (knownFolderNative != null)
+ {
+ Marshal.ReleaseComObject(knownFolderNative);
+ knownFolderNative = null;
+ }
+
+ base.Dispose(disposing);
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RedirectionCapabilities.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RedirectionCapabilities.cs
new file mode 100644
index 0000000000..352b128188
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RedirectionCapabilities.cs
@@ -0,0 +1,45 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Specifies the redirection capabilities for known folders.
+ /// </summary>
+ public enum RedirectionCapability
+ {
+ /// <summary>
+ /// Redirection capability is unknown.
+ /// </summary>
+ None = 0x00,
+ /// <summary>
+ /// The known folder can be redirected.
+ /// </summary>
+ AllowAll = 0xff,
+ /// <summary>
+ /// The known folder can be redirected.
+ /// Currently, redirection exists only for
+ /// common and user folders; fixed and virtual folders
+ /// cannot be redirected.
+ /// </summary>
+ Redirectable = 0x1,
+ /// <summary>
+ /// Redirection is not allowed.
+ /// </summary>
+ DenyAll = 0xfff00,
+ /// <summary>
+ /// The folder cannot be redirected because it is
+ /// already redirected by group policy.
+ /// </summary>
+ DenyPolicyRedirected = 0x100,
+ /// <summary>
+ /// The folder cannot be redirected because the policy
+ /// prohibits redirecting this folder.
+ /// </summary>
+ DenyPolicy = 0x200,
+ /// <summary>
+ /// The folder cannot be redirected because the calling
+ /// application does not have sufficient permissions.
+ /// </summary>
+ DenyPermissions = 0x400
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RetrievalOptions.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RetrievalOptions.cs
new file mode 100644
index 0000000000..4842a0d8cd
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/KnownFolders/RetrievalOptions.cs
@@ -0,0 +1,21 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Contains special retrieval options for known folders.
+ /// </summary>
+ internal enum RetrievalOptions
+ {
+ None = 0,
+ Create = 0x00008000,
+ DontVerify = 0x00004000,
+ DontUnexpand = 0x00002000,
+ NoAlias = 0x00001000,
+ Init = 0x00000800,
+ DefaultPath = 0x00000400,
+ NotParentRelative = 0x00000200
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Makefile.am b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Makefile.am
new file mode 100644
index 0000000000..24e07e9bf5
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Makefile.am
@@ -0,0 +1,5 @@
+include $(top_srcdir)/xbuild.include
+
+if ! ENABLE_WINDOWSPLATFORM
+SKIP=y
+endif
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Properties/AssemblyInfo.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000000..ce02943acb
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Properties/AssemblyInfo.cs
@@ -0,0 +1,42 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Security;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Microsoft.WindowsAPICodePack.Shell")]
+[assembly: AssemblyDescription("WindowsAPICodePack for Shell")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Microsoft Windows API Code Pack for .NET Framework")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: InternalsVisibleTo("Microsoft.WindowsAPICodePack.ShellExtensions")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("48fe0672-7ff4-48fd-a3fd-83c8fa8c3506")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.1.0.0")]
+[assembly: AssemblyFileVersion("1.1.0.0")]
+
+[assembly: NeutralResourcesLanguageAttribute("en")] \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/IShellProperty.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/IShellProperty.cs
new file mode 100644
index 0000000000..fb185953e1
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/IShellProperty.cs
@@ -0,0 +1,59 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Defines the properties used by a Shell Property.
+ /// </summary>
+ public interface IShellProperty
+ {
+ /// <summary>
+ /// Gets the property key that identifies this property.
+ /// </summary>
+ PropertyKey PropertyKey { get; }
+
+ /// <summary>
+ /// Gets a formatted, Unicode string representation of a property value.
+ /// </summary>
+ /// <param name="format">One or more <c>PropertyDescriptionFormat</c> flags
+ /// chosen to produce the desired display format.</param>
+ /// <returns>The formatted value as a string.</returns>
+ string FormatForDisplay(PropertyDescriptionFormatOptions format);
+
+ /// <summary>
+ /// Get the property description object.
+ /// </summary>
+ ShellPropertyDescription Description { get; }
+
+ /// <summary>
+ /// Gets the case-sensitive name of the property as it is known to the system,
+ /// regardless of its localized name.
+ /// </summary>
+ string CanonicalName { get; }
+
+ /// <summary>
+ /// Gets the value for this property using the generic Object type.
+ /// </summary>
+ /// <remarks>
+ /// To obtain a specific type for this value, use the more strongly-typed
+ /// <c>Property&lt;T&gt;</c> class.
+ /// You can only set a value for this type using the <c>Property&lt;T&gt;</c>
+ /// class.
+ /// </remarks>
+ object ValueAsObject { get; }
+
+ /// <summary>
+ /// Gets the <c>System.Type</c> value for this property.
+ /// </summary>
+ Type ValueType { get; }
+
+ /// <summary>
+ /// Gets the image reference path and icon index associated with a property value.
+ /// This API is only available in Windows 7.
+ /// </summary>
+ IconReference IconReference { get; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/PropertySystemException.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/PropertySystemException.cs
new file mode 100644
index 0000000000..ee079810ec
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/PropertySystemException.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+
+ /// <summary>
+ /// An exception thrown when an error occurs while dealing with the Property System API.
+ /// </summary>
+ [Serializable]
+ public class PropertySystemException : ExternalException
+ {
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public PropertySystemException() { }
+
+ /// <summary>
+ /// Initializes an excpetion with a custom message.
+ /// </summary>
+ /// <param name="message"></param>
+ public PropertySystemException(string message) : base(message) { }
+
+ /// <summary>
+ /// Initializes an exception with custom message and inner exception.
+ /// </summary>
+ /// <param name="message"></param>
+ /// <param name="innerException"></param>
+ public PropertySystemException(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ }
+
+ /// <summary>
+ /// Initializes an exception with custom message and error code.
+ /// </summary>
+ /// <param name="message"></param>
+ /// <param name="errorCode"></param>
+ public PropertySystemException(string message, int errorCode) : base(message, errorCode) { }
+
+ /// <summary>
+ /// Initializes an exception from serialization info and a context.
+ /// </summary>
+ /// <param name="info"></param>
+ /// <param name="context"></param>
+ protected PropertySystemException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context)
+ : base(info, context)
+ {
+ }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperties.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperties.cs
new file mode 100644
index 0000000000..fdf9ae9bcd
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperties.cs
@@ -0,0 +1,168 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using System.Runtime.InteropServices.ComTypes;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Defines a partial class that implements helper methods for retrieving Shell properties
+ /// using a canonical name, property key, or a strongly-typed property. Also provides
+ /// access to all the strongly-typed system properties and default properties collections.
+ /// </summary>
+ public partial class ShellProperties : IDisposable
+ {
+ private ShellObject ParentShellObject { get; set; }
+ private ShellPropertyCollection defaultPropertyCollection;
+
+ internal ShellProperties(ShellObject parent)
+ {
+ ParentShellObject = parent;
+ }
+
+ /// <summary>
+ /// Returns a property available in the default property collection using
+ /// the given property key.
+ /// </summary>
+ /// <param name="key">The property key.</param>
+ /// <returns>An IShellProperty.</returns>
+ public IShellProperty GetProperty(PropertyKey key)
+ {
+ return CreateTypedProperty(key);
+ }
+
+ /// <summary>
+ /// Returns a property available in the default property collection using
+ /// the given canonical name.
+ /// </summary>
+ /// <param name="canonicalName">The canonical name.</param>
+ /// <returns>An IShellProperty.</returns>
+ public IShellProperty GetProperty(string canonicalName)
+ {
+ return CreateTypedProperty(canonicalName);
+ }
+
+ /// <summary>
+ /// Returns a strongly typed property available in the default property collection using
+ /// the given property key.
+ /// </summary>
+ /// <typeparam name="T">The type of property to retrieve.</typeparam>
+ /// <param name="key">The property key.</param>
+ /// <returns>A strongly-typed ShellProperty for the given property key.</returns>
+ public ShellProperty<T> GetProperty<T>(PropertyKey key)
+ {
+ return CreateTypedProperty(key) as ShellProperty<T>;
+ }
+
+ /// <summary>
+ /// Returns a strongly typed property available in the default property collection using
+ /// the given canonical name.
+ /// </summary>
+ /// <typeparam name="T">The type of property to retrieve.</typeparam>
+ /// <param name="canonicalName">The canonical name.</param>
+ /// <returns>A strongly-typed ShellProperty for the given canonical name.</returns>
+ public ShellProperty<T> GetProperty<T>(string canonicalName)
+ {
+ return CreateTypedProperty(canonicalName) as ShellProperty<T>;
+ }
+
+ private PropertySystem propertySystem;
+ /// <summary>
+ /// Gets all the properties for the system through an accessor.
+ /// </summary>
+ public PropertySystem System
+ {
+ get
+ {
+ if (propertySystem == null)
+ {
+ propertySystem = new PropertySystem(ParentShellObject);
+ }
+
+ return propertySystem;
+ }
+ }
+
+ /// <summary>
+ /// Gets the collection of all the default properties for this item.
+ /// </summary>
+ public ShellPropertyCollection DefaultPropertyCollection
+ {
+ get
+ {
+ if (defaultPropertyCollection == null)
+ {
+ defaultPropertyCollection = new ShellPropertyCollection(ParentShellObject);
+ }
+
+ return defaultPropertyCollection;
+ }
+ }
+
+ /// <summary>
+ /// Returns the shell property writer used when writing multiple properties.
+ /// </summary>
+ /// <returns>A ShellPropertyWriter.</returns>
+ /// <remarks>Use the Using pattern with the returned ShellPropertyWriter or
+ /// manually call the Close method on the writer to commit the changes
+ /// and dispose the writer</remarks>
+ public ShellPropertyWriter GetPropertyWriter()
+ {
+ return new ShellPropertyWriter(ParentShellObject);
+ }
+
+ internal IShellProperty CreateTypedProperty<T>(PropertyKey propKey)
+ {
+ ShellPropertyDescription desc = ShellPropertyDescriptionsCache.Cache.GetPropertyDescription(propKey);
+ return new ShellProperty<T>(propKey, desc, ParentShellObject);
+ }
+
+ internal IShellProperty CreateTypedProperty(PropertyKey propKey)
+ {
+ return ShellPropertyFactory.CreateShellProperty(propKey, ParentShellObject);
+ }
+
+ internal IShellProperty CreateTypedProperty(string canonicalName)
+ {
+ // Otherwise, call the native PropertyStore method
+ PropertyKey propKey;
+
+ int result = PropertySystemNativeMethods.PSGetPropertyKeyFromName(canonicalName, out propKey);
+
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new ArgumentException(
+ LocalizedMessages.ShellInvalidCanonicalName,
+ Marshal.GetExceptionForHR(result));
+ }
+ return CreateTypedProperty(propKey);
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Cleans up memory
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Cleans up memory
+ /// </summary>
+ protected virtual void Dispose(bool disposed)
+ {
+ if (disposed && defaultPropertyCollection != null)
+ {
+ defaultPropertyCollection.Dispose();
+ }
+ }
+
+ #endregion
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperty.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperty.cs
new file mode 100644
index 0000000000..ef4167876c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellProperty.cs
@@ -0,0 +1,447 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Defines a strongly-typed property object.
+ /// All writable property objects must be of this type
+ /// to be able to call the value setter.
+ /// </summary>
+ /// <typeparam name="T">The type of this property's value.
+ /// Because a property value can be empty, only nullable types
+ /// are allowed.</typeparam>
+ public class ShellProperty<T> : IShellProperty
+ {
+ #region Private Fields
+
+ private PropertyKey propertyKey;
+ string imageReferencePath = null;
+ int? imageReferenceIconIndex;
+ private ShellPropertyDescription description = null;
+
+ #endregion
+
+ #region Private Methods
+
+ private ShellObject ParentShellObject { get; set; }
+
+ private IPropertyStore NativePropertyStore { get; set; }
+
+ private void GetImageReference()
+ {
+ IPropertyStore store = ShellPropertyCollection.CreateDefaultPropertyStore(ParentShellObject);
+
+ using (PropVariant propVar = new PropVariant())
+ {
+ store.GetValue(ref propertyKey, propVar);
+
+ Marshal.ReleaseComObject(store);
+ store = null;
+
+ string refPath;
+ ((IPropertyDescription2)Description.NativePropertyDescription).GetImageReferenceForValue(
+ propVar, out refPath);
+
+ if (refPath == null) { return; }
+
+ int index = ShellNativeMethods.PathParseIconLocation(ref refPath);
+ if (refPath != null)
+ {
+ imageReferencePath = refPath;
+ imageReferenceIconIndex = index;
+ }
+ }
+ }
+
+ private void StorePropVariantValue(PropVariant propVar)
+ {
+ Guid guid = new Guid(ShellIIDGuid.IPropertyStore);
+ IPropertyStore writablePropStore = null;
+ try
+ {
+ int hr = ParentShellObject.NativeShellItem2.GetPropertyStore(
+ ShellNativeMethods.GetPropertyStoreOptions.ReadWrite,
+ ref guid,
+ out writablePropStore);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertyUnableToGetWritableProperty,
+ Marshal.GetExceptionForHR(hr));
+ }
+
+ HResult result = writablePropStore.SetValue(ref propertyKey, propVar);
+
+ if (!AllowSetTruncatedValue && (int)result == ShellNativeMethods.InPlaceStringTruncated)
+ {
+ throw new ArgumentOutOfRangeException("propVar", LocalizedMessages.ShellPropertyValueTruncated);
+ }
+
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertySetValue, Marshal.GetExceptionForHR((int)result));
+ }
+
+ writablePropStore.Commit();
+
+ }
+ catch (InvalidComObjectException e)
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertyUnableToGetWritableProperty, e);
+ }
+ catch (InvalidCastException)
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertyUnableToGetWritableProperty);
+ }
+ finally
+ {
+ if (writablePropStore != null)
+ {
+ Marshal.ReleaseComObject(writablePropStore);
+ writablePropStore = null;
+ }
+ }
+ }
+
+ #endregion
+
+ #region Internal Constructor
+
+ /// <summary>
+ /// Constructs a new Property object
+ /// </summary>
+ /// <param name="propertyKey"></param>
+ /// <param name="description"></param>
+ /// <param name="parent"></param>
+ internal ShellProperty(
+ PropertyKey propertyKey,
+ ShellPropertyDescription description,
+ ShellObject parent)
+ {
+ this.propertyKey = propertyKey;
+ this.description = description;
+ ParentShellObject = parent;
+ AllowSetTruncatedValue = false;
+ }
+
+ /// <summary>
+ /// Constructs a new Property object
+ /// </summary>
+ /// <param name="propertyKey"></param>
+ /// <param name="description"></param>
+ /// <param name="propertyStore"></param>
+ internal ShellProperty(
+ PropertyKey propertyKey,
+ ShellPropertyDescription description,
+ IPropertyStore propertyStore)
+ {
+ this.propertyKey = propertyKey;
+ this.description = description;
+ NativePropertyStore = propertyStore;
+ AllowSetTruncatedValue = false;
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// Gets or sets the strongly-typed value of this property.
+ /// The value of the property is cleared if the value is set to null.
+ /// </summary>
+ /// <exception cref="System.Runtime.InteropServices.COMException">
+ /// If the property value cannot be retrieved or updated in the Property System</exception>
+ /// <exception cref="NotSupportedException">If the type of this property is not supported; e.g. writing a binary object.</exception>
+ /// <exception cref="ArgumentOutOfRangeException">Thrown if <see cref="AllowSetTruncatedValue"/> is false, and either
+ /// a string value was truncated or a numeric value was rounded.</exception>
+ public T Value
+ {
+ get
+ {
+ // Make sure we load the correct type
+ Debug.Assert(ValueType == ShellPropertyFactory.VarEnumToSystemType(Description.VarEnumType));
+
+ using (PropVariant propVar = new PropVariant())
+ {
+ if (ParentShellObject.NativePropertyStore != null)
+ {
+ // If there is a valid property store for this shell object, then use it.
+ ParentShellObject.NativePropertyStore.GetValue(ref propertyKey, propVar);
+ }
+ else if (ParentShellObject != null)
+ {
+ // Use IShellItem2.GetProperty instead of creating a new property store
+ // The file might be locked. This is probably quicker, and sufficient for what we need
+ ParentShellObject.NativeShellItem2.GetProperty(ref propertyKey, propVar);
+ }
+ else if (NativePropertyStore != null)
+ {
+ NativePropertyStore.GetValue(ref propertyKey, propVar);
+ }
+
+ //Get the value
+ return propVar.Value != null ? (T)propVar.Value : default(T);
+ }
+ }
+ set
+ {
+ // Make sure we use the correct type
+ Debug.Assert(ValueType == ShellPropertyFactory.VarEnumToSystemType(Description.VarEnumType));
+
+ if (typeof(T) != ValueType)
+ {
+ throw new NotSupportedException(
+ string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.ShellPropertyWrongType, ValueType.Name));
+ }
+
+ if (value is Nullable)
+ {
+ Type t = typeof(T);
+ PropertyInfo pi = t.GetProperty("HasValue");
+ if (pi != null)
+ {
+ bool hasValue = (bool)pi.GetValue(value, null);
+ if (!hasValue)
+ {
+ ClearValue();
+ return;
+ }
+ }
+ }
+ else if (value == null)
+ {
+ ClearValue();
+ return;
+ }
+
+ if (ParentShellObject != null)
+ {
+ using (ShellPropertyWriter propertyWriter = ParentShellObject.Properties.GetPropertyWriter())
+ {
+ propertyWriter.WriteProperty<T>(this, value, AllowSetTruncatedValue);
+ }
+ }
+ else if (NativePropertyStore != null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellPropertyCannotSetProperty);
+ }
+ }
+ }
+
+
+ #endregion
+
+ #region IProperty Members
+
+ /// <summary>
+ /// Gets the property key identifying this property.
+ /// </summary>
+ public PropertyKey PropertyKey
+ {
+ get
+ {
+ return propertyKey;
+ }
+ }
+ /// <summary>
+ /// Returns a formatted, Unicode string representation of a property value.
+ /// </summary>
+ /// <param name="format">One or more of the PropertyDescriptionFormat flags
+ /// that indicate the desired format.</param>
+ /// <param name="formattedString">The formatted value as a string, or null if this property
+ /// cannot be formatted for display.</param>
+ /// <returns>True if the method successfully locates the formatted string; otherwise
+ /// False.</returns>
+ public bool TryFormatForDisplay(PropertyDescriptionFormatOptions format, out string formattedString)
+ {
+
+
+ if (Description == null || Description.NativePropertyDescription == null)
+ {
+ // We cannot do anything without a property description
+ formattedString = null;
+ return false;
+ }
+
+ IPropertyStore store = ShellPropertyCollection.CreateDefaultPropertyStore(ParentShellObject);
+
+ using (PropVariant propVar = new PropVariant())
+ {
+ store.GetValue(ref propertyKey, propVar);
+
+ // Release the Propertystore
+ Marshal.ReleaseComObject(store);
+ store = null;
+
+ HResult hr = Description.NativePropertyDescription.FormatForDisplay(propVar, ref format, out formattedString);
+
+ // Sometimes, the value cannot be displayed properly, such as for blobs
+ // or if we get argument exception
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ formattedString = null;
+ return false;
+ }
+ return true;
+ }
+ }
+
+ /// <summary>
+ /// Returns a formatted, Unicode string representation of a property value.
+ /// </summary>
+ /// <param name="format">One or more of the PropertyDescriptionFormat flags
+ /// that indicate the desired format.</param>
+ /// <returns>The formatted value as a string, or null if this property
+ /// cannot be formatted for display.</returns>
+ public string FormatForDisplay(PropertyDescriptionFormatOptions format)
+ {
+ string formattedString;
+
+ if (Description == null || Description.NativePropertyDescription == null)
+ {
+ // We cannot do anything without a property description
+ return null;
+ }
+
+ IPropertyStore store = ShellPropertyCollection.CreateDefaultPropertyStore(ParentShellObject);
+
+ using (PropVariant propVar = new PropVariant())
+ {
+ store.GetValue(ref propertyKey, propVar);
+
+ // Release the Propertystore
+ Marshal.ReleaseComObject(store);
+ store = null;
+
+ HResult hr = Description.NativePropertyDescription.FormatForDisplay(propVar, ref format, out formattedString);
+
+ // Sometimes, the value cannot be displayed properly, such as for blobs
+ // or if we get argument exception
+ if (!CoreErrorHelper.Succeeded(hr))
+ throw new ShellException(hr);
+
+ return formattedString;
+ }
+ }
+
+ /// <summary>
+ /// Get the property description object.
+ /// </summary>
+ public ShellPropertyDescription Description
+ {
+ get
+ {
+ return description;
+ }
+ }
+
+ /// <summary>
+ /// Gets the case-sensitive name of a property as it is known to the system,
+ /// regardless of its localized name.
+ /// </summary>
+ public string CanonicalName
+ {
+ get
+ {
+ return Description.CanonicalName;
+ }
+ }
+
+ /// <summary>
+ /// Clears the value of the property.
+ /// </summary>
+ public void ClearValue()
+ {
+ using (PropVariant propVar = new PropVariant())
+ {
+ StorePropVariantValue(propVar);
+ }
+ }
+
+ /// <summary>
+ /// Gets the value for this property using the generic Object type.
+ /// To obtain a specific type for this value, use the more type strong
+ /// Property&lt;T&gt; class.
+ /// Also, you can only set a value for this type using Property&lt;T&gt;
+ /// </summary>
+ public object ValueAsObject
+ {
+ get
+ {
+ using (PropVariant propVar = new PropVariant())
+ {
+ if (ParentShellObject != null)
+ {
+
+ IPropertyStore store = ShellPropertyCollection.CreateDefaultPropertyStore(ParentShellObject);
+
+ store.GetValue(ref propertyKey, propVar);
+
+ Marshal.ReleaseComObject(store);
+ store = null;
+ }
+ else if (NativePropertyStore != null)
+ {
+ NativePropertyStore.GetValue(ref propertyKey, propVar);
+ }
+
+ return propVar != null ? propVar.Value : null;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Gets the associated runtime type.
+ /// </summary>
+ public Type ValueType
+ {
+ get
+ {
+ // The type for this object need to match that of the description
+ Debug.Assert(Description.ValueType == typeof(T));
+
+ return Description.ValueType;
+ }
+ }
+
+ /// <summary>
+ /// Gets the image reference path and icon index associated with a property value (Windows 7 only).
+ /// </summary>
+ public IconReference IconReference
+ {
+ get
+ {
+ if (!CoreHelpers.RunningOnWin7)
+ {
+ throw new PlatformNotSupportedException(LocalizedMessages.ShellPropertyWindows7);
+ }
+
+ GetImageReference();
+ int index = (imageReferenceIconIndex.HasValue ? imageReferenceIconIndex.Value : -1);
+
+ return new IconReference(imageReferencePath, index);
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets a value that determines if a value can be truncated. The default for this property is false.
+ /// </summary>
+ /// <remarks>
+ /// An <see cref="ArgumentOutOfRangeException"/> will be thrown if
+ /// this property is not set to true, and a property value was set
+ /// but later truncated.
+ ///
+ /// </remarks>
+ public bool AllowSetTruncatedValue { get; set; }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyCollection.cs
new file mode 100644
index 0000000000..af3ba9c872
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyCollection.cs
@@ -0,0 +1,246 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Runtime.InteropServices.ComTypes;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Creates a readonly collection of IProperty objects.
+ /// </summary>
+ public class ShellPropertyCollection : ReadOnlyCollection<IShellProperty>, IDisposable
+ {
+ #region Internal Constructor
+
+ /// <summary>
+ /// Creates a new Property collection given an IPropertyStore object
+ /// </summary>
+ /// <param name="nativePropertyStore">IPropertyStore</param>
+ internal ShellPropertyCollection(IPropertyStore nativePropertyStore)
+ : base(new List<IShellProperty>())
+ {
+ NativePropertyStore = nativePropertyStore;
+ AddProperties(nativePropertyStore);
+ }
+
+ #endregion
+
+ #region Public Constructor
+
+ /// <summary>
+ /// Creates a new Property collection given an IShellItem2 native interface
+ /// </summary>
+ /// <param name="parent">Parent ShellObject</param>
+ public ShellPropertyCollection(ShellObject parent)
+ : base(new List<IShellProperty>())
+ {
+ ParentShellObject = parent;
+ IPropertyStore nativePropertyStore = null;
+ try
+ {
+ nativePropertyStore = CreateDefaultPropertyStore(ParentShellObject);
+ AddProperties(nativePropertyStore);
+ }
+ catch
+ {
+ if (parent != null)
+ {
+ parent.Dispose();
+ }
+ throw;
+ }
+ finally
+ {
+ if (nativePropertyStore != null)
+ {
+ Marshal.ReleaseComObject(nativePropertyStore);
+ nativePropertyStore = null;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Creates a new <c>ShellPropertyCollection</c> object with the specified file or folder path.
+ /// </summary>
+ /// <param name="path">The path to the file or folder.</param>
+ public ShellPropertyCollection(string path) : this(ShellObjectFactory.Create(path)) { }
+
+ #endregion
+
+ #region Private Methods
+
+ private ShellObject ParentShellObject { get; set; }
+
+ private IPropertyStore NativePropertyStore { get; set; }
+
+ private void AddProperties(IPropertyStore nativePropertyStore)
+ {
+ uint propertyCount;
+ PropertyKey propKey;
+
+ // Populate the property collection
+ nativePropertyStore.GetCount(out propertyCount);
+ for (uint i = 0; i < propertyCount; i++)
+ {
+ nativePropertyStore.GetAt(i, out propKey);
+
+ if (ParentShellObject != null)
+ {
+ Items.Add(ParentShellObject.Properties.CreateTypedProperty(propKey));
+ }
+ else
+ {
+ Items.Add(CreateTypedProperty(propKey, NativePropertyStore));
+ }
+ }
+ }
+
+ internal static IPropertyStore CreateDefaultPropertyStore(ShellObject shellObj)
+ {
+ IPropertyStore nativePropertyStore = null;
+
+ Guid guid = new Guid(ShellIIDGuid.IPropertyStore);
+ int hr = shellObj.NativeShellItem2.GetPropertyStore(
+ ShellNativeMethods.GetPropertyStoreOptions.BestEffort,
+ ref guid,
+ out nativePropertyStore);
+
+ // throw on failure
+ if (nativePropertyStore == null || !CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+
+ return nativePropertyStore;
+ }
+
+
+
+
+ #endregion
+
+ #region Collection Public Methods
+
+ /// <summary>
+ /// Checks if a property with the given canonical name is available.
+ /// </summary>
+ /// <param name="canonicalName">The canonical name of the property.</param>
+ /// <returns><B>True</B> if available, <B>false</B> otherwise.</returns>
+ public bool Contains(string canonicalName)
+ {
+ if (string.IsNullOrEmpty(canonicalName))
+ {
+ throw new ArgumentException(LocalizedMessages.PropertyCollectionNullCanonicalName, "canonicalName");
+ }
+
+ return Items.Any(p => p.CanonicalName == canonicalName);
+
+ }
+
+ /// <summary>
+ /// Checks if a property with the given property key is available.
+ /// </summary>
+ /// <param name="key">The property key.</param>
+ /// <returns><B>True</B> if available, <B>false</B> otherwise.</returns>
+ public bool Contains(PropertyKey key)
+ {
+ return Items.Any(p => p.PropertyKey == key);
+ }
+
+ /// <summary>
+ /// Gets the property associated with the supplied canonical name string.
+ /// The canonical name property is case-sensitive.
+ ///
+ /// </summary>
+ /// <param name="canonicalName">The canonical name.</param>
+ /// <returns>The property associated with the canonical name, if found.</returns>
+ /// <exception cref="IndexOutOfRangeException">Throws IndexOutOfRangeException
+ /// if no matching property is found.</exception>
+ public IShellProperty this[string canonicalName]
+ {
+ get
+ {
+ if (string.IsNullOrEmpty(canonicalName))
+ {
+ throw new ArgumentException(LocalizedMessages.PropertyCollectionNullCanonicalName, "canonicalName");
+ }
+
+ IShellProperty prop = Items.FirstOrDefault(p => p.CanonicalName == canonicalName);
+ if (prop == null)
+ {
+ throw new IndexOutOfRangeException(LocalizedMessages.PropertyCollectionCanonicalInvalidIndex);
+ }
+ return prop;
+ }
+ }
+
+ /// <summary>
+ /// Gets a property associated with the supplied property key.
+ ///
+ /// </summary>
+ /// <param name="key">The property key.</param>
+ /// <returns>The property associated with the property key, if found.</returns>
+ /// <exception cref="IndexOutOfRangeException">Throws IndexOutOfRangeException
+ /// if no matching property is found.</exception>
+ public IShellProperty this[PropertyKey key]
+ {
+ get
+ {
+ IShellProperty prop = Items.FirstOrDefault(p => p.PropertyKey == key);
+ if (prop != null) return prop;
+
+ throw new IndexOutOfRangeException(LocalizedMessages.PropertyCollectionInvalidIndex);
+ }
+ }
+
+ #endregion
+
+ // TODO - ShellProperties.cs also has a similar class that is used for creating
+ // a ShellObject specific IShellProperty. These 2 methods should be combined or moved to a
+ // common location.
+ internal static IShellProperty CreateTypedProperty(PropertyKey propKey, IPropertyStore NativePropertyStore)
+ {
+ return ShellPropertyFactory.CreateShellProperty(propKey, NativePropertyStore);
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release the native and managed objects
+ /// </summary>
+ /// <param name="disposing">Indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (NativePropertyStore != null)
+ {
+ Marshal.ReleaseComObject(NativePropertyStore);
+ NativePropertyStore = null;
+ }
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Implement the finalizer.
+ /// </summary>
+ ~ShellPropertyCollection()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescription.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescription.cs
new file mode 100644
index 0000000000..cce67e8014
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescription.cs
@@ -0,0 +1,565 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.InteropServices;
+using System.Runtime.InteropServices.ComTypes;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Defines the shell property description information for a property.
+ /// </summary>
+ public class ShellPropertyDescription : IDisposable
+ {
+ #region Private Fields
+
+ private IPropertyDescription nativePropertyDescription;
+ private string canonicalName;
+ private PropertyKey propertyKey;
+ private string displayName;
+ private string editInvitation;
+ private VarEnum? varEnumType = null;
+ private PropertyDisplayType? displayType;
+ private PropertyAggregationType? aggregationTypes;
+ private uint? defaultColumWidth;
+ private PropertyTypeOptions? propertyTypeFlags;
+ private PropertyViewOptions? propertyViewFlags;
+ private Type valueType;
+ private ReadOnlyCollection<ShellPropertyEnumType> propertyEnumTypes;
+ private PropertyColumnStateOptions? columnState;
+ private PropertyConditionType? conditionType;
+ private PropertyConditionOperation? conditionOperation;
+ private PropertyGroupingRange? groupingRange;
+ private PropertySortDescription? sortDescription;
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// Gets the case-sensitive name of a property as it is known to the system,
+ /// regardless of its localized name.
+ /// </summary>
+ public string CanonicalName
+ {
+ get
+ {
+ if (canonicalName == null)
+ {
+ PropertySystemNativeMethods.PSGetNameFromPropertyKey(ref propertyKey, out canonicalName);
+ }
+
+ return canonicalName;
+ }
+ }
+
+ /// <summary>
+ /// Gets the property key identifying the underlying property.
+ /// </summary>
+ public PropertyKey PropertyKey
+ {
+ get
+ {
+ return propertyKey;
+ }
+ }
+
+ /// <summary>
+ /// Gets the display name of the property as it is shown in any user interface (UI).
+ /// </summary>
+ public string DisplayName
+ {
+ get
+ {
+ if (NativePropertyDescription != null && displayName == null)
+ {
+ IntPtr dispNameptr = IntPtr.Zero;
+
+ HResult hr = NativePropertyDescription.GetDisplayName(out dispNameptr);
+
+ if (CoreErrorHelper.Succeeded(hr) && dispNameptr != IntPtr.Zero)
+ {
+ displayName = Marshal.PtrToStringUni(dispNameptr);
+
+ // Free the string
+ Marshal.FreeCoTaskMem(dispNameptr);
+ }
+ }
+
+ return displayName;
+ }
+ }
+
+ /// <summary>
+ /// Gets the text used in edit controls hosted in various dialog boxes.
+ /// </summary>
+ public string EditInvitation
+ {
+ get
+ {
+ if (NativePropertyDescription != null && editInvitation == null)
+ {
+ // EditInvitation can be empty, so ignore the HR value, but don't throw an exception
+ IntPtr ptr = IntPtr.Zero;
+
+ HResult hr = NativePropertyDescription.GetEditInvitation(out ptr);
+
+ if (CoreErrorHelper.Succeeded(hr) && ptr != IntPtr.Zero)
+ {
+ editInvitation = Marshal.PtrToStringUni(ptr);
+ // Free the string
+ Marshal.FreeCoTaskMem(ptr);
+ }
+ }
+
+ return editInvitation;
+ }
+ }
+
+ /// <summary>
+ /// Gets the VarEnum OLE type for this property.
+ /// </summary>
+ public VarEnum VarEnumType
+ {
+ get
+ {
+ if (NativePropertyDescription != null && varEnumType == null)
+ {
+ VarEnum tempType;
+
+ HResult hr = NativePropertyDescription.GetPropertyType(out tempType);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ varEnumType = tempType;
+ }
+ }
+
+ return varEnumType.HasValue ? varEnumType.Value : default(VarEnum);
+ }
+ }
+
+ /// <summary>
+ /// Gets the .NET system type for a value of this property, or
+ /// null if the value is empty.
+ /// </summary>
+ public Type ValueType
+ {
+ get
+ {
+ if (valueType == null)
+ {
+ valueType = ShellPropertyFactory.VarEnumToSystemType(VarEnumType);
+ }
+
+ return valueType;
+ }
+ }
+
+ /// <summary>
+ /// Gets the current data type used to display the property.
+ /// </summary>
+ public PropertyDisplayType DisplayType
+ {
+ get
+ {
+ if (NativePropertyDescription != null && displayType == null)
+ {
+ PropertyDisplayType tempDisplayType;
+
+ HResult hr = NativePropertyDescription.GetDisplayType(out tempDisplayType);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ displayType = tempDisplayType;
+ }
+ }
+
+ return displayType.HasValue ? displayType.Value : default(PropertyDisplayType);
+ }
+ }
+
+ /// <summary>
+ /// Gets the default user interface (UI) column width for this property.
+ /// </summary>
+ public uint DefaultColumWidth
+ {
+ get
+ {
+ if (NativePropertyDescription != null && !defaultColumWidth.HasValue)
+ {
+ uint tempDefaultColumWidth;
+
+ HResult hr = NativePropertyDescription.GetDefaultColumnWidth(out tempDefaultColumWidth);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ defaultColumWidth = tempDefaultColumWidth;
+ }
+ }
+
+ return defaultColumWidth.HasValue ? defaultColumWidth.Value : default(uint);
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that describes how the property values are displayed when
+ /// multiple items are selected in the user interface (UI).
+ /// </summary>
+ public PropertyAggregationType AggregationTypes
+ {
+ get
+ {
+ if (NativePropertyDescription != null && aggregationTypes == null)
+ {
+ PropertyAggregationType tempAggregationTypes;
+
+ HResult hr = NativePropertyDescription.GetAggregationType(out tempAggregationTypes);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ aggregationTypes = tempAggregationTypes;
+ }
+ }
+
+ return aggregationTypes.HasValue ? aggregationTypes.Value : default(PropertyAggregationType);
+ }
+ }
+
+ /// <summary>
+ /// Gets a list of the possible values for this property.
+ /// </summary>
+ public ReadOnlyCollection<ShellPropertyEnumType> PropertyEnumTypes
+ {
+ get
+ {
+ if (NativePropertyDescription != null && propertyEnumTypes == null)
+ {
+ List<ShellPropertyEnumType> propEnumTypeList = new List<ShellPropertyEnumType>();
+
+ Guid guid = new Guid(ShellIIDGuid.IPropertyEnumTypeList);
+ IPropertyEnumTypeList nativeList;
+ HResult hr = NativePropertyDescription.GetEnumTypeList(ref guid, out nativeList);
+
+ if (nativeList != null && CoreErrorHelper.Succeeded(hr))
+ {
+
+ uint count;
+ nativeList.GetCount(out count);
+ guid = new Guid(ShellIIDGuid.IPropertyEnumType);
+
+ for (uint i = 0; i < count; i++)
+ {
+ IPropertyEnumType nativeEnumType;
+ nativeList.GetAt(i, ref guid, out nativeEnumType);
+ propEnumTypeList.Add(new ShellPropertyEnumType(nativeEnumType));
+ }
+ }
+
+ propertyEnumTypes = new ReadOnlyCollection<ShellPropertyEnumType>(propEnumTypeList);
+ }
+
+ return propertyEnumTypes;
+
+ }
+ }
+
+ /// <summary>
+ /// Gets the column state flag, which describes how the property
+ /// should be treated by interfaces or APIs that use this flag.
+ /// </summary>
+ public PropertyColumnStateOptions ColumnState
+ {
+ get
+ {
+ // If default/first value, try to get it again, otherwise used the cached one.
+ if (NativePropertyDescription != null && columnState == null)
+ {
+ PropertyColumnStateOptions state;
+
+ HResult hr = NativePropertyDescription.GetColumnState(out state);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ columnState = state;
+ }
+ }
+
+ return columnState.HasValue ? columnState.Value : default(PropertyColumnStateOptions);
+ }
+ }
+
+ /// <summary>
+ /// Gets the condition type to use when displaying the property in
+ /// the query builder user interface (UI). This influences the list
+ /// of predicate conditions (for example, equals, less than, and
+ /// contains) that are shown for this property.
+ /// </summary>
+ /// <remarks>For more information, see the <c>conditionType</c> attribute
+ /// of the <c>typeInfo</c> element in the property's .propdesc file.</remarks>
+ public PropertyConditionType ConditionType
+ {
+ get
+ {
+ // If default/first value, try to get it again, otherwise used the cached one.
+ if (NativePropertyDescription != null && conditionType == null)
+ {
+ PropertyConditionType tempConditionType;
+ PropertyConditionOperation tempConditionOperation;
+
+ HResult hr = NativePropertyDescription.GetConditionType(out tempConditionType, out tempConditionOperation);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ conditionOperation = tempConditionOperation;
+ conditionType = tempConditionType;
+ }
+ }
+
+ return conditionType.HasValue ? conditionType.Value : default(PropertyConditionType);
+ }
+ }
+
+ /// <summary>
+ /// Gets the default condition operation to use
+ /// when displaying the property in the query builder user
+ /// interface (UI). This influences the list of predicate conditions
+ /// (for example, equals, less than, and contains) that are shown
+ /// for this property.
+ /// </summary>
+ /// <remarks>For more information, see the <c>conditionType</c> attribute of the
+ /// <c>typeInfo</c> element in the property's .propdesc file.</remarks>
+ public PropertyConditionOperation ConditionOperation
+ {
+ get
+ {
+ // If default/first value, try to get it again, otherwise used the cached one.
+ if (NativePropertyDescription != null && conditionOperation == null)
+ {
+ PropertyConditionType tempConditionType;
+ PropertyConditionOperation tempConditionOperation;
+
+ HResult hr = NativePropertyDescription.GetConditionType(out tempConditionType, out tempConditionOperation);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ conditionOperation = tempConditionOperation;
+ conditionType = tempConditionType;
+ }
+ }
+
+ return conditionOperation.HasValue ? conditionOperation.Value : default(PropertyConditionOperation);
+ }
+ }
+
+ /// <summary>
+ /// Gets the method used when a view is grouped by this property.
+ /// </summary>
+ /// <remarks>The information retrieved by this method comes from
+ /// the <c>groupingRange</c> attribute of the <c>typeInfo</c> element in the
+ /// property's .propdesc file.</remarks>
+ public PropertyGroupingRange GroupingRange
+ {
+ get
+ {
+ // If default/first value, try to get it again, otherwise used the cached one.
+ if (NativePropertyDescription != null && groupingRange == null)
+ {
+ PropertyGroupingRange tempGroupingRange;
+
+ HResult hr = NativePropertyDescription.GetGroupingRange(out tempGroupingRange);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ groupingRange = tempGroupingRange;
+ }
+ }
+
+ return groupingRange.HasValue ? groupingRange.Value : default(PropertyGroupingRange);
+ }
+ }
+
+ /// <summary>
+ /// Gets the current sort description flags for the property,
+ /// which indicate the particular wordings of sort offerings.
+ /// </summary>
+ /// <remarks>The settings retrieved by this method are set
+ /// through the <c>sortDescription</c> attribute of the <c>labelInfo</c>
+ /// element in the property's .propdesc file.</remarks>
+ public PropertySortDescription SortDescription
+ {
+ get
+ {
+ // If default/first value, try to get it again, otherwise used the cached one.
+ if (NativePropertyDescription != null && sortDescription == null)
+ {
+ PropertySortDescription tempSortDescription;
+
+ HResult hr = NativePropertyDescription.GetSortDescription(out tempSortDescription);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ sortDescription = tempSortDescription;
+ }
+ }
+
+ return sortDescription.HasValue ? sortDescription.Value : default(PropertySortDescription);
+ }
+ }
+
+ /// <summary>
+ /// Gets the localized display string that describes the current sort order.
+ /// </summary>
+ /// <param name="descending">Indicates the sort order should
+ /// reference the string "Z on top"; otherwise, the sort order should reference the string "A on top".</param>
+ /// <returns>The sort description for this property.</returns>
+ /// <remarks>The string retrieved by this method is determined by flags set in the
+ /// <c>sortDescription</c> attribute of the <c>labelInfo</c> element in the property's .propdesc file.</remarks>
+ public string GetSortDescriptionLabel(bool descending)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ string label = string.Empty;
+
+ if (NativePropertyDescription != null)
+ {
+ HResult hr = NativePropertyDescription.GetSortDescriptionLabel(descending, out ptr);
+
+ if (CoreErrorHelper.Succeeded(hr) && ptr != IntPtr.Zero)
+ {
+ label = Marshal.PtrToStringUni(ptr);
+ // Free the string
+ Marshal.FreeCoTaskMem(ptr);
+ }
+ }
+
+ return label;
+ }
+
+ /// <summary>
+ /// Gets a set of flags that describe the uses and capabilities of the property.
+ /// </summary>
+ public PropertyTypeOptions TypeFlags
+ {
+ get
+ {
+ if (NativePropertyDescription != null && propertyTypeFlags == null)
+ {
+ PropertyTypeOptions tempFlags;
+
+ HResult hr = NativePropertyDescription.GetTypeFlags(PropertyTypeOptions.MaskAll, out tempFlags);
+
+ propertyTypeFlags = CoreErrorHelper.Succeeded(hr) ? tempFlags : default(PropertyTypeOptions);
+ }
+
+ return propertyTypeFlags.HasValue ? propertyTypeFlags.Value : default(PropertyTypeOptions);
+ }
+ }
+
+ /// <summary>
+ /// Gets the current set of flags governing the property's view.
+ /// </summary>
+ public PropertyViewOptions ViewFlags
+ {
+ get
+ {
+ if (NativePropertyDescription != null && propertyViewFlags == null)
+ {
+ PropertyViewOptions tempFlags;
+ HResult hr = NativePropertyDescription.GetViewFlags(out tempFlags);
+
+ propertyViewFlags = CoreErrorHelper.Succeeded(hr) ? tempFlags : default(PropertyViewOptions);
+ }
+
+ return propertyViewFlags.HasValue ? propertyViewFlags.Value : default(PropertyViewOptions);
+ }
+ }
+
+ /// <summary>
+ /// Gets a value that determines if the native property description is present on the system.
+ /// </summary>
+ public bool HasSystemDescription
+ {
+ get { return NativePropertyDescription != null; }
+ }
+
+ #endregion
+
+ #region Internal Constructor
+
+ internal ShellPropertyDescription(PropertyKey key)
+ {
+ this.propertyKey = key;
+ }
+
+ #endregion
+
+ #region Internal Methods
+
+ /// <summary>
+ /// Get the native property description COM interface
+ /// </summary>
+ internal IPropertyDescription NativePropertyDescription
+ {
+ get
+ {
+ if (nativePropertyDescription == null)
+ {
+ Guid guid = new Guid(ShellIIDGuid.IPropertyDescription);
+ PropertySystemNativeMethods.PSGetPropertyDescription(ref propertyKey, ref guid, out nativePropertyDescription);
+ }
+
+ return nativePropertyDescription;
+ }
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release the native objects
+ /// </summary>
+ /// <param name="disposing">Indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (nativePropertyDescription != null)
+ {
+ Marshal.ReleaseComObject(nativePropertyDescription);
+ nativePropertyDescription = null;
+ }
+
+ if (disposing)
+ {
+ // and the managed ones
+ canonicalName = null;
+ displayName = null;
+ editInvitation = null;
+ defaultColumWidth = null;
+ valueType = null;
+ propertyEnumTypes = null;
+ }
+ }
+
+ /// <summary>
+ /// Release the native objects
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Release the native objects
+ /// </summary>
+ ~ShellPropertyDescription()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescriptionsCache.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescriptionsCache.cs
new file mode 100644
index 0000000000..d97584380e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyDescriptionsCache.cs
@@ -0,0 +1,39 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ internal class ShellPropertyDescriptionsCache
+ {
+ private ShellPropertyDescriptionsCache()
+ {
+ propsDictionary = new Dictionary<PropertyKey, ShellPropertyDescription>();
+ }
+
+ private IDictionary<PropertyKey, ShellPropertyDescription> propsDictionary;
+ private static ShellPropertyDescriptionsCache cacheInstance;
+
+ public static ShellPropertyDescriptionsCache Cache
+ {
+ get
+ {
+ if (cacheInstance == null)
+ {
+ cacheInstance = new ShellPropertyDescriptionsCache();
+ }
+ return cacheInstance;
+ }
+ }
+
+ public ShellPropertyDescription GetPropertyDescription(PropertyKey key)
+ {
+ if (!propsDictionary.ContainsKey(key))
+ {
+ propsDictionary.Add(key, new ShellPropertyDescription(key));
+ }
+ return propsDictionary[key];
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnumType.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnumType.cs
new file mode 100644
index 0000000000..fbe7b1c23c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnumType.cs
@@ -0,0 +1,131 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Defines the enumeration values for a property type.
+ /// </summary>
+ public class ShellPropertyEnumType
+ {
+ #region Private Properties
+
+ private string displayText;
+ private PropEnumType? enumType;
+ private object minValue, setValue, enumerationValue;
+
+ private IPropertyEnumType NativePropertyEnumType
+ {
+ set;
+ get;
+ }
+
+ #endregion
+
+ #region Internal Constructor
+
+ internal ShellPropertyEnumType(IPropertyEnumType nativePropertyEnumType)
+ {
+ NativePropertyEnumType = nativePropertyEnumType;
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// Gets display text from an enumeration information structure.
+ /// </summary>
+ public string DisplayText
+ {
+ get
+ {
+ if (displayText == null)
+ {
+ NativePropertyEnumType.GetDisplayText(out displayText);
+ }
+ return displayText;
+ }
+ }
+
+ /// <summary>
+ /// Gets an enumeration type from an enumeration information structure.
+ /// </summary>
+ public PropEnumType EnumType
+ {
+ get
+ {
+ if (!enumType.HasValue)
+ {
+ PropEnumType tempEnumType;
+ NativePropertyEnumType.GetEnumType(out tempEnumType);
+ enumType = tempEnumType;
+ }
+ return enumType.Value;
+ }
+ }
+
+ /// <summary>
+ /// Gets a minimum value from an enumeration information structure.
+ /// </summary>
+ public object RangeMinValue
+ {
+ get
+ {
+ if (minValue == null)
+ {
+ using (PropVariant propVar = new PropVariant())
+ {
+ NativePropertyEnumType.GetRangeMinValue(propVar);
+ minValue = propVar.Value;
+ }
+ }
+ return minValue;
+
+ }
+ }
+
+ /// <summary>
+ /// Gets a set value from an enumeration information structure.
+ /// </summary>
+ public object RangeSetValue
+ {
+ get
+ {
+ if (setValue == null)
+ {
+ using (PropVariant propVar = new PropVariant())
+ {
+ NativePropertyEnumType.GetRangeSetValue(propVar);
+ setValue = propVar.Value;
+ }
+ }
+ return setValue;
+
+ }
+ }
+
+ /// <summary>
+ /// Gets a value from an enumeration information structure.
+ /// </summary>
+ public object RangeValue
+ {
+ get
+ {
+ if (enumerationValue == null)
+ {
+ using (PropVariant propVar = new PropVariant())
+ {
+ NativePropertyEnumType.GetValue(propVar);
+ enumerationValue = propVar.Value;
+ }
+ }
+ return enumerationValue;
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnums.cs
new file mode 100644
index 0000000000..99c4963997
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyEnums.cs
@@ -0,0 +1,737 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ #region Property System Enumerations
+
+ /// <summary>
+ /// Property store cache state
+ /// </summary>
+ public enum PropertyStoreCacheState
+ {
+ /// <summary>
+ /// Contained in file, not updated.
+ /// </summary>
+ Normal = 0,
+
+ /// <summary>
+ /// Not contained in file.
+ /// </summary>
+ NotInSource = 1,
+
+ /// <summary>
+ /// Contained in file, has been updated since file was consumed.
+ /// </summary>
+ Dirty = 2
+ }
+
+ /// <summary>
+ /// Delineates the format of a property string.
+ /// </summary>
+ /// <remarks>
+ /// Typically use one, or a bitwise combination of
+ /// these flags, to specify the format. Some flags are mutually exclusive,
+ /// so combinations like <c>ShortTime | LongTime | HideTime</c> are not allowed.
+ /// </remarks>
+ [Flags]
+ public enum PropertyDescriptionFormatOptions
+ {
+ /// <summary>
+ /// The format settings specified in the property's .propdesc file.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// The value preceded with the property's display name.
+ /// </summary>
+ /// <remarks>
+ /// This flag is ignored when the <c>hideLabelPrefix</c> attribute of the <c>labelInfo</c> element
+ /// in the property's .propinfo file is set to true.
+ /// </remarks>
+ PrefixName = 0x1,
+
+ /// <summary>
+ /// The string treated as a file name.
+ /// </summary>
+ FileName = 0x2,
+
+ /// <summary>
+ /// The sizes displayed in kilobytes (KB), regardless of size.
+ /// </summary>
+ /// <remarks>
+ /// This flag applies to properties of <c>Integer</c> types and aligns the values in the column.
+ /// </remarks>
+ AlwaysKB = 0x4,
+
+ /// <summary>
+ /// Reserved.
+ /// </summary>
+ RightToLeft = 0x8,
+
+ /// <summary>
+ /// The time displayed as 'hh:mm am/pm'.
+ /// </summary>
+ ShortTime = 0x10,
+
+ /// <summary>
+ /// The time displayed as 'hh:mm:ss am/pm'.
+ /// </summary>
+ LongTime = 0x20,
+
+ /// <summary>
+ /// The time portion of date/time hidden.
+ /// </summary>
+ HideTime = 64,
+
+ /// <summary>
+ /// The date displayed as 'MM/DD/YY'. For example, '3/21/04'.
+ /// </summary>
+ ShortDate = 0x80,
+
+ /// <summary>
+ /// The date displayed as 'DayOfWeek Month day, year'.
+ /// For example, 'Monday, March 21, 2004'.
+ /// </summary>
+ LongDate = 0x100,
+
+ /// <summary>
+ /// The date portion of date/time hidden.
+ /// </summary>
+ HideDate = 0x200,
+
+ /// <summary>
+ /// The friendly date descriptions, such as "Yesterday".
+ /// </summary>
+ RelativeDate = 0x400,
+
+ /// <summary>
+ /// The text displayed in a text box as a cue for the user, such as 'Enter your name'.
+ /// </summary>
+ /// <remarks>
+ /// The invitation text is returned if formatting failed or the value was empty.
+ /// Invitation text is text displayed in a text box as a cue for the user,
+ /// Formatting can fail if the data entered
+ /// is not of an expected type, such as putting alpha characters in
+ /// a phone number field.
+ /// </remarks>
+ UseEditInvitation = 0x800,
+
+ /// <summary>
+ /// This flag requires UseEditInvitation to also be specified. When the
+ /// formatting flags are ReadOnly | UseEditInvitation and the algorithm
+ /// would have shown invitation text, a string is returned that indicates
+ /// the value is "Unknown" instead of the invitation text.
+ /// </summary>
+ ReadOnly = 0x1000,
+
+ /// <summary>
+ /// The detection of the reading order is not automatic. Useful when converting
+ /// to ANSI to omit the Unicode reading order characters.
+ /// </summary>
+ NoAutoReadingOrder = 0x2000,
+
+ /// <summary>
+ /// Smart display of DateTime values
+ /// </summary>
+ SmartDateTime = 0x4000
+ }
+
+ /// <summary>
+ /// Specifies the display types for a property.
+ /// </summary>
+ public enum PropertyDisplayType
+ {
+ /// <summary>
+ /// The String Display. This is the default if the property doesn't specify a display type.
+ /// </summary>
+ String = 0,
+
+ /// <summary>
+ /// The Number Display.
+ /// </summary>
+ Number = 1,
+
+ /// <summary>
+ /// The Boolean Display.
+ /// </summary>
+ Boolean = 2,
+
+ /// <summary>
+ /// The DateTime Display.
+ /// </summary>
+ DateTime = 3,
+
+ /// <summary>
+ /// The Enumerated Display.
+ /// </summary>
+ Enumerated = 4
+ }
+
+ /// <summary>
+ /// Property Aggregation Type
+ /// </summary>
+ public enum PropertyAggregationType
+ {
+ /// <summary>
+ /// The string "Multiple Values" is displayed.
+ /// </summary>
+ Default = 0,
+
+ /// <summary>
+ /// The first value in the selection is displayed.
+ /// </summary>
+ First = 1,
+
+ /// <summary>
+ /// The sum of the selected values is displayed. This flag is never returned
+ /// for data types VT_LPWSTR, VT_BOOL, and VT_FILETIME.
+ /// </summary>
+ Sum = 2,
+
+ /// <summary>
+ /// The numerical average of the selected values is displayed. This flag
+ /// is never returned for data types VT_LPWSTR, VT_BOOL, and VT_FILETIME.
+ /// </summary>
+ Average = 3,
+
+ /// <summary>
+ /// The date range of the selected values is displayed. This flag is only
+ /// returned for values of the VT_FILETIME data type.
+ /// </summary>
+ DateRange = 4,
+
+ /// <summary>
+ /// A concatenated string of all the values is displayed. The order of
+ /// individual values in the string is undefined. The concatenated
+ /// string omits duplicate values; if a value occurs more than once,
+ /// it only appears a single time in the concatenated string.
+ /// </summary>
+ Union = 5,
+
+ /// <summary>
+ /// The highest of the selected values is displayed.
+ /// </summary>
+ Max = 6,
+
+ /// <summary>
+ /// The lowest of the selected values is displayed.
+ /// </summary>
+ Min = 7
+ }
+
+ /// <summary>
+ /// Property Enumeration Types
+ /// </summary>
+ public enum PropEnumType
+ {
+ /// <summary>
+ /// Use DisplayText and either RangeMinValue or RangeSetValue.
+ /// </summary>
+ DiscreteValue = 0,
+
+ /// <summary>
+ /// Use DisplayText and either RangeMinValue or RangeSetValue
+ /// </summary>
+ RangedValue = 1,
+
+ /// <summary>
+ /// Use DisplayText
+ /// </summary>
+ DefaultValue = 2,
+
+ /// <summary>
+ /// Use Value or RangeMinValue
+ /// </summary>
+ EndRange = 3
+ };
+
+ /// <summary>
+ /// Describes how a property should be treated for display purposes.
+ /// </summary>
+ [Flags]
+ public enum PropertyColumnStateOptions
+ {
+ /// <summary>
+ /// Default value
+ /// </summary>
+ None = 0x00000000,
+
+ /// <summary>
+ /// The value is displayed as a string.
+ /// </summary>
+ StringType = 0x00000001,
+
+ /// <summary>
+ /// The value is displayed as an integer.
+ /// </summary>
+ IntegerType = 0x00000002,
+
+ /// <summary>
+ /// The value is displayed as a date/time.
+ /// </summary>
+ DateType = 0x00000003,
+
+ /// <summary>
+ /// A mask for display type values StringType, IntegerType, and DateType.
+ /// </summary>
+ TypeMask = 0x0000000f,
+
+ /// <summary>
+ /// The column should be on by default in Details view.
+ /// </summary>
+ OnByDefault = 0x00000010,
+
+ /// <summary>
+ /// Will be slow to compute. Perform on a background thread.
+ /// </summary>
+ Slow = 0x00000020,
+
+ /// <summary>
+ /// Provided by a handler, not the folder.
+ /// </summary>
+ Extended = 0x00000040,
+
+ /// <summary>
+ /// Not displayed in the context menu, but is listed in the More... dialog.
+ /// </summary>
+ SecondaryUI = 0x00000080,
+
+ /// <summary>
+ /// Not displayed in the user interface (UI).
+ /// </summary>
+ Hidden = 0x00000100,
+
+ /// <summary>
+ /// VarCmp produces same result as IShellFolder::CompareIDs.
+ /// </summary>
+ PreferVariantCompare = 0x00000200,
+
+ /// <summary>
+ /// PSFormatForDisplay produces same result as IShellFolder::CompareIDs.
+ /// </summary>
+ PreferFormatForDisplay = 0x00000400,
+
+ /// <summary>
+ /// Do not sort folders separately.
+ /// </summary>
+ NoSortByFolders = 0x00000800,
+
+ /// <summary>
+ /// Only displayed in the UI.
+ /// </summary>
+ ViewOnly = 0x00010000,
+
+ /// <summary>
+ /// Marks columns with values that should be read in a batch.
+ /// </summary>
+ BatchRead = 0x00020000,
+
+ /// <summary>
+ /// Grouping is disabled for this column.
+ /// </summary>
+ NoGroupBy = 0x00040000,
+
+ /// <summary>
+ /// Can't resize the column.
+ /// </summary>
+ FixedWidth = 0x00001000,
+
+ /// <summary>
+ /// The width is the same in all dots per inch (dpi)s.
+ /// </summary>
+ NoDpiScale = 0x00002000,
+
+ /// <summary>
+ /// Fixed width and height ratio.
+ /// </summary>
+ FixedRatio = 0x00004000,
+
+ /// <summary>
+ /// Filters out new display flags.
+ /// </summary>
+ DisplayMask = 0x0000F000,
+ }
+
+ /// <summary>
+ /// Specifies the condition type to use when displaying the property in the query builder user interface (UI).
+ /// </summary>
+ public enum PropertyConditionType
+ {
+ /// <summary>
+ /// The default condition type.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// The string type.
+ /// </summary>
+ String = 1,
+
+ /// <summary>
+ /// The size type.
+ /// </summary>
+ Size = 2,
+
+ /// <summary>
+ /// The date/time type.
+ /// </summary>
+ DateTime = 3,
+
+ /// <summary>
+ /// The Boolean type.
+ /// </summary>
+ Boolean = 4,
+
+ /// <summary>
+ /// The number type.
+ /// </summary>
+ Number = 5,
+ }
+
+ /// <summary>
+ /// Provides a set of flags to be used with IConditionFactory,
+ /// ICondition, and IConditionGenerator to indicate the operation.
+ /// </summary>
+ public enum PropertyConditionOperation
+ {
+ /// <summary>
+ /// The implicit comparison between the value of the property and the value of the constant.
+ /// </summary>
+ Implicit,
+
+ /// <summary>
+ /// The value of the property and the value of the constant must be equal.
+ /// </summary>
+ Equal,
+
+ /// <summary>
+ /// The value of the property and the value of the constant must not be equal.
+ /// </summary>
+ NotEqual,
+
+ /// <summary>
+ /// The value of the property must be less than the value of the constant.
+ /// </summary>
+ LessThan,
+
+ /// <summary>
+ /// The value of the property must be greater than the value of the constant.
+ /// </summary>
+ GreaterThan,
+
+ /// <summary>
+ /// The value of the property must be less than or equal to the value of the constant.
+ /// </summary>
+ LessThanOrEqual,
+
+ /// <summary>
+ /// The value of the property must be greater than or equal to the value of the constant.
+ /// </summary>
+ GreaterThanOrEqual,
+
+ /// <summary>
+ /// The value of the property must begin with the value of the constant.
+ /// </summary>
+ ValueStartsWith,
+
+ /// <summary>
+ /// The value of the property must end with the value of the constant.
+ /// </summary>
+ ValueEndsWith,
+
+ /// <summary>
+ /// The value of the property must contain the value of the constant.
+ /// </summary>
+ ValueContains,
+
+ /// <summary>
+ /// The value of the property must not contain the value of the constant.
+ /// </summary>
+ ValueNotContains,
+
+ /// <summary>
+ /// The value of the property must match the value of the constant, where '?' matches any single character and '*' matches any sequence of characters.
+ /// </summary>
+ DOSWildCards,
+
+ /// <summary>
+ /// The value of the property must contain a word that is the value of the constant.
+ /// </summary>
+ WordEqual,
+
+ /// <summary>
+ /// The value of the property must contain a word that begins with the value of the constant.
+ /// </summary>
+ WordStartsWith,
+
+ /// <summary>
+ /// The application is free to interpret this in any suitable way.
+ /// </summary>
+ ApplicationSpecific,
+ }
+
+ /// <summary>
+ /// Specifies the property description grouping ranges.
+ /// </summary>
+ public enum PropertyGroupingRange
+ {
+ /// <summary>
+ /// The individual values.
+ /// </summary>
+ Discrete = 0,
+
+ /// <summary>
+ /// The static alphanumeric ranges.
+ /// </summary>
+ Alphanumeric = 1,
+
+ /// <summary>
+ /// The static size ranges.
+ /// </summary>
+ Size = 2,
+
+ /// <summary>
+ /// The dynamically-created ranges.
+ /// </summary>
+ Dynamic = 3,
+
+ /// <summary>
+ /// The month and year groups.
+ /// </summary>
+ Date = 4,
+
+ /// <summary>
+ /// The percent groups.
+ /// </summary>
+ Percent = 5,
+
+ /// <summary>
+ /// The enumerated groups.
+ /// </summary>
+ Enumerated = 6,
+ }
+
+ /// <summary>
+ /// Describes the particular wordings of sort offerings.
+ /// </summary>
+ /// <remarks>
+ /// Note that the strings shown are English versions only;
+ /// localized strings are used for other locales.
+ /// </remarks>
+ public enum PropertySortDescription
+ {
+ /// <summary>
+ /// The default ascending or descending property sort, "Sort going up", "Sort going down".
+ /// </summary>
+ General,
+
+ /// <summary>
+ /// The alphabetical sort, "A on top", "Z on top".
+ /// </summary>
+ AToZ,
+
+ /// <summary>
+ /// The numerical sort, "Lowest on top", "Highest on top".
+ /// </summary>
+ LowestToHighest,
+
+ /// <summary>
+ /// The size sort, "Smallest on top", "Largest on top".
+ /// </summary>
+ SmallestToBiggest,
+
+ /// <summary>
+ /// The chronological sort, "Oldest on top", "Newest on top".
+ /// </summary>
+ OldestToNewest,
+ }
+
+ /// <summary>
+ /// Describes the attributes of the <c>typeInfo</c> element in the property's <c>.propdesc</c> file.
+ /// </summary>
+ [Flags]
+ public enum PropertyTypeOptions
+ {
+ /// <summary>
+ /// The property uses the default values for all attributes.
+ /// </summary>
+ None = 0x00000000,
+
+ /// <summary>
+ /// The property can have multiple values.
+ /// </summary>
+ /// <remarks>
+ /// These values are stored as a VT_VECTOR in the PROPVARIANT structure.
+ /// This value is set by the multipleValues attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ MultipleValues = 0x00000001,
+
+ /// <summary>
+ /// This property cannot be written to.
+ /// </summary>
+ /// <remarks>
+ /// This value is set by the isInnate attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ IsInnate = 0x00000002,
+
+ /// <summary>
+ /// The property is a group heading.
+ /// </summary>
+ /// <remarks>
+ /// This value is set by the isGroup attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ IsGroup = 0x00000004,
+
+ /// <summary>
+ /// The user can group by this property.
+ /// </summary>
+ /// <remarks>
+ /// This value is set by the canGroupBy attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ CanGroupBy = 0x00000008,
+
+ /// <summary>
+ /// The user can stack by this property.
+ /// </summary>
+ /// <remarks>
+ /// This value is set by the canStackBy attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ CanStackBy = 0x00000010,
+
+ /// <summary>
+ /// This property contains a hierarchy.
+ /// </summary>
+ /// <remarks>
+ /// This value is set by the isTreeProperty attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ IsTreeProperty = 0x00000020,
+
+ /// <summary>
+ /// Include this property in any full text query that is performed.
+ /// </summary>
+ /// <remarks>
+ /// This value is set by the includeInFullTextQuery attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ IncludeInFullTextQuery = 0x00000040,
+
+ /// <summary>
+ /// This property is meant to be viewed by the user.
+ /// </summary>
+ /// <remarks>
+ /// This influences whether the property shows up in the "Choose Columns" dialog, for example.
+ /// This value is set by the isViewable attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ IsViewable = 0x00000080,
+
+ /// <summary>
+ /// This property is included in the list of properties that can be queried.
+ /// </summary>
+ /// <remarks>
+ /// A queryable property must also be viewable.
+ /// This influences whether the property shows up in the query builder UI.
+ /// This value is set by the isQueryable attribute of the typeInfo element in the property's .propdesc file.
+ /// </remarks>
+ IsQueryable = 0x00000100,
+
+ /// <summary>
+ /// Used with an innate property (that is, a value calculated from other property values) to indicate that it can be deleted.
+ /// </summary>
+ /// <remarks>
+ /// Windows Vista with Service Pack 1 (SP1) and later.
+ /// This value is used by the Remove Properties user interface (UI) to determine whether to display a check box next to an property that allows that property to be selected for removal.
+ /// Note that a property that is not innate can always be purged regardless of the presence or absence of this flag.
+ /// </remarks>
+ CanBePurged = 0x00000200,
+
+ /// <summary>
+ /// This property is owned by the system.
+ /// </summary>
+ IsSystemProperty = unchecked((int)0x80000000),
+
+ /// <summary>
+ /// A mask used to retrieve all flags.
+ /// </summary>
+ MaskAll = unchecked((int)0x800001FF),
+ }
+
+ /// <summary>
+ /// Associates property names with property description list strings.
+ /// </summary>
+ [Flags]
+ public enum PropertyViewOptions
+ {
+ /// <summary>
+ /// The property is shown by default.
+ /// </summary>
+ None = 0x00000000,
+
+ /// <summary>
+ /// The property is centered.
+ /// </summary>
+ CenterAlign = 0x00000001,
+
+ /// <summary>
+ /// The property is right aligned.
+ /// </summary>
+ RightAlign = 0x00000002,
+
+ /// <summary>
+ /// The property is shown as the beginning of the next collection of properties in the view.
+ /// </summary>
+ BeginNewGroup = 0x00000004,
+
+ /// <summary>
+ /// The remainder of the view area is filled with the content of this property.
+ /// </summary>
+ FillArea = 0x00000008,
+
+ /// <summary>
+ /// The property is reverse sorted if it is a property in a list of sorted properties.
+ /// </summary>
+ SortDescending = 0x00000010,
+
+ /// <summary>
+ /// The property is only shown if it is present.
+ /// </summary>
+ ShowOnlyIfPresent = 0x00000020,
+
+ /// <summary>
+ /// The property is shown by default in a view (where applicable).
+ /// </summary>
+ ShowByDefault = 0x00000040,
+
+ /// <summary>
+ /// The property is shown by default in primary column selection user interface (UI).
+ /// </summary>
+ ShowInPrimaryList = 0x00000080,
+
+ /// <summary>
+ /// The property is shown by default in secondary column selection UI.
+ /// </summary>
+ ShowInSecondaryList = 0x00000100,
+
+ /// <summary>
+ /// The label is hidden if the view is normally inclined to show the label.
+ /// </summary>
+ HideLabel = 0x00000200,
+
+ /// <summary>
+ /// The property is not displayed as a column in the UI.
+ /// </summary>
+ Hidden = 0x00000800,
+
+ /// <summary>
+ /// The property is wrapped to the next row.
+ /// </summary>
+ CanWrap = 0x00001000,
+
+ /// <summary>
+ /// A mask used to retrieve all flags.
+ /// </summary>
+ MaskAll = 0x000003ff,
+ }
+
+ #endregion
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyFactory.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyFactory.cs
new file mode 100644
index 0000000000..f979537103
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyFactory.cs
@@ -0,0 +1,189 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Linq.Expressions;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using System.Runtime.InteropServices.ComTypes;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+
+ /// <summary>
+ /// Factory class for creating typed ShellProperties.
+ /// Generates/caches expressions to create generic ShellProperties.
+ /// </summary>
+ internal static class ShellPropertyFactory
+ {
+ // Constructor cache. It takes object as the third param so a single function will suffice for both constructors.
+ private static Dictionary<int, Func<PropertyKey, ShellPropertyDescription, object, IShellProperty>> _storeCache
+ = new Dictionary<int, Func<PropertyKey, ShellPropertyDescription, object, IShellProperty>>();
+
+ /// <summary>
+ /// Creates a generic ShellProperty.
+ /// </summary>
+ /// <param name="propKey">PropertyKey</param>
+ /// <param name="shellObject">Shell object from which to get property</param>
+ /// <returns>ShellProperty matching type of value in property.</returns>
+ public static IShellProperty CreateShellProperty(PropertyKey propKey, ShellObject shellObject)
+ {
+ return GenericCreateShellProperty(propKey, shellObject);
+ }
+
+ /// <summary>
+ /// Creates a generic ShellProperty.
+ /// </summary>
+ /// <param name="propKey">PropertyKey</param>
+ /// <param name="store">IPropertyStore from which to get property</param>
+ /// <returns>ShellProperty matching type of value in property.</returns>
+ public static IShellProperty CreateShellProperty(PropertyKey propKey, IPropertyStore store)
+ {
+ return GenericCreateShellProperty(propKey, store);
+ }
+
+ private static IShellProperty GenericCreateShellProperty<T>(PropertyKey propKey, T thirdArg)
+ {
+ Type thirdType = (thirdArg is ShellObject) ? typeof(ShellObject) : typeof(T);
+
+ ShellPropertyDescription propDesc = ShellPropertyDescriptionsCache.Cache.GetPropertyDescription(propKey);
+
+ // Get the generic type
+ Type type = typeof(ShellProperty<>).MakeGenericType(VarEnumToSystemType(propDesc.VarEnumType));
+
+ // The hash for the function is based off the generic type and which type (constructor) we're using.
+ int hash = GetTypeHash(type, thirdType);
+
+ Func<PropertyKey, ShellPropertyDescription, object, IShellProperty> ctor;
+ if (!_storeCache.TryGetValue(hash, out ctor))
+ {
+ Type[] argTypes = { typeof(PropertyKey), typeof(ShellPropertyDescription), thirdType };
+ ctor = ExpressConstructor(type, argTypes);
+ _storeCache.Add(hash, ctor);
+ }
+
+ return ctor(propKey, propDesc, thirdArg);
+ }
+
+ /// <summary>
+ /// Converts VarEnum to its associated .net Type.
+ /// </summary>
+ /// <param name="VarEnumType">VarEnum value</param>
+ /// <returns>Associated .net equivelent.</returns>
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ public static Type VarEnumToSystemType(VarEnum VarEnumType)
+ {
+ switch (VarEnumType)
+ {
+ case (VarEnum.VT_EMPTY):
+ case (VarEnum.VT_NULL):
+ return typeof(Object);
+ case (VarEnum.VT_UI1):
+ return typeof(Byte?);
+ case (VarEnum.VT_I2):
+ return typeof(Int16?);
+ case (VarEnum.VT_UI2):
+ return typeof(UInt16?);
+ case (VarEnum.VT_I4):
+ return typeof(Int32?);
+ case (VarEnum.VT_UI4):
+ return typeof(UInt32?);
+ case (VarEnum.VT_I8):
+ return typeof(Int64?);
+ case (VarEnum.VT_UI8):
+ return typeof(UInt64?);
+ case (VarEnum.VT_R8):
+ return typeof(Double?);
+ case (VarEnum.VT_BOOL):
+ return typeof(Boolean?);
+ case (VarEnum.VT_FILETIME):
+ return typeof(DateTime?);
+ case (VarEnum.VT_CLSID):
+ return typeof(IntPtr?);
+ case (VarEnum.VT_CF):
+ return typeof(IntPtr?);
+ case (VarEnum.VT_BLOB):
+ return typeof(Byte[]);
+ case (VarEnum.VT_LPWSTR):
+ return typeof(String);
+ case (VarEnum.VT_UNKNOWN):
+ return typeof(IntPtr?);
+ case (VarEnum.VT_STREAM):
+ return typeof(IStream);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_UI1):
+ return typeof(Byte[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_I2):
+ return typeof(Int16[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_UI2):
+ return typeof(UInt16[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_I4):
+ return typeof(Int32[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_UI4):
+ return typeof(UInt32[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_I8):
+ return typeof(Int64[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_UI8):
+ return typeof(UInt64[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_R8):
+ return typeof(Double[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_BOOL):
+ return typeof(Boolean[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_FILETIME):
+ return typeof(DateTime[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_CLSID):
+ return typeof(IntPtr[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_CF):
+ return typeof(IntPtr[]);
+ case (VarEnum.VT_VECTOR | VarEnum.VT_LPWSTR):
+ return typeof(String[]);
+ default:
+ return typeof(Object);
+ }
+ }
+
+ #region Private static helper functions
+
+ // Creates an expression for the specific constructor of the given type.
+ private static Func<PropertyKey, ShellPropertyDescription, object, IShellProperty> ExpressConstructor(Type type, Type[] argTypes)
+ {
+ int typeHash = GetTypeHash(argTypes);
+
+ // Finds the correct constructor by matching the hash of the types.
+ ConstructorInfo ctorInfo = type.GetConstructors(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public)
+ .FirstOrDefault(x => typeHash == GetTypeHash(x.GetParameters().Select(a => a.ParameterType)));
+
+ if (ctorInfo == null)
+ {
+ throw new ArgumentException(LocalizedMessages.ShellPropertyFactoryConstructorNotFound, "type");
+ }
+
+ var key = Expression.Parameter(argTypes[0], "propKey");
+ var desc = Expression.Parameter(argTypes[1], "desc");
+ var third = Expression.Parameter(typeof(object), "third"); //needs to be object to avoid casting later
+
+ var create = Expression.New(ctorInfo, key, desc,
+ Expression.Convert(third, argTypes[2]));
+
+ return Expression.Lambda<Func<PropertyKey, ShellPropertyDescription, object, IShellProperty>>(
+ create, key, desc, third).Compile();
+ }
+
+ private static int GetTypeHash(params Type[] types)
+ {
+ return GetTypeHash((IEnumerable<Type>)types);
+ }
+
+ // Creates a hash code, unique to the number and order of types.
+ private static int GetTypeHash(IEnumerable<Type> types)
+ {
+ int hash = 0;
+ foreach (Type type in types)
+ {
+ hash = hash * 31 + type.GetHashCode();
+ }
+ return hash;
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyWriter.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyWriter.cs
new file mode 100644
index 0000000000..d90379f711
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyWriter.cs
@@ -0,0 +1,251 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Creates a property writer capable of setting multiple properties for a given ShellObject.
+ /// </summary>
+ public class ShellPropertyWriter : IDisposable
+ {
+
+ private ShellObject parentShellObject;
+
+ // Reference to our writable PropertyStore
+ internal IPropertyStore writablePropStore;
+
+ internal ShellPropertyWriter(ShellObject parent)
+ {
+ ParentShellObject = parent;
+
+ // Open the property store for this shell object...
+ Guid guid = new Guid(ShellIIDGuid.IPropertyStore);
+
+ try
+ {
+ int hr = ParentShellObject.NativeShellItem2.GetPropertyStore(
+ ShellNativeMethods.GetPropertyStoreOptions.ReadWrite,
+ ref guid,
+ out writablePropStore);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertyUnableToGetWritableProperty,
+ Marshal.GetExceptionForHR(hr));
+ }
+ else
+ {
+ // If we succeed in creating a valid property store for this ShellObject,
+ // then set it on the parent shell object for others to use.
+ // Once this writer is closed/commited, we will set the
+ if (ParentShellObject.NativePropertyStore == null)
+ {
+ ParentShellObject.NativePropertyStore = writablePropStore;
+ }
+ }
+
+ }
+ catch (InvalidComObjectException e)
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertyUnableToGetWritableProperty, e);
+ }
+ catch (InvalidCastException)
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertyUnableToGetWritableProperty);
+ }
+ }
+
+ /// <summary>
+ /// Reference to parent ShellObject (associated with this writer)
+ /// </summary>
+ protected ShellObject ParentShellObject
+ {
+ get { return parentShellObject; }
+ private set { parentShellObject = value; }
+ }
+
+ /// <summary>
+ /// Writes the given property key and value.
+ /// </summary>
+ /// <param name="key">The property key.</param>
+ /// <param name="value">The value associated with the key.</param>
+ public void WriteProperty(PropertyKey key, object value)
+ {
+ WriteProperty(key, value, true);
+ }
+
+ /// <summary>
+ /// Writes the given property key and value. To allow truncation of the given value, set allowTruncatedValue
+ /// to true.
+ /// </summary>
+ /// <param name="key">The property key.</param>
+ /// <param name="value">The value associated with the key.</param>
+ /// <param name="allowTruncatedValue">True to allow truncation (default); otherwise False.</param>
+ /// <exception cref="System.InvalidOperationException">If the writable property store is already
+ /// closed.</exception>
+ /// <exception cref="System.ArgumentOutOfRangeException">If AllowTruncatedValue is set to false
+ /// and while setting the value on the property it had to be truncated in a string or rounded in
+ /// a numeric value.</exception>
+ public void WriteProperty(PropertyKey key, object value, bool allowTruncatedValue)
+ {
+ if (writablePropStore == null)
+ throw new InvalidOperationException("Writeable store has been closed.");
+
+ using (PropVariant propVar = PropVariant.FromObject(value))
+ {
+ HResult result = writablePropStore.SetValue(ref key, propVar);
+
+ if (!allowTruncatedValue && ((int)result == ShellNativeMethods.InPlaceStringTruncated))
+ {
+ // At this point we can't revert back the commit
+ // so don't commit, close the property store and throw an exception
+ // to let the user know.
+ Marshal.ReleaseComObject(writablePropStore);
+ writablePropStore = null;
+
+ throw new ArgumentOutOfRangeException("value", LocalizedMessages.ShellPropertyValueTruncated);
+ }
+
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new PropertySystemException(LocalizedMessages.ShellPropertySetValue, Marshal.GetExceptionForHR((int)result));
+ }
+ }
+ }
+
+ /// <summary>
+ /// Writes the specified property given the canonical name and a value.
+ /// </summary>
+ /// <param name="canonicalName">The canonical name.</param>
+ /// <param name="value">The property value.</param>
+ public void WriteProperty(string canonicalName, object value)
+ {
+ WriteProperty(canonicalName, value, true);
+ }
+
+ /// <summary>
+ /// Writes the specified property given the canonical name and a value. To allow truncation of the given value, set allowTruncatedValue
+ /// to true.
+ /// </summary>
+ /// <param name="canonicalName">The canonical name.</param>
+ /// <param name="value">The property value.</param>
+ /// <param name="allowTruncatedValue">True to allow truncation (default); otherwise False.</param>
+ /// <exception cref="System.ArgumentException">If the given canonical name is not valid.</exception>
+ public void WriteProperty(string canonicalName, object value, bool allowTruncatedValue)
+ {
+ // Get the PropertyKey using the canonicalName passed in
+ PropertyKey propKey;
+
+ int result = PropertySystemNativeMethods.PSGetPropertyKeyFromName(canonicalName, out propKey);
+
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new ArgumentException(
+ LocalizedMessages.ShellInvalidCanonicalName,
+ Marshal.GetExceptionForHR(result));
+ }
+
+ WriteProperty(propKey, value, allowTruncatedValue);
+ }
+
+ /// <summary>
+ /// Writes the specified property using an IShellProperty and a value.
+ /// </summary>
+ /// <param name="shellProperty">The property name.</param>
+ /// <param name="value">The property value.</param>
+ public void WriteProperty(IShellProperty shellProperty, object value)
+ {
+ WriteProperty(shellProperty, value, true);
+ }
+
+ /// <summary>
+ /// Writes the specified property given an IShellProperty and a value. To allow truncation of the given value, set allowTruncatedValue
+ /// to true.
+ /// </summary>
+ /// <param name="shellProperty">The property name.</param>
+ /// <param name="value">The property value.</param>
+ /// <param name="allowTruncatedValue">True to allow truncation (default); otherwise False.</param>
+ public void WriteProperty(IShellProperty shellProperty, object value, bool allowTruncatedValue)
+ {
+ if (shellProperty == null) { throw new ArgumentNullException("shellProperty"); }
+ WriteProperty(shellProperty.PropertyKey, value, allowTruncatedValue);
+ }
+
+ /// <summary>
+ /// Writes the specified property using a strongly-typed ShellProperty and a value.
+ /// </summary>
+ /// <typeparam name="T">The type of the property name.</typeparam>
+ /// <param name="shellProperty">The property name.</param>
+ /// <param name="value">The property value.</param>
+ public void WriteProperty<T>(ShellProperty<T> shellProperty, T value)
+ {
+ WriteProperty<T>(shellProperty, value, true);
+ }
+ /// <summary>
+ /// Writes the specified property given a strongly-typed ShellProperty and a value. To allow truncation of the given value, set allowTruncatedValue
+ /// to true.
+ /// </summary>
+ /// <typeparam name="T">The type of the property name.</typeparam>
+ /// <param name="shellProperty">The property name.</param>
+ /// <param name="value">The property value.</param>
+ /// <param name="allowTruncatedValue">True to allow truncation (default); otherwise False.</param>
+ public void WriteProperty<T>(ShellProperty<T> shellProperty, T value, bool allowTruncatedValue)
+ {
+ if (shellProperty == null) { throw new ArgumentNullException("shellProperty"); }
+ WriteProperty(shellProperty.PropertyKey, value, allowTruncatedValue);
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~ShellPropertyWriter()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Release the native and managed objects.
+ /// </summary>
+ /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.
+ /// </param>
+ protected virtual void Dispose(bool disposing)
+ {
+ Close();
+ }
+
+ /// <summary>
+ /// Call this method to commit the writes (calls to WriteProperty method)
+ /// and dispose off the writer.
+ /// </summary>
+ public void Close()
+ {
+ // Close the property writer (commit, etc)
+ if (writablePropStore != null)
+ {
+ writablePropStore.Commit();
+
+ Marshal.ReleaseComObject(writablePropStore);
+ writablePropStore = null;
+ }
+
+ ParentShellObject.NativePropertyStore = null;
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/StronglyTypedProperties.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/StronglyTypedProperties.cs
new file mode 100644
index 0000000000..77fe149f10
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/StronglyTypedProperties.cs
@@ -0,0 +1,16343 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices.ComTypes;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+
+ /// <summary>
+ /// Base class for all the strongly-typed properties
+ /// </summary>
+ public abstract class PropertyStoreItems
+ {
+ // Left empty for base class
+ }
+
+ // TODO: FIX THIS!!!
+ public partial class ShellProperties
+ {
+
+ /// <summary>
+ /// .System Properties
+ /// </summary>
+ public class PropertySystem : PropertyStoreItems
+ {
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystem(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.AcquisitionID -- PKEY_AcquisitionID</para>
+ /// <para>Description: Hash to determine acquisition session.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {65A98875-3C80-40AB-ABBC-EFDAF77DBEE2}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> AcquisitionID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AcquisitionID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ApplicationName -- PKEY_ApplicationName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 18 (PIDSI_APPNAME)</para>
+ /// </summary>
+ public ShellProperty<String> ApplicationName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ApplicationName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Author -- PKEY_Author</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 4 (PIDSI_AUTHOR)</para>
+ /// </summary>
+ public ShellProperty<String[]> Author
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Author;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Capacity -- PKEY_Capacity</para>
+ /// <para>Description: The amount of total space in bytes.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 3 (PID_VOLUME_CAPACITY) (Filesystem Volume Properties)</para>
+ /// </summary>
+ public ShellProperty<UInt64?> Capacity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Capacity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Category -- PKEY_Category</para>
+ /// <para>Description: Legacy code treats this as VT_LPSTR.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 2 (PIDDSI_CATEGORY)</para>
+ /// </summary>
+ public ShellProperty<String[]> Category
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Category;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Comment -- PKEY_Comment</para>
+ /// <para>Description: Comments.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 6 (PIDSI_COMMENTS)</para>
+ /// </summary>
+ public ShellProperty<String> Comment
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Comment;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Company -- PKEY_Company</para>
+ /// <para>Description: The company or publisher.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 15 (PIDDSI_COMPANY)</para>
+ /// </summary>
+ public ShellProperty<String> Company
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Company;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ComputerName -- PKEY_ComputerName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 5 (PID_COMPUTERNAME)</para>
+ /// </summary>
+ public ShellProperty<String> ComputerName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ComputerName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ContainedItems -- PKEY_ContainedItems</para>
+ /// <para>Description: The list of type of items, this item contains. For example, this item contains urls, attachments etc.
+ ///This is represented as a vector array of GUIDs where each GUID represents certain type.
+ ///</para>
+ /// <para>Type: Multivalue Guid -- VT_VECTOR | VT_CLSID (For variants: VT_ARRAY | VT_CLSID)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 29</para>
+ /// </summary>
+ public ShellProperty<IntPtr[]> ContainedItems
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ContainedItems;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IntPtr[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IntPtr[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ContentStatus -- PKEY_ContentStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 27</para>
+ /// </summary>
+ public ShellProperty<String> ContentStatus
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ContentStatus;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ContentType -- PKEY_ContentType</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 26</para>
+ /// </summary>
+ public ShellProperty<String> ContentType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ContentType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Copyright -- PKEY_Copyright</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 11 (PIDMSI_COPYRIGHT)</para>
+ /// </summary>
+ public ShellProperty<String> Copyright
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Copyright;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateAccessed -- PKEY_DateAccessed</para>
+ /// <para>Description: The time of the last access to the item. The Indexing Service friendly name is 'access'.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 16 (PID_STG_ACCESSTIME)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateAccessed
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DateAccessed;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateAcquired -- PKEY_DateAcquired</para>
+ /// <para>Description: The time the file entered the system via acquisition. This is not the same as System.DateImported.
+ ///Examples are when pictures are acquired from a camera, or when music is purchased online.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {2CBAA8F5-D81F-47CA-B17A-F8D822300131}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateAcquired
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DateAcquired;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateArchived -- PKEY_DateArchived</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {43F8D7B7-A444-4F87-9383-52271C9B915C}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateArchived
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DateArchived;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateCompleted -- PKEY_DateCompleted</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {72FAB781-ACDA-43E5-B155-B2434F85E678}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateCompleted
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DateCompleted;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateCreated -- PKEY_DateCreated</para>
+ /// <para>Description: The date and time the item was created. The Indexing Service friendly name is 'create'.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 15 (PID_STG_CREATETIME)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateCreated
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DateCreated;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateImported -- PKEY_DateImported</para>
+ /// <para>Description: The time the file is imported into a separate database. This is not the same as System.DateAcquired. (Eg, 2003:05:22 13:55:04)
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 18258</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateImported
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DateImported;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateModified -- PKEY_DateModified</para>
+ /// <para>Description: The date and time of the last write to the item. The Indexing Service friendly name is 'write'.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 14 (PID_STG_WRITETIME)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateModified
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DateModified;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DescriptionID -- PKEY_DescriptionID</para>
+ /// <para>Description: The contents of a SHDESCRIPTIONID structure as a buffer of bytes.
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 2 (PID_DESCRIPTIONID)</para>
+ /// </summary>
+ public ShellProperty<Byte[]> DescriptionID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DescriptionID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DueDate -- PKEY_DueDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {3F8472B5-E0AF-4DB2-8071-C53FE76AE7CE}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DueDate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DueDate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.EndDate -- PKEY_EndDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {C75FAA05-96FD-49E7-9CB4-9F601082D553}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> EndDate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.EndDate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileAllocationSize -- PKEY_FileAllocationSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 18 (PID_STG_ALLOCSIZE)</para>
+ /// </summary>
+ public ShellProperty<UInt64?> FileAllocationSize
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileAllocationSize;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileAttributes -- PKEY_FileAttributes</para>
+ /// <para>Description: This is the WIN32_FIND_DATA dwFileAttributes for the file-based item.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 13 (PID_STG_ATTRIBUTES)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FileAttributes
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileAttributes;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileCount -- PKEY_FileCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 12</para>
+ /// </summary>
+ public ShellProperty<UInt64?> FileCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileDescription -- PKEY_FileDescription</para>
+ /// <para>Description: This is a user-friendly description of the file.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 3 (PIDVSI_FileDescription)</para>
+ /// </summary>
+ public ShellProperty<String> FileDescription
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileDescription;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileExtension -- PKEY_FileExtension</para>
+ /// <para>Description: This is the file extension of the file based item, including the leading period.
+ ///
+ ///If System.FileName is VT_EMPTY, then this property should be too. Otherwise, it should be derived
+ ///appropriately by the data source from System.FileName. If System.FileName does not have a file
+ ///extension, this value should be VT_EMPTY.
+ ///
+ ///To obtain the type of any item (including an item that is not a file), use System.ItemType.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" ".txt"
+ /// "\\server\share\mydir\goodnews.doc" ".doc"
+ /// "\\server\share\numbers.xls" ".xls"
+ /// "\\server\share\folder" VT_EMPTY
+ /// "c:\foo\MyFolder" VT_EMPTY
+ /// [desktop] VT_EMPTY
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E4F10A3C-49E6-405D-8288-A23BD4EEAA6C}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FileExtension
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileExtension;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileFRN -- PKEY_FileFRN</para>
+ /// <para>Description: This is the unique file ID, also known as the File Reference Number. For a given file, this is the same value
+ ///as is found in the structure variable FILE_ID_BOTH_DIR_INFO.FileId, via GetFileInformationByHandleEx().
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 21 (PID_STG_FRN)</para>
+ /// </summary>
+ public ShellProperty<UInt64?> FileFRN
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileFRN;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileName -- PKEY_FileName</para>
+ /// <para>Description: This is the file name (including extension) of the file.
+ ///
+ ///It is possible that the item might not exist on a filesystem (ie, it may not be opened
+ ///using CreateFile). Nonetheless, if the item is represented as a file from the logical sense
+ ///(and its name follows standard Win32 file-naming syntax), then the data source should emit this property.
+ ///
+ ///If an item is not a file, then the value for this property is VT_EMPTY. See
+ ///System.ItemNameDisplay.
+ ///
+ ///This has the same value as System.ParsingName for items that are provided by the Shell's file folder.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "hello.txt"
+ /// "\\server\share\mydir\goodnews.doc" "goodnews.doc"
+ /// "\\server\share\numbers.xls" "numbers.xls"
+ /// "c:\foo\MyFolder" "MyFolder"
+ /// (email message) VT_EMPTY
+ /// (song on portable device) "song.wma"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {41CF5AE0-F75A-4806-BD87-59C7D9248EB9}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FileName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileOwner -- PKEY_FileOwner</para>
+ /// <para>Description: This is the owner of the file, according to the file system.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Misc) {9B174B34-40FF-11D2-A27E-00C04FC30871}, 4 (PID_MISC_OWNER)</para>
+ /// </summary>
+ public ShellProperty<String> FileOwner
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileOwner;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileVersion -- PKEY_FileVersion</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 4 (PIDVSI_FileVersion)</para>
+ /// </summary>
+ public ShellProperty<String> FileVersion
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FileVersion;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FindData -- PKEY_FindData</para>
+ /// <para>Description: WIN32_FIND_DATAW in buffer of bytes.
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 0 (PID_FINDDATA)</para>
+ /// </summary>
+ public ShellProperty<Byte[]> FindData
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FindData;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagColor -- PKEY_FlagColor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {67DF94DE-0CA7-4D6F-B792-053A3E4F03CF}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> FlagColor
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FlagColor;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagColorText -- PKEY_FlagColorText</para>
+ /// <para>Description: This is the user-friendly form of System.FlagColor. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {45EAE747-8E2A-40AE-8CBF-CA52ABA6152A}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FlagColorText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FlagColorText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagStatus -- PKEY_FlagStatus</para>
+ /// <para>Description: Status of Flag. Values: (0=none 1=white 2=Red). cdoPR_FLAG_STATUS
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 12</para>
+ /// </summary>
+ public ShellProperty<Int32?> FlagStatus
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FlagStatus;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagStatusText -- PKEY_FlagStatusText</para>
+ /// <para>Description: This is the user-friendly form of System.FlagStatus. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DC54FD2E-189D-4871-AA01-08C2F57A4ABC}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FlagStatusText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FlagStatusText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FreeSpace -- PKEY_FreeSpace</para>
+ /// <para>Description: The amount of free space in bytes.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 2 (PID_VOLUME_FREE) (Filesystem Volume Properties)</para>
+ /// </summary>
+ public ShellProperty<UInt64?> FreeSpace
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FreeSpace;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FullText -- PKEY_FullText</para>
+ /// <para>Description: This PKEY is used to specify search terms that should be applied as broadly as possible,
+ ///across all valid properties for the data source(s) being searched. It should not be
+ ///emitted from a data source.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {1E3EE840-BC2B-476C-8237-2ACD1A839B22}, 6</para>
+ /// </summary>
+ public ShellProperty<String> FullText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.FullText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity -- PKEY_Identity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A26F4AFC-7346-4299-BE47-EB1AE613139F}, 100</para>
+ /// </summary>
+ public ShellProperty<String> IdentityProperty
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IdentityProperty;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ImageParsingName -- PKEY_ImageParsingName</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D7750EE0-C6A4-48EC-B53E-B87B52E6D073}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> ImageParsingName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ImageParsingName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Importance -- PKEY_Importance</para>
+ /// <para>Description: </para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 11</para>
+ /// </summary>
+ public ShellProperty<Int32?> Importance
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Importance;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ImportanceText -- PKEY_ImportanceText</para>
+ /// <para>Description: This is the user-friendly form of System.Importance. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A3B29791-7713-4E1D-BB40-17DB85F01831}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ImportanceText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ImportanceText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.InfoTipText -- PKEY_InfoTipText</para>
+ /// <para>Description: The text (with formatted property values) to show in the infotip.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 17</para>
+ /// </summary>
+ public ShellProperty<String> InfoTipText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.InfoTipText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.InternalName -- PKEY_InternalName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 5 (PIDVSI_InternalName)</para>
+ /// </summary>
+ public ShellProperty<String> InternalName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.InternalName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsAttachment -- PKEY_IsAttachment</para>
+ /// <para>Description: Identifies if this item is an attachment.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {F23F425C-71A1-4FA8-922F-678EA4A60408}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsAttachment
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsAttachment;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsDefaultNonOwnerSaveLocation -- PKEY_IsDefaultNonOwnerSaveLocation</para>
+ /// <para>Description: Identifies the default save location for a library for non-owners of the library
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 5</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsDefaultNonOwnerSaveLocation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsDefaultNonOwnerSaveLocation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsDefaultSaveLocation -- PKEY_IsDefaultSaveLocation</para>
+ /// <para>Description: Identifies the default save location for a library for the owner of the library
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 3</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsDefaultSaveLocation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsDefaultSaveLocation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsDeleted -- PKEY_IsDeleted</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5CDA5FC8-33EE-4FF3-9094-AE7BD8868C4D}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsDeleted
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsDeleted;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsEncrypted -- PKEY_IsEncrypted</para>
+ /// <para>Description: Is the item encrypted?
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {90E5E14E-648B-4826-B2AA-ACAF790E3513}, 10</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsEncrypted
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsEncrypted;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsFlagged -- PKEY_IsFlagged</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5DA84765-E3FF-4278-86B0-A27967FBDD03}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsFlagged
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsFlagged;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsFlaggedComplete -- PKEY_IsFlaggedComplete</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {A6F360D2-55F9-48DE-B909-620E090A647C}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsFlaggedComplete
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsFlaggedComplete;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsIncomplete -- PKEY_IsIncomplete</para>
+ /// <para>Description: Identifies if the message was not completely received for some error condition.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {346C8BD1-2E6A-4C45-89A4-61B78E8E700F}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsIncomplete
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsIncomplete;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsLocationSupported -- PKEY_IsLocationSupported</para>
+ /// <para>Description: A bool value to know if a location is supported (locally indexable, or remotely indexed).
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 8</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsLocationSupported
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsLocationSupported;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsPinnedToNameSpaceTree -- PKEY_IsPinnedToNameSpaceTree</para>
+ /// <para>Description: A bool value to know if a shell folder is pinned to the navigation pane
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 2</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsPinnedToNamespaceTree
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsPinnedToNamespaceTree;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsRead -- PKEY_IsRead</para>
+ /// <para>Description: Has the item been read?
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 10</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsRead
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsRead;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsSearchOnlyItem -- PKEY_IsSearchOnlyItem</para>
+ /// <para>Description: Identifies if a location or a library is search only
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 4</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsSearchOnlyItem
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsSearchOnlyItem;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsSendToTarget -- PKEY_IsSendToTarget</para>
+ /// <para>Description: Provided by certain shell folders. Return TRUE if the folder is a valid Send To target.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 33</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsSendToTarget
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsSendToTarget;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsShared -- PKEY_IsShared</para>
+ /// <para>Description: Is this item shared? This only checks for ACLs that are not inherited.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsShared
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IsShared;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemAuthors -- PKEY_ItemAuthors</para>
+ /// <para>Description: This is the generic list of authors associated with an item.
+ ///
+ ///For example, the artist name for a track is the item author.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D0A04F0A-462A-48A4-BB2F-3706E88DBD7D}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> ItemAuthors
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemAuthors;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemClassType -- PKEY_ItemClassType</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {048658AD-2DB8-41A4-BBB6-AC1EF1207EB1}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ItemClassType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemClassType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemDate -- PKEY_ItemDate</para>
+ /// <para>Description: This is the main date for an item. The date of interest.
+ ///
+ ///For example, for photos this maps to System.Photo.DateTaken.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {F7DB74B4-4287-4103-AFBA-F1B13DCD75CF}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> ItemDate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemDate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemFolderNameDisplay -- PKEY_ItemFolderNameDisplay</para>
+ /// <para>Description: This is the user-friendly display name of the parent folder of an item.
+ ///
+ ///If System.ItemFolderPathDisplay is VT_EMPTY, then this property should be too. Otherwise, it
+ ///should be derived appropriately by the data source from System.ItemFolderPathDisplay.
+ ///
+ ///If the folder is a file folder, the value will be localized if a localized name is available.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "bar"
+ /// "\\server\share\mydir\goodnews.doc" "mydir"
+ /// "\\server\share\numbers.xls" "share"
+ /// "c:\foo\MyFolder" "foo"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Inbox"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 2 (PID_STG_DIRECTORY)</para>
+ /// </summary>
+ public ShellProperty<String> ItemFolderNameDisplay
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemFolderNameDisplay;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemFolderPathDisplay -- PKEY_ItemFolderPathDisplay</para>
+ /// <para>Description: This is the user-friendly display path of the parent folder of an item.
+ ///
+ ///If System.ItemPathDisplay is VT_EMPTY, then this property should be too. Otherwise, it should
+ ///be derived appropriately by the data source from System.ItemPathDisplay.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "c:\foo\bar"
+ /// "\\server\share\mydir\goodnews.doc" "\\server\share\mydir"
+ /// "\\server\share\numbers.xls" "\\server\share"
+ /// "c:\foo\MyFolder" "c:\foo"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "/Mailbox Account/Inbox"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 6</para>
+ /// </summary>
+ public ShellProperty<String> ItemFolderPathDisplay
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemFolderPathDisplay;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemFolderPathDisplayNarrow -- PKEY_ItemFolderPathDisplayNarrow</para>
+ /// <para>Description: This is the user-friendly display path of the parent folder of an item. The format of the string
+ ///should be tailored such that the folder name comes first, to optimize for a narrow viewing column.
+ ///
+ ///If the folder is a file folder, the value includes localized names if they are present.
+ ///
+ ///If System.ItemFolderPathDisplay is VT_EMPTY, then this property should be too. Otherwise, it should
+ ///be derived appropriately by the data source from System.ItemFolderPathDisplay.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "bar (c:\foo)"
+ /// "\\server\share\mydir\goodnews.doc" "mydir (\\server\share)"
+ /// "\\server\share\numbers.xls" "share (\\server)"
+ /// "c:\foo\MyFolder" "foo (c:\)"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Inbox (/Mailbox Account)"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DABD30ED-0043-4789-A7F8-D013A4736622}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ItemFolderPathDisplayNarrow
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemFolderPathDisplayNarrow;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemName -- PKEY_ItemName</para>
+ /// <para>Description: This is the base-name of the System.ItemNameDisplay.
+ ///
+ ///If the item is a file this property
+ ///includes the extension in all cases, and will be localized if a localized name is available.
+ ///
+ ///If the item is a message, then the value of this property does not include the forwarding or
+ ///reply prefixes (see System.ItemNamePrefix).
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6B8DA074-3B5C-43BC-886F-0A2CDCE00B6F}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ItemName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemNameDisplay -- PKEY_ItemNameDisplay</para>
+ /// <para>Description: This is the display name in "most complete" form. This is the best effort unique representation
+ ///of the name of an item that makes sense for end users to read. It is the concatentation of
+ ///System.ItemNamePrefix and System.ItemName.
+ ///
+ ///If the item is a file this property
+ ///includes the extension in all cases, and will be localized if a localized name is available.
+ ///
+ ///There are acceptable cases when System.FileName is not VT_EMPTY, yet the value of this property
+ ///is completely different. Email messages are a key example. If the item is an email message,
+ ///the item name is likely the subject. In that case, the value must be the concatenation of the
+ ///System.ItemNamePrefix and System.ItemName. Since the value of System.ItemNamePrefix excludes
+ ///any trailing whitespace, the concatenation must include a whitespace when generating System.ItemNameDisplay.
+ ///
+ ///Note that this property is not guaranteed to be unique, but the idea is to promote the most likely
+ ///candidate that can be unique and also makes sense for end users. For example, for documents, you
+ ///might think about using System.Title as the System.ItemNameDisplay, but in practice the title of
+ ///the documents may not be useful or unique enough to be of value as the sole System.ItemNameDisplay.
+ ///Instead, providing the value of System.FileName as the value of System.ItemNameDisplay is a better
+ ///candidate. In Windows Mail, the emails are stored in the file system as .eml files and the
+ ///System.FileName for those files are not human-friendly as they contain GUIDs. In this example,
+ ///promoting System.Subject as System.ItemNameDisplay makes more sense.
+ ///
+ ///Compatibility notes:
+ ///
+ ///Shell folder implementations on Vista: use PKEY_ItemNameDisplay for the name column when
+ ///you want Explorer to call ISF::GetDisplayNameOf(SHGDN_NORMAL) to get the value of the name. Use
+ ///another PKEY (like PKEY_ItemName) when you want Explorer to call either the folder's property store or
+ ///ISF2::GetDetailsEx in order to get the value of the name.
+ ///
+ ///Shell folder implementations on XP: the first column needs to be the name column, and Explorer
+ ///will call ISF::GetDisplayNameOf to get the value of the name. The PKEY/SCID does not matter.
+ ///
+ ///Example values:
+ ///
+ /// File: "hello.txt"
+ /// Message: "Re: Let's talk about Tom's argyle socks!"
+ /// Device folder: "song.wma"
+ /// Folder: "Documents"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 10 (PID_STG_NAME)</para>
+ /// </summary>
+ public ShellProperty<String> ItemNameDisplay
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemNameDisplay;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemNamePrefix -- PKEY_ItemNamePrefix</para>
+ /// <para>Description: This is the prefix of an item, used for email messages.
+ ///where the subject begins with "Re:" which is the prefix.
+ ///
+ ///If the item is a file, then the value of this property is VT_EMPTY.
+ ///
+ ///If the item is a message, then the value of this property is the forwarding or reply
+ ///prefixes (including delimiting colon, but no whitespace), or VT_EMPTY if there is no prefix.
+ ///
+ ///Example values:
+ ///
+ ///System.ItemNamePrefix System.ItemName System.ItemNameDisplay
+ ///--------------------- ------------------- ----------------------
+ ///VT_EMPTY "Great day" "Great day"
+ ///"Re:" "Great day" "Re: Great day"
+ ///"Fwd: " "Monthly budget" "Fwd: Monthly budget"
+ ///VT_EMPTY "accounts.xls" "accounts.xls"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D7313FF1-A77A-401C-8C99-3DBDD68ADD36}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ItemNamePrefix
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemNamePrefix;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemParticipants -- PKEY_ItemParticipants</para>
+ /// <para>Description: This is the generic list of people associated with an item and who contributed
+ ///to the item.
+ ///
+ ///For example, this is the combination of people in the To list, Cc list and
+ ///sender of an email message.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D4D0AA16-9948-41A4-AA85-D97FF9646993}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> ItemParticipants
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemParticipants;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemPathDisplay -- PKEY_ItemPathDisplay</para>
+ /// <para>Description: This is the user-friendly display path to the item.
+ ///
+ ///If the item is a file or folder this property
+ ///includes the extension in all cases, and will be localized if a localized name is available.
+ ///
+ ///For other items,this is the user-friendly equivalent, assuming the item exists in hierarchical storage.
+ ///
+ ///Unlike System.ItemUrl, this property value does not include the URL scheme.
+ ///
+ ///To parse an item path, use System.ItemUrl or System.ParsingPath. To reference shell
+ ///namespace items using shell APIs, use System.ParsingPath.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "c:\foo\bar\hello.txt"
+ /// "\\server\share\mydir\goodnews.doc" "\\server\share\mydir\goodnews.doc"
+ /// "\\server\share\numbers.xls" "\\server\share\numbers.xls"
+ /// "c:\foo\MyFolder" "c:\foo\MyFolder"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "/Mailbox Account/Inbox/'Re: Hello!'"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 7</para>
+ /// </summary>
+ public ShellProperty<String> ItemPathDisplay
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemPathDisplay;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemPathDisplayNarrow -- PKEY_ItemPathDisplayNarrow</para>
+ /// <para>Description: This is the user-friendly display path to the item. The format of the string should be
+ ///tailored such that the name comes first, to optimize for a narrow viewing column.
+ ///
+ ///If the item is a file, the value excludes the file extension, and includes localized names if they are present.
+ ///If the item is a message, the value includes the System.ItemNamePrefix.
+ ///
+ ///To parse an item path, use System.ItemUrl or System.ParsingPath.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "hello (c:\foo\bar)"
+ /// "\\server\share\mydir\goodnews.doc" "goodnews (\\server\share\mydir)"
+ /// "\\server\share\folder" "folder (\\server\share)"
+ /// "c:\foo\MyFolder" "MyFolder (c:\foo)"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Re: Hello! (/Mailbox Account/Inbox)"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 8</para>
+ /// </summary>
+ public ShellProperty<String> ItemPathDisplayNarrow
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemPathDisplayNarrow;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemType -- PKEY_ItemType</para>
+ /// <para>Description: This is the canonical type of the item and is intended to be programmatically
+ ///parsed.
+ ///
+ ///If there is no canonical type, the value is VT_EMPTY.
+ ///
+ ///If the item is a file (ie, System.FileName is not VT_EMPTY), the value is the same as
+ ///System.FileExtension.
+ ///
+ ///Use System.ItemTypeText when you want to display the type to end users in a view. (If
+ /// the item is a file, passing the System.ItemType value to PSFormatForDisplay will
+ /// result in the same value as System.ItemTypeText.)
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" ".txt"
+ /// "\\server\share\mydir\goodnews.doc" ".doc"
+ /// "\\server\share\folder" "Directory"
+ /// "c:\foo\MyFolder" "Directory"
+ /// [desktop] "Folder"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "MAPI/IPM.Message"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 11</para>
+ /// </summary>
+ public ShellProperty<String> ItemType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemTypeText -- PKEY_ItemTypeText</para>
+ /// <para>Description: This is the user friendly type name of the item. This is not intended to be
+ ///programmatically parsed.
+ ///
+ ///If System.ItemType is VT_EMPTY, the value of this property is also VT_EMPTY.
+ ///
+ ///If the item is a file, the value of this property is the same as if you passed the
+ ///file's System.ItemType value to PSFormatForDisplay.
+ ///
+ ///This property should not be confused with System.Kind, where System.Kind is a high-level
+ ///user friendly kind name. For example, for a document, System.Kind = "Document" and
+ ///System.Item.Type = ".doc" and System.Item.TypeText = "Microsoft Word Document"
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "Text File"
+ /// "\\server\share\mydir\goodnews.doc" "Microsoft Word Document"
+ /// "\\server\share\folder" "File Folder"
+ /// "c:\foo\MyFolder" "File Folder"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Outlook E-Mail Message"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 4 (PID_STG_STORAGETYPE)</para>
+ /// </summary>
+ public ShellProperty<String> ItemTypeText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemTypeText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemUrl -- PKEY_ItemUrl</para>
+ /// <para>Description: This always represents a well formed URL that points to the item.
+ ///
+ ///To reference shell namespace items using shell APIs, use System.ParsingPath.
+ ///
+ ///Example values:
+ ///
+ /// Files: "file:///c:/foo/bar/hello.txt"
+ /// "csc://{GUID}/..."
+ /// Messages: "mapi://..."
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 9 (DISPID_QUERY_VIRTUALPATH)</para>
+ /// </summary>
+ public ShellProperty<String> ItemUrl
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ItemUrl;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Keywords -- PKEY_Keywords</para>
+ /// <para>Description: The keywords for the item. Also referred to as tags.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 5 (PIDSI_KEYWORDS)</para>
+ /// </summary>
+ public ShellProperty<String[]> Keywords
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Keywords;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Kind -- PKEY_Kind</para>
+ /// <para>Description: System.Kind is used to map extensions to various .Search folders.
+ ///Extensions are mapped to Kinds at HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap
+ ///The list of kinds is not extensible.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {1E3EE840-BC2B-476C-8237-2ACD1A839B22}, 3</para>
+ /// </summary>
+ public ShellProperty<String[]> Kind
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Kind;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.KindText -- PKEY_KindText</para>
+ /// <para>Description: This is the user-friendly form of System.Kind. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F04BEF95-C585-4197-A2B7-DF46FDC9EE6D}, 100</para>
+ /// </summary>
+ public ShellProperty<String> KindText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.KindText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Language -- PKEY_Language</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 28</para>
+ /// </summary>
+ public ShellProperty<String> Language
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Language;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.MileageInformation -- PKEY_MileageInformation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FDF84370-031A-4ADD-9E91-0D775F1C6605}, 100</para>
+ /// </summary>
+ public ShellProperty<String> MileageInformation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.MileageInformation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.MIMEType -- PKEY_MIMEType</para>
+ /// <para>Description: The MIME type. Eg, for EML files: 'message/rfc822'.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0B63E350-9CCC-11D0-BCDB-00805FCCCE04}, 5</para>
+ /// </summary>
+ public ShellProperty<String> MIMEType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.MIMEType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.NamespaceCLSID -- PKEY_NamespaceCLSID</para>
+ /// <para>Description: The CLSID of the name space extension for an item, the object that implements IShellFolder for this item
+ ///</para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 6</para>
+ /// </summary>
+ public ShellProperty<IntPtr?> NamespaceClsid
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.NamespaceClsid;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IntPtr?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IntPtr?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Null -- PKEY_Null</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {00000000-0000-0000-0000-000000000000}, 0</para>
+ /// </summary>
+ public ShellProperty<Object> Null
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Null;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OfflineAvailability -- PKEY_OfflineAvailability</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A94688B6-7D9F-4570-A648-E3DFC0AB2B3F}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> OfflineAvailability
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.OfflineAvailability;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OfflineStatus -- PKEY_OfflineStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6D24888F-4718-4BDA-AFED-EA0FB4386CD8}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> OfflineStatus
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.OfflineStatus;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OriginalFileName -- PKEY_OriginalFileName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 6</para>
+ /// </summary>
+ public ShellProperty<String> OriginalFileName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.OriginalFileName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OwnerSID -- PKEY_OwnerSID</para>
+ /// <para>Description: SID of the user that owns the library.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 6</para>
+ /// </summary>
+ public ShellProperty<String> OwnerSid
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.OwnerSid;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParentalRating -- PKEY_ParentalRating</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 21 (PIDMSI_PARENTAL_RATING)</para>
+ /// </summary>
+ public ShellProperty<String> ParentalRating
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ParentalRating;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParentalRatingReason -- PKEY_ParentalRatingReason</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {10984E0A-F9F2-4321-B7EF-BAF195AF4319}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ParentalRatingReason
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ParentalRatingReason;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParentalRatingsOrganization -- PKEY_ParentalRatingsOrganization</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A7FE0840-1344-46F0-8D37-52ED712A4BF9}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ParentalRatingsOrganization
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ParentalRatingsOrganization;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParsingBindContext -- PKEY_ParsingBindContext</para>
+ /// <para>Description: used to get the IBindCtx for an item for parsing
+ ///</para>
+ /// <para>Type: Any -- VT_NULL Legacy code may treat this as VT_UNKNOWN.</para>
+ /// <para>FormatID: {DFB9A04D-362F-4CA3-B30B-0254B17B5B84}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> ParsingBindContext
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ParsingBindContext;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParsingName -- PKEY_ParsingName</para>
+ /// <para>Description: The shell namespace name of an item relative to a parent folder. This name may be passed to
+ ///IShellFolder::ParseDisplayName() of the parent shell folder.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 24</para>
+ /// </summary>
+ public ShellProperty<String> ParsingName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ParsingName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParsingPath -- PKEY_ParsingPath</para>
+ /// <para>Description: This is the shell namespace path to the item. This path may be passed to
+ ///SHParseDisplayName to parse the path to the correct shell folder.
+ ///
+ ///If the item is a file, the value is identical to System.ItemPathDisplay.
+ ///
+ ///If the item cannot be accessed through the shell namespace, this value is VT_EMPTY.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 30</para>
+ /// </summary>
+ public ShellProperty<String> ParsingPath
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ParsingPath;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PerceivedType -- PKEY_PerceivedType</para>
+ /// <para>Description: The perceived type of a shell item, based upon its canonical type.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 9</para>
+ /// </summary>
+ public ShellProperty<Int32?> PerceivedType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PerceivedType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PercentFull -- PKEY_PercentFull</para>
+ /// <para>Description: The amount filled as a percentage, multiplied by 100 (ie, the valid range is 0 through 100).
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 5 (Filesystem Volume Properties)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> PercentFull
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PercentFull;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Priority -- PKEY_Priority</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {9C1FCF74-2D97-41BA-B4AE-CB2E3661A6E4}, 5</para>
+ /// </summary>
+ public ShellProperty<UInt16?> Priority
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Priority;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PriorityText -- PKEY_PriorityText</para>
+ /// <para>Description: This is the user-friendly form of System.Priority. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D98BE98B-B86B-4095-BF52-9D23B2E0A752}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PriorityText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PriorityText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Project -- PKEY_Project</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {39A7F922-477C-48DE-8BC8-B28441E342E3}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Project
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Project;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ProviderItemID -- PKEY_ProviderItemID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F21D9941-81F0-471A-ADEE-4E74B49217ED}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ProviderItemID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ProviderItemID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Rating -- PKEY_Rating</para>
+ /// <para>Description: Indicates the users preference rating of an item on a scale of 1-99 (1-12 = One Star,
+ ///13-37 = Two Stars, 38-62 = Three Stars, 63-87 = Four Stars, 88-99 = Five Stars).
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 9 (PIDMSI_RATING)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> Rating
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Rating;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RatingText -- PKEY_RatingText</para>
+ /// <para>Description: This is the user-friendly form of System.Rating. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {90197CA7-FD8F-4E8C-9DA3-B57E1E609295}, 100</para>
+ /// </summary>
+ public ShellProperty<String> RatingText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RatingText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sensitivity -- PKEY_Sensitivity</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {F8D3F6AC-4874-42CB-BE59-AB454B30716A}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> Sensitivity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sensitivity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SensitivityText -- PKEY_SensitivityText</para>
+ /// <para>Description: This is the user-friendly form of System.Sensitivity. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D0C7F054-3F72-4725-8527-129A577CB269}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SensitivityText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.SensitivityText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SFGAOFlags -- PKEY_SFGAOFlags</para>
+ /// <para>Description: IShellFolder::GetAttributesOf flags, with SFGAO_PKEYSFGAOMASK attributes masked out.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 25</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SFGAOFlags
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.SFGAOFlags;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SharedWith -- PKEY_SharedWith</para>
+ /// <para>Description: Who is the item shared with?
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}, 200</para>
+ /// </summary>
+ public ShellProperty<String[]> SharedWith
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.SharedWith;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ShareUserRating -- PKEY_ShareUserRating</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 12 (PIDMSI_SHARE_USER_RATING)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ShareUserRating
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ShareUserRating;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SharingStatus -- PKEY_SharingStatus</para>
+ /// <para>Description: What is the item's sharing status (not shared, shared, everyone (homegroup or everyone), or private)?
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}, 300</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SharingStatus
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.SharingStatus;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SimpleRating -- PKEY_SimpleRating</para>
+ /// <para>Description: Indicates the users preference rating of an item on a scale of 0-5 (0=unrated, 1=One Star, 2=Two Stars, 3=Three Stars,
+ ///4=Four Stars, 5=Five Stars)
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A09F084E-AD41-489F-8076-AA5BE3082BCA}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SimpleRating
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.SimpleRating;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Size -- PKEY_Size</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 12 (PID_STG_SIZE)</para>
+ /// </summary>
+ public ShellProperty<UInt64?> Size
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Size;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SoftwareUsed -- PKEY_SoftwareUsed</para>
+ /// <para>Description: PropertyTagSoftwareUsed
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 305</para>
+ /// </summary>
+ public ShellProperty<String> SoftwareUsed
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.SoftwareUsed;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SourceItem -- PKEY_SourceItem</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {668CDFA5-7A1B-4323-AE4B-E527393A1D81}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SourceItem
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.SourceItem;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.StartDate -- PKEY_StartDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {48FD6EC8-8A12-4CDF-A03E-4EC5A511EDDE}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> StartDate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.StartDate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Status -- PKEY_Status</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_IntSite) {000214A1-0000-0000-C000-000000000046}, 9</para>
+ /// </summary>
+ public ShellProperty<String> Status
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Status;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Subject -- PKEY_Subject</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 3 (PIDSI_SUBJECT)</para>
+ /// </summary>
+ public ShellProperty<String> Subject
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Subject;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Thumbnail -- PKEY_Thumbnail</para>
+ /// <para>Description: A data that represents the thumbnail in VT_CF format.
+ ///</para>
+ /// <para>Type: Clipboard -- VT_CF</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 17 (PIDSI_THUMBNAIL)</para>
+ /// </summary>
+ public ShellProperty<IntPtr?> Thumbnail
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Thumbnail;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IntPtr?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IntPtr?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ThumbnailCacheId -- PKEY_ThumbnailCacheId</para>
+ /// <para>Description: Unique value that can be used as a key to cache thumbnails. The value changes when the name, volume, or data modified
+ ///of an item changes.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {446D16B1-8DAD-4870-A748-402EA43D788C}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt64?> ThumbnailCacheId
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ThumbnailCacheId;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ThumbnailStream -- PKEY_ThumbnailStream</para>
+ /// <para>Description: Data that represents the thumbnail in VT_STREAM format that GDI+/WindowsCodecs supports (jpg, png, etc).
+ ///</para>
+ /// <para>Type: Stream -- VT_STREAM</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 27</para>
+ /// </summary>
+ public ShellProperty<IStream> ThumbnailStream
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.ThumbnailStream;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IStream>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IStream>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Title -- PKEY_Title</para>
+ /// <para>Description: Title of item.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 2 (PIDSI_TITLE)</para>
+ /// </summary>
+ public ShellProperty<String> Title
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Title;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.TotalFileSize -- PKEY_TotalFileSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 14</para>
+ /// </summary>
+ public ShellProperty<UInt64?> TotalFileSize
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.TotalFileSize;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Trademarks -- PKEY_Trademarks</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 9 (PIDVSI_Trademarks)</para>
+ /// </summary>
+ public ShellProperty<String> Trademarks
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Trademarks;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ private PropertySystemAppUserModel internalPropertySystemAppUserModel;
+ /// <summary>
+ /// System.AppUserModel Properties
+ /// </summary>
+ public PropertySystemAppUserModel AppUserModel
+ {
+ get
+ {
+ if (internalPropertySystemAppUserModel == null)
+ {
+ internalPropertySystemAppUserModel = new PropertySystemAppUserModel(shellObjectParent);
+ }
+
+ return internalPropertySystemAppUserModel;
+ }
+ }
+ private PropertySystemAudio internalPropertySystemAudio;
+ /// <summary>
+ /// System.Audio Properties
+ /// </summary>
+ public PropertySystemAudio Audio
+ {
+ get
+ {
+ if (internalPropertySystemAudio == null)
+ {
+ internalPropertySystemAudio = new PropertySystemAudio(shellObjectParent);
+ }
+
+ return internalPropertySystemAudio;
+ }
+ }
+ private PropertySystemCalendar internalPropertySystemCalendar;
+ /// <summary>
+ /// System.Calendar Properties
+ /// </summary>
+ public PropertySystemCalendar Calendar
+ {
+ get
+ {
+ if (internalPropertySystemCalendar == null)
+ {
+ internalPropertySystemCalendar = new PropertySystemCalendar(shellObjectParent);
+ }
+
+ return internalPropertySystemCalendar;
+ }
+ }
+ private PropertySystemCommunication internalPropertySystemCommunication;
+ /// <summary>
+ /// System.Communication Properties
+ /// </summary>
+ public PropertySystemCommunication Communication
+ {
+ get
+ {
+ if (internalPropertySystemCommunication == null)
+ {
+ internalPropertySystemCommunication = new PropertySystemCommunication(shellObjectParent);
+ }
+
+ return internalPropertySystemCommunication;
+ }
+ }
+ private PropertySystemComputer internalPropertySystemComputer;
+ /// <summary>
+ /// System.Computer Properties
+ /// </summary>
+ public PropertySystemComputer Computer
+ {
+ get
+ {
+ if (internalPropertySystemComputer == null)
+ {
+ internalPropertySystemComputer = new PropertySystemComputer(shellObjectParent);
+ }
+
+ return internalPropertySystemComputer;
+ }
+ }
+ private PropertySystemContact internalPropertySystemContact;
+ /// <summary>
+ /// System.Contact Properties
+ /// </summary>
+ public PropertySystemContact Contact
+ {
+ get
+ {
+ if (internalPropertySystemContact == null)
+ {
+ internalPropertySystemContact = new PropertySystemContact(shellObjectParent);
+ }
+
+ return internalPropertySystemContact;
+ }
+ }
+ private PropertySystemDevice internalPropertySystemDevice;
+ /// <summary>
+ /// System.Device Properties
+ /// </summary>
+ public PropertySystemDevice Device
+ {
+ get
+ {
+ if (internalPropertySystemDevice == null)
+ {
+ internalPropertySystemDevice = new PropertySystemDevice(shellObjectParent);
+ }
+
+ return internalPropertySystemDevice;
+ }
+ }
+ private PropertySystemDeviceInterface internalPropertySystemDeviceInterface;
+ /// <summary>
+ /// System.DeviceInterface Properties
+ /// </summary>
+ public PropertySystemDeviceInterface DeviceInterface
+ {
+ get
+ {
+ if (internalPropertySystemDeviceInterface == null)
+ {
+ internalPropertySystemDeviceInterface = new PropertySystemDeviceInterface(shellObjectParent);
+ }
+
+ return internalPropertySystemDeviceInterface;
+ }
+ }
+ private PropertySystemDevices internalPropertySystemDevices;
+ /// <summary>
+ /// System.Devices Properties
+ /// </summary>
+ public PropertySystemDevices Devices
+ {
+ get
+ {
+ if (internalPropertySystemDevices == null)
+ {
+ internalPropertySystemDevices = new PropertySystemDevices(shellObjectParent);
+ }
+
+ return internalPropertySystemDevices;
+ }
+ }
+ private PropertySystemDocument internalPropertySystemDocument;
+ /// <summary>
+ /// System.Document Properties
+ /// </summary>
+ public PropertySystemDocument Document
+ {
+ get
+ {
+ if (internalPropertySystemDocument == null)
+ {
+ internalPropertySystemDocument = new PropertySystemDocument(shellObjectParent);
+ }
+
+ return internalPropertySystemDocument;
+ }
+ }
+ private PropertySystemDRM internalPropertySystemDRM;
+ /// <summary>
+ /// System.DRM Properties
+ /// </summary>
+ public PropertySystemDRM DRM
+ {
+ get
+ {
+ if (internalPropertySystemDRM == null)
+ {
+ internalPropertySystemDRM = new PropertySystemDRM(shellObjectParent);
+ }
+
+ return internalPropertySystemDRM;
+ }
+ }
+ private PropertySystemGPS internalPropertySystemGPS;
+ /// <summary>
+ /// System.GPS Properties
+ /// </summary>
+ public PropertySystemGPS GPS
+ {
+ get
+ {
+ if (internalPropertySystemGPS == null)
+ {
+ internalPropertySystemGPS = new PropertySystemGPS(shellObjectParent);
+ }
+
+ return internalPropertySystemGPS;
+ }
+ }
+ private PropertySystemIdentity internalPropertySystemIdentity;
+ /// <summary>
+ /// System.Identity Properties
+ /// </summary>
+ public PropertySystemIdentity Identity
+ {
+ get
+ {
+ if (internalPropertySystemIdentity == null)
+ {
+ internalPropertySystemIdentity = new PropertySystemIdentity(shellObjectParent);
+ }
+
+ return internalPropertySystemIdentity;
+ }
+ }
+ private PropertySystemIdentityProvider internalPropertySystemIdentityProvider;
+ /// <summary>
+ /// System.IdentityProvider Properties
+ /// </summary>
+ public PropertySystemIdentityProvider IdentityProvider
+ {
+ get
+ {
+ if (internalPropertySystemIdentityProvider == null)
+ {
+ internalPropertySystemIdentityProvider = new PropertySystemIdentityProvider(shellObjectParent);
+ }
+
+ return internalPropertySystemIdentityProvider;
+ }
+ }
+ private PropertySystemImage internalPropertySystemImage;
+ /// <summary>
+ /// System.Image Properties
+ /// </summary>
+ public PropertySystemImage Image
+ {
+ get
+ {
+ if (internalPropertySystemImage == null)
+ {
+ internalPropertySystemImage = new PropertySystemImage(shellObjectParent);
+ }
+
+ return internalPropertySystemImage;
+ }
+ }
+ private PropertySystemJournal internalPropertySystemJournal;
+ /// <summary>
+ /// System.Journal Properties
+ /// </summary>
+ public PropertySystemJournal Journal
+ {
+ get
+ {
+ if (internalPropertySystemJournal == null)
+ {
+ internalPropertySystemJournal = new PropertySystemJournal(shellObjectParent);
+ }
+
+ return internalPropertySystemJournal;
+ }
+ }
+ private PropertySystemLayoutPattern internalPropertySystemLayoutPattern;
+ /// <summary>
+ /// System.LayoutPattern Properties
+ /// </summary>
+ public PropertySystemLayoutPattern LayoutPattern
+ {
+ get
+ {
+ if (internalPropertySystemLayoutPattern == null)
+ {
+ internalPropertySystemLayoutPattern = new PropertySystemLayoutPattern(shellObjectParent);
+ }
+
+ return internalPropertySystemLayoutPattern;
+ }
+ }
+ private PropertySystemLink internalPropertySystemLink;
+ /// <summary>
+ /// System.Link Properties
+ /// </summary>
+ public PropertySystemLink Link
+ {
+ get
+ {
+ if (internalPropertySystemLink == null)
+ {
+ internalPropertySystemLink = new PropertySystemLink(shellObjectParent);
+ }
+
+ return internalPropertySystemLink;
+ }
+ }
+ private PropertySystemMedia internalPropertySystemMedia;
+ /// <summary>
+ /// System.Media Properties
+ /// </summary>
+ public PropertySystemMedia Media
+ {
+ get
+ {
+ if (internalPropertySystemMedia == null)
+ {
+ internalPropertySystemMedia = new PropertySystemMedia(shellObjectParent);
+ }
+
+ return internalPropertySystemMedia;
+ }
+ }
+ private PropertySystemMessage internalPropertySystemMessage;
+ /// <summary>
+ /// System.Message Properties
+ /// </summary>
+ public PropertySystemMessage Message
+ {
+ get
+ {
+ if (internalPropertySystemMessage == null)
+ {
+ internalPropertySystemMessage = new PropertySystemMessage(shellObjectParent);
+ }
+
+ return internalPropertySystemMessage;
+ }
+ }
+ private PropertySystemMusic internalPropertySystemMusic;
+ /// <summary>
+ /// System.Music Properties
+ /// </summary>
+ public PropertySystemMusic Music
+ {
+ get
+ {
+ if (internalPropertySystemMusic == null)
+ {
+ internalPropertySystemMusic = new PropertySystemMusic(shellObjectParent);
+ }
+
+ return internalPropertySystemMusic;
+ }
+ }
+ private PropertySystemNote internalPropertySystemNote;
+ /// <summary>
+ /// System.Note Properties
+ /// </summary>
+ public PropertySystemNote Note
+ {
+ get
+ {
+ if (internalPropertySystemNote == null)
+ {
+ internalPropertySystemNote = new PropertySystemNote(shellObjectParent);
+ }
+
+ return internalPropertySystemNote;
+ }
+ }
+ private PropertySystemPhoto internalPropertySystemPhoto;
+ /// <summary>
+ /// System.Photo Properties
+ /// </summary>
+ public PropertySystemPhoto Photo
+ {
+ get
+ {
+ if (internalPropertySystemPhoto == null)
+ {
+ internalPropertySystemPhoto = new PropertySystemPhoto(shellObjectParent);
+ }
+
+ return internalPropertySystemPhoto;
+ }
+ }
+ private PropertySystemPropGroup internalPropertySystemPropGroup;
+ /// <summary>
+ /// System.PropGroup Properties
+ /// </summary>
+ public PropertySystemPropGroup PropGroup
+ {
+ get
+ {
+ if (internalPropertySystemPropGroup == null)
+ {
+ internalPropertySystemPropGroup = new PropertySystemPropGroup(shellObjectParent);
+ }
+
+ return internalPropertySystemPropGroup;
+ }
+ }
+ private PropertySystemPropList internalPropertySystemPropList;
+ /// <summary>
+ /// System.PropList Properties
+ /// </summary>
+ public PropertySystemPropList PropList
+ {
+ get
+ {
+ if (internalPropertySystemPropList == null)
+ {
+ internalPropertySystemPropList = new PropertySystemPropList(shellObjectParent);
+ }
+
+ return internalPropertySystemPropList;
+ }
+ }
+ private PropertySystemRecordedTV internalPropertySystemRecordedTV;
+ /// <summary>
+ /// System.RecordedTV Properties
+ /// </summary>
+ public PropertySystemRecordedTV RecordedTV
+ {
+ get
+ {
+ if (internalPropertySystemRecordedTV == null)
+ {
+ internalPropertySystemRecordedTV = new PropertySystemRecordedTV(shellObjectParent);
+ }
+
+ return internalPropertySystemRecordedTV;
+ }
+ }
+ private PropertySystemSearch internalPropertySystemSearch;
+ /// <summary>
+ /// System.Search Properties
+ /// </summary>
+ public PropertySystemSearch Search
+ {
+ get
+ {
+ if (internalPropertySystemSearch == null)
+ {
+ internalPropertySystemSearch = new PropertySystemSearch(shellObjectParent);
+ }
+
+ return internalPropertySystemSearch;
+ }
+ }
+ private PropertySystemShell internalPropertySystemShell;
+ /// <summary>
+ /// System.Shell Properties
+ /// </summary>
+ public PropertySystemShell Shell
+ {
+ get
+ {
+ if (internalPropertySystemShell == null)
+ {
+ internalPropertySystemShell = new PropertySystemShell(shellObjectParent);
+ }
+
+ return internalPropertySystemShell;
+ }
+ }
+ private PropertySystemSoftware internalPropertySystemSoftware;
+ /// <summary>
+ /// System.Software Properties
+ /// </summary>
+ public PropertySystemSoftware Software
+ {
+ get
+ {
+ if (internalPropertySystemSoftware == null)
+ {
+ internalPropertySystemSoftware = new PropertySystemSoftware(shellObjectParent);
+ }
+
+ return internalPropertySystemSoftware;
+ }
+ }
+ private PropertySystemSync internalPropertySystemSync;
+ /// <summary>
+ /// System.Sync Properties
+ /// </summary>
+ public PropertySystemSync Sync
+ {
+ get
+ {
+ if (internalPropertySystemSync == null)
+ {
+ internalPropertySystemSync = new PropertySystemSync(shellObjectParent);
+ }
+
+ return internalPropertySystemSync;
+ }
+ }
+ private PropertySystemTask internalPropertySystemTask;
+ /// <summary>
+ /// System.Task Properties
+ /// </summary>
+ public PropertySystemTask Task
+ {
+ get
+ {
+ if (internalPropertySystemTask == null)
+ {
+ internalPropertySystemTask = new PropertySystemTask(shellObjectParent);
+ }
+
+ return internalPropertySystemTask;
+ }
+ }
+ private PropertySystemVideo internalPropertySystemVideo;
+ /// <summary>
+ /// System.Video Properties
+ /// </summary>
+ public PropertySystemVideo Video
+ {
+ get
+ {
+ if (internalPropertySystemVideo == null)
+ {
+ internalPropertySystemVideo = new PropertySystemVideo(shellObjectParent);
+ }
+
+ return internalPropertySystemVideo;
+ }
+ }
+ private PropertySystemVolume internalPropertySystemVolume;
+ /// <summary>
+ /// System.Volume Properties
+ /// </summary>
+ public PropertySystemVolume Volume
+ {
+ get
+ {
+ if (internalPropertySystemVolume == null)
+ {
+ internalPropertySystemVolume = new PropertySystemVolume(shellObjectParent);
+ }
+
+ return internalPropertySystemVolume;
+ }
+ }
+ #endregion
+ }
+
+ /// <summary>
+ /// System.AppUserModel Properties
+ /// </summary>
+ public class PropertySystemAppUserModel : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemAppUserModel(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.ExcludeFromShowInNewInstall -- PKEY_AppUserModel_ExcludeFromShowInNewInstall</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 8</para>
+ /// </summary>
+ public ShellProperty<Boolean?> ExcludeFromShowInNewInstall
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AppUserModel.ExcludeFromShowInNewInstall;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.ID -- PKEY_AppUserModel_ID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 5</para>
+ /// </summary>
+ public ShellProperty<String> ID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AppUserModel.ID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.IsDestListSeparator -- PKEY_AppUserModel_IsDestListSeparator</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 6</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsDestinationListSeparator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AppUserModel.IsDestinationListSeparator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.PreventPinning -- PKEY_AppUserModel_PreventPinning</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 9</para>
+ /// </summary>
+ public ShellProperty<Boolean?> PreventPinning
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AppUserModel.PreventPinning;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.RelaunchCommand -- PKEY_AppUserModel_RelaunchCommand</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 2</para>
+ /// </summary>
+ public ShellProperty<String> RelaunchCommand
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AppUserModel.RelaunchCommand;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.RelaunchDisplayNameResource -- PKEY_AppUserModel_RelaunchDisplayNameResource</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 4</para>
+ /// </summary>
+ public ShellProperty<String> RelaunchDisplayNameResource
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AppUserModel.RelaunchDisplayNameResource;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.RelaunchIconResource -- PKEY_AppUserModel_RelaunchIconResource</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 3</para>
+ /// </summary>
+ public ShellProperty<String> RelaunchIconResource
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.AppUserModel.RelaunchIconResource;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Audio Properties
+ /// </summary>
+ public class PropertySystemAudio : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemAudio(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Audio.ChannelCount -- PKEY_Audio_ChannelCount</para>
+ /// <para>Description: Indicates the channel count for the audio file. Values: 1 (mono), 2 (stereo).
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 7 (PIDASI_CHANNEL_COUNT)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ChannelCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.ChannelCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.Compression -- PKEY_Audio_Compression</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 10 (PIDASI_COMPRESSION)</para>
+ /// </summary>
+ public ShellProperty<String> Compression
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.Compression;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.EncodingBitrate -- PKEY_Audio_EncodingBitrate</para>
+ /// <para>Description: Indicates the average data rate in Hz for the audio file in "bits per second".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 4 (PIDASI_AVG_DATA_RATE)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> EncodingBitrate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.EncodingBitrate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.Format -- PKEY_Audio_Format</para>
+ /// <para>Description: Indicates the format of the audio file.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_BSTR.</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 2 (PIDASI_FORMAT)</para>
+ /// </summary>
+ public ShellProperty<String> Format
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.Format;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.IsVariableBitRate -- PKEY_Audio_IsVariableBitRate</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {E6822FEE-8C17-4D62-823C-8E9CFCBD1D5C}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsVariableBitrate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.IsVariableBitrate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.PeakValue -- PKEY_Audio_PeakValue</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2579E5D0-1116-4084-BD9A-9B4F7CB4DF5E}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> PeakValue
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.PeakValue;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.SampleRate -- PKEY_Audio_SampleRate</para>
+ /// <para>Description: Indicates the audio sample rate for the audio file in "samples per second".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 5 (PIDASI_SAMPLE_RATE)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SampleRate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.SampleRate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.SampleSize -- PKEY_Audio_SampleSize</para>
+ /// <para>Description: Indicates the audio sample size for the audio file in "bits per sample".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 6 (PIDASI_SAMPLE_SIZE)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SampleSize
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.SampleSize;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.StreamName -- PKEY_Audio_StreamName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 9 (PIDASI_STREAM_NAME)</para>
+ /// </summary>
+ public ShellProperty<String> StreamName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.StreamName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.StreamNumber -- PKEY_Audio_StreamNumber</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 8 (PIDASI_STREAM_NUMBER)</para>
+ /// </summary>
+ public ShellProperty<UInt16?> StreamNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Audio.StreamNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Calendar Properties
+ /// </summary>
+ public class PropertySystemCalendar : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemCalendar(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Calendar.Duration -- PKEY_Calendar_Duration</para>
+ /// <para>Description: The duration as specified in a string.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {293CA35A-09AA-4DD2-B180-1FE245728A52}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Duration
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.Duration;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.IsOnline -- PKEY_Calendar_IsOnline</para>
+ /// <para>Description: Identifies if the event is an online event.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {BFEE9149-E3E2-49A7-A862-C05988145CEC}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsOnline
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.IsOnline;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.IsRecurring -- PKEY_Calendar_IsRecurring</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {315B9C8D-80A9-4EF9-AE16-8E746DA51D70}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsRecurring
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.IsRecurring;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.Location -- PKEY_Calendar_Location</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F6272D18-CECC-40B1-B26A-3911717AA7BD}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Location
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.Location;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OptionalAttendeeAddresses -- PKEY_Calendar_OptionalAttendeeAddresses</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D55BAE5A-3892-417A-A649-C6AC5AAAEAB3}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> OptionalAttendeeAddresses
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.OptionalAttendeeAddresses;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OptionalAttendeeNames -- PKEY_Calendar_OptionalAttendeeNames</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {09429607-582D-437F-84C3-DE93A2B24C3C}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> OptionalAttendeeNames
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.OptionalAttendeeNames;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OrganizerAddress -- PKEY_Calendar_OrganizerAddress</para>
+ /// <para>Description: Address of the organizer organizing the event.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {744C8242-4DF5-456C-AB9E-014EFB9021E3}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OrganizerAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.OrganizerAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OrganizerName -- PKEY_Calendar_OrganizerName</para>
+ /// <para>Description: Name of the organizer organizing the event.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AAA660F9-9865-458E-B484-01BC7FE3973E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OrganizerName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.OrganizerName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ReminderTime -- PKEY_Calendar_ReminderTime</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {72FC5BA4-24F9-4011-9F3F-ADD27AFAD818}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> ReminderTime
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.ReminderTime;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.RequiredAttendeeAddresses -- PKEY_Calendar_RequiredAttendeeAddresses</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {0BA7D6C3-568D-4159-AB91-781A91FB71E5}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> RequiredAttendeeAddresses
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.RequiredAttendeeAddresses;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.RequiredAttendeeNames -- PKEY_Calendar_RequiredAttendeeNames</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {B33AF30B-F552-4584-936C-CB93E5CDA29F}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> RequiredAttendeeNames
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.RequiredAttendeeNames;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.Resources -- PKEY_Calendar_Resources</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {00F58A38-C54B-4C40-8696-97235980EAE1}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> Resources
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.Resources;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ResponseStatus -- PKEY_Calendar_ResponseStatus</para>
+ /// <para>Description: This property stores the status of the user responses to meetings in her calendar.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {188C1F91-3C40-4132-9EC5-D8B03B72A8A2}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> ResponseStatus
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.ResponseStatus;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ShowTimeAs -- PKEY_Calendar_ShowTimeAs</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {5BF396D4-5EB2-466F-BDE9-2FB3F2361D6E}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> ShowTimeAs
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.ShowTimeAs;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ShowTimeAsText -- PKEY_Calendar_ShowTimeAsText</para>
+ /// <para>Description: This is the user-friendly form of System.Calendar.ShowTimeAs. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {53DA57CF-62C0-45C4-81DE-7610BCEFD7F5}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ShowTimeAsText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Calendar.ShowTimeAsText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+ }
+
+ /// <summary>
+ /// System.Communication Properties
+ /// </summary>
+ public class PropertySystemCommunication : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemCommunication(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Communication.AccountName -- PKEY_Communication_AccountName</para>
+ /// <para>Description: Account Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 9</para>
+ /// </summary>
+ public ShellProperty<String> AccountName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.AccountName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.DateItemExpires -- PKEY_Communication_DateItemExpires</para>
+ /// <para>Description: Date the item expires due to the retention policy.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {428040AC-A177-4C8A-9760-F6F761227F9A}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateItemExpires
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.DateItemExpires;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.FollowupIconIndex -- PKEY_Communication_FollowupIconIndex</para>
+ /// <para>Description: This is the icon index used on messages marked for followup.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {83A6347E-6FE4-4F40-BA9C-C4865240D1F4}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> FollowUpIconIndex
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.FollowUpIconIndex;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.HeaderItem -- PKEY_Communication_HeaderItem</para>
+ /// <para>Description: This property will be true if the item is a header item which means the item hasn't been fully downloaded.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {C9C34F84-2241-4401-B607-BD20ED75AE7F}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> HeaderItem
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.HeaderItem;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.PolicyTag -- PKEY_Communication_PolicyTag</para>
+ /// <para>Description: This a string used to identify the retention policy applied to the item.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {EC0B4191-AB0B-4C66-90B6-C6637CDEBBAB}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PolicyTag
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.PolicyTag;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.SecurityFlags -- PKEY_Communication_SecurityFlags</para>
+ /// <para>Description: Security flags associated with the item to know if the item is encrypted, signed or DRM enabled.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {8619A4B6-9F4D-4429-8C0F-B996CA59E335}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> SecurityFlags
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.SecurityFlags;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.Suffix -- PKEY_Communication_Suffix</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {807B653A-9E91-43EF-8F97-11CE04EE20C5}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Suffix
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.Suffix;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.TaskStatus -- PKEY_Communication_TaskStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {BE1A72C6-9A1D-46B7-AFE7-AFAF8CEF4999}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> TaskStatus
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.TaskStatus;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.TaskStatusText -- PKEY_Communication_TaskStatusText</para>
+ /// <para>Description: This is the user-friendly form of System.Communication.TaskStatus. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A6744477-C237-475B-A075-54F34498292A}, 100</para>
+ /// </summary>
+ public ShellProperty<String> TaskStatusText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Communication.TaskStatusText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Computer Properties
+ /// </summary>
+ public class PropertySystemComputer : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemComputer(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Computer.DecoratedFreeSpace -- PKEY_Computer_DecoratedFreeSpace</para>
+ /// <para>Description: Free space and total space: "%s free of %s"
+ ///</para>
+ /// <para>Type: Multivalue UInt64 -- VT_VECTOR | VT_UI8 (For variants: VT_ARRAY | VT_UI8)</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 7 (Filesystem Volume Properties)</para>
+ /// </summary>
+ public ShellProperty<UInt64[]> DecoratedFreeSpace
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Computer.DecoratedFreeSpace;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64[]>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Contact Properties
+ /// </summary>
+ public class PropertySystemContact : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemContact(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Contact.Anniversary -- PKEY_Contact_Anniversary</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {9AD5BADB-CEA7-4470-A03D-B84E51B9949E}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> Anniversary
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Anniversary;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.AssistantName -- PKEY_Contact_AssistantName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CD102C9C-5540-4A88-A6F6-64E4981C8CD1}, 100</para>
+ /// </summary>
+ public ShellProperty<String> AssistantName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.AssistantName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.AssistantTelephone -- PKEY_Contact_AssistantTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9A93244D-A7AD-4FF8-9B99-45EE4CC09AF6}, 100</para>
+ /// </summary>
+ public ShellProperty<String> AssistantTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.AssistantTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Birthday -- PKEY_Contact_Birthday</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 47</para>
+ /// </summary>
+ public ShellProperty<DateTime?> Birthday
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Birthday;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddress -- PKEY_Contact_BusinessAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {730FB6DD-CF7C-426B-A03F-BD166CC9EE24}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressCity -- PKEY_Contact_BusinessAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {402B5934-EC5A-48C3-93E6-85E86A2D934E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessAddressCity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessAddressCity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressCountry -- PKEY_Contact_BusinessAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {B0B87314-FCF6-4FEB-8DFF-A50DA6AF561C}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessAddressCountry
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessAddressCountry;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressPostalCode -- PKEY_Contact_BusinessAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E1D4A09E-D758-4CD1-B6EC-34A8B5A73F80}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessAddressPostalCode;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressPostOfficeBox -- PKEY_Contact_BusinessAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BC4E71CE-17F9-48D5-BEE9-021DF0EA5409}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessAddressPostOfficeBox;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressState -- PKEY_Contact_BusinessAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {446F787F-10C4-41CB-A6C4-4D0343551597}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessAddressState
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessAddressState;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressStreet -- PKEY_Contact_BusinessAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DDD1460F-C0BF-4553-8CE4-10433C908FB0}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessAddressStreet
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessAddressStreet;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessFaxNumber -- PKEY_Contact_BusinessFaxNumber</para>
+ /// <para>Description: Business fax number of the contact.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {91EFF6F3-2E27-42CA-933E-7C999FBE310B}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessFaxNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessFaxNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessHomePage -- PKEY_Contact_BusinessHomePage</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {56310920-2491-4919-99CE-EADB06FAFDB2}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessHomepage
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessHomepage;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessTelephone -- PKEY_Contact_BusinessTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6A15E5A0-0A1E-4CD7-BB8C-D2F1B0C929BC}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BusinessTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.BusinessTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.CallbackTelephone -- PKEY_Contact_CallbackTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BF53D1C3-49E0-4F7F-8567-5A821D8AC542}, 100</para>
+ /// </summary>
+ public ShellProperty<String> CallbackTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.CallbackTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.CarTelephone -- PKEY_Contact_CarTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8FDC6DEA-B929-412B-BA90-397A257465FE}, 100</para>
+ /// </summary>
+ public ShellProperty<String> CarTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.CarTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Children -- PKEY_Contact_Children</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D4729704-8EF1-43EF-9024-2BD381187FD5}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> Children
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Children;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.CompanyMainTelephone -- PKEY_Contact_CompanyMainTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8589E481-6040-473D-B171-7FA89C2708ED}, 100</para>
+ /// </summary>
+ public ShellProperty<String> CompanyMainTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.CompanyMainTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Department -- PKEY_Contact_Department</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FC9F7306-FF8F-4D49-9FB6-3FFE5C0951EC}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Department
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Department;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddress -- PKEY_Contact_EmailAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F8FA7FA3-D12B-4785-8A4E-691A94F7A3E7}, 100</para>
+ /// </summary>
+ public ShellProperty<String> EmailAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.EmailAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddress2 -- PKEY_Contact_EmailAddress2</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {38965063-EDC8-4268-8491-B7723172CF29}, 100</para>
+ /// </summary>
+ public ShellProperty<String> EmailAddress2
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.EmailAddress2;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddress3 -- PKEY_Contact_EmailAddress3</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {644D37B4-E1B3-4BAD-B099-7E7C04966ACA}, 100</para>
+ /// </summary>
+ public ShellProperty<String> EmailAddress3
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.EmailAddress3;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddresses -- PKEY_Contact_EmailAddresses</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {84D8F337-981D-44B3-9615-C7596DBA17E3}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> EmailAddresses
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.EmailAddresses;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailName -- PKEY_Contact_EmailName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CC6F4F24-6083-4BD4-8754-674D0DE87AB8}, 100</para>
+ /// </summary>
+ public ShellProperty<String> EmailName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.EmailName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.FileAsName -- PKEY_Contact_FileAsName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F1A24AA7-9CA7-40F6-89EC-97DEF9FFE8DB}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FileAsName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.FileAsName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.FirstName -- PKEY_Contact_FirstName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {14977844-6B49-4AAD-A714-A4513BF60460}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FirstName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.FirstName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.FullName -- PKEY_Contact_FullName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {635E9051-50A5-4BA2-B9DB-4ED056C77296}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FullName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.FullName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Gender -- PKEY_Contact_Gender</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {3C8CEE58-D4F0-4CF9-B756-4E5D24447BCD}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Gender
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Gender;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.GenderValue -- PKEY_Contact_GenderValue</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {3C8CEE58-D4F0-4CF9-B756-4E5D24447BCD}, 101</para>
+ /// </summary>
+ public ShellProperty<UInt16?> GenderValue
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.GenderValue;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Hobbies -- PKEY_Contact_Hobbies</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {5DC2253F-5E11-4ADF-9CFE-910DD01E3E70}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> Hobbies
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Hobbies;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddress -- PKEY_Contact_HomeAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {98F98354-617A-46B8-8560-5B1B64BF1F89}, 100</para>
+ /// </summary>
+ public ShellProperty<String> HomeAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressCity -- PKEY_Contact_HomeAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 65</para>
+ /// </summary>
+ public ShellProperty<String> HomeAddressCity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeAddressCity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressCountry -- PKEY_Contact_HomeAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {08A65AA1-F4C9-43DD-9DDF-A33D8E7EAD85}, 100</para>
+ /// </summary>
+ public ShellProperty<String> HomeAddressCountry
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeAddressCountry;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressPostalCode -- PKEY_Contact_HomeAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8AFCC170-8A46-4B53-9EEE-90BAE7151E62}, 100</para>
+ /// </summary>
+ public ShellProperty<String> HomeAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeAddressPostalCode;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressPostOfficeBox -- PKEY_Contact_HomeAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7B9F6399-0A3F-4B12-89BD-4ADC51C918AF}, 100</para>
+ /// </summary>
+ public ShellProperty<String> HomeAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeAddressPostOfficeBox;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressState -- PKEY_Contact_HomeAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C89A23D0-7D6D-4EB8-87D4-776A82D493E5}, 100</para>
+ /// </summary>
+ public ShellProperty<String> HomeAddressState
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeAddressState;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressStreet -- PKEY_Contact_HomeAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0ADEF160-DB3F-4308-9A21-06237B16FA2A}, 100</para>
+ /// </summary>
+ public ShellProperty<String> HomeAddressStreet
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeAddressStreet;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeFaxNumber -- PKEY_Contact_HomeFaxNumber</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {660E04D6-81AB-4977-A09F-82313113AB26}, 100</para>
+ /// </summary>
+ public ShellProperty<String> HomeFaxNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeFaxNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeTelephone -- PKEY_Contact_HomeTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 20</para>
+ /// </summary>
+ public ShellProperty<String> HomeTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.HomeTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.IMAddress -- PKEY_Contact_IMAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D68DBD8A-3374-4B81-9972-3EC30682DB3D}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> IMAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.IMAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Initials -- PKEY_Contact_Initials</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F3D8F40D-50CB-44A2-9718-40CB9119495D}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Initials
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Initials;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JobTitle -- PKEY_Contact_JobTitle</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 6</para>
+ /// </summary>
+ public ShellProperty<String> JobTitle
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.JobTitle;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Label -- PKEY_Contact_Label</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {97B0AD89-DF49-49CC-834E-660974FD755B}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Label
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Label;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.LastName -- PKEY_Contact_LastName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8F367200-C270-457C-B1D4-E07C5BCD90C7}, 100</para>
+ /// </summary>
+ public ShellProperty<String> LastName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.LastName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.MailingAddress -- PKEY_Contact_MailingAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C0AC206A-827E-4650-95AE-77E2BB74FCC9}, 100</para>
+ /// </summary>
+ public ShellProperty<String> MailingAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.MailingAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.MiddleName -- PKEY_Contact_MiddleName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 71</para>
+ /// </summary>
+ public ShellProperty<String> MiddleName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.MiddleName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.MobileTelephone -- PKEY_Contact_MobileTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 35</para>
+ /// </summary>
+ public ShellProperty<String> MobileTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.MobileTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.NickName -- PKEY_Contact_NickName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 74</para>
+ /// </summary>
+ public ShellProperty<String> Nickname
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Nickname;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OfficeLocation -- PKEY_Contact_OfficeLocation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 7</para>
+ /// </summary>
+ public ShellProperty<String> OfficeLocation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OfficeLocation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddress -- PKEY_Contact_OtherAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {508161FA-313B-43D5-83A1-C1ACCF68622C}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OtherAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OtherAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressCity -- PKEY_Contact_OtherAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6E682923-7F7B-4F0C-A337-CFCA296687BF}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OtherAddressCity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OtherAddressCity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressCountry -- PKEY_Contact_OtherAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8F167568-0AAE-4322-8ED9-6055B7B0E398}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OtherAddressCountry
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OtherAddressCountry;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressPostalCode -- PKEY_Contact_OtherAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {95C656C1-2ABF-4148-9ED3-9EC602E3B7CD}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OtherAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OtherAddressPostalCode;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressPostOfficeBox -- PKEY_Contact_OtherAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8B26EA41-058F-43F6-AECC-4035681CE977}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OtherAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OtherAddressPostOfficeBox;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressState -- PKEY_Contact_OtherAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {71B377D6-E570-425F-A170-809FAE73E54E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OtherAddressState
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OtherAddressState;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressStreet -- PKEY_Contact_OtherAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FF962609-B7D6-4999-862D-95180D529AEA}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OtherAddressStreet
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.OtherAddressStreet;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PagerTelephone -- PKEY_Contact_PagerTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D6304E01-F8F5-4F45-8B15-D024A6296789}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PagerTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PagerTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PersonalTitle -- PKEY_Contact_PersonalTitle</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 69</para>
+ /// </summary>
+ public ShellProperty<String> PersonalTitle
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PersonalTitle;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressCity -- PKEY_Contact_PrimaryAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C8EA94F0-A9E3-4969-A94B-9C62A95324E0}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryAddressCity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryAddressCity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressCountry -- PKEY_Contact_PrimaryAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E53D799D-0F3F-466E-B2FF-74634A3CB7A4}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryAddressCountry
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryAddressCountry;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressPostalCode -- PKEY_Contact_PrimaryAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {18BBD425-ECFD-46EF-B612-7B4A6034EDA0}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryAddressPostalCode;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressPostOfficeBox -- PKEY_Contact_PrimaryAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DE5EF3C7-46E1-484E-9999-62C5308394C1}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryAddressPostOfficeBox;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressState -- PKEY_Contact_PrimaryAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F1176DFE-7138-4640-8B4C-AE375DC70A6D}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryAddressState
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryAddressState;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressStreet -- PKEY_Contact_PrimaryAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {63C25B20-96BE-488F-8788-C09C407AD812}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryAddressStreet
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryAddressStreet;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryEmailAddress -- PKEY_Contact_PrimaryEmailAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 48</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryEmailAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryEmailAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryTelephone -- PKEY_Contact_PrimaryTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 25</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.PrimaryTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Profession -- PKEY_Contact_Profession</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7268AF55-1CE4-4F6E-A41F-B6E4EF10E4A9}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Profession
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Profession;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.SpouseName -- PKEY_Contact_SpouseName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9D2408B6-3167-422B-82B0-F583B7A7CFE3}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SpouseName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.SpouseName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Suffix -- PKEY_Contact_Suffix</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 73</para>
+ /// </summary>
+ public ShellProperty<String> Suffix
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Suffix;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.TelexNumber -- PKEY_Contact_TelexNumber</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C554493C-C1F7-40C1-A76C-EF8C0614003E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> TelexNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.TelexNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.TTYTDDTelephone -- PKEY_Contact_TTYTDDTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AAF16BAC-2B55-45E6-9F6D-415EB94910DF}, 100</para>
+ /// </summary>
+ public ShellProperty<String> TTYTDDTelephone
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.TTYTDDTelephone;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.WebPage -- PKEY_Contact_WebPage</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 18</para>
+ /// </summary>
+ public ShellProperty<String> Webpage
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.Webpage;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ private PropertyContactJA internalPropertyContactJA;
+ /// <summary>
+ /// Contact.JA Properties
+ /// </summary>
+ public PropertyContactJA JA
+ {
+ get
+ {
+ if (internalPropertyContactJA == null)
+ {
+ internalPropertyContactJA = new PropertyContactJA(shellObjectParent);
+ }
+
+ return internalPropertyContactJA;
+ }
+ }
+ #endregion
+ }
+
+ /// <summary>
+ /// Contact.JA Properties
+ /// </summary>
+ public class PropertyContactJA : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertyContactJA(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.CompanyNamePhonetic -- PKEY_Contact_JA_CompanyNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 2</para>
+ /// </summary>
+ public ShellProperty<String> CompanyNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.JA.CompanyNamePhonetic;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.FirstNamePhonetic -- PKEY_Contact_JA_FirstNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 3</para>
+ /// </summary>
+ public ShellProperty<String> FirstNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.JA.FirstNamePhonetic;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.LastNamePhonetic -- PKEY_Contact_JA_LastNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 4</para>
+ /// </summary>
+ public ShellProperty<String> LastNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Contact.JA.LastNamePhonetic;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Device Properties
+ /// </summary>
+ public class PropertySystemDevice : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemDevice(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Device.PrinterURL -- PKEY_Device_PrinterURL</para>
+ /// <para>Description: Printer information Printer URL.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0B48F35A-BE6E-4F17-B108-3C4073D1669A}, 15</para>
+ /// </summary>
+ public ShellProperty<String> PrinterUrl
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Device.PrinterUrl;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.DeviceInterface Properties
+ /// </summary>
+ public class PropertySystemDeviceInterface : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemDeviceInterface(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterDriverDirectory -- PKEY_DeviceInterface_PrinterDriverDirectory</para>
+ /// <para>Description: Printer information Printer Driver Directory.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {847C66DE-B8D6-4AF9-ABC3-6F4F926BC039}, 14</para>
+ /// </summary>
+ public ShellProperty<String> PrinterDriverDirectory
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DeviceInterface.PrinterDriverDirectory;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterDriverName -- PKEY_DeviceInterface_PrinterDriverName</para>
+ /// <para>Description: Printer information Driver Name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AFC47170-14F5-498C-8F30-B0D19BE449C6}, 11</para>
+ /// </summary>
+ public ShellProperty<String> PrinterDriverName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DeviceInterface.PrinterDriverName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterName -- PKEY_DeviceInterface_PrinterName</para>
+ /// <para>Description: Printer information Printer Name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0A7B84EF-0C27-463F-84EF-06C5070001BE}, 10</para>
+ /// </summary>
+ public ShellProperty<String> PrinterName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DeviceInterface.PrinterName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterPortName -- PKEY_DeviceInterface_PrinterPortName</para>
+ /// <para>Description: Printer information Port Name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {EEC7B761-6F94-41B1-949F-C729720DD13C}, 12</para>
+ /// </summary>
+ public ShellProperty<String> PrinterPortName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DeviceInterface.PrinterPortName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Devices Properties
+ /// </summary>
+ public class PropertySystemDevices : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemDevices(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Devices.BatteryLife -- PKEY_Devices_BatteryLife</para>
+ /// <para>Description: Remaining battery life of the device as an integer between 0 and 100 percent.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 10</para>
+ /// </summary>
+ public ShellProperty<Byte?> BatteryLife
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.BatteryLife;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.BatteryPlusCharging -- PKEY_Devices_BatteryPlusCharging</para>
+ /// <para>Description: Remaining battery life of the device as an integer between 0 and 100 percent and the device's charging state.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 22</para>
+ /// </summary>
+ public ShellProperty<Byte?> BatteryPlusCharging
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.BatteryPlusCharging;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.BatteryPlusChargingText -- PKEY_Devices_BatteryPlusChargingText</para>
+ /// <para>Description: Remaining battery life of the device and the device's charging state as a string.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 23</para>
+ /// </summary>
+ public ShellProperty<String> BatteryPlusChargingText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.BatteryPlusChargingText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Category -- PKEY_Devices_Category_Desc_Singular</para>
+ /// <para>Description: Singular form of device category.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 91</para>
+ /// </summary>
+ public ShellProperty<String[]> Category
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Category;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.CategoryGroup -- PKEY_Devices_CategoryGroup_Desc</para>
+ /// <para>Description: Plural form of device category.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 94</para>
+ /// </summary>
+ public ShellProperty<String[]> CategoryGroup
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.CategoryGroup;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.CategoryPlural -- PKEY_Devices_Category_Desc_Plural</para>
+ /// <para>Description: Plural form of device category.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 92</para>
+ /// </summary>
+ public ShellProperty<String[]> CategoryPlural
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.CategoryPlural;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ChargingState -- PKEY_Devices_ChargingState</para>
+ /// <para>Description: Boolean value representing if the device is currently charging.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 11</para>
+ /// </summary>
+ public ShellProperty<Byte?> ChargingState
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.ChargingState;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Connected -- PKEY_Devices_IsConnected</para>
+ /// <para>Description: Device connection state. If VARIANT_TRUE, indicates the device is currently connected to the computer.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 55</para>
+ /// </summary>
+ public ShellProperty<Boolean?> Connected
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Connected;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ContainerId -- PKEY_Devices_ContainerId</para>
+ /// <para>Description: Device container ID.
+ ///</para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: {8C7ED206-3F8A-4827-B3AB-AE9E1FAEFC6C}, 2</para>
+ /// </summary>
+ public ShellProperty<IntPtr?> ContainerId
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.ContainerId;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IntPtr?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IntPtr?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DefaultTooltip -- PKEY_Devices_DefaultTooltip</para>
+ /// <para>Description: Tooltip for default state
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {880F70A2-6082-47AC-8AAB-A739D1A300C3}, 153</para>
+ /// </summary>
+ public ShellProperty<String> DefaultTooltip
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.DefaultTooltip;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DeviceDescription1 -- PKEY_Devices_DeviceDescription1</para>
+ /// <para>Description: First line of descriptive text about the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 81</para>
+ /// </summary>
+ public ShellProperty<String> DeviceDescription1
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.DeviceDescription1;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DeviceDescription2 -- PKEY_Devices_DeviceDescription2</para>
+ /// <para>Description: Second line of descriptive text about the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 82</para>
+ /// </summary>
+ public ShellProperty<String> DeviceDescription2
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.DeviceDescription2;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DiscoveryMethod -- PKEY_Devices_DiscoveryMethod</para>
+ /// <para>Description: Device discovery method. This indicates on what transport or physical connection the device is discovered.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 52</para>
+ /// </summary>
+ public ShellProperty<String[]> DiscoveryMethod
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.DiscoveryMethod;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.FriendlyName -- PKEY_Devices_FriendlyName</para>
+ /// <para>Description: Device friendly name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 12288</para>
+ /// </summary>
+ public ShellProperty<String> FriendlyName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.FriendlyName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.FunctionPaths -- PKEY_Devices_FunctionPaths</para>
+ /// <para>Description: Available functions for this device.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 3</para>
+ /// </summary>
+ public ShellProperty<String[]> FunctionPaths
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.FunctionPaths;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.InterfacePaths -- PKEY_Devices_InterfacePaths</para>
+ /// <para>Description: Available interfaces for this device.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 2</para>
+ /// </summary>
+ public ShellProperty<String[]> InterfacePaths
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.InterfacePaths;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsDefault -- PKEY_Devices_IsDefaultDevice</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 86</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsDefault
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.IsDefault;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsNetworkConnected -- PKEY_Devices_IsNetworkDevice</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 85</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsNetworkConnected
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.IsNetworkConnected;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsShared -- PKEY_Devices_IsSharedDevice</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 84</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsShared
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.IsShared;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsSoftwareInstalling -- PKEY_Devices_IsSoftwareInstalling</para>
+ /// <para>Description: If VARIANT_TRUE, the device installer is currently installing software.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {83DA6326-97A6-4088-9453-A1923F573B29}, 9</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsSoftwareInstalling
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.IsSoftwareInstalling;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.LaunchDeviceStageFromExplorer -- PKEY_Devices_LaunchDeviceStageFromExplorer</para>
+ /// <para>Description: Indicates whether to launch Device Stage or not
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 77</para>
+ /// </summary>
+ public ShellProperty<Boolean?> LaunchDeviceStageFromExplorer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.LaunchDeviceStageFromExplorer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.LocalMachine -- PKEY_Devices_IsLocalMachine</para>
+ /// <para>Description: If VARIANT_TRUE, the device in question is actually the computer.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 70</para>
+ /// </summary>
+ public ShellProperty<Boolean?> LocalMachine
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.LocalMachine;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Manufacturer -- PKEY_Devices_Manufacturer</para>
+ /// <para>Description: Device manufacturer.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 8192</para>
+ /// </summary>
+ public ShellProperty<String> Manufacturer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Manufacturer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.MissedCalls -- PKEY_Devices_MissedCalls</para>
+ /// <para>Description: Number of missed calls on the device.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 5</para>
+ /// </summary>
+ public ShellProperty<Byte?> MissedCalls
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.MissedCalls;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ModelName -- PKEY_Devices_ModelName</para>
+ /// <para>Description: Model name of the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 8194</para>
+ /// </summary>
+ public ShellProperty<String> ModelName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.ModelName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ModelNumber -- PKEY_Devices_ModelNumber</para>
+ /// <para>Description: Model number of the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 8195</para>
+ /// </summary>
+ public ShellProperty<String> ModelNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.ModelNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NetworkedTooltip -- PKEY_Devices_NetworkedTooltip</para>
+ /// <para>Description: Tooltip for connection state
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {880F70A2-6082-47AC-8AAB-A739D1A300C3}, 152</para>
+ /// </summary>
+ public ShellProperty<String> NetworkedTooltip
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.NetworkedTooltip;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NetworkName -- PKEY_Devices_NetworkName</para>
+ /// <para>Description: Name of the device's network.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 7</para>
+ /// </summary>
+ public ShellProperty<String> NetworkName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.NetworkName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NetworkType -- PKEY_Devices_NetworkType</para>
+ /// <para>Description: String representing the type of the device's network.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 8</para>
+ /// </summary>
+ public ShellProperty<String> NetworkType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.NetworkType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NewPictures -- PKEY_Devices_NewPictures</para>
+ /// <para>Description: Number of new pictures on the device.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 4</para>
+ /// </summary>
+ public ShellProperty<UInt16?> NewPictures
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.NewPictures;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notification -- PKEY_Devices_Notification</para>
+ /// <para>Description: Device Notification Property.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {06704B0C-E830-4C81-9178-91E4E95A80A0}, 3</para>
+ /// </summary>
+ public ShellProperty<String> Notification
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Notification;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NotificationStore -- PKEY_Devices_NotificationStore</para>
+ /// <para>Description: Device Notification Store.
+ ///</para>
+ /// <para>Type: Object -- VT_UNKNOWN</para>
+ /// <para>FormatID: {06704B0C-E830-4C81-9178-91E4E95A80A0}, 2</para>
+ /// </summary>
+ public ShellProperty<IntPtr?> NotificationStore
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.NotificationStore;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IntPtr?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IntPtr?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NotWorkingProperly -- PKEY_Devices_IsNotWorkingProperly</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 83</para>
+ /// </summary>
+ public ShellProperty<Boolean?> NotWorkingProperly
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.NotWorkingProperly;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Paired -- PKEY_Devices_IsPaired</para>
+ /// <para>Description: Device paired state. If VARIANT_TRUE, indicates the device is not paired with the computer.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 56</para>
+ /// </summary>
+ public ShellProperty<Boolean?> Paired
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Paired;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.PrimaryCategory -- PKEY_Devices_PrimaryCategory</para>
+ /// <para>Description: Primary category group for this device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 10</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryCategory
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.PrimaryCategory;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Roaming -- PKEY_Devices_Roaming</para>
+ /// <para>Description: Status indicator used to indicate if the device is roaming.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 9</para>
+ /// </summary>
+ public ShellProperty<Byte?> Roaming
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Roaming;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.SafeRemovalRequired -- PKEY_Devices_SafeRemovalRequired</para>
+ /// <para>Description: Indicates if a device requires safe removal or not
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {AFD97640-86A3-4210-B67C-289C41AABE55}, 2</para>
+ /// </summary>
+ public ShellProperty<Boolean?> SafeRemovalRequired
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.SafeRemovalRequired;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.SharedTooltip -- PKEY_Devices_SharedTooltip</para>
+ /// <para>Description: Tooltip for sharing state
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {880F70A2-6082-47AC-8AAB-A739D1A300C3}, 151</para>
+ /// </summary>
+ public ShellProperty<String> SharedTooltip
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.SharedTooltip;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.SignalStrength -- PKEY_Devices_SignalStrength</para>
+ /// <para>Description: Device signal strength.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 2</para>
+ /// </summary>
+ public ShellProperty<Byte?> SignalStrength
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.SignalStrength;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Status1 -- PKEY_Devices_Status1</para>
+ /// <para>Description: 1st line of device status.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 257</para>
+ /// </summary>
+ public ShellProperty<String> Status1
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Status1;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Status2 -- PKEY_Devices_Status2</para>
+ /// <para>Description: 2nd line of device status.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 258</para>
+ /// </summary>
+ public ShellProperty<String> Status2
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Status2;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.StorageCapacity -- PKEY_Devices_StorageCapacity</para>
+ /// <para>Description: Total storage capacity of the device.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 12</para>
+ /// </summary>
+ public ShellProperty<UInt64?> StorageCapacity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.StorageCapacity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.StorageFreeSpace -- PKEY_Devices_StorageFreeSpace</para>
+ /// <para>Description: Total free space of the storage of the device.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 13</para>
+ /// </summary>
+ public ShellProperty<UInt64?> StorageFreeSpace
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.StorageFreeSpace;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.StorageFreeSpacePercent -- PKEY_Devices_StorageFreeSpacePercent</para>
+ /// <para>Description: Total free space of the storage of the device as a percentage.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 14</para>
+ /// </summary>
+ public ShellProperty<UInt32?> StorageFreeSpacePercent
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.StorageFreeSpacePercent;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.TextMessages -- PKEY_Devices_TextMessages</para>
+ /// <para>Description: Number of unread text messages on the device.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 3</para>
+ /// </summary>
+ public ShellProperty<Byte?> TextMessages
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.TextMessages;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Voicemail -- PKEY_Devices_Voicemail</para>
+ /// <para>Description: Status indicator used to indicate if the device has voicemail.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 6</para>
+ /// </summary>
+ public ShellProperty<Byte?> Voicemail
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Voicemail;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ private PropertyDevicesNotifications internalPropertyDevicesNotifications;
+ /// <summary>
+ /// Devices.Notifications Properties
+ /// </summary>
+ public PropertyDevicesNotifications Notifications
+ {
+ get
+ {
+ if (internalPropertyDevicesNotifications == null)
+ {
+ internalPropertyDevicesNotifications = new PropertyDevicesNotifications(shellObjectParent);
+ }
+
+ return internalPropertyDevicesNotifications;
+ }
+ }
+ #endregion
+ }
+
+ /// <summary>
+ /// Devices.Notifications Properties
+ /// </summary>
+ public class PropertyDevicesNotifications : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertyDevicesNotifications(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.LowBattery -- PKEY_Devices_Notification_LowBattery</para>
+ /// <para>Description: Device Low Battery Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {C4C07F2B-8524-4E66-AE3A-A6235F103BEB}, 2</para>
+ /// </summary>
+ public ShellProperty<Byte?> LowBattery
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Notifications.LowBattery;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.MissedCall -- PKEY_Devices_Notification_MissedCall</para>
+ /// <para>Description: Device Missed Call Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {6614EF48-4EFE-4424-9EDA-C79F404EDF3E}, 2</para>
+ /// </summary>
+ public ShellProperty<Byte?> MissedCall
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Notifications.MissedCall;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.NewMessage -- PKEY_Devices_Notification_NewMessage</para>
+ /// <para>Description: Device New Message Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {2BE9260A-2012-4742-A555-F41B638B7DCB}, 2</para>
+ /// </summary>
+ public ShellProperty<Byte?> NewMessage
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Notifications.NewMessage;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.NewVoicemail -- PKEY_Devices_Notification_NewVoicemail</para>
+ /// <para>Description: Device Voicemail Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {59569556-0A08-4212-95B9-FAE2AD6413DB}, 2</para>
+ /// </summary>
+ public ShellProperty<Byte?> NewVoicemail
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Notifications.NewVoicemail;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.StorageFull -- PKEY_Devices_Notification_StorageFull</para>
+ /// <para>Description: Device Storage Full Notification.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}, 2</para>
+ /// </summary>
+ public ShellProperty<UInt64?> StorageFull
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Notifications.StorageFull;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.StorageFullLinkText -- PKEY_Devices_Notification_StorageFullLinkText</para>
+ /// <para>Description: Link Text for the Device Storage Full Notification.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}, 3</para>
+ /// </summary>
+ public ShellProperty<UInt64?> StorageFullLinkText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Devices.Notifications.StorageFullLinkText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Document Properties
+ /// </summary>
+ public class PropertySystemDocument : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemDocument(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Document.ByteCount -- PKEY_Document_ByteCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 4 (PIDDSI_BYTECOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> ByteCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.ByteCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.CharacterCount -- PKEY_Document_CharacterCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 16 (PIDSI_CHARCOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> CharacterCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.CharacterCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.ClientID -- PKEY_Document_ClientID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {276D7BB0-5B34-4FB0-AA4B-158ED12A1809}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ClientID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.ClientID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Contributor -- PKEY_Document_Contributor</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {F334115E-DA1B-4509-9B3D-119504DC7ABB}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> Contributor
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.Contributor;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DateCreated -- PKEY_Document_DateCreated</para>
+ /// <para>Description: This property is stored in the document, not obtained from the file system.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 12 (PIDSI_CREATE_DTM)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateCreated
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.DateCreated;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DatePrinted -- PKEY_Document_DatePrinted</para>
+ /// <para>Description: Legacy name: "DocLastPrinted".
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 11 (PIDSI_LASTPRINTED)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DatePrinted
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.DatePrinted;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DateSaved -- PKEY_Document_DateSaved</para>
+ /// <para>Description: Legacy name: "DocLastSavedTm".
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 13 (PIDSI_LASTSAVE_DTM)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateSaved
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.DateSaved;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Division -- PKEY_Document_Division</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {1E005EE6-BF27-428B-B01C-79676ACD2870}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Division
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.Division;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DocumentID -- PKEY_Document_DocumentID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E08805C8-E395-40DF-80D2-54F0D6C43154}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DocumentID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.DocumentID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.HiddenSlideCount -- PKEY_Document_HiddenSlideCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 9 (PIDDSI_HIDDENCOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> HiddenSlideCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.HiddenSlideCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.LastAuthor -- PKEY_Document_LastAuthor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 8 (PIDSI_LASTAUTHOR)</para>
+ /// </summary>
+ public ShellProperty<String> LastAuthor
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.LastAuthor;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.LineCount -- PKEY_Document_LineCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 5 (PIDDSI_LINECOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> LineCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.LineCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Manager -- PKEY_Document_Manager</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 14 (PIDDSI_MANAGER)</para>
+ /// </summary>
+ public ShellProperty<String> Manager
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.Manager;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.MultimediaClipCount -- PKEY_Document_MultimediaClipCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 10 (PIDDSI_MMCLIPCOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> MultimediaClipCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.MultimediaClipCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.NoteCount -- PKEY_Document_NoteCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 8 (PIDDSI_NOTECOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> NoteCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.NoteCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.PageCount -- PKEY_Document_PageCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 14 (PIDSI_PAGECOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> PageCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.PageCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.ParagraphCount -- PKEY_Document_ParagraphCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 6 (PIDDSI_PARCOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> ParagraphCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.ParagraphCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.PresentationFormat -- PKEY_Document_PresentationFormat</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 3 (PIDDSI_PRESFORMAT)</para>
+ /// </summary>
+ public ShellProperty<String> PresentationFormat
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.PresentationFormat;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.RevisionNumber -- PKEY_Document_RevisionNumber</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 9 (PIDSI_REVNUMBER)</para>
+ /// </summary>
+ public ShellProperty<String> RevisionNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.RevisionNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Security -- PKEY_Document_Security</para>
+ /// <para>Description: Access control information, from SummaryInfo propset
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 19</para>
+ /// </summary>
+ public ShellProperty<Int32?> Security
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.Security;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.SlideCount -- PKEY_Document_SlideCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 7 (PIDDSI_SLIDECOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> SlideCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.SlideCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Template -- PKEY_Document_Template</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 7 (PIDSI_TEMPLATE)</para>
+ /// </summary>
+ public ShellProperty<String> Template
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.Template;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.TotalEditingTime -- PKEY_Document_TotalEditingTime</para>
+ /// <para>Description: 100ns units, not milliseconds. VT_FILETIME for IPropertySetStorage handlers (legacy)
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 10 (PIDSI_EDITTIME)</para>
+ /// </summary>
+ public ShellProperty<UInt64?> TotalEditingTime
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.TotalEditingTime;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Version -- PKEY_Document_Version</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 29</para>
+ /// </summary>
+ public ShellProperty<String> Version
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.Version;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.WordCount -- PKEY_Document_WordCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 15 (PIDSI_WORDCOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> WordCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Document.WordCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.DRM Properties
+ /// </summary>
+ public class PropertySystemDRM : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemDRM(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.DRM.DatePlayExpires -- PKEY_DRM_DatePlayExpires</para>
+ /// <para>Description: Indicates when play expires for digital rights management.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 6 (PIDDRSI_PLAYEXPIRES)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DatePlayExpires
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DRM.DatePlayExpires;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.DatePlayStarts -- PKEY_DRM_DatePlayStarts</para>
+ /// <para>Description: Indicates when play starts for digital rights management.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 5 (PIDDRSI_PLAYSTARTS)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DatePlayStarts
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DRM.DatePlayStarts;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.Description -- PKEY_DRM_Description</para>
+ /// <para>Description: Displays the description for digital rights management.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 3 (PIDDRSI_DESCRIPTION)</para>
+ /// </summary>
+ public ShellProperty<String> Description
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DRM.Description;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.IsProtected -- PKEY_DRM_IsProtected</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 2 (PIDDRSI_PROTECTED)</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsProtected
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DRM.IsProtected;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.PlayCount -- PKEY_DRM_PlayCount</para>
+ /// <para>Description: Indicates the play count for digital rights management.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 4 (PIDDRSI_PLAYCOUNT)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> PlayCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.DRM.PlayCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.GPS Properties
+ /// </summary>
+ public class PropertySystemGPS : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemGPS(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.GPS.Altitude -- PKEY_GPS_Altitude</para>
+ /// <para>Description: Indicates the altitude based on the reference in PKEY_GPS_AltitudeRef. Calculated from PKEY_GPS_AltitudeNumerator and
+ ///PKEY_GPS_AltitudeDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {827EDB4F-5B73-44A7-891D-FDFFABEA35CA}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> Altitude
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Altitude;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AltitudeDenominator -- PKEY_GPS_AltitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Altitude
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {78342DCB-E358-4145-AE9A-6BFE4E0F9F51}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> AltitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.AltitudeDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AltitudeNumerator -- PKEY_GPS_AltitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Altitude
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2DAD1EB7-816D-40D3-9EC3-C9773BE2AADE}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> AltitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.AltitudeNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AltitudeRef -- PKEY_GPS_AltitudeRef</para>
+ /// <para>Description: Indicates the reference for the altitude property. (eg: above sea level, below sea level, absolute value)
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {46AC629D-75EA-4515-867F-6DC4321C5844}, 100</para>
+ /// </summary>
+ public ShellProperty<Byte?> AltitudeRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.AltitudeRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AreaInformation -- PKEY_GPS_AreaInformation</para>
+ /// <para>Description: Represents the name of the GPS area
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {972E333E-AC7E-49F1-8ADF-A70D07A9BCAB}, 100</para>
+ /// </summary>
+ public ShellProperty<String> AreaInformation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.AreaInformation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Date -- PKEY_GPS_Date</para>
+ /// <para>Description: Date and time of the GPS record
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {3602C812-0F3B-45F0-85AD-603468D69423}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> Date
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Date;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearing -- PKEY_GPS_DestBearing</para>
+ /// <para>Description: Indicates the bearing to the destination point. Calculated from PKEY_GPS_DestBearingNumerator and
+ ///PKEY_GPS_DestBearingDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {C66D4B3C-E888-47CC-B99F-9DCA3EE34DEA}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> DestinationBearing
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationBearing;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearingDenominator -- PKEY_GPS_DestBearingDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestBearing
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7ABCF4F8-7C3F-4988-AC91-8D2C2E97ECA5}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DestinationBearingDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationBearingDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearingNumerator -- PKEY_GPS_DestBearingNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestBearing
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {BA3B1DA9-86EE-4B5D-A2A4-A271A429F0CF}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DestinationBearingNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationBearingNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearingRef -- PKEY_GPS_DestBearingRef</para>
+ /// <para>Description: Indicates the reference used for the giving the bearing to the destination point. (eg: true direction, magnetic direction)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9AB84393-2A0F-4B75-BB22-7279786977CB}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DestinationBearingRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationBearingRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistance -- PKEY_GPS_DestDistance</para>
+ /// <para>Description: Indicates the distance to the destination point. Calculated from PKEY_GPS_DestDistanceNumerator and
+ ///PKEY_GPS_DestDistanceDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {A93EAE04-6804-4F24-AC81-09B266452118}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> DestinationDistance
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationDistance;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistanceDenominator -- PKEY_GPS_DestDistanceDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {9BC2C99B-AC71-4127-9D1C-2596D0D7DCB7}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DestinationDistanceDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationDistanceDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistanceNumerator -- PKEY_GPS_DestDistanceNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2BDA47DA-08C6-4FE1-80BC-A72FC517C5D0}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DestinationDistanceNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationDistanceNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistanceRef -- PKEY_GPS_DestDistanceRef</para>
+ /// <para>Description: Indicates the unit used to express the distance to the destination. (eg: kilometers, miles, knots)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {ED4DF2D3-8695-450B-856F-F5C1C53ACB66}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DestinationDistanceRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationDistanceRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitude -- PKEY_GPS_DestLatitude</para>
+ /// <para>Description: Indicates the latitude of the destination point. This is an array of three values. Index 0 is the degrees, index 1
+ ///is the minutes, index 2 is the seconds. Each is calculated from the values in PKEY_GPS_DestLatitudeNumerator and
+ ///PKEY_GPS_DestLatitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {9D1D7CC5-5C39-451C-86B3-928E2D18CC47}, 100</para>
+ /// </summary>
+ public ShellProperty<Double[]> DestinationLatitude
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLatitude;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitudeDenominator -- PKEY_GPS_DestLatitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestLatitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {3A372292-7FCA-49A7-99D5-E47BB2D4E7AB}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> DestinationLatitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLatitudeDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitudeNumerator -- PKEY_GPS_DestLatitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestLatitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {ECF4B6F6-D5A6-433C-BB92-4076650FC890}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> DestinationLatitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLatitudeNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitudeRef -- PKEY_GPS_DestLatitudeRef</para>
+ /// <para>Description: Indicates whether the latitude destination point is north or south latitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CEA820B9-CE61-4885-A128-005D9087C192}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DestinationLatitudeRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLatitudeRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitude -- PKEY_GPS_DestLongitude</para>
+ /// <para>Description: Indicates the latitude of the destination point. This is an array of three values. Index 0 is the degrees, index 1
+ ///is the minutes, index 2 is the seconds. Each is calculated from the values in PKEY_GPS_DestLongitudeNumerator and
+ ///PKEY_GPS_DestLongitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {47A96261-CB4C-4807-8AD3-40B9D9DBC6BC}, 100</para>
+ /// </summary>
+ public ShellProperty<Double[]> DestinationLongitude
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLongitude;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitudeDenominator -- PKEY_GPS_DestLongitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestLongitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {425D69E5-48AD-4900-8D80-6EB6B8D0AC86}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> DestinationLongitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLongitudeDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitudeNumerator -- PKEY_GPS_DestLongitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestLongitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {A3250282-FB6D-48D5-9A89-DBCACE75CCCF}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> DestinationLongitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLongitudeNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitudeRef -- PKEY_GPS_DestLongitudeRef</para>
+ /// <para>Description: Indicates whether the longitude destination point is east or west longitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {182C1EA6-7C1C-4083-AB4B-AC6C9F4ED128}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DestinationLongitudeRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DestinationLongitudeRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Differential -- PKEY_GPS_Differential</para>
+ /// <para>Description: Indicates whether differential correction was applied to the GPS receiver
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {AAF4EE25-BD3B-4DD7-BFC4-47F77BB00F6D}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> Differential
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Differential;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DOP -- PKEY_GPS_DOP</para>
+ /// <para>Description: Indicates the GPS DOP (data degree of precision). Calculated from PKEY_GPS_DOPNumerator and PKEY_GPS_DOPDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {0CF8FB02-1837-42F1-A697-A7017AA289B9}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> DOP
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DOP;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DOPDenominator -- PKEY_GPS_DOPDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DOP
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A0BE94C5-50BA-487B-BD35-0654BE8881ED}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DOPDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DOPDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DOPNumerator -- PKEY_GPS_DOPNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DOP
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {47166B16-364F-4AA0-9F31-E2AB3DF449C3}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DOPNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.DOPNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirection -- PKEY_GPS_ImgDirection</para>
+ /// <para>Description: Indicates direction of the image when it was captured. Calculated from PKEY_GPS_ImgDirectionNumerator and
+ ///PKEY_GPS_ImgDirectionDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {16473C91-D017-4ED9-BA4D-B6BAA55DBCF8}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> ImageDirection
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.ImageDirection;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirectionDenominator -- PKEY_GPS_ImgDirectionDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_ImgDirection
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {10B24595-41A2-4E20-93C2-5761C1395F32}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ImageDirectionDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.ImageDirectionDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirectionNumerator -- PKEY_GPS_ImgDirectionNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_ImgDirection
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {DC5877C7-225F-45F7-BAC7-E81334B6130A}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ImageDirectionNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.ImageDirectionNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirectionRef -- PKEY_GPS_ImgDirectionRef</para>
+ /// <para>Description: Indicates reference for giving the direction of the image when it was captured. (eg: true direction, magnetic direction)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A4AAA5B7-1AD0-445F-811A-0F8F6E67F6B5}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ImageDirectionRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.ImageDirectionRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Latitude -- PKEY_GPS_Latitude</para>
+ /// <para>Description: Indicates the latitude. This is an array of three values. Index 0 is the degrees, index 1 is the minutes, index 2
+ ///is the seconds. Each is calculated from the values in PKEY_GPS_LatitudeNumerator and PKEY_GPS_LatitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {8727CFFF-4868-4EC6-AD5B-81B98521D1AB}, 100</para>
+ /// </summary>
+ public ShellProperty<Double[]> Latitude
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Latitude;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LatitudeDenominator -- PKEY_GPS_LatitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Latitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {16E634EE-2BFF-497B-BD8A-4341AD39EEB9}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> LatitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.LatitudeDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LatitudeNumerator -- PKEY_GPS_LatitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Latitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {7DDAAAD1-CCC8-41AE-B750-B2CB8031AEA2}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> LatitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.LatitudeNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LatitudeRef -- PKEY_GPS_LatitudeRef</para>
+ /// <para>Description: Indicates whether latitude is north or south latitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {029C0252-5B86-46C7-ACA0-2769FFC8E3D4}, 100</para>
+ /// </summary>
+ public ShellProperty<String> LatitudeRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.LatitudeRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Longitude -- PKEY_GPS_Longitude</para>
+ /// <para>Description: Indicates the longitude. This is an array of three values. Index 0 is the degrees, index 1 is the minutes, index 2
+ ///is the seconds. Each is calculated from the values in PKEY_GPS_LongitudeNumerator and PKEY_GPS_LongitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {C4C4DBB2-B593-466B-BBDA-D03D27D5E43A}, 100</para>
+ /// </summary>
+ public ShellProperty<Double[]> Longitude
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Longitude;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LongitudeDenominator -- PKEY_GPS_LongitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Longitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {BE6E176C-4534-4D2C-ACE5-31DEDAC1606B}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> LongitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.LongitudeDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LongitudeNumerator -- PKEY_GPS_LongitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Longitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {02B0F689-A914-4E45-821D-1DDA452ED2C4}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32[]> LongitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.LongitudeNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LongitudeRef -- PKEY_GPS_LongitudeRef</para>
+ /// <para>Description: Indicates whether longitude is east or west longitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {33DCF22B-28D5-464C-8035-1EE9EFD25278}, 100</para>
+ /// </summary>
+ public ShellProperty<String> LongitudeRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.LongitudeRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.MapDatum -- PKEY_GPS_MapDatum</para>
+ /// <para>Description: Indicates the geodetic survey data used by the GPS receiver
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {2CA2DAE6-EDDC-407D-BEF1-773942ABFA95}, 100</para>
+ /// </summary>
+ public ShellProperty<String> MapDatum
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.MapDatum;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.MeasureMode -- PKEY_GPS_MeasureMode</para>
+ /// <para>Description: Indicates the GPS measurement mode. (eg: 2-dimensional, 3-dimensional)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A015ED5D-AAEA-4D58-8A86-3C586920EA0B}, 100</para>
+ /// </summary>
+ public ShellProperty<String> MeasureMode
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.MeasureMode;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ProcessingMethod -- PKEY_GPS_ProcessingMethod</para>
+ /// <para>Description: Indicates the name of the method used for location finding
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {59D49E61-840F-4AA9-A939-E2099B7F6399}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ProcessingMethod
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.ProcessingMethod;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Satellites -- PKEY_GPS_Satellites</para>
+ /// <para>Description: Indicates the GPS satellites used for measurements
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {467EE575-1F25-4557-AD4E-B8B58B0D9C15}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Satellites
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Satellites;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Speed -- PKEY_GPS_Speed</para>
+ /// <para>Description: Indicates the speed of the GPS receiver movement. Calculated from PKEY_GPS_SpeedNumerator and
+ ///PKEY_GPS_SpeedDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {DA5D0862-6E76-4E1B-BABD-70021BD25494}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> Speed
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Speed;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.SpeedDenominator -- PKEY_GPS_SpeedDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Speed
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7D122D5A-AE5E-4335-8841-D71E7CE72F53}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SpeedDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.SpeedDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.SpeedNumerator -- PKEY_GPS_SpeedNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Speed
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {ACC9CE3D-C213-4942-8B48-6D0820F21C6D}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SpeedNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.SpeedNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.SpeedRef -- PKEY_GPS_SpeedRef</para>
+ /// <para>Description: Indicates the unit used to express the speed of the GPS receiver movement. (eg: kilometers per hour,
+ ///miles per hour, knots).
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {ECF7F4C9-544F-4D6D-9D98-8AD79ADAF453}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SpeedRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.SpeedRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Status -- PKEY_GPS_Status</para>
+ /// <para>Description: Indicates the status of the GPS receiver when the image was recorded. (eg: measurement in progress,
+ ///measurement interoperability).
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {125491F4-818F-46B2-91B5-D537753617B2}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Status
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Status;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Track -- PKEY_GPS_Track</para>
+ /// <para>Description: Indicates the direction of the GPS receiver movement. Calculated from PKEY_GPS_TrackNumerator and
+ ///PKEY_GPS_TrackDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {76C09943-7C33-49E3-9E7E-CDBA872CFADA}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> Track
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.Track;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.TrackDenominator -- PKEY_GPS_TrackDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Track
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {C8D1920C-01F6-40C0-AC86-2F3A4AD00770}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> TrackDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.TrackDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.TrackNumerator -- PKEY_GPS_TrackNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Track
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {702926F4-44A6-43E1-AE71-45627116893B}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> TrackNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.TrackNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.TrackRef -- PKEY_GPS_TrackRef</para>
+ /// <para>Description: Indicates reference for the direction of the GPS receiver movement. (eg: true direction, magnetic direction)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {35DBE6FE-44C3-4400-AAAE-D2C799C407E8}, 100</para>
+ /// </summary>
+ public ShellProperty<String> TrackRef
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.TrackRef;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.VersionID -- PKEY_GPS_VersionID</para>
+ /// <para>Description: Indicates the version of the GPS information
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: {22704DA4-C6B2-4A99-8E56-F16DF8C92599}, 100</para>
+ /// </summary>
+ public ShellProperty<Byte[]> VersionID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.GPS.VersionID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Identity Properties
+ /// </summary>
+ public class PropertySystemIdentity : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemIdentity(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Identity.Blob -- PKEY_Identity_Blob</para>
+ /// <para>Description: Blob used to import/export identities
+ ///</para>
+ /// <para>Type: Blob -- VT_BLOB</para>
+ /// <para>FormatID: {8C3B93A4-BAED-1A83-9A32-102EE313F6EB}, 100</para>
+ /// </summary>
+ public ShellProperty<Byte[]> Blob
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Identity.Blob;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.DisplayName -- PKEY_Identity_DisplayName</para>
+ /// <para>Description: Display Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7D683FC9-D155-45A8-BB1F-89D19BCB792F}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DisplayName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Identity.DisplayName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.IsMeIdentity -- PKEY_Identity_IsMeIdentity</para>
+ /// <para>Description: Is it Me Identity
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {A4108708-09DF-4377-9DFC-6D99986D5A67}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsMeIdentity
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Identity.IsMeIdentity;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.PrimaryEmailAddress -- PKEY_Identity_PrimaryEmailAddress</para>
+ /// <para>Description: Primary Email Address
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FCC16823-BAED-4F24-9B32-A0982117F7FA}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PrimaryEmailAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Identity.PrimaryEmailAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.ProviderID -- PKEY_Identity_ProviderID</para>
+ /// <para>Description: Provider ID
+ ///</para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: {74A7DE49-FA11-4D3D-A006-DB7E08675916}, 100</para>
+ /// </summary>
+ public ShellProperty<IntPtr?> ProviderID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Identity.ProviderID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IntPtr?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IntPtr?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.UniqueID -- PKEY_Identity_UniqueID</para>
+ /// <para>Description: Unique ID
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E55FC3B0-2B60-4220-918E-B21E8BF16016}, 100</para>
+ /// </summary>
+ public ShellProperty<String> UniqueID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Identity.UniqueID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.UserName -- PKEY_Identity_UserName</para>
+ /// <para>Description: Identity User Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C4322503-78CA-49C6-9ACC-A68E2AFD7B6B}, 100</para>
+ /// </summary>
+ public ShellProperty<String> UserName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Identity.UserName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.IdentityProvider Properties
+ /// </summary>
+ public class PropertySystemIdentityProvider : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemIdentityProvider(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.IdentityProvider.Name -- PKEY_IdentityProvider_Name</para>
+ /// <para>Description: Identity Provider Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {B96EFF7B-35CA-4A35-8607-29E3A54C46EA}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Name
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IdentityProvider.Name;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IdentityProvider.Picture -- PKEY_IdentityProvider_Picture</para>
+ /// <para>Description: Picture for the Identity Provider
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {2425166F-5642-4864-992F-98FD98F294C3}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Picture
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.IdentityProvider.Picture;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Image Properties
+ /// </summary>
+ public class PropertySystemImage : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemImage(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Image.BitDepth -- PKEY_Image_BitDepth</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 7 (PIDISI_BITDEPTH)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> BitDepth
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.BitDepth;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.ColorSpace -- PKEY_Image_ColorSpace</para>
+ /// <para>Description: PropertyTagExifColorSpace
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 40961</para>
+ /// </summary>
+ public ShellProperty<UInt16?> ColorSpace
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.ColorSpace;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressedBitsPerPixel -- PKEY_Image_CompressedBitsPerPixel</para>
+ /// <para>Description: Calculated from PKEY_Image_CompressedBitsPerPixelNumerator and PKEY_Image_CompressedBitsPerPixelDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {364B6FA9-37AB-482A-BE2B-AE02F60D4318}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> CompressedBitsPerPixel
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.CompressedBitsPerPixel;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressedBitsPerPixelDenominator -- PKEY_Image_CompressedBitsPerPixelDenominator</para>
+ /// <para>Description: Denominator of PKEY_Image_CompressedBitsPerPixel.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {1F8844E1-24AD-4508-9DFD-5326A415CE02}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> CompressedBitsPerPixelDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.CompressedBitsPerPixelDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressedBitsPerPixelNumerator -- PKEY_Image_CompressedBitsPerPixelNumerator</para>
+ /// <para>Description: Numerator of PKEY_Image_CompressedBitsPerPixel.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {D21A7148-D32C-4624-8900-277210F79C0F}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> CompressedBitsPerPixelNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.CompressedBitsPerPixelNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.Compression -- PKEY_Image_Compression</para>
+ /// <para>Description: Indicates the image compression level. PropertyTagCompression.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 259</para>
+ /// </summary>
+ public ShellProperty<UInt16?> Compression
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.Compression;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressionText -- PKEY_Image_CompressionText</para>
+ /// <para>Description: This is the user-friendly form of System.Image.Compression. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {3F08E66F-2F44-4BB9-A682-AC35D2562322}, 100</para>
+ /// </summary>
+ public ShellProperty<String> CompressionText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.CompressionText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.Dimensions -- PKEY_Image_Dimensions</para>
+ /// <para>Description: Indicates the dimensions of the image.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 13 (PIDISI_DIMENSIONS)</para>
+ /// </summary>
+ public ShellProperty<String> Dimensions
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.Dimensions;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.HorizontalResolution -- PKEY_Image_HorizontalResolution</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 5 (PIDISI_RESOLUTIONX)</para>
+ /// </summary>
+ public ShellProperty<Double?> HorizontalResolution
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.HorizontalResolution;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.HorizontalSize -- PKEY_Image_HorizontalSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 3 (PIDISI_CX)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> HorizontalSize
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.HorizontalSize;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.ImageID -- PKEY_Image_ImageID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {10DABE05-32AA-4C29-BF1A-63E2D220587F}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ImageID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.ImageID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.ResolutionUnit -- PKEY_Image_ResolutionUnit</para>
+ /// <para>Description: </para>
+ /// <para>Type: Int16 -- VT_I2</para>
+ /// <para>FormatID: {19B51FA6-1F92-4A5C-AB48-7DF0ABD67444}, 100</para>
+ /// </summary>
+ public ShellProperty<Int16?> ResolutionUnit
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.ResolutionUnit;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.VerticalResolution -- PKEY_Image_VerticalResolution</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 6 (PIDISI_RESOLUTIONY)</para>
+ /// </summary>
+ public ShellProperty<Double?> VerticalResolution
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.VerticalResolution;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.VerticalSize -- PKEY_Image_VerticalSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 4 (PIDISI_CY)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> VerticalSize
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Image.VerticalSize;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Journal Properties
+ /// </summary>
+ public class PropertySystemJournal : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemJournal(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Journal.Contacts -- PKEY_Journal_Contacts</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {DEA7C82C-1D89-4A66-9427-A4E3DEBABCB1}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> Contacts
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Journal.Contacts;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Journal.EntryType -- PKEY_Journal_EntryType</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {95BEB1FC-326D-4644-B396-CD3ED90E6DDF}, 100</para>
+ /// </summary>
+ public ShellProperty<String> EntryType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Journal.EntryType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.LayoutPattern Properties
+ /// </summary>
+ public class PropertySystemLayoutPattern : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemLayoutPattern(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.LayoutPattern.ContentViewModeForBrowse -- PKEY_LayoutPattern_ContentViewModeForBrowse</para>
+ /// <para>Description: Specifies the layout pattern that the content view mode should apply for this item in the context of browsing.
+ ///Register the regvalue under the name of "ContentViewModeLayoutPatternForBrowse".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 500</para>
+ /// </summary>
+ public ShellProperty<String> ContentViewModeForBrowse
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.LayoutPattern.ContentViewModeForBrowse;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.LayoutPattern.ContentViewModeForSearch -- PKEY_LayoutPattern_ContentViewModeForSearch</para>
+ /// <para>Description: Specifies the layout pattern that the content view mode should apply for this item in the context of searching.
+ ///Register the regvalue under the name of "ContentViewModeLayoutPatternForSearch".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 501</para>
+ /// </summary>
+ public ShellProperty<String> ContentViewModeForSearch
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.LayoutPattern.ContentViewModeForSearch;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Link Properties
+ /// </summary>
+ public class PropertySystemLink : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemLink(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Link.Arguments -- PKEY_Link_Arguments</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {436F2667-14E2-4FEB-B30A-146C53B5B674}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Arguments
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.Arguments;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.Comment -- PKEY_Link_Comment</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 5</para>
+ /// </summary>
+ public ShellProperty<String> Comment
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.Comment;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.DateVisited -- PKEY_Link_DateVisited</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {5CBF2787-48CF-4208-B90E-EE5E5D420294}, 23 (PKEYs relating to URLs. Used by IE History.)</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateVisited
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.DateVisited;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.Description -- PKEY_Link_Description</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {5CBF2787-48CF-4208-B90E-EE5E5D420294}, 21 (PKEYs relating to URLs. Used by IE History.)</para>
+ /// </summary>
+ public ShellProperty<String> Description
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.Description;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.Status -- PKEY_Link_Status</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 3 (PID_LINK_TARGET_TYPE)</para>
+ /// </summary>
+ public ShellProperty<Int32?> Status
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.Status;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetExtension -- PKEY_Link_TargetExtension</para>
+ /// <para>Description: The file extension of the link target. See System.File.Extension
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {7A7D76F4-B630-4BD7-95FF-37CC51A975C9}, 2</para>
+ /// </summary>
+ public ShellProperty<String[]> TargetExtension
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.TargetExtension;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetParsingPath -- PKEY_Link_TargetParsingPath</para>
+ /// <para>Description: This is the shell namespace path to the target of the link item. This path may be passed to
+ ///SHParseDisplayName to parse the path to the correct shell folder.
+ ///
+ ///If the target item is a file, the value is identical to System.ItemPathDisplay.
+ ///
+ ///If the target item cannot be accessed through the shell namespace, this value is VT_EMPTY.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 2 (PID_LINK_TARGET)</para>
+ /// </summary>
+ public ShellProperty<String> TargetParsingPath
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.TargetParsingPath;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetSFGAOFlags -- PKEY_Link_TargetSFGAOFlags</para>
+ /// <para>Description: IShellFolder::GetAttributesOf flags for the target of a link, with SFGAO_PKEYSFGAOMASK
+ ///attributes masked out.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 8</para>
+ /// </summary>
+ public ShellProperty<UInt32?> TargetSFGAOFlags
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.TargetSFGAOFlags;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetSFGAOFlagsStrings -- PKEY_Link_TargetSFGAOFlagsStrings</para>
+ /// <para>Description: Expresses the SFGAO flags of a link as string values and is used as a query optimization. See
+ ///PKEY_Shell_SFGAOFlagsStrings for possible values of this.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D6942081-D53B-443D-AD47-5E059D9CD27A}, 3</para>
+ /// </summary>
+ public ShellProperty<String[]> TargetSFGAOFlagsStrings
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.TargetSFGAOFlagsStrings;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetUrl -- PKEY_Link_TargetUrl</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {5CBF2787-48CF-4208-B90E-EE5E5D420294}, 2 (PKEYs relating to URLs. Used by IE History.)</para>
+ /// </summary>
+ public ShellProperty<String> TargetUrl
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Link.TargetUrl;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Media Properties
+ /// </summary>
+ public class PropertySystemMedia : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemMedia(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Media.AuthorUrl -- PKEY_Media_AuthorUrl</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 32 (PIDMSI_AUTHOR_URL)</para>
+ /// </summary>
+ public ShellProperty<String> AuthorUrl
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.AuthorUrl;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.AverageLevel -- PKEY_Media_AverageLevel</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {09EDD5B6-B301-43C5-9990-D00302EFFD46}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> AverageLevel
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.AverageLevel;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ClassPrimaryID -- PKEY_Media_ClassPrimaryID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 13 (PIDMSI_CLASS_PRIMARY_ID)</para>
+ /// </summary>
+ public ShellProperty<String> ClassPrimaryID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.ClassPrimaryID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ClassSecondaryID -- PKEY_Media_ClassSecondaryID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 14 (PIDMSI_CLASS_SECONDARY_ID)</para>
+ /// </summary>
+ public ShellProperty<String> ClassSecondaryID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.ClassSecondaryID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CollectionGroupID -- PKEY_Media_CollectionGroupID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 24 (PIDMSI_COLLECTION_GROUP_ID)</para>
+ /// </summary>
+ public ShellProperty<String> CollectionGroupID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.CollectionGroupID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CollectionID -- PKEY_Media_CollectionID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 25 (PIDMSI_COLLECTION_ID)</para>
+ /// </summary>
+ public ShellProperty<String> CollectionID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.CollectionID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ContentDistributor -- PKEY_Media_ContentDistributor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 18 (PIDMSI_CONTENTDISTRIBUTOR)</para>
+ /// </summary>
+ public ShellProperty<String> ContentDistributor
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.ContentDistributor;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ContentID -- PKEY_Media_ContentID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 26 (PIDMSI_CONTENT_ID)</para>
+ /// </summary>
+ public ShellProperty<String> ContentID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.ContentID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CreatorApplication -- PKEY_Media_CreatorApplication</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 27 (PIDMSI_TOOL_NAME)</para>
+ /// </summary>
+ public ShellProperty<String> CreatorApplication
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.CreatorApplication;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CreatorApplicationVersion -- PKEY_Media_CreatorApplicationVersion</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 28 (PIDMSI_TOOL_VERSION)</para>
+ /// </summary>
+ public ShellProperty<String> CreatorApplicationVersion
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.CreatorApplicationVersion;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.DateEncoded -- PKEY_Media_DateEncoded</para>
+ /// <para>Description: DateTime is in UTC (in the doc, not file system).
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {2E4B640D-5019-46D8-8881-55414CC5CAA0}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateEncoded
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.DateEncoded;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.DateReleased -- PKEY_Media_DateReleased</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DE41CC29-6971-4290-B472-F59F2E2F31E2}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DateReleased
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.DateReleased;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Duration -- PKEY_Media_Duration</para>
+ /// <para>Description: 100ns units, not milliseconds
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 3 (PIDASI_TIMELENGTH)</para>
+ /// </summary>
+ public ShellProperty<UInt64?> Duration
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.Duration;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.DVDID -- PKEY_Media_DVDID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 15 (PIDMSI_DVDID)</para>
+ /// </summary>
+ public ShellProperty<String> DVDID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.DVDID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.EncodedBy -- PKEY_Media_EncodedBy</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 36 (PIDMSI_ENCODED_BY)</para>
+ /// </summary>
+ public ShellProperty<String> EncodedBy
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.EncodedBy;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.EncodingSettings -- PKEY_Media_EncodingSettings</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 37 (PIDMSI_ENCODING_SETTINGS)</para>
+ /// </summary>
+ public ShellProperty<String> EncodingSettings
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.EncodingSettings;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.FrameCount -- PKEY_Media_FrameCount</para>
+ /// <para>Description: Indicates the frame count for the image.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 12 (PIDISI_FRAMECOUNT)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FrameCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.FrameCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.MCDI -- PKEY_Media_MCDI</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 16 (PIDMSI_MCDI)</para>
+ /// </summary>
+ public ShellProperty<String> MCDI
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.MCDI;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.MetadataContentProvider -- PKEY_Media_MetadataContentProvider</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 17 (PIDMSI_PROVIDER)</para>
+ /// </summary>
+ public ShellProperty<String> MetadataContentProvider
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.MetadataContentProvider;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Producer -- PKEY_Media_Producer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 22 (PIDMSI_PRODUCER)</para>
+ /// </summary>
+ public ShellProperty<String[]> Producer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.Producer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.PromotionUrl -- PKEY_Media_PromotionUrl</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 33 (PIDMSI_PROMOTION_URL)</para>
+ /// </summary>
+ public ShellProperty<String> PromotionUrl
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.PromotionUrl;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ProtectionType -- PKEY_Media_ProtectionType</para>
+ /// <para>Description: If media is protected, how is it protected?
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 38</para>
+ /// </summary>
+ public ShellProperty<String> ProtectionType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.ProtectionType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ProviderRating -- PKEY_Media_ProviderRating</para>
+ /// <para>Description: Rating (0 - 99) supplied by metadata provider
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 39</para>
+ /// </summary>
+ public ShellProperty<String> ProviderRating
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.ProviderRating;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ProviderStyle -- PKEY_Media_ProviderStyle</para>
+ /// <para>Description: Style of music or video, supplied by metadata provider
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 40</para>
+ /// </summary>
+ public ShellProperty<String> ProviderStyle
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.ProviderStyle;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Publisher -- PKEY_Media_Publisher</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 30 (PIDMSI_PUBLISHER)</para>
+ /// </summary>
+ public ShellProperty<String> Publisher
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.Publisher;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.SubscriptionContentId -- PKEY_Media_SubscriptionContentId</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9AEBAE7A-9644-487D-A92C-657585ED751A}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SubscriptionContentId
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.SubscriptionContentId;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.SubTitle -- PKEY_Media_SubTitle</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 38 (PIDSI_MUSIC_SUB_TITLE)</para>
+ /// </summary>
+ public ShellProperty<String> Subtitle
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.Subtitle;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.UniqueFileIdentifier -- PKEY_Media_UniqueFileIdentifier</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 35 (PIDMSI_UNIQUE_FILE_IDENTIFIER)</para>
+ /// </summary>
+ public ShellProperty<String> UniqueFileIdentifier
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.UniqueFileIdentifier;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.UserNoAutoInfo -- PKEY_Media_UserNoAutoInfo</para>
+ /// <para>Description: If true, do NOT alter this file's metadata. Set by user.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 41</para>
+ /// </summary>
+ public ShellProperty<String> UserNoAutoInfo
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.UserNoAutoInfo;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.UserWebUrl -- PKEY_Media_UserWebUrl</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 34 (PIDMSI_USER_WEB_URL)</para>
+ /// </summary>
+ public ShellProperty<String> UserWebUrl
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.UserWebUrl;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Writer -- PKEY_Media_Writer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 23 (PIDMSI_WRITER)</para>
+ /// </summary>
+ public ShellProperty<String[]> Writer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.Writer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Year -- PKEY_Media_Year</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 5 (PIDSI_MUSIC_YEAR)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> Year
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Media.Year;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Message Properties
+ /// </summary>
+ public class PropertySystemMessage : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemMessage(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Message.AttachmentContents -- PKEY_Message_AttachmentContents</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {3143BF7C-80A8-4854-8880-E2E40189BDD0}, 100</para>
+ /// </summary>
+ public ShellProperty<String> AttachmentContents
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.AttachmentContents;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.AttachmentNames -- PKEY_Message_AttachmentNames</para>
+ /// <para>Description: The names of the attachments in a message
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 21</para>
+ /// </summary>
+ public ShellProperty<String[]> AttachmentNames
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.AttachmentNames;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.BccAddress -- PKEY_Message_BccAddress</para>
+ /// <para>Description: Addresses in Bcc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 2</para>
+ /// </summary>
+ public ShellProperty<String[]> BccAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.BccAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.BccName -- PKEY_Message_BccName</para>
+ /// <para>Description: person names in Bcc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 3</para>
+ /// </summary>
+ public ShellProperty<String[]> BccName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.BccName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.CcAddress -- PKEY_Message_CcAddress</para>
+ /// <para>Description: Addresses in Cc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 4</para>
+ /// </summary>
+ public ShellProperty<String[]> CcAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.CcAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.CcName -- PKEY_Message_CcName</para>
+ /// <para>Description: person names in Cc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 5</para>
+ /// </summary>
+ public ShellProperty<String[]> CcName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.CcName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ConversationID -- PKEY_Message_ConversationID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DC8F80BD-AF1E-4289-85B6-3DFC1B493992}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ConversationID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.ConversationID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ConversationIndex -- PKEY_Message_ConversationIndex</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: {DC8F80BD-AF1E-4289-85B6-3DFC1B493992}, 101</para>
+ /// </summary>
+ public ShellProperty<Byte[]> ConversationIndex
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.ConversationIndex;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.DateReceived -- PKEY_Message_DateReceived</para>
+ /// <para>Description: Date and Time communication was received
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 20</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateReceived
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.DateReceived;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.DateSent -- PKEY_Message_DateSent</para>
+ /// <para>Description: Date and Time communication was sent
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 19</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateSent
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.DateSent;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.Flags -- PKEY_Message_Flags</para>
+ /// <para>Description: These are flags associated with email messages to know if a read receipt is pending, etc.
+ ///The values stored here by Outlook are defined for PR_MESSAGE_FLAGS on MSDN.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {A82D9EE7-CA67-4312-965E-226BCEA85023}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> Flags
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.Flags;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.FromAddress -- PKEY_Message_FromAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 13</para>
+ /// </summary>
+ public ShellProperty<String[]> FromAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.FromAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.FromName -- PKEY_Message_FromName</para>
+ /// <para>Description: Address in from field as person name
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 14</para>
+ /// </summary>
+ public ShellProperty<String[]> FromName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.FromName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.HasAttachments -- PKEY_Message_HasAttachments</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9C1FCF74-2D97-41BA-B4AE-CB2E3661A6E4}, 8</para>
+ /// </summary>
+ public ShellProperty<Boolean?> HasAttachments
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.HasAttachments;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.IsFwdOrReply -- PKEY_Message_IsFwdOrReply</para>
+ /// <para>Description: </para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {9A9BC088-4F6D-469E-9919-E705412040F9}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> IsFwdOrReply
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.IsFwdOrReply;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.MessageClass -- PKEY_Message_MessageClass</para>
+ /// <para>Description: What type of outlook msg this is (meeting, task, mail, etc.)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CD9ED458-08CE-418F-A70E-F912C7BB9C5C}, 103</para>
+ /// </summary>
+ public ShellProperty<String> MessageClass
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.MessageClass;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ProofInProgress -- PKEY_Message_ProofInProgress</para>
+ /// <para>Description: This property will be true if the message junk email proofing is still in progress.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9098F33C-9A7D-48A8-8DE5-2E1227A64E91}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> ProofInProgress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.ProofInProgress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.SenderAddress -- PKEY_Message_SenderAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0BE1C8E7-1981-4676-AE14-FDD78F05A6E7}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SenderAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.SenderAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.SenderName -- PKEY_Message_SenderName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0DA41CFA-D224-4A18-AE2F-596158DB4B3A}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SenderName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.SenderName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.Store -- PKEY_Message_Store</para>
+ /// <para>Description: The store (aka protocol handler) FILE, MAIL, OUTLOOKEXPRESS
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 15</para>
+ /// </summary>
+ public ShellProperty<String> Store
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.Store;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToAddress -- PKEY_Message_ToAddress</para>
+ /// <para>Description: Addresses in To: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 16</para>
+ /// </summary>
+ public ShellProperty<String[]> ToAddress
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.ToAddress;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToDoFlags -- PKEY_Message_ToDoFlags</para>
+ /// <para>Description: Flags associated with a message flagged to know if it's still active, if it was custom flagged, etc.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {1F856A9F-6900-4ABA-9505-2D5F1B4D66CB}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> ToDoFlags
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.ToDoFlags;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToDoTitle -- PKEY_Message_ToDoTitle</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BCCC8A3C-8CEF-42E5-9B1C-C69079398BC7}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ToDoTitle
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.ToDoTitle;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToName -- PKEY_Message_ToName</para>
+ /// <para>Description: Person names in To: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 17</para>
+ /// </summary>
+ public ShellProperty<String[]> ToName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Message.ToName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Music Properties
+ /// </summary>
+ public class PropertySystemMusic : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemMusic(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Music.AlbumArtist -- PKEY_Music_AlbumArtist</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 13 (PIDSI_MUSIC_ALBUM_ARTIST)</para>
+ /// </summary>
+ public ShellProperty<String> AlbumArtist
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.AlbumArtist;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.AlbumID -- PKEY_Music_AlbumID</para>
+ /// <para>Description: Concatenation of System.Music.AlbumArtist and System.Music.AlbumTitle, suitable for indexing and display.
+ ///Used to differentiate albums with the same title from different artists.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 100</para>
+ /// </summary>
+ public ShellProperty<String> AlbumID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.AlbumID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.AlbumTitle -- PKEY_Music_AlbumTitle</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 4 (PIDSI_MUSIC_ALBUM)</para>
+ /// </summary>
+ public ShellProperty<String> AlbumTitle
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.AlbumTitle;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Artist -- PKEY_Music_Artist</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 2 (PIDSI_MUSIC_ARTIST)</para>
+ /// </summary>
+ public ShellProperty<String[]> Artist
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.Artist;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.BeatsPerMinute -- PKEY_Music_BeatsPerMinute</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 35 (PIDSI_MUSIC_BEATS_PER_MINUTE)</para>
+ /// </summary>
+ public ShellProperty<String> BeatsPerMinute
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.BeatsPerMinute;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Composer -- PKEY_Music_Composer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 19 (PIDMSI_COMPOSER)</para>
+ /// </summary>
+ public ShellProperty<String[]> Composer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.Composer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Conductor -- PKEY_Music_Conductor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 36 (PIDSI_MUSIC_CONDUCTOR)</para>
+ /// </summary>
+ public ShellProperty<String[]> Conductor
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.Conductor;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.ContentGroupDescription -- PKEY_Music_ContentGroupDescription</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 33 (PIDSI_MUSIC_CONTENT_GROUP_DESCRIPTION)</para>
+ /// </summary>
+ public ShellProperty<String> ContentGroupDescription
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.ContentGroupDescription;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.DisplayArtist -- PKEY_Music_DisplayArtist</para>
+ /// <para>Description: This property returns the best representation of Album Artist for a given music file
+ ///based upon AlbumArtist, ContributingArtist and compilation info.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FD122953-FA93-4EF7-92C3-04C946B2F7C8}, 100</para>
+ /// </summary>
+ public ShellProperty<String> DisplayArtist
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.DisplayArtist;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Genre -- PKEY_Music_Genre</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 11 (PIDSI_MUSIC_GENRE)</para>
+ /// </summary>
+ public ShellProperty<String[]> Genre
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.Genre;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.InitialKey -- PKEY_Music_InitialKey</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 34 (PIDSI_MUSIC_INITIAL_KEY)</para>
+ /// </summary>
+ public ShellProperty<String> InitialKey
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.InitialKey;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.IsCompilation -- PKEY_Music_IsCompilation</para>
+ /// <para>Description: Indicates whether the file is part of a compilation.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {C449D5CB-9EA4-4809-82E8-AF9D59DED6D1}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsCompilation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.IsCompilation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Lyrics -- PKEY_Music_Lyrics</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 12 (PIDSI_MUSIC_LYRICS)</para>
+ /// </summary>
+ public ShellProperty<String> Lyrics
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.Lyrics;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Mood -- PKEY_Music_Mood</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 39 (PIDSI_MUSIC_MOOD)</para>
+ /// </summary>
+ public ShellProperty<String> Mood
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.Mood;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.PartOfSet -- PKEY_Music_PartOfSet</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 37 (PIDSI_MUSIC_PART_OF_SET)</para>
+ /// </summary>
+ public ShellProperty<String> PartOfSet
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.PartOfSet;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Period -- PKEY_Music_Period</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 31 (PIDMSI_PERIOD)</para>
+ /// </summary>
+ public ShellProperty<String> Period
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.Period;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.SynchronizedLyrics -- PKEY_Music_SynchronizedLyrics</para>
+ /// <para>Description: </para>
+ /// <para>Type: Blob -- VT_BLOB</para>
+ /// <para>FormatID: {6B223B6A-162E-4AA9-B39F-05D678FC6D77}, 100</para>
+ /// </summary>
+ public ShellProperty<Byte[]> SynchronizedLyrics
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.SynchronizedLyrics;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.TrackNumber -- PKEY_Music_TrackNumber</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 7 (PIDSI_MUSIC_TRACK)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> TrackNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Music.TrackNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Note Properties
+ /// </summary>
+ public class PropertySystemNote : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemNote(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Note.Color -- PKEY_Note_Color</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {4776CAFA-BCE4-4CB1-A23E-265E76D8EB11}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> Color
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Note.Color;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Note.ColorText -- PKEY_Note_ColorText</para>
+ /// <para>Description: This is the user-friendly form of System.Note.Color. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {46B4E8DE-CDB2-440D-885C-1658EB65B914}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ColorText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Note.ColorText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Photo Properties
+ /// </summary>
+ public class PropertySystemPhoto : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemPhoto(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Photo.Aperture -- PKEY_Photo_Aperture</para>
+ /// <para>Description: PropertyTagExifAperture. Calculated from PKEY_Photo_ApertureNumerator and PKEY_Photo_ApertureDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37378</para>
+ /// </summary>
+ public ShellProperty<Double?> Aperture
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Aperture;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ApertureDenominator -- PKEY_Photo_ApertureDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_Aperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {E1A9A38B-6685-46BD-875E-570DC7AD7320}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ApertureDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ApertureDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ApertureNumerator -- PKEY_Photo_ApertureNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_Aperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {0337ECEC-39FB-4581-A0BD-4C4CC51E9914}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ApertureNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ApertureNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Brightness -- PKEY_Photo_Brightness</para>
+ /// <para>Description: This is the brightness of the photo.
+ ///
+ ///Calculated from PKEY_Photo_BrightnessNumerator and PKEY_Photo_BrightnessDenominator.
+ ///
+ ///The units are "APEX", normally in the range of -99.99 to 99.99. If the numerator of
+ ///the recorded value is FFFFFFFF.H, "Unknown" should be indicated.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {1A701BF6-478C-4361-83AB-3701BB053C58}, 100 (PropertyTagExifBrightness)</para>
+ /// </summary>
+ public ShellProperty<Double?> Brightness
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Brightness;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.BrightnessDenominator -- PKEY_Photo_BrightnessDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_Brightness
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6EBE6946-2321-440A-90F0-C043EFD32476}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> BrightnessDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.BrightnessDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.BrightnessNumerator -- PKEY_Photo_BrightnessNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_Brightness
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {9E7D118F-B314-45A0-8CFB-D654B917C9E9}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> BrightnessNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.BrightnessNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.CameraManufacturer -- PKEY_Photo_CameraManufacturer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 271 (PropertyTagEquipMake)</para>
+ /// </summary>
+ public ShellProperty<String> CameraManufacturer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.CameraManufacturer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.CameraModel -- PKEY_Photo_CameraModel</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 272 (PropertyTagEquipModel)</para>
+ /// </summary>
+ public ShellProperty<String> CameraModel
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.CameraModel;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.CameraSerialNumber -- PKEY_Photo_CameraSerialNumber</para>
+ /// <para>Description: Serial number of camera that produced this photo
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 273</para>
+ /// </summary>
+ public ShellProperty<String> CameraSerialNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.CameraSerialNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Contrast -- PKEY_Photo_Contrast</para>
+ /// <para>Description: This indicates the direction of contrast processing applied by the camera
+ ///when the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2A785BA9-8D23-4DED-82E6-60A350C86A10}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> Contrast
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Contrast;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ContrastText -- PKEY_Photo_ContrastText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Contrast. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {59DDE9F2-5253-40EA-9A8B-479E96C6249A}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ContrastText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ContrastText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DateTaken -- PKEY_Photo_DateTaken</para>
+ /// <para>Description: PropertyTagExifDTOrig
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 36867</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateTaken
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.DateTaken;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DigitalZoom -- PKEY_Photo_DigitalZoom</para>
+ /// <para>Description: PropertyTagExifDigitalZoom. Calculated from PKEY_Photo_DigitalZoomNumerator and PKEY_Photo_DigitalZoomDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {F85BF840-A925-4BC2-B0C4-8E36B598679E}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> DigitalZoom
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.DigitalZoom;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DigitalZoomDenominator -- PKEY_Photo_DigitalZoomDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_DigitalZoom
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {745BAF0E-E5C1-4CFB-8A1B-D031A0A52393}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DigitalZoomDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.DigitalZoomDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DigitalZoomNumerator -- PKEY_Photo_DigitalZoomNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_DigitalZoom
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {16CBB924-6500-473B-A5BE-F1599BCBE413}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> DigitalZoomNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.DigitalZoomNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Event -- PKEY_Photo_Event</para>
+ /// <para>Description: The event at which the photo was taken
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 18248</para>
+ /// </summary>
+ public ShellProperty<String[]> Event
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Event;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.EXIFVersion -- PKEY_Photo_EXIFVersion</para>
+ /// <para>Description: The EXIF version.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D35F743A-EB2E-47F2-A286-844132CB1427}, 100</para>
+ /// </summary>
+ public ShellProperty<String> EXIFVersion
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.EXIFVersion;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureBias -- PKEY_Photo_ExposureBias</para>
+ /// <para>Description: PropertyTagExifExposureBias. Calculated from PKEY_Photo_ExposureBiasNumerator and PKEY_Photo_ExposureBiasDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37380</para>
+ /// </summary>
+ public ShellProperty<Double?> ExposureBias
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureBias;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureBiasDenominator -- PKEY_Photo_ExposureBiasDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ExposureBias
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {AB205E50-04B7-461C-A18C-2F233836E627}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> ExposureBiasDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureBiasDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureBiasNumerator -- PKEY_Photo_ExposureBiasNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ExposureBias
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {738BF284-1D87-420B-92CF-5834BF6EF9ED}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> ExposureBiasNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureBiasNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureIndex -- PKEY_Photo_ExposureIndex</para>
+ /// <para>Description: PropertyTagExifExposureIndex. Calculated from PKEY_Photo_ExposureIndexNumerator and PKEY_Photo_ExposureIndexDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {967B5AF8-995A-46ED-9E11-35B3C5B9782D}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> ExposureIndex
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureIndex;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureIndexDenominator -- PKEY_Photo_ExposureIndexDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ExposureIndex
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {93112F89-C28B-492F-8A9D-4BE2062CEE8A}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ExposureIndexDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureIndexDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureIndexNumerator -- PKEY_Photo_ExposureIndexNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ExposureIndex
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {CDEDCF30-8919-44DF-8F4C-4EB2FFDB8D89}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ExposureIndexNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureIndexNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureProgram -- PKEY_Photo_ExposureProgram</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 34850 (PropertyTagExifExposureProg)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ExposureProgram
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureProgram;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureProgramText -- PKEY_Photo_ExposureProgramText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.ExposureProgram. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FEC690B7-5F30-4646-AE47-4CAAFBA884A3}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ExposureProgramText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureProgramText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureTime -- PKEY_Photo_ExposureTime</para>
+ /// <para>Description: PropertyTagExifExposureTime. Calculated from PKEY_Photo_ExposureTimeNumerator and PKEY_Photo_ExposureTimeDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 33434</para>
+ /// </summary>
+ public ShellProperty<Double?> ExposureTime
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureTime;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureTimeDenominator -- PKEY_Photo_ExposureTimeDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ExposureTime
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {55E98597-AD16-42E0-B624-21599A199838}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ExposureTimeDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureTimeDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureTimeNumerator -- PKEY_Photo_ExposureTimeNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ExposureTime
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {257E44E2-9031-4323-AC38-85C552871B2E}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ExposureTimeNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ExposureTimeNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Flash -- PKEY_Photo_Flash</para>
+ /// <para>Description: PropertyTagExifFlash
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37385</para>
+ /// </summary>
+ public ShellProperty<Byte?> Flash
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Flash;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashEnergy -- PKEY_Photo_FlashEnergy</para>
+ /// <para>Description: PropertyTagExifFlashEnergy. Calculated from PKEY_Photo_FlashEnergyNumerator and PKEY_Photo_FlashEnergyDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 41483</para>
+ /// </summary>
+ public ShellProperty<Double?> FlashEnergy
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FlashEnergy;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashEnergyDenominator -- PKEY_Photo_FlashEnergyDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FlashEnergy
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {D7B61C70-6323-49CD-A5FC-C84277162C97}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FlashEnergyDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FlashEnergyDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashEnergyNumerator -- PKEY_Photo_FlashEnergyNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FlashEnergy
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {FCAD3D3D-0858-400F-AAA3-2F66CCE2A6BC}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FlashEnergyNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FlashEnergyNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashManufacturer -- PKEY_Photo_FlashManufacturer</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AABAF6C9-E0C5-4719-8585-57B103E584FE}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FlashManufacturer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FlashManufacturer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashModel -- PKEY_Photo_FlashModel</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FE83BB35-4D1A-42E2-916B-06F3E1AF719E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FlashModel
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FlashModel;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashText -- PKEY_Photo_FlashText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Flash. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6B8B68F6-200B-47EA-8D25-D8050F57339F}, 100</para>
+ /// </summary>
+ public ShellProperty<String> FlashText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FlashText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FNumber -- PKEY_Photo_FNumber</para>
+ /// <para>Description: PropertyTagExifFNumber. Calculated from PKEY_Photo_FNumberNumerator and PKEY_Photo_FNumberDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 33437</para>
+ /// </summary>
+ public ShellProperty<Double?> FNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FNumberDenominator -- PKEY_Photo_FNumberDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FNumber
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {E92A2496-223B-4463-A4E3-30EABBA79D80}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FNumberDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FNumberDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FNumberNumerator -- PKEY_Photo_FNumberNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FNumber
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {1B97738A-FDFC-462F-9D93-1957E08BE90C}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FNumberNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FNumberNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLength -- PKEY_Photo_FocalLength</para>
+ /// <para>Description: PropertyTagExifFocalLength. Calculated from PKEY_Photo_FocalLengthNumerator and PKEY_Photo_FocalLengthDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37386</para>
+ /// </summary>
+ public ShellProperty<Double?> FocalLength
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalLength;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLengthDenominator -- PKEY_Photo_FocalLengthDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FocalLength
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {305BC615-DCA1-44A5-9FD4-10C0BA79412E}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FocalLengthDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalLengthDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLengthInFilm -- PKEY_Photo_FocalLengthInFilm</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {A0E74609-B84D-4F49-B860-462BD9971F98}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> FocalLengthInFilm
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalLengthInFilm;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLengthNumerator -- PKEY_Photo_FocalLengthNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FocalLength
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {776B6B3B-1E3D-4B0C-9A0E-8FBAF2A8492A}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FocalLengthNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalLengthNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneXResolution -- PKEY_Photo_FocalPlaneXResolution</para>
+ /// <para>Description: PropertyTagExifFocalXRes. Calculated from PKEY_Photo_FocalPlaneXResolutionNumerator and
+ ///PKEY_Photo_FocalPlaneXResolutionDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {CFC08D97-C6F7-4484-89DD-EBEF4356FE76}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> FocalPlaneXResolution
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalPlaneXResolution;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneXResolutionDenominator -- PKEY_Photo_FocalPlaneXResolutionDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FocalPlaneXResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {0933F3F5-4786-4F46-A8E8-D64DD37FA521}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FocalPlaneXResolutionDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalPlaneXResolutionDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneXResolutionNumerator -- PKEY_Photo_FocalPlaneXResolutionNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FocalPlaneXResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {DCCB10AF-B4E2-4B88-95F9-031B4D5AB490}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FocalPlaneXResolutionNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalPlaneXResolutionNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneYResolution -- PKEY_Photo_FocalPlaneYResolution</para>
+ /// <para>Description: PropertyTagExifFocalYRes. Calculated from PKEY_Photo_FocalPlaneYResolutionNumerator and
+ ///PKEY_Photo_FocalPlaneYResolutionDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {4FFFE4D0-914F-4AC4-8D6F-C9C61DE169B1}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> FocalPlaneYResolution
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalPlaneYResolution;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneYResolutionDenominator -- PKEY_Photo_FocalPlaneYResolutionDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FocalPlaneYResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {1D6179A6-A876-4031-B013-3347B2B64DC8}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FocalPlaneYResolutionDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalPlaneYResolutionDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneYResolutionNumerator -- PKEY_Photo_FocalPlaneYResolutionNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FocalPlaneYResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A2E541C5-4440-4BA8-867E-75CFC06828CD}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FocalPlaneYResolutionNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.FocalPlaneYResolutionNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControl -- PKEY_Photo_GainControl</para>
+ /// <para>Description: This indicates the degree of overall image gain adjustment.
+ ///
+ ///Calculated from PKEY_Photo_GainControlNumerator and PKEY_Photo_GainControlDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {FA304789-00C7-4D80-904A-1E4DCC7265AA}, 100 (PropertyTagExifGainControl)</para>
+ /// </summary>
+ public ShellProperty<Double?> GainControl
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.GainControl;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControlDenominator -- PKEY_Photo_GainControlDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_GainControl
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {42864DFD-9DA4-4F77-BDED-4AAD7B256735}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> GainControlDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.GainControlDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControlNumerator -- PKEY_Photo_GainControlNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_GainControl
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {8E8ECF7C-B7B8-4EB8-A63F-0EE715C96F9E}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> GainControlNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.GainControlNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControlText -- PKEY_Photo_GainControlText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.GainControl. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C06238B2-0BF9-4279-A723-25856715CB9D}, 100</para>
+ /// </summary>
+ public ShellProperty<String> GainControlText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.GainControlText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ISOSpeed -- PKEY_Photo_ISOSpeed</para>
+ /// <para>Description: PropertyTagExifISOSpeed
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 34855</para>
+ /// </summary>
+ public ShellProperty<UInt16?> ISOSpeed
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ISOSpeed;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.LensManufacturer -- PKEY_Photo_LensManufacturer</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E6DDCAF7-29C5-4F0A-9A68-D19412EC7090}, 100</para>
+ /// </summary>
+ public ShellProperty<String> LensManufacturer
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.LensManufacturer;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.LensModel -- PKEY_Photo_LensModel</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E1277516-2B5F-4869-89B1-2E585BD38B7A}, 100</para>
+ /// </summary>
+ public ShellProperty<String> LensModel
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.LensModel;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.LightSource -- PKEY_Photo_LightSource</para>
+ /// <para>Description: PropertyTagExifLightSource
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37384</para>
+ /// </summary>
+ public ShellProperty<UInt32?> LightSource
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.LightSource;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MakerNote -- PKEY_Photo_MakerNote</para>
+ /// <para>Description: </para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: {FA303353-B659-4052-85E9-BCAC79549B84}, 100</para>
+ /// </summary>
+ public ShellProperty<Byte[]> MakerNote
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.MakerNote;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MakerNoteOffset -- PKEY_Photo_MakerNoteOffset</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {813F4124-34E6-4D17-AB3E-6B1F3C2247A1}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt64?> MakerNoteOffset
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.MakerNoteOffset;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt64?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt64?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MaxAperture -- PKEY_Photo_MaxAperture</para>
+ /// <para>Description: Calculated from PKEY_Photo_MaxApertureNumerator and PKEY_Photo_MaxApertureDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {08F6D7C2-E3F2-44FC-AF1E-5AA5C81A2D3E}, 100</para>
+ /// </summary>
+ public ShellProperty<Double?> MaxAperture
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.MaxAperture;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MaxApertureDenominator -- PKEY_Photo_MaxApertureDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_MaxAperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {C77724D4-601F-46C5-9B89-C53F93BCEB77}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> MaxApertureDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.MaxApertureDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MaxApertureNumerator -- PKEY_Photo_MaxApertureNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_MaxAperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {C107E191-A459-44C5-9AE6-B952AD4B906D}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> MaxApertureNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.MaxApertureNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MeteringMode -- PKEY_Photo_MeteringMode</para>
+ /// <para>Description: PropertyTagExifMeteringMode
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37383</para>
+ /// </summary>
+ public ShellProperty<UInt16?> MeteringMode
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.MeteringMode;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MeteringModeText -- PKEY_Photo_MeteringModeText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.MeteringMode. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F628FD8C-7BA8-465A-A65B-C5AA79263A9E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> MeteringModeText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.MeteringModeText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Orientation -- PKEY_Photo_Orientation</para>
+ /// <para>Description: This is the image orientation viewed in terms of rows and columns.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 274 (PropertyTagOrientation)</para>
+ /// </summary>
+ public ShellProperty<UInt16?> Orientation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Orientation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.OrientationText -- PKEY_Photo_OrientationText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Orientation. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A9EA193C-C511-498A-A06B-58E2776DCC28}, 100</para>
+ /// </summary>
+ public ShellProperty<String> OrientationText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.OrientationText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.PeopleNames -- PKEY_Photo_PeopleNames</para>
+ /// <para>Description: The people tags on an image.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: {E8309B6E-084C-49B4-B1FC-90A80331B638}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> PeopleNames
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.PeopleNames;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.PhotometricInterpretation -- PKEY_Photo_PhotometricInterpretation</para>
+ /// <para>Description: This is the pixel composition. In JPEG compressed data, a JPEG marker is used
+ ///instead of this property.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {341796F1-1DF9-4B1C-A564-91BDEFA43877}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt16?> PhotometricInterpretation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.PhotometricInterpretation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.PhotometricInterpretationText -- PKEY_Photo_PhotometricInterpretationText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.PhotometricInterpretation. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {821437D6-9EAB-4765-A589-3B1CBBD22A61}, 100</para>
+ /// </summary>
+ public ShellProperty<String> PhotometricInterpretationText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.PhotometricInterpretationText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ProgramMode -- PKEY_Photo_ProgramMode</para>
+ /// <para>Description: This is the class of the program used by the camera to set exposure when the
+ ///picture is taken.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6D217F6D-3F6A-4825-B470-5F03CA2FBE9B}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ProgramMode
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ProgramMode;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ProgramModeText -- PKEY_Photo_ProgramModeText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.ProgramMode. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7FE3AA27-2648-42F3-89B0-454E5CB150C3}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ProgramModeText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ProgramModeText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.RelatedSoundFile -- PKEY_Photo_RelatedSoundFile</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {318A6B45-087F-4DC2-B8CC-05359551FC9E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> RelatedSoundFile
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.RelatedSoundFile;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Saturation -- PKEY_Photo_Saturation</para>
+ /// <para>Description: This indicates the direction of saturation processing applied by the camera when
+ ///the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {49237325-A95A-4F67-B211-816B2D45D2E0}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> Saturation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Saturation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SaturationText -- PKEY_Photo_SaturationText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Saturation. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {61478C08-B600-4A84-BBE4-E99C45F0A072}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SaturationText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.SaturationText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Sharpness -- PKEY_Photo_Sharpness</para>
+ /// <para>Description: This indicates the direction of sharpness processing applied by the camera when
+ ///the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {FC6976DB-8349-4970-AE97-B3C5316A08F0}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> Sharpness
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.Sharpness;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SharpnessText -- PKEY_Photo_SharpnessText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Sharpness. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {51EC3F47-DD50-421D-8769-334F50424B1E}, 100</para>
+ /// </summary>
+ public ShellProperty<String> SharpnessText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.SharpnessText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ShutterSpeed -- PKEY_Photo_ShutterSpeed</para>
+ /// <para>Description: PropertyTagExifShutterSpeed. Calculated from PKEY_Photo_ShutterSpeedNumerator and PKEY_Photo_ShutterSpeedDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37377</para>
+ /// </summary>
+ public ShellProperty<Double?> ShutterSpeed
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ShutterSpeed;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ShutterSpeedDenominator -- PKEY_Photo_ShutterSpeedDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ShutterSpeed
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {E13D8975-81C7-4948-AE3F-37CAE11E8FF7}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> ShutterSpeedDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ShutterSpeedDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ShutterSpeedNumerator -- PKEY_Photo_ShutterSpeedNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ShutterSpeed
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {16EA4042-D6F4-4BCA-8349-7C78D30FB333}, 100</para>
+ /// </summary>
+ public ShellProperty<Int32?> ShutterSpeedNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.ShutterSpeedNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SubjectDistance -- PKEY_Photo_SubjectDistance</para>
+ /// <para>Description: PropertyTagExifSubjectDist. Calculated from PKEY_Photo_SubjectDistanceNumerator and PKEY_Photo_SubjectDistanceDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37382</para>
+ /// </summary>
+ public ShellProperty<Double?> SubjectDistance
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.SubjectDistance;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Double?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Double?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SubjectDistanceDenominator -- PKEY_Photo_SubjectDistanceDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_SubjectDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {0C840A88-B043-466D-9766-D4B26DA3FA77}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SubjectDistanceDenominator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.SubjectDistanceDenominator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SubjectDistanceNumerator -- PKEY_Photo_SubjectDistanceNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_SubjectDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {8AF4961C-F526-43E5-AA81-DB768219178D}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SubjectDistanceNumerator
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.SubjectDistanceNumerator;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.TagViewAggregate -- PKEY_Photo_TagViewAggregate</para>
+ /// <para>Description: A read-only aggregation of tag-like properties for use in building views.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: {B812F15D-C2D8-4BBF-BACD-79744346113F}, 100</para>
+ /// </summary>
+ public ShellProperty<String[]> TagViewAggregate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.TagViewAggregate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.TranscodedForSync -- PKEY_Photo_TranscodedForSync</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9A8EBB75-6458-4E82-BACB-35C0095B03BB}, 100</para>
+ /// </summary>
+ public ShellProperty<Boolean?> TranscodedForSync
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.TranscodedForSync;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.WhiteBalance -- PKEY_Photo_WhiteBalance</para>
+ /// <para>Description: This indicates the white balance mode set when the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {EE3D3D8A-5381-4CFA-B13B-AAF66B5F4EC9}, 100</para>
+ /// </summary>
+ public ShellProperty<UInt32?> WhiteBalance
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.WhiteBalance;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.WhiteBalanceText -- PKEY_Photo_WhiteBalanceText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.WhiteBalance. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6336B95E-C7A7-426D-86FD-7AE3D39C84B4}, 100</para>
+ /// </summary>
+ public ShellProperty<String> WhiteBalanceText
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Photo.WhiteBalanceText;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.PropGroup Properties
+ /// </summary>
+ public class PropertySystemPropGroup : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemPropGroup(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Advanced -- PKEY_PropGroup_Advanced</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {900A403B-097B-4B95-8AE2-071FDAEEB118}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Advanced
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Advanced;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Audio -- PKEY_PropGroup_Audio</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {2804D469-788F-48AA-8570-71B9C187E138}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Audio
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Audio;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Calendar -- PKEY_PropGroup_Calendar</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {9973D2B5-BFD8-438A-BA94-5349B293181A}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Calendar
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Calendar;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Camera -- PKEY_PropGroup_Camera</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {DE00DE32-547E-4981-AD4B-542F2E9007D8}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Camera
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Camera;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Contact -- PKEY_PropGroup_Contact</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {DF975FD3-250A-4004-858F-34E29A3E37AA}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Contact
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Contact;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Content -- PKEY_PropGroup_Content</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {D0DAB0BA-368A-4050-A882-6C010FD19A4F}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Content
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Content;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Description -- PKEY_PropGroup_Description</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {8969B275-9475-4E00-A887-FF93B8B41E44}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Description
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Description;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.FileSystem -- PKEY_PropGroup_FileSystem</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {E3A7D2C1-80FC-4B40-8F34-30EA111BDC2E}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> FileSystem
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.FileSystem;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.General -- PKEY_PropGroup_General</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {CC301630-B192-4C22-B372-9F4C6D338E07}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> General
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.General;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.GPS -- PKEY_PropGroup_GPS</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {F3713ADA-90E3-4E11-AAE5-FDC17685B9BE}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> GPS
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.GPS;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Image -- PKEY_PropGroup_Image</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {E3690A87-0FA8-4A2A-9A9F-FCE8827055AC}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Image
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Image;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Media -- PKEY_PropGroup_Media</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {61872CF7-6B5E-4B4B-AC2D-59DA84459248}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Media
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Media;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.MediaAdvanced -- PKEY_PropGroup_MediaAdvanced</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {8859A284-DE7E-4642-99BA-D431D044B1EC}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> MediaAdvanced
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.MediaAdvanced;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Message -- PKEY_PropGroup_Message</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {7FD7259D-16B4-4135-9F97-7C96ECD2FA9E}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Message
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Message;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Music -- PKEY_PropGroup_Music</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {68DD6094-7216-40F1-A029-43FE7127043F}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Music
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Music;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Origin -- PKEY_PropGroup_Origin</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {2598D2FB-5569-4367-95DF-5CD3A177E1A5}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Origin
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Origin;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.PhotoAdvanced -- PKEY_PropGroup_PhotoAdvanced</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {0CB2BF5A-9EE7-4A86-8222-F01E07FDADAF}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> PhotoAdvanced
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.PhotoAdvanced;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.RecordedTV -- PKEY_PropGroup_RecordedTV</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {E7B33238-6584-4170-A5C0-AC25EFD9DA56}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> RecordedTV
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.RecordedTV;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Video -- PKEY_PropGroup_Video</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {BEBE0920-7671-4C54-A3EB-49FDDFC191EE}, 100</para>
+ /// </summary>
+ public ShellProperty<Object> Video
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropGroup.Video;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.PropList Properties
+ /// </summary>
+ public class PropertySystemPropList : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemPropList(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.PropList.ConflictPrompt -- PKEY_PropList_ConflictPrompt</para>
+ /// <para>Description: The list of properties to show in the file operation conflict resolution dialog. Properties with empty
+ ///values will not be displayed. Register under the regvalue of "ConflictPrompt".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 11</para>
+ /// </summary>
+ public ShellProperty<String> ConflictPrompt
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.ConflictPrompt;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.ContentViewModeForBrowse -- PKEY_PropList_ContentViewModeForBrowse</para>
+ /// <para>Description: The list of properties to show in the content view mode of an item in the context of browsing.
+ ///Register the regvalue under the name of "ContentViewModeForBrowse".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 13</para>
+ /// </summary>
+ public ShellProperty<String> ContentViewModeForBrowse
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.ContentViewModeForBrowse;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.ContentViewModeForSearch -- PKEY_PropList_ContentViewModeForSearch</para>
+ /// <para>Description: The list of properties to show in the content view mode of an item in the context of searching.
+ ///Register the regvalue under the name of "ContentViewModeForSearch".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 14</para>
+ /// </summary>
+ public ShellProperty<String> ContentViewModeForSearch
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.ContentViewModeForSearch;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.ExtendedTileInfo -- PKEY_PropList_ExtendedTileInfo</para>
+ /// <para>Description: The list of properties to show in the listview on extended tiles. Register under the regvalue of
+ ///"ExtendedTileInfo".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 9</para>
+ /// </summary>
+ public ShellProperty<String> ExtendedTileInfo
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.ExtendedTileInfo;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.FileOperationPrompt -- PKEY_PropList_FileOperationPrompt</para>
+ /// <para>Description: The list of properties to show in the file operation confirmation dialog. Properties with empty values
+ ///will not be displayed. If this list is not specified, then the InfoTip property list is used instead.
+ ///Register under the regvalue of "FileOperationPrompt".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 10</para>
+ /// </summary>
+ public ShellProperty<String> FileOperationPrompt
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.FileOperationPrompt;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.FullDetails -- PKEY_PropList_FullDetails</para>
+ /// <para>Description: The list of all the properties to show in the details page. Property groups can be included in this list
+ ///in order to more easily organize the UI. Register under the regvalue of "FullDetails".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 2</para>
+ /// </summary>
+ public ShellProperty<String> FullDetails
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.FullDetails;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.InfoTip -- PKEY_PropList_InfoTip</para>
+ /// <para>Description: The list of properties to show in the infotip. Properties with empty values will not be displayed. Register
+ ///under the regvalue of "InfoTip".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 4 (PID_PROPLIST_INFOTIP)</para>
+ /// </summary>
+ public ShellProperty<String> InfoTip
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.InfoTip;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.NonPersonal -- PKEY_PropList_NonPersonal</para>
+ /// <para>Description: The list of properties that are considered 'non-personal'. When told to remove all non-personal properties
+ ///from a given file, the system will leave these particular properties untouched. Register under the regvalue
+ ///of "NonPersonal".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49D1091F-082E-493F-B23F-D2308AA9668C}, 100</para>
+ /// </summary>
+ public ShellProperty<String> NonPersonal
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.NonPersonal;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.PreviewDetails -- PKEY_PropList_PreviewDetails</para>
+ /// <para>Description: The list of properties to display in the preview pane. Register under the regvalue of "PreviewDetails".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 8</para>
+ /// </summary>
+ public ShellProperty<String> PreviewDetails
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.PreviewDetails;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.PreviewTitle -- PKEY_PropList_PreviewTitle</para>
+ /// <para>Description: The one or two properties to display in the preview pane title section. The optional second property is
+ ///displayed as a subtitle. Register under the regvalue of "PreviewTitle".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 6</para>
+ /// </summary>
+ public ShellProperty<String> PreviewTitle
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.PreviewTitle;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.QuickTip -- PKEY_PropList_QuickTip</para>
+ /// <para>Description: The list of properties to show in the infotip when the item is on a slow network. Properties with empty
+ ///values will not be displayed. Register under the regvalue of "QuickTip".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 5 (PID_PROPLIST_QUICKTIP)</para>
+ /// </summary>
+ public ShellProperty<String> QuickTip
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.QuickTip;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.TileInfo -- PKEY_PropList_TileInfo</para>
+ /// <para>Description: The list of properties to show in the listview on tiles. Register under the regvalue of "TileInfo".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 3 (PID_PROPLIST_TILEINFO)</para>
+ /// </summary>
+ public ShellProperty<String> TileInfo
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.TileInfo;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.XPDetailsPanel -- PKEY_PropList_XPDetailsPanel</para>
+ /// <para>Description: The list of properties to display in the XP webview details panel. Obsolete.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_WebView) {F2275480-F782-4291-BD94-F13693513AEC}, 0 (PID_DISPLAY_PROPERTIES)</para>
+ /// </summary>
+ public ShellProperty<String> XPDetailsPanel
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.PropList.XPDetailsPanel;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.RecordedTV Properties
+ /// </summary>
+ public class PropertySystemRecordedTV : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemRecordedTV(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.ChannelNumber -- PKEY_RecordedTV_ChannelNumber</para>
+ /// <para>Description: Example: 42
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 7</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ChannelNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.ChannelNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.Credits -- PKEY_RecordedTV_Credits</para>
+ /// <para>Description: Example: "Don Messick/Frank Welker/Casey Kasem/Heather North/Nicole Jaffe;;;"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 4</para>
+ /// </summary>
+ public ShellProperty<String> Credits
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.Credits;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.DateContentExpires -- PKEY_RecordedTV_DateContentExpires</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 15</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateContentExpires
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.DateContentExpires;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.EpisodeName -- PKEY_RecordedTV_EpisodeName</para>
+ /// <para>Description: Example: "Nowhere to Hyde"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 2</para>
+ /// </summary>
+ public ShellProperty<String> EpisodeName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.EpisodeName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsATSCContent -- PKEY_RecordedTV_IsATSCContent</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 16</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsATSCContent
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.IsATSCContent;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsClosedCaptioningAvailable -- PKEY_RecordedTV_IsClosedCaptioningAvailable</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 12</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsClosedCaptioningAvailable
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.IsClosedCaptioningAvailable;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsDTVContent -- PKEY_RecordedTV_IsDTVContent</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 17</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsDTVContent
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.IsDTVContent;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsHDContent -- PKEY_RecordedTV_IsHDContent</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 18</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsHDContent
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.IsHDContent;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsRepeatBroadcast -- PKEY_RecordedTV_IsRepeatBroadcast</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 13</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsRepeatBroadcast
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.IsRepeatBroadcast;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsSAP -- PKEY_RecordedTV_IsSAP</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 14</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsSAP
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.IsSAP;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.NetworkAffiliation -- PKEY_RecordedTV_NetworkAffiliation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {2C53C813-FB63-4E22-A1AB-0B331CA1E273}, 100</para>
+ /// </summary>
+ public ShellProperty<String> NetworkAffiliation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.NetworkAffiliation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.OriginalBroadcastDate -- PKEY_RecordedTV_OriginalBroadcastDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {4684FE97-8765-4842-9C13-F006447B178C}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> OriginalBroadcastDate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.OriginalBroadcastDate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.ProgramDescription -- PKEY_RecordedTV_ProgramDescription</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 3</para>
+ /// </summary>
+ public ShellProperty<String> ProgramDescription
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.ProgramDescription;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.RecordingTime -- PKEY_RecordedTV_RecordingTime</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {A5477F61-7A82-4ECA-9DDE-98B69B2479B3}, 100</para>
+ /// </summary>
+ public ShellProperty<DateTime?> RecordingTime
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.RecordingTime;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.StationCallSign -- PKEY_RecordedTV_StationCallSign</para>
+ /// <para>Description: Example: "TOONP"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 5</para>
+ /// </summary>
+ public ShellProperty<String> StationCallSign
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.StationCallSign;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.StationName -- PKEY_RecordedTV_StationName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {1B5439E7-EBA1-4AF8-BDD7-7AF1D4549493}, 100</para>
+ /// </summary>
+ public ShellProperty<String> StationName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.RecordedTV.StationName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Search Properties
+ /// </summary>
+ public class PropertySystemSearch : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemSearch(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Search.AutoSummary -- PKEY_Search_AutoSummary</para>
+ /// <para>Description: General Summary of the document.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {560C36C0-503A-11CF-BAA1-00004C752A9A}, 2</para>
+ /// </summary>
+ public ShellProperty<String> AutoSummary
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.AutoSummary;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.ContainerHash -- PKEY_Search_ContainerHash</para>
+ /// <para>Description: Hash code used to identify attachments to be deleted based on a common container url
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BCEEE283-35DF-4D53-826A-F36A3EEFC6BE}, 100</para>
+ /// </summary>
+ public ShellProperty<String> ContainerHash
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.ContainerHash;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.Contents -- PKEY_Search_Contents</para>
+ /// <para>Description: The contents of the item. This property is for query restrictions only; it cannot be retrieved in a
+ ///query result. The Indexing Service friendly name is 'contents'.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 19 (PID_STG_CONTENTS)</para>
+ /// </summary>
+ public ShellProperty<String> Contents
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.Contents;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.EntryID -- PKEY_Search_EntryID</para>
+ /// <para>Description: The entry ID for an item within a given catalog in the Windows Search Index.
+ ///This value may be recycled, and therefore is not considered unique over time.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 5 (PROPID_QUERY_WORKID)</para>
+ /// </summary>
+ public ShellProperty<Int32?> EntryID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.EntryID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.ExtendedProperties -- PKEY_Search_ExtendedProperties</para>
+ /// <para>Description: </para>
+ /// <para>Type: Blob -- VT_BLOB</para>
+ /// <para>FormatID: {7B03B546-FA4F-4A52-A2FE-03D5311E5865}, 100</para>
+ /// </summary>
+ public ShellProperty<Byte[]> ExtendedProperties
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.ExtendedProperties;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Byte[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Byte[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.GatherTime -- PKEY_Search_GatherTime</para>
+ /// <para>Description: The Datetime that the Windows Search Gatherer process last pushed properties of this document to the Windows Search Gatherer Plugins.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {0B63E350-9CCC-11D0-BCDB-00805FCCCE04}, 8</para>
+ /// </summary>
+ public ShellProperty<DateTime?> GatherTime
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.GatherTime;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.HitCount -- PKEY_Search_HitCount</para>
+ /// <para>Description: When using CONTAINS over the Windows Search Index, this is the number of matches of the term.
+ ///If there are multiple CONTAINS, an AND computes the min number of hits and an OR the max number of hits.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 4 (PROPID_QUERY_HITCOUNT)</para>
+ /// </summary>
+ public ShellProperty<Int32?> HitCount
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.HitCount;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.IsClosedDirectory -- PKEY_Search_IsClosedDirectory</para>
+ /// <para>Description: If this property is emitted with a value of TRUE, then it indicates that this URL's last modified time applies to all of it's children, and if this URL is deleted then all of it's children are deleted as well. For example, this would be emitted as TRUE when emitting the URL of an email so that all attachments are tied to the last modified time of that email.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 23</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsClosedDirectory
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.IsClosedDirectory;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.IsFullyContained -- PKEY_Search_IsFullyContained</para>
+ /// <para>Description: Any child URL of a URL which has System.Search.IsClosedDirectory=TRUE must emit System.Search.IsFullyContained=TRUE. This ensures that the URL is not deleted at the end of a crawl because it hasn't been visited (which is the normal mechanism for detecting deletes). For example an email attachment would emit this property
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 24</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsFullyContained
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.IsFullyContained;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.QueryFocusedSummary -- PKEY_Search_QueryFocusedSummary</para>
+ /// <para>Description: Query Focused Summary of the document.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {560C36C0-503A-11CF-BAA1-00004C752A9A}, 3</para>
+ /// </summary>
+ public ShellProperty<String> QueryFocusedSummary
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.QueryFocusedSummary;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.QueryFocusedSummaryWithFallback -- PKEY_Search_QueryFocusedSummaryWithFallback</para>
+ /// <para>Description: Query Focused Summary of the document, if none is available it returns the AutoSummary.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {560C36C0-503A-11CF-BAA1-00004C752A9A}, 4</para>
+ /// </summary>
+ public ShellProperty<String> QueryFocusedSummaryWithFallback
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.QueryFocusedSummaryWithFallback;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.Rank -- PKEY_Search_Rank</para>
+ /// <para>Description: Relevance rank of row. Ranges from 0-1000. Larger numbers = better matches. Query-time only.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 3 (PROPID_QUERY_RANK)</para>
+ /// </summary>
+ public ShellProperty<Int32?> Rank
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.Rank;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Int32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Int32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.Store -- PKEY_Search_Store</para>
+ /// <para>Description: The identifier for the protocol handler that produced this item. (E.g. MAPI, CSC, FILE etc.)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A06992B3-8CAF-4ED7-A547-B259E32AC9FC}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Store
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.Store;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.UrlToIndex -- PKEY_Search_UrlToIndex</para>
+ /// <para>Description: This property should be emitted by a container IFilter for each child URL within the container. The children will eventually be crawled by the indexer if they are within scope.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 2</para>
+ /// </summary>
+ public ShellProperty<String> UrlToIndex
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.UrlToIndex;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.UrlToIndexWithModificationTime -- PKEY_Search_UrlToIndexWithModificationTime</para>
+ /// <para>Description: This property is the same as System.Search.UrlToIndex except that it includes the time the URL was last modified. This is an optimization for the indexer as it doesn't have to call back into the protocol handler to ask for this information to determine if the content needs to be indexed again. The property is a vector with two elements, a VT_LPWSTR with the URL and a VT_FILETIME for the last modified time.
+ ///</para>
+ /// <para>Type: Multivalue Any -- VT_VECTOR | VT_NULL (For variants: VT_ARRAY | VT_NULL)</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 12</para>
+ /// </summary>
+ public ShellProperty<Object> UrlToIndexWithModificationTime
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Search.UrlToIndexWithModificationTime;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Object>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Object>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Shell Properties
+ /// </summary>
+ public class PropertySystemShell : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemShell(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Shell.OmitFromView -- PKEY_Shell_OmitFromView</para>
+ /// <para>Description: Set this to a string value of 'True' to omit this item from shell views
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DE35258C-C695-4CBC-B982-38B0AD24CED0}, 2</para>
+ /// </summary>
+ public ShellProperty<String> OmitFromView
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Shell.OmitFromView;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Shell.SFGAOFlagsStrings -- PKEY_Shell_SFGAOFlagsStrings</para>
+ /// <para>Description: Expresses the SFGAO flags as string values and is used as a query optimization.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D6942081-D53B-443D-AD47-5E059D9CD27A}, 2</para>
+ /// </summary>
+ public ShellProperty<String[]> SFGAOFlagsStrings
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Shell.SFGAOFlagsStrings;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Software Properties
+ /// </summary>
+ public class PropertySystemSoftware : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemSoftware(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Software.DateLastUsed -- PKEY_Software_DateLastUsed</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {841E4F90-FF59-4D16-8947-E81BBFFAB36D}, 16</para>
+ /// </summary>
+ public ShellProperty<DateTime?> DateLastUsed
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Software.DateLastUsed;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<DateTime?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<DateTime?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Software.ProductName -- PKEY_Software_ProductName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 7</para>
+ /// </summary>
+ public ShellProperty<String> ProductName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Software.ProductName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Sync Properties
+ /// </summary>
+ public class PropertySystemSync : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemSync(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Sync.Comments -- PKEY_Sync_Comments</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 13</para>
+ /// </summary>
+ public ShellProperty<String> Comments
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.Comments;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ConflictDescription -- PKEY_Sync_ConflictDescription</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 4</para>
+ /// </summary>
+ public ShellProperty<String> ConflictDescription
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.ConflictDescription;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ConflictFirstLocation -- PKEY_Sync_ConflictFirstLocation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 6</para>
+ /// </summary>
+ public ShellProperty<String> ConflictFirstLocation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.ConflictFirstLocation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ConflictSecondLocation -- PKEY_Sync_ConflictSecondLocation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 7</para>
+ /// </summary>
+ public ShellProperty<String> ConflictSecondLocation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.ConflictSecondLocation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerCollectionID -- PKEY_Sync_HandlerCollectionID</para>
+ /// <para>Description: </para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 2</para>
+ /// </summary>
+ public ShellProperty<IntPtr?> HandlerCollectionID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.HandlerCollectionID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<IntPtr?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<IntPtr?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerID -- PKEY_Sync_HandlerID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 3</para>
+ /// </summary>
+ public ShellProperty<String> HandlerID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.HandlerID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerName -- PKEY_Sync_HandlerName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 2</para>
+ /// </summary>
+ public ShellProperty<String> HandlerName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.HandlerName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerType -- PKEY_Sync_HandlerType</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 8</para>
+ /// </summary>
+ public ShellProperty<UInt32?> HandlerType
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.HandlerType;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerTypeLabel -- PKEY_Sync_HandlerTypeLabel</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 9</para>
+ /// </summary>
+ public ShellProperty<String> HandlerTypeLabel
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.HandlerTypeLabel;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ItemID -- PKEY_Sync_ItemID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 6</para>
+ /// </summary>
+ public ShellProperty<String> ItemID
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.ItemID;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ItemName -- PKEY_Sync_ItemName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 3</para>
+ /// </summary>
+ public ShellProperty<String> ItemName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.ItemName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ProgressPercentage -- PKEY_Sync_ProgressPercentage</para>
+ /// <para>Description: An integer value between 0 and 100 representing the percentage completed.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 23</para>
+ /// </summary>
+ public ShellProperty<UInt32?> ProgressPercentage
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.ProgressPercentage;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.State -- PKEY_Sync_State</para>
+ /// <para>Description: Sync state.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 24</para>
+ /// </summary>
+ public ShellProperty<UInt32?> State
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.State;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.Status -- PKEY_Sync_Status</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 10</para>
+ /// </summary>
+ public ShellProperty<String> Status
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Sync.Status;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Task Properties
+ /// </summary>
+ public class PropertySystemTask : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemTask(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Task.BillingInformation -- PKEY_Task_BillingInformation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D37D52C6-261C-4303-82B3-08B926AC6F12}, 100</para>
+ /// </summary>
+ public ShellProperty<String> BillingInformation
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Task.BillingInformation;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Task.CompletionStatus -- PKEY_Task_CompletionStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {084D8A0A-E6D5-40DE-BF1F-C8820E7C877C}, 100</para>
+ /// </summary>
+ public ShellProperty<String> CompletionStatus
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Task.CompletionStatus;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Task.Owner -- PKEY_Task_Owner</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {08C7CC5F-60F2-4494-AD75-55E3E0B5ADD0}, 100</para>
+ /// </summary>
+ public ShellProperty<String> Owner
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Task.Owner;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Video Properties
+ /// </summary>
+ public class PropertySystemVideo : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemVideo(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Video.Compression -- PKEY_Video_Compression</para>
+ /// <para>Description: Indicates the level of compression for the video stream. "Compression".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 10 (PIDVSI_COMPRESSION)</para>
+ /// </summary>
+ public ShellProperty<String> Compression
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.Compression;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.Director -- PKEY_Video_Director</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 20 (PIDMSI_DIRECTOR)</para>
+ /// </summary>
+ public ShellProperty<String[]> Director
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.Director;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String[]>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String[]>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.EncodingBitrate -- PKEY_Video_EncodingBitrate</para>
+ /// <para>Description: Indicates the data rate in "bits per second" for the video stream. "DataRate".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 8 (PIDVSI_DATA_RATE)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> EncodingBitrate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.EncodingBitrate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FourCC -- PKEY_Video_FourCC</para>
+ /// <para>Description: Indicates the 4CC for the video stream.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 44</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FourCC
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.FourCC;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FrameHeight -- PKEY_Video_FrameHeight</para>
+ /// <para>Description: Indicates the frame height for the video stream.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 4</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FrameHeight
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.FrameHeight;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FrameRate -- PKEY_Video_FrameRate</para>
+ /// <para>Description: Indicates the frame rate in "frames per millisecond" for the video stream. "FrameRate".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 6 (PIDVSI_FRAME_RATE)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FrameRate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.FrameRate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FrameWidth -- PKEY_Video_FrameWidth</para>
+ /// <para>Description: Indicates the frame width for the video stream.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 3</para>
+ /// </summary>
+ public ShellProperty<UInt32?> FrameWidth
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.FrameWidth;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.HorizontalAspectRatio -- PKEY_Video_HorizontalAspectRatio</para>
+ /// <para>Description: Indicates the horizontal portion of the aspect ratio. The X portion of XX:YY,
+ ///like 16:9.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 42</para>
+ /// </summary>
+ public ShellProperty<UInt32?> HorizontalAspectRatio
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.HorizontalAspectRatio;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.SampleSize -- PKEY_Video_SampleSize</para>
+ /// <para>Description: Indicates the sample size in bits for the video stream. "SampleSize".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 9 (PIDVSI_SAMPLE_SIZE)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> SampleSize
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.SampleSize;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.StreamName -- PKEY_Video_StreamName</para>
+ /// <para>Description: Indicates the name for the video stream. "StreamName".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 2 (PIDVSI_STREAM_NAME)</para>
+ /// </summary>
+ public ShellProperty<String> StreamName
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.StreamName;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.StreamNumber -- PKEY_Video_StreamNumber</para>
+ /// <para>Description: "Stream Number".
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 11 (PIDVSI_STREAM_NUMBER)</para>
+ /// </summary>
+ public ShellProperty<UInt16?> StreamNumber
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.StreamNumber;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt16?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt16?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.TotalBitrate -- PKEY_Video_TotalBitrate</para>
+ /// <para>Description: Indicates the total data rate in "bits per second" for all video and audio streams.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 43 (PIDVSI_TOTAL_BITRATE)</para>
+ /// </summary>
+ public ShellProperty<UInt32?> TotalBitrate
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.TotalBitrate;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.TranscodedForSync -- PKEY_Video_TranscodedForSync</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 46</para>
+ /// </summary>
+ public ShellProperty<Boolean?> TranscodedForSync
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.TranscodedForSync;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.VerticalAspectRatio -- PKEY_Video_VerticalAspectRatio</para>
+ /// <para>Description: Indicates the vertical portion of the aspect ratio. The Y portion of
+ ///XX:YY, like 16:9.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 45</para>
+ /// </summary>
+ public ShellProperty<UInt32?> VerticalAspectRatio
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Video.VerticalAspectRatio;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<UInt32?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+
+ /// <summary>
+ /// System.Volume Properties
+ /// </summary>
+ public class PropertySystemVolume : PropertyStoreItems
+ {
+
+
+ private ShellObject shellObjectParent;
+ private Hashtable hashtable = new Hashtable();
+
+ internal PropertySystemVolume(ShellObject parent)
+ {
+ shellObjectParent = parent;
+ }
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Volume.FileSystem -- PKEY_Volume_FileSystem</para>
+ /// <para>Description: Indicates the filesystem of the volume.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 4 (PID_VOLUME_FILESYSTEM) (Filesystem Volume Properties)</para>
+ /// </summary>
+ public ShellProperty<String> FileSystem
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Volume.FileSystem;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<String>(key));
+ }
+
+ return hashtable[key] as ShellProperty<String>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Volume.IsMappedDrive -- PKEY_Volume_IsMappedDrive</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {149C0B69-2C2D-48FC-808F-D318D78C4636}, 2</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsMappedDrive
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Volume.IsMappedDrive;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Volume.IsRoot -- PKEY_Volume_IsRoot</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 10 (Filesystem Volume Properties)</para>
+ /// </summary>
+ public ShellProperty<Boolean?> IsRoot
+ {
+ get
+ {
+ PropertyKey key = SystemProperties.System.Volume.IsRoot;
+
+ if (!hashtable.ContainsKey(key))
+ {
+ hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<Boolean?>(key));
+ }
+
+ return hashtable[key] as ShellProperty<Boolean?>;
+ }
+ }
+ #endregion
+
+
+ #region sub-namespaces
+ #endregion
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/SystemProperties.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/SystemProperties.cs
new file mode 100644
index 0000000000..2174940404
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/SystemProperties.cs
@@ -0,0 +1,12306 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics.CodeAnalysis;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+
+
+ /// <summary>
+ /// Provides easy access to all the system properties (property keys and their descriptions)
+ /// </summary>
+ public static class SystemProperties
+ {
+
+ /// <summary>
+ /// Returns the property description for a given property key.
+ /// </summary>
+ /// <param name="propertyKey">Property key of the property whose description is required.</param>
+ /// <returns>Property Description for a given property key</returns>
+ public static ShellPropertyDescription GetPropertyDescription(PropertyKey propertyKey)
+ {
+ return ShellPropertyDescriptionsCache.Cache.GetPropertyDescription(propertyKey);
+ }
+
+
+ /// <summary>
+ /// Gets the property description for a given property's canonical name.
+ /// </summary>
+ /// <param name="canonicalName">Canonical name of the property whose description is required.</param>
+ /// <returns>Property Description for a given property key</returns>
+ public static ShellPropertyDescription GetPropertyDescription(string canonicalName)
+ {
+ PropertyKey propKey;
+
+ int result = PropertySystemNativeMethods.PSGetPropertyKeyFromName(canonicalName, out propKey);
+
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new ArgumentException(LocalizedMessages.ShellInvalidCanonicalName, Marshal.GetExceptionForHR(result));
+ }
+ return ShellPropertyDescriptionsCache.Cache.GetPropertyDescription(propKey);
+ }
+
+ /// <summary>
+ /// System Properties
+ /// </summary>
+ public static class System
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.AcquisitionID -- PKEY_AcquisitionID</para>
+ /// <para>Description: Hash to determine acquisition session.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {65A98875-3C80-40AB-ABBC-EFDAF77DBEE2}, 100</para>
+ /// </summary>
+ public static PropertyKey AcquisitionID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{65A98875-3C80-40AB-ABBC-EFDAF77DBEE2}"), 100);
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ApplicationName -- PKEY_ApplicationName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 18 (PIDSI_APPNAME)</para>
+ /// </summary>
+ public static PropertyKey ApplicationName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 18);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Author -- PKEY_Author</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 4 (PIDSI_AUTHOR)</para>
+ /// </summary>
+ public static PropertyKey Author
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Capacity -- PKEY_Capacity</para>
+ /// <para>Description: The amount of total space in bytes.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 3 (PID_VOLUME_CAPACITY) (Filesystem Volume Properties)</para>
+ /// </summary>
+ public static PropertyKey Capacity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9B174B35-40FF-11D2-A27E-00C04FC30871}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Category -- PKEY_Category</para>
+ /// <para>Description: Legacy code treats this as VT_LPSTR.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 2 (PIDDSI_CATEGORY)</para>
+ /// </summary>
+ public static PropertyKey Category
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Comment -- PKEY_Comment</para>
+ /// <para>Description: Comments.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 6 (PIDSI_COMMENTS)</para>
+ /// </summary>
+ public static PropertyKey Comment
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Company -- PKEY_Company</para>
+ /// <para>Description: The company or publisher.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 15 (PIDDSI_COMPANY)</para>
+ /// </summary>
+ public static PropertyKey Company
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 15);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ComputerName -- PKEY_ComputerName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 5 (PID_COMPUTERNAME)</para>
+ /// </summary>
+ public static PropertyKey ComputerName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ContainedItems -- PKEY_ContainedItems</para>
+ /// <para>Description: The list of type of items, this item contains. For example, this item contains urls, attachments etc.
+ ///This is represented as a vector array of GUIDs where each GUID represents certain type.
+ ///</para>
+ /// <para>Type: Multivalue Guid -- VT_VECTOR | VT_CLSID (For variants: VT_ARRAY | VT_CLSID)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 29</para>
+ /// </summary>
+ public static PropertyKey ContainedItems
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 29);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ContentStatus -- PKEY_ContentStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 27</para>
+ /// </summary>
+ public static PropertyKey ContentStatus
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 27);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ContentType -- PKEY_ContentType</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 26</para>
+ /// </summary>
+ public static PropertyKey ContentType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 26);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Copyright -- PKEY_Copyright</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 11 (PIDMSI_COPYRIGHT)</para>
+ /// </summary>
+ public static PropertyKey Copyright
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateAccessed -- PKEY_DateAccessed</para>
+ /// <para>Description: The time of the last access to the item. The Indexing Service friendly name is 'access'.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 16 (PID_STG_ACCESSTIME)</para>
+ /// </summary>
+ public static PropertyKey DateAccessed
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 16);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateAcquired -- PKEY_DateAcquired</para>
+ /// <para>Description: The time the file entered the system via acquisition. This is not the same as System.DateImported.
+ ///Examples are when pictures are acquired from a camera, or when music is purchased online.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {2CBAA8F5-D81F-47CA-B17A-F8D822300131}, 100</para>
+ /// </summary>
+ public static PropertyKey DateAcquired
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2CBAA8F5-D81F-47CA-B17A-F8D822300131}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateArchived -- PKEY_DateArchived</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {43F8D7B7-A444-4F87-9383-52271C9B915C}, 100</para>
+ /// </summary>
+ public static PropertyKey DateArchived
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{43F8D7B7-A444-4F87-9383-52271C9B915C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateCompleted -- PKEY_DateCompleted</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {72FAB781-ACDA-43E5-B155-B2434F85E678}, 100</para>
+ /// </summary>
+ public static PropertyKey DateCompleted
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{72FAB781-ACDA-43E5-B155-B2434F85E678}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateCreated -- PKEY_DateCreated</para>
+ /// <para>Description: The date and time the item was created. The Indexing Service friendly name is 'create'.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 15 (PID_STG_CREATETIME)</para>
+ /// </summary>
+ public static PropertyKey DateCreated
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 15);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateImported -- PKEY_DateImported</para>
+ /// <para>Description: The time the file is imported into a separate database. This is not the same as System.DateAcquired. (Eg, 2003:05:22 13:55:04)
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 18258</para>
+ /// </summary>
+ public static PropertyKey DateImported
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 18258);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DateModified -- PKEY_DateModified</para>
+ /// <para>Description: The date and time of the last write to the item. The Indexing Service friendly name is 'write'.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 14 (PID_STG_WRITETIME)</para>
+ /// </summary>
+ public static PropertyKey DateModified
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DescriptionID -- PKEY_DescriptionID</para>
+ /// <para>Description: The contents of a SHDESCRIPTIONID structure as a buffer of bytes.
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 2 (PID_DESCRIPTIONID)</para>
+ /// </summary>
+ public static PropertyKey DescriptionID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DueDate -- PKEY_DueDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {3F8472B5-E0AF-4DB2-8071-C53FE76AE7CE}, 100</para>
+ /// </summary>
+ public static PropertyKey DueDate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{3F8472B5-E0AF-4DB2-8071-C53FE76AE7CE}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.EndDate -- PKEY_EndDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {C75FAA05-96FD-49E7-9CB4-9F601082D553}, 100</para>
+ /// </summary>
+ public static PropertyKey EndDate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C75FAA05-96FD-49E7-9CB4-9F601082D553}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileAllocationSize -- PKEY_FileAllocationSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 18 (PID_STG_ALLOCSIZE)</para>
+ /// </summary>
+ public static PropertyKey FileAllocationSize
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 18);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileAttributes -- PKEY_FileAttributes</para>
+ /// <para>Description: This is the WIN32_FIND_DATA dwFileAttributes for the file-based item.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 13 (PID_STG_ATTRIBUTES)</para>
+ /// </summary>
+ public static PropertyKey FileAttributes
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileCount -- PKEY_FileCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 12</para>
+ /// </summary>
+ public static PropertyKey FileCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileDescription -- PKEY_FileDescription</para>
+ /// <para>Description: This is a user-friendly description of the file.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 3 (PIDVSI_FileDescription)</para>
+ /// </summary>
+ public static PropertyKey FileDescription
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CEF7D53-FA64-11D1-A203-0000F81FEDEE}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileExtension -- PKEY_FileExtension</para>
+ /// <para>Description: This is the file extension of the file based item, including the leading period.
+ ///
+ ///If System.FileName is VT_EMPTY, then this property should be too. Otherwise, it should be derived
+ ///appropriately by the data source from System.FileName. If System.FileName does not have a file
+ ///extension, this value should be VT_EMPTY.
+ ///
+ ///To obtain the type of any item (including an item that is not a file), use System.ItemType.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" ".txt"
+ /// "\\server\share\mydir\goodnews.doc" ".doc"
+ /// "\\server\share\numbers.xls" ".xls"
+ /// "\\server\share\folder" VT_EMPTY
+ /// "c:\foo\MyFolder" VT_EMPTY
+ /// [desktop] VT_EMPTY
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E4F10A3C-49E6-405D-8288-A23BD4EEAA6C}, 100</para>
+ /// </summary>
+ public static PropertyKey FileExtension
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E4F10A3C-49E6-405D-8288-A23BD4EEAA6C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileFRN -- PKEY_FileFRN</para>
+ /// <para>Description: This is the unique file ID, also known as the File Reference Number. For a given file, this is the same value
+ ///as is found in the structure variable FILE_ID_BOTH_DIR_INFO.FileId, via GetFileInformationByHandleEx().
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 21 (PID_STG_FRN)</para>
+ /// </summary>
+ public static PropertyKey FileFRN
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 21);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileName -- PKEY_FileName</para>
+ /// <para>Description: This is the file name (including extension) of the file.
+ ///
+ ///It is possible that the item might not exist on a filesystem (ie, it may not be opened
+ ///using CreateFile). Nonetheless, if the item is represented as a file from the logical sense
+ ///(and its name follows standard Win32 file-naming syntax), then the data source should emit this property.
+ ///
+ ///If an item is not a file, then the value for this property is VT_EMPTY. See
+ ///System.ItemNameDisplay.
+ ///
+ ///This has the same value as System.ParsingName for items that are provided by the Shell's file folder.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "hello.txt"
+ /// "\\server\share\mydir\goodnews.doc" "goodnews.doc"
+ /// "\\server\share\numbers.xls" "numbers.xls"
+ /// "c:\foo\MyFolder" "MyFolder"
+ /// (email message) VT_EMPTY
+ /// (song on portable device) "song.wma"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {41CF5AE0-F75A-4806-BD87-59C7D9248EB9}, 100</para>
+ /// </summary>
+ public static PropertyKey FileName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{41CF5AE0-F75A-4806-BD87-59C7D9248EB9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileOwner -- PKEY_FileOwner</para>
+ /// <para>Description: This is the owner of the file, according to the file system.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Misc) {9B174B34-40FF-11D2-A27E-00C04FC30871}, 4 (PID_MISC_OWNER)</para>
+ /// </summary>
+ public static PropertyKey FileOwner
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9B174B34-40FF-11D2-A27E-00C04FC30871}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FileVersion -- PKEY_FileVersion</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 4 (PIDVSI_FileVersion)</para>
+ /// </summary>
+ public static PropertyKey FileVersion
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CEF7D53-FA64-11D1-A203-0000F81FEDEE}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FindData -- PKEY_FindData</para>
+ /// <para>Description: WIN32_FIND_DATAW in buffer of bytes.
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 0 (PID_FINDDATA)</para>
+ /// </summary>
+ public static PropertyKey FindData
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 0);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagColor -- PKEY_FlagColor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {67DF94DE-0CA7-4D6F-B792-053A3E4F03CF}, 100</para>
+ /// </summary>
+ public static PropertyKey FlagColor
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{67DF94DE-0CA7-4D6F-B792-053A3E4F03CF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagColorText -- PKEY_FlagColorText</para>
+ /// <para>Description: This is the user-friendly form of System.FlagColor. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {45EAE747-8E2A-40AE-8CBF-CA52ABA6152A}, 100</para>
+ /// </summary>
+ public static PropertyKey FlagColorText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{45EAE747-8E2A-40AE-8CBF-CA52ABA6152A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagStatus -- PKEY_FlagStatus</para>
+ /// <para>Description: Status of Flag. Values: (0=none 1=white 2=Red). cdoPR_FLAG_STATUS
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 12</para>
+ /// </summary>
+ public static PropertyKey FlagStatus
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FlagStatusText -- PKEY_FlagStatusText</para>
+ /// <para>Description: This is the user-friendly form of System.FlagStatus. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DC54FD2E-189D-4871-AA01-08C2F57A4ABC}, 100</para>
+ /// </summary>
+ public static PropertyKey FlagStatusText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DC54FD2E-189D-4871-AA01-08C2F57A4ABC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FreeSpace -- PKEY_FreeSpace</para>
+ /// <para>Description: The amount of free space in bytes.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 2 (PID_VOLUME_FREE) (Filesystem Volume Properties)</para>
+ /// </summary>
+ public static PropertyKey FreeSpace
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9B174B35-40FF-11D2-A27E-00C04FC30871}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.FullText -- PKEY_FullText</para>
+ /// <para>Description: This PKEY is used to specify search terms that should be applied as broadly as possible,
+ ///across all valid properties for the data source(s) being searched. It should not be
+ ///emitted from a data source.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {1E3EE840-BC2B-476C-8237-2ACD1A839B22}, 6</para>
+ /// </summary>
+ public static PropertyKey FullText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1E3EE840-BC2B-476C-8237-2ACD1A839B22}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity -- PKEY_Identity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A26F4AFC-7346-4299-BE47-EB1AE613139F}, 100</para>
+ /// </summary>
+ public static PropertyKey IdentityProperty
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A26F4AFC-7346-4299-BE47-EB1AE613139F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ImageParsingName -- PKEY_ImageParsingName</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D7750EE0-C6A4-48EC-B53E-B87B52E6D073}, 100</para>
+ /// </summary>
+ public static PropertyKey ImageParsingName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D7750EE0-C6A4-48EC-B53E-B87B52E6D073}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Importance -- PKEY_Importance</para>
+ /// <para>Description: </para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 11</para>
+ /// </summary>
+ public static PropertyKey Importance
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ImportanceText -- PKEY_ImportanceText</para>
+ /// <para>Description: This is the user-friendly form of System.Importance. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A3B29791-7713-4E1D-BB40-17DB85F01831}, 100</para>
+ /// </summary>
+ public static PropertyKey ImportanceText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A3B29791-7713-4E1D-BB40-17DB85F01831}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.InfoTipText -- PKEY_InfoTipText</para>
+ /// <para>Description: The text (with formatted property values) to show in the infotip.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 17</para>
+ /// </summary>
+ public static PropertyKey InfoTipText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 17);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.InternalName -- PKEY_InternalName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 5 (PIDVSI_InternalName)</para>
+ /// </summary>
+ public static PropertyKey InternalName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CEF7D53-FA64-11D1-A203-0000F81FEDEE}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsAttachment -- PKEY_IsAttachment</para>
+ /// <para>Description: Identifies if this item is an attachment.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {F23F425C-71A1-4FA8-922F-678EA4A60408}, 100</para>
+ /// </summary>
+ public static PropertyKey IsAttachment
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F23F425C-71A1-4FA8-922F-678EA4A60408}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsDefaultNonOwnerSaveLocation -- PKEY_IsDefaultNonOwnerSaveLocation</para>
+ /// <para>Description: Identifies the default save location for a library for non-owners of the library
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 5</para>
+ /// </summary>
+ public static PropertyKey IsDefaultNonOwnerSaveLocation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsDefaultSaveLocation -- PKEY_IsDefaultSaveLocation</para>
+ /// <para>Description: Identifies the default save location for a library for the owner of the library
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 3</para>
+ /// </summary>
+ public static PropertyKey IsDefaultSaveLocation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsDeleted -- PKEY_IsDeleted</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5CDA5FC8-33EE-4FF3-9094-AE7BD8868C4D}, 100</para>
+ /// </summary>
+ public static PropertyKey IsDeleted
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5CDA5FC8-33EE-4FF3-9094-AE7BD8868C4D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsEncrypted -- PKEY_IsEncrypted</para>
+ /// <para>Description: Is the item encrypted?
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {90E5E14E-648B-4826-B2AA-ACAF790E3513}, 10</para>
+ /// </summary>
+ public static PropertyKey IsEncrypted
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{90E5E14E-648B-4826-B2AA-ACAF790E3513}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsFlagged -- PKEY_IsFlagged</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5DA84765-E3FF-4278-86B0-A27967FBDD03}, 100</para>
+ /// </summary>
+ public static PropertyKey IsFlagged
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5DA84765-E3FF-4278-86B0-A27967FBDD03}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsFlaggedComplete -- PKEY_IsFlaggedComplete</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {A6F360D2-55F9-48DE-B909-620E090A647C}, 100</para>
+ /// </summary>
+ public static PropertyKey IsFlaggedComplete
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A6F360D2-55F9-48DE-B909-620E090A647C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsIncomplete -- PKEY_IsIncomplete</para>
+ /// <para>Description: Identifies if the message was not completely received for some error condition.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {346C8BD1-2E6A-4C45-89A4-61B78E8E700F}, 100</para>
+ /// </summary>
+ public static PropertyKey IsIncomplete
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{346C8BD1-2E6A-4C45-89A4-61B78E8E700F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsLocationSupported -- PKEY_IsLocationSupported</para>
+ /// <para>Description: A bool value to know if a location is supported (locally indexable, or remotely indexed).
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 8</para>
+ /// </summary>
+ public static PropertyKey IsLocationSupported
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsPinnedToNameSpaceTree -- PKEY_IsPinnedToNameSpaceTree</para>
+ /// <para>Description: A bool value to know if a shell folder is pinned to the navigation pane
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 2</para>
+ /// </summary>
+ public static PropertyKey IsPinnedToNamespaceTree
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsRead -- PKEY_IsRead</para>
+ /// <para>Description: Has the item been read?
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 10</para>
+ /// </summary>
+ public static PropertyKey IsRead
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsSearchOnlyItem -- PKEY_IsSearchOnlyItem</para>
+ /// <para>Description: Identifies if a location or a library is search only
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 4</para>
+ /// </summary>
+ public static PropertyKey IsSearchOnlyItem
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsSendToTarget -- PKEY_IsSendToTarget</para>
+ /// <para>Description: Provided by certain shell folders. Return TRUE if the folder is a valid Send To target.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 33</para>
+ /// </summary>
+ public static PropertyKey IsSendToTarget
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 33);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IsShared -- PKEY_IsShared</para>
+ /// <para>Description: Is this item shared? This only checks for ACLs that are not inherited.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}, 100</para>
+ /// </summary>
+ public static PropertyKey IsShared
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemAuthors -- PKEY_ItemAuthors</para>
+ /// <para>Description: This is the generic list of authors associated with an item.
+ ///
+ ///For example, the artist name for a track is the item author.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D0A04F0A-462A-48A4-BB2F-3706E88DBD7D}, 100</para>
+ /// </summary>
+ public static PropertyKey ItemAuthors
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D0A04F0A-462A-48A4-BB2F-3706E88DBD7D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemClassType -- PKEY_ItemClassType</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {048658AD-2DB8-41A4-BBB6-AC1EF1207EB1}, 100</para>
+ /// </summary>
+ public static PropertyKey ItemClassType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{048658AD-2DB8-41A4-BBB6-AC1EF1207EB1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemDate -- PKEY_ItemDate</para>
+ /// <para>Description: This is the main date for an item. The date of interest.
+ ///
+ ///For example, for photos this maps to System.Photo.DateTaken.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {F7DB74B4-4287-4103-AFBA-F1B13DCD75CF}, 100</para>
+ /// </summary>
+ public static PropertyKey ItemDate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F7DB74B4-4287-4103-AFBA-F1B13DCD75CF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemFolderNameDisplay -- PKEY_ItemFolderNameDisplay</para>
+ /// <para>Description: This is the user-friendly display name of the parent folder of an item.
+ ///
+ ///If System.ItemFolderPathDisplay is VT_EMPTY, then this property should be too. Otherwise, it
+ ///should be derived appropriately by the data source from System.ItemFolderPathDisplay.
+ ///
+ ///If the folder is a file folder, the value will be localized if a localized name is available.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "bar"
+ /// "\\server\share\mydir\goodnews.doc" "mydir"
+ /// "\\server\share\numbers.xls" "share"
+ /// "c:\foo\MyFolder" "foo"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Inbox"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 2 (PID_STG_DIRECTORY)</para>
+ /// </summary>
+ public static PropertyKey ItemFolderNameDisplay
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemFolderPathDisplay -- PKEY_ItemFolderPathDisplay</para>
+ /// <para>Description: This is the user-friendly display path of the parent folder of an item.
+ ///
+ ///If System.ItemPathDisplay is VT_EMPTY, then this property should be too. Otherwise, it should
+ ///be derived appropriately by the data source from System.ItemPathDisplay.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "c:\foo\bar"
+ /// "\\server\share\mydir\goodnews.doc" "\\server\share\mydir"
+ /// "\\server\share\numbers.xls" "\\server\share"
+ /// "c:\foo\MyFolder" "c:\foo"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "/Mailbox Account/Inbox"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 6</para>
+ /// </summary>
+ public static PropertyKey ItemFolderPathDisplay
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemFolderPathDisplayNarrow -- PKEY_ItemFolderPathDisplayNarrow</para>
+ /// <para>Description: This is the user-friendly display path of the parent folder of an item. The format of the string
+ ///should be tailored such that the folder name comes first, to optimize for a narrow viewing column.
+ ///
+ ///If the folder is a file folder, the value includes localized names if they are present.
+ ///
+ ///If System.ItemFolderPathDisplay is VT_EMPTY, then this property should be too. Otherwise, it should
+ ///be derived appropriately by the data source from System.ItemFolderPathDisplay.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "bar (c:\foo)"
+ /// "\\server\share\mydir\goodnews.doc" "mydir (\\server\share)"
+ /// "\\server\share\numbers.xls" "share (\\server)"
+ /// "c:\foo\MyFolder" "foo (c:\)"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Inbox (/Mailbox Account)"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DABD30ED-0043-4789-A7F8-D013A4736622}, 100</para>
+ /// </summary>
+ public static PropertyKey ItemFolderPathDisplayNarrow
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DABD30ED-0043-4789-A7F8-D013A4736622}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemName -- PKEY_ItemName</para>
+ /// <para>Description: This is the base-name of the System.ItemNameDisplay.
+ ///
+ ///If the item is a file this property
+ ///includes the extension in all cases, and will be localized if a localized name is available.
+ ///
+ ///If the item is a message, then the value of this property does not include the forwarding or
+ ///reply prefixes (see System.ItemNamePrefix).
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6B8DA074-3B5C-43BC-886F-0A2CDCE00B6F}, 100</para>
+ /// </summary>
+ public static PropertyKey ItemName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6B8DA074-3B5C-43BC-886F-0A2CDCE00B6F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemNameDisplay -- PKEY_ItemNameDisplay</para>
+ /// <para>Description: This is the display name in "most complete" form. This is the best effort unique representation
+ ///of the name of an item that makes sense for end users to read. It is the concatentation of
+ ///System.ItemNamePrefix and System.ItemName.
+ ///
+ ///If the item is a file this property
+ ///includes the extension in all cases, and will be localized if a localized name is available.
+ ///
+ ///There are acceptable cases when System.FileName is not VT_EMPTY, yet the value of this property
+ ///is completely different. Email messages are a key example. If the item is an email message,
+ ///the item name is likely the subject. In that case, the value must be the concatenation of the
+ ///System.ItemNamePrefix and System.ItemName. Since the value of System.ItemNamePrefix excludes
+ ///any trailing whitespace, the concatenation must include a whitespace when generating System.ItemNameDisplay.
+ ///
+ ///Note that this property is not guaranteed to be unique, but the idea is to promote the most likely
+ ///candidate that can be unique and also makes sense for end users. For example, for documents, you
+ ///might think about using System.Title as the System.ItemNameDisplay, but in practice the title of
+ ///the documents may not be useful or unique enough to be of value as the sole System.ItemNameDisplay.
+ ///Instead, providing the value of System.FileName as the value of System.ItemNameDisplay is a better
+ ///candidate. In Windows Mail, the emails are stored in the file system as .eml files and the
+ ///System.FileName for those files are not human-friendly as they contain GUIDs. In this example,
+ ///promoting System.Subject as System.ItemNameDisplay makes more sense.
+ ///
+ ///Compatibility notes:
+ ///
+ ///Shell folder implementations on Vista: use PKEY_ItemNameDisplay for the name column when
+ ///you want Explorer to call ISF::GetDisplayNameOf(SHGDN_NORMAL) to get the value of the name. Use
+ ///another PKEY (like PKEY_ItemName) when you want Explorer to call either the folder's property store or
+ ///ISF2::GetDetailsEx in order to get the value of the name.
+ ///
+ ///Shell folder implementations on XP: the first column needs to be the name column, and Explorer
+ ///will call ISF::GetDisplayNameOf to get the value of the name. The PKEY/SCID does not matter.
+ ///
+ ///Example values:
+ ///
+ /// File: "hello.txt"
+ /// Message: "Re: Let's talk about Tom's argyle socks!"
+ /// Device folder: "song.wma"
+ /// Folder: "Documents"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 10 (PID_STG_NAME)</para>
+ /// </summary>
+ public static PropertyKey ItemNameDisplay
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemNamePrefix -- PKEY_ItemNamePrefix</para>
+ /// <para>Description: This is the prefix of an item, used for email messages.
+ ///where the subject begins with "Re:" which is the prefix.
+ ///
+ ///If the item is a file, then the value of this property is VT_EMPTY.
+ ///
+ ///If the item is a message, then the value of this property is the forwarding or reply
+ ///prefixes (including delimiting colon, but no whitespace), or VT_EMPTY if there is no prefix.
+ ///
+ ///Example values:
+ ///
+ ///System.ItemNamePrefix System.ItemName System.ItemNameDisplay
+ ///--------------------- ------------------- ----------------------
+ ///VT_EMPTY "Great day" "Great day"
+ ///"Re:" "Great day" "Re: Great day"
+ ///"Fwd: " "Monthly budget" "Fwd: Monthly budget"
+ ///VT_EMPTY "accounts.xls" "accounts.xls"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D7313FF1-A77A-401C-8C99-3DBDD68ADD36}, 100</para>
+ /// </summary>
+ public static PropertyKey ItemNamePrefix
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D7313FF1-A77A-401C-8C99-3DBDD68ADD36}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemParticipants -- PKEY_ItemParticipants</para>
+ /// <para>Description: This is the generic list of people associated with an item and who contributed
+ ///to the item.
+ ///
+ ///For example, this is the combination of people in the To list, Cc list and
+ ///sender of an email message.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D4D0AA16-9948-41A4-AA85-D97FF9646993}, 100</para>
+ /// </summary>
+ public static PropertyKey ItemParticipants
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D4D0AA16-9948-41A4-AA85-D97FF9646993}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemPathDisplay -- PKEY_ItemPathDisplay</para>
+ /// <para>Description: This is the user-friendly display path to the item.
+ ///
+ ///If the item is a file or folder this property
+ ///includes the extension in all cases, and will be localized if a localized name is available.
+ ///
+ ///For other items,this is the user-friendly equivalent, assuming the item exists in hierarchical storage.
+ ///
+ ///Unlike System.ItemUrl, this property value does not include the URL scheme.
+ ///
+ ///To parse an item path, use System.ItemUrl or System.ParsingPath. To reference shell
+ ///namespace items using shell APIs, use System.ParsingPath.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "c:\foo\bar\hello.txt"
+ /// "\\server\share\mydir\goodnews.doc" "\\server\share\mydir\goodnews.doc"
+ /// "\\server\share\numbers.xls" "\\server\share\numbers.xls"
+ /// "c:\foo\MyFolder" "c:\foo\MyFolder"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "/Mailbox Account/Inbox/'Re: Hello!'"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 7</para>
+ /// </summary>
+ public static PropertyKey ItemPathDisplay
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemPathDisplayNarrow -- PKEY_ItemPathDisplayNarrow</para>
+ /// <para>Description: This is the user-friendly display path to the item. The format of the string should be
+ ///tailored such that the name comes first, to optimize for a narrow viewing column.
+ ///
+ ///If the item is a file, the value excludes the file extension, and includes localized names if they are present.
+ ///If the item is a message, the value includes the System.ItemNamePrefix.
+ ///
+ ///To parse an item path, use System.ItemUrl or System.ParsingPath.
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "hello (c:\foo\bar)"
+ /// "\\server\share\mydir\goodnews.doc" "goodnews (\\server\share\mydir)"
+ /// "\\server\share\folder" "folder (\\server\share)"
+ /// "c:\foo\MyFolder" "MyFolder (c:\foo)"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Re: Hello! (/Mailbox Account/Inbox)"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 8</para>
+ /// </summary>
+ public static PropertyKey ItemPathDisplayNarrow
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemType -- PKEY_ItemType</para>
+ /// <para>Description: This is the canonical type of the item and is intended to be programmatically
+ ///parsed.
+ ///
+ ///If there is no canonical type, the value is VT_EMPTY.
+ ///
+ ///If the item is a file (ie, System.FileName is not VT_EMPTY), the value is the same as
+ ///System.FileExtension.
+ ///
+ ///Use System.ItemTypeText when you want to display the type to end users in a view. (If
+ /// the item is a file, passing the System.ItemType value to PSFormatForDisplay will
+ /// result in the same value as System.ItemTypeText.)
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" ".txt"
+ /// "\\server\share\mydir\goodnews.doc" ".doc"
+ /// "\\server\share\folder" "Directory"
+ /// "c:\foo\MyFolder" "Directory"
+ /// [desktop] "Folder"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "MAPI/IPM.Message"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 11</para>
+ /// </summary>
+ public static PropertyKey ItemType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemTypeText -- PKEY_ItemTypeText</para>
+ /// <para>Description: This is the user friendly type name of the item. This is not intended to be
+ ///programmatically parsed.
+ ///
+ ///If System.ItemType is VT_EMPTY, the value of this property is also VT_EMPTY.
+ ///
+ ///If the item is a file, the value of this property is the same as if you passed the
+ ///file's System.ItemType value to PSFormatForDisplay.
+ ///
+ ///This property should not be confused with System.Kind, where System.Kind is a high-level
+ ///user friendly kind name. For example, for a document, System.Kind = "Document" and
+ ///System.Item.Type = ".doc" and System.Item.TypeText = "Microsoft Word Document"
+ ///
+ ///Example values:
+ ///
+ /// If the path is... The property value is...
+ /// ----------------- ------------------------
+ /// "c:\foo\bar\hello.txt" "Text File"
+ /// "\\server\share\mydir\goodnews.doc" "Microsoft Word Document"
+ /// "\\server\share\folder" "File Folder"
+ /// "c:\foo\MyFolder" "File Folder"
+ /// "/Mailbox Account/Inbox/'Re: Hello!'" "Outlook E-Mail Message"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 4 (PID_STG_STORAGETYPE)</para>
+ /// </summary>
+ public static PropertyKey ItemTypeText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ItemUrl -- PKEY_ItemUrl</para>
+ /// <para>Description: This always represents a well formed URL that points to the item.
+ ///
+ ///To reference shell namespace items using shell APIs, use System.ParsingPath.
+ ///
+ ///Example values:
+ ///
+ /// Files: "file:///c:/foo/bar/hello.txt"
+ /// "csc://{GUID}/..."
+ /// Messages: "mapi://..."
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 9 (DISPID_QUERY_VIRTUALPATH)</para>
+ /// </summary>
+ public static PropertyKey ItemUrl
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49691C90-7E17-101A-A91C-08002B2ECDA9}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Keywords -- PKEY_Keywords</para>
+ /// <para>Description: The keywords for the item. Also referred to as tags.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 5 (PIDSI_KEYWORDS)</para>
+ /// </summary>
+ public static PropertyKey Keywords
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Kind -- PKEY_Kind</para>
+ /// <para>Description: System.Kind is used to map extensions to various .Search folders.
+ ///Extensions are mapped to Kinds at HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap
+ ///The list of kinds is not extensible.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {1E3EE840-BC2B-476C-8237-2ACD1A839B22}, 3</para>
+ /// </summary>
+ public static PropertyKey Kind
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1E3EE840-BC2B-476C-8237-2ACD1A839B22}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.KindText -- PKEY_KindText</para>
+ /// <para>Description: This is the user-friendly form of System.Kind. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F04BEF95-C585-4197-A2B7-DF46FDC9EE6D}, 100</para>
+ /// </summary>
+ public static PropertyKey KindText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F04BEF95-C585-4197-A2B7-DF46FDC9EE6D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Language -- PKEY_Language</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 28</para>
+ /// </summary>
+ public static PropertyKey Language
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 28);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.MileageInformation -- PKEY_MileageInformation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FDF84370-031A-4ADD-9E91-0D775F1C6605}, 100</para>
+ /// </summary>
+ public static PropertyKey MileageInformation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FDF84370-031A-4ADD-9E91-0D775F1C6605}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.MIMEType -- PKEY_MIMEType</para>
+ /// <para>Description: The MIME type. Eg, for EML files: 'message/rfc822'.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0B63E350-9CCC-11D0-BCDB-00805FCCCE04}, 5</para>
+ /// </summary>
+ public static PropertyKey MIMEType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0B63E350-9CCC-11D0-BCDB-00805FCCCE04}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.NamespaceCLSID -- PKEY_NamespaceCLSID</para>
+ /// <para>Description: The CLSID of the name space extension for an item, the object that implements IShellFolder for this item
+ ///</para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 6</para>
+ /// </summary>
+ public static PropertyKey NamespaceClsid
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Null -- PKEY_Null</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {00000000-0000-0000-0000-000000000000}, 0</para>
+ /// </summary>
+ public static PropertyKey Null
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{00000000-0000-0000-0000-000000000000}"), 0);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OfflineAvailability -- PKEY_OfflineAvailability</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A94688B6-7D9F-4570-A648-E3DFC0AB2B3F}, 100</para>
+ /// </summary>
+ public static PropertyKey OfflineAvailability
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A94688B6-7D9F-4570-A648-E3DFC0AB2B3F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OfflineStatus -- PKEY_OfflineStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6D24888F-4718-4BDA-AFED-EA0FB4386CD8}, 100</para>
+ /// </summary>
+ public static PropertyKey OfflineStatus
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D24888F-4718-4BDA-AFED-EA0FB4386CD8}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OriginalFileName -- PKEY_OriginalFileName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 6</para>
+ /// </summary>
+ public static PropertyKey OriginalFileName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CEF7D53-FA64-11D1-A203-0000F81FEDEE}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.OwnerSID -- PKEY_OwnerSID</para>
+ /// <para>Description: SID of the user that owns the library.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}, 6</para>
+ /// </summary>
+ public static PropertyKey OwnerSid
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5D76B67F-9B3D-44BB-B6AE-25DA4F638A67}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParentalRating -- PKEY_ParentalRating</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 21 (PIDMSI_PARENTAL_RATING)</para>
+ /// </summary>
+ public static PropertyKey ParentalRating
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 21);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParentalRatingReason -- PKEY_ParentalRatingReason</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {10984E0A-F9F2-4321-B7EF-BAF195AF4319}, 100</para>
+ /// </summary>
+ public static PropertyKey ParentalRatingReason
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{10984E0A-F9F2-4321-B7EF-BAF195AF4319}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParentalRatingsOrganization -- PKEY_ParentalRatingsOrganization</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A7FE0840-1344-46F0-8D37-52ED712A4BF9}, 100</para>
+ /// </summary>
+ public static PropertyKey ParentalRatingsOrganization
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A7FE0840-1344-46F0-8D37-52ED712A4BF9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParsingBindContext -- PKEY_ParsingBindContext</para>
+ /// <para>Description: used to get the IBindCtx for an item for parsing
+ ///</para>
+ /// <para>Type: Any -- VT_NULL Legacy code may treat this as VT_UNKNOWN.</para>
+ /// <para>FormatID: {DFB9A04D-362F-4CA3-B30B-0254B17B5B84}, 100</para>
+ /// </summary>
+ public static PropertyKey ParsingBindContext
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DFB9A04D-362F-4CA3-B30B-0254B17B5B84}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParsingName -- PKEY_ParsingName</para>
+ /// <para>Description: The shell namespace name of an item relative to a parent folder. This name may be passed to
+ ///IShellFolder::ParseDisplayName() of the parent shell folder.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 24</para>
+ /// </summary>
+ public static PropertyKey ParsingName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 24);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ParsingPath -- PKEY_ParsingPath</para>
+ /// <para>Description: This is the shell namespace path to the item. This path may be passed to
+ ///SHParseDisplayName to parse the path to the correct shell folder.
+ ///
+ ///If the item is a file, the value is identical to System.ItemPathDisplay.
+ ///
+ ///If the item cannot be accessed through the shell namespace, this value is VT_EMPTY.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 30</para>
+ /// </summary>
+ public static PropertyKey ParsingPath
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 30);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PerceivedType -- PKEY_PerceivedType</para>
+ /// <para>Description: The perceived type of a shell item, based upon its canonical type.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 9</para>
+ /// </summary>
+ public static PropertyKey PerceivedType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PercentFull -- PKEY_PercentFull</para>
+ /// <para>Description: The amount filled as a percentage, multiplied by 100 (ie, the valid range is 0 through 100).
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 5 (Filesystem Volume Properties)</para>
+ /// </summary>
+ public static PropertyKey PercentFull
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9B174B35-40FF-11D2-A27E-00C04FC30871}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Priority -- PKEY_Priority</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {9C1FCF74-2D97-41BA-B4AE-CB2E3661A6E4}, 5</para>
+ /// </summary>
+ public static PropertyKey Priority
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9C1FCF74-2D97-41BA-B4AE-CB2E3661A6E4}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PriorityText -- PKEY_PriorityText</para>
+ /// <para>Description: This is the user-friendly form of System.Priority. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D98BE98B-B86B-4095-BF52-9D23B2E0A752}, 100</para>
+ /// </summary>
+ public static PropertyKey PriorityText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D98BE98B-B86B-4095-BF52-9D23B2E0A752}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Project -- PKEY_Project</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {39A7F922-477C-48DE-8BC8-B28441E342E3}, 100</para>
+ /// </summary>
+ public static PropertyKey Project
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{39A7F922-477C-48DE-8BC8-B28441E342E3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ProviderItemID -- PKEY_ProviderItemID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F21D9941-81F0-471A-ADEE-4E74B49217ED}, 100</para>
+ /// </summary>
+ public static PropertyKey ProviderItemID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F21D9941-81F0-471A-ADEE-4E74B49217ED}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Rating -- PKEY_Rating</para>
+ /// <para>Description: Indicates the users preference rating of an item on a scale of 1-99 (1-12 = One Star,
+ ///13-37 = Two Stars, 38-62 = Three Stars, 63-87 = Four Stars, 88-99 = Five Stars).
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 9 (PIDMSI_RATING)</para>
+ /// </summary>
+ public static PropertyKey Rating
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RatingText -- PKEY_RatingText</para>
+ /// <para>Description: This is the user-friendly form of System.Rating. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {90197CA7-FD8F-4E8C-9DA3-B57E1E609295}, 100</para>
+ /// </summary>
+ public static PropertyKey RatingText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{90197CA7-FD8F-4E8C-9DA3-B57E1E609295}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sensitivity -- PKEY_Sensitivity</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {F8D3F6AC-4874-42CB-BE59-AB454B30716A}, 100</para>
+ /// </summary>
+ public static PropertyKey Sensitivity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F8D3F6AC-4874-42CB-BE59-AB454B30716A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SensitivityText -- PKEY_SensitivityText</para>
+ /// <para>Description: This is the user-friendly form of System.Sensitivity. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D0C7F054-3F72-4725-8527-129A577CB269}, 100</para>
+ /// </summary>
+ public static PropertyKey SensitivityText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D0C7F054-3F72-4725-8527-129A577CB269}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SFGAOFlags -- PKEY_SFGAOFlags</para>
+ /// <para>Description: IShellFolder::GetAttributesOf flags, with SFGAO_PKEYSFGAOMASK attributes masked out.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 25</para>
+ /// </summary>
+ [SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags")]
+ public static PropertyKey SFGAOFlags
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 25);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SharedWith -- PKEY_SharedWith</para>
+ /// <para>Description: Who is the item shared with?
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}, 200</para>
+ /// </summary>
+ public static PropertyKey SharedWith
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}"), 200);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ShareUserRating -- PKEY_ShareUserRating</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 12 (PIDMSI_SHARE_USER_RATING)</para>
+ /// </summary>
+ public static PropertyKey ShareUserRating
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SharingStatus -- PKEY_SharingStatus</para>
+ /// <para>Description: What is the item's sharing status (not shared, shared, everyone (homegroup or everyone), or private)?
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}, 300</para>
+ /// </summary>
+ public static PropertyKey SharingStatus
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{EF884C5B-2BFE-41BB-AAE5-76EEDF4F9902}"), 300);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SimpleRating -- PKEY_SimpleRating</para>
+ /// <para>Description: Indicates the users preference rating of an item on a scale of 0-5 (0=unrated, 1=One Star, 2=Two Stars, 3=Three Stars,
+ ///4=Four Stars, 5=Five Stars)
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A09F084E-AD41-489F-8076-AA5BE3082BCA}, 100</para>
+ /// </summary>
+ public static PropertyKey SimpleRating
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A09F084E-AD41-489F-8076-AA5BE3082BCA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Size -- PKEY_Size</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 12 (PID_STG_SIZE)</para>
+ /// </summary>
+ public static PropertyKey Size
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SoftwareUsed -- PKEY_SoftwareUsed</para>
+ /// <para>Description: PropertyTagSoftwareUsed
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 305</para>
+ /// </summary>
+ public static PropertyKey SoftwareUsed
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 305);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.SourceItem -- PKEY_SourceItem</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {668CDFA5-7A1B-4323-AE4B-E527393A1D81}, 100</para>
+ /// </summary>
+ public static PropertyKey SourceItem
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{668CDFA5-7A1B-4323-AE4B-E527393A1D81}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.StartDate -- PKEY_StartDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {48FD6EC8-8A12-4CDF-A03E-4EC5A511EDDE}, 100</para>
+ /// </summary>
+ public static PropertyKey StartDate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{48FD6EC8-8A12-4CDF-A03E-4EC5A511EDDE}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Status -- PKEY_Status</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_IntSite) {000214A1-0000-0000-C000-000000000046}, 9</para>
+ /// </summary>
+ public static PropertyKey Status
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{000214A1-0000-0000-C000-000000000046}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Subject -- PKEY_Subject</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 3 (PIDSI_SUBJECT)</para>
+ /// </summary>
+ public static PropertyKey Subject
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Thumbnail -- PKEY_Thumbnail</para>
+ /// <para>Description: A data that represents the thumbnail in VT_CF format.
+ ///</para>
+ /// <para>Type: Clipboard -- VT_CF</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 17 (PIDSI_THUMBNAIL)</para>
+ /// </summary>
+ public static PropertyKey Thumbnail
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 17);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ThumbnailCacheId -- PKEY_ThumbnailCacheId</para>
+ /// <para>Description: Unique value that can be used as a key to cache thumbnails. The value changes when the name, volume, or data modified
+ ///of an item changes.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {446D16B1-8DAD-4870-A748-402EA43D788C}, 100</para>
+ /// </summary>
+ public static PropertyKey ThumbnailCacheId
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{446D16B1-8DAD-4870-A748-402EA43D788C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.ThumbnailStream -- PKEY_ThumbnailStream</para>
+ /// <para>Description: Data that represents the thumbnail in VT_STREAM format that GDI+/WindowsCodecs supports (jpg, png, etc).
+ ///</para>
+ /// <para>Type: Stream -- VT_STREAM</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 27</para>
+ /// </summary>
+ public static PropertyKey ThumbnailStream
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 27);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Title -- PKEY_Title</para>
+ /// <para>Description: Title of item.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 2 (PIDSI_TITLE)</para>
+ /// </summary>
+ public static PropertyKey Title
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.TotalFileSize -- PKEY_TotalFileSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_ShellDetails) {28636AA6-953D-11D2-B5D6-00C04FD918D0}, 14</para>
+ /// </summary>
+ public static PropertyKey TotalFileSize
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{28636AA6-953D-11D2-B5D6-00C04FD918D0}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Trademarks -- PKEY_Trademarks</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 9 (PIDVSI_Trademarks)</para>
+ /// </summary>
+ public static PropertyKey Trademarks
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CEF7D53-FA64-11D1-A203-0000F81FEDEE}"), 9);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+ #region sub-classes
+
+ /// <summary>
+ /// AppUserModel Properties
+ /// </summary>
+ public static class AppUserModel
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.ExcludeFromShowInNewInstall -- PKEY_AppUserModel_ExcludeFromShowInNewInstall</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 8</para>
+ /// </summary>
+ public static PropertyKey ExcludeFromShowInNewInstall
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.ID -- PKEY_AppUserModel_ID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 5</para>
+ /// </summary>
+ public static PropertyKey ID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.IsDestListSeparator -- PKEY_AppUserModel_IsDestListSeparator</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 6</para>
+ /// </summary>
+ public static PropertyKey IsDestinationListSeparator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.PreventPinning -- PKEY_AppUserModel_PreventPinning</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 9</para>
+ /// </summary>
+ public static PropertyKey PreventPinning
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.RelaunchCommand -- PKEY_AppUserModel_RelaunchCommand</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 2</para>
+ /// </summary>
+ public static PropertyKey RelaunchCommand
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.RelaunchDisplayNameResource -- PKEY_AppUserModel_RelaunchDisplayNameResource</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 4</para>
+ /// </summary>
+ public static PropertyKey RelaunchDisplayNameResource
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.AppUserModel.RelaunchIconResource -- PKEY_AppUserModel_RelaunchIconResource</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}, 3</para>
+ /// </summary>
+ public static PropertyKey RelaunchIconResource
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9F4C2855-9F79-4B39-A8D0-E1D42DE1D5F3}"), 3);
+
+ return key;
+ }
+ }
+ #endregion
+
+ }
+
+ /// <summary>
+ /// Audio Properties
+ /// </summary>
+ public static class Audio
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Audio.ChannelCount -- PKEY_Audio_ChannelCount</para>
+ /// <para>Description: Indicates the channel count for the audio file. Values: 1 (mono), 2 (stereo).
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 7 (PIDASI_CHANNEL_COUNT)</para>
+ /// </summary>
+ public static PropertyKey ChannelCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.Compression -- PKEY_Audio_Compression</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 10 (PIDASI_COMPRESSION)</para>
+ /// </summary>
+ public static PropertyKey Compression
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.EncodingBitrate -- PKEY_Audio_EncodingBitrate</para>
+ /// <para>Description: Indicates the average data rate in Hz for the audio file in "bits per second".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 4 (PIDASI_AVG_DATA_RATE)</para>
+ /// </summary>
+ public static PropertyKey EncodingBitrate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.Format -- PKEY_Audio_Format</para>
+ /// <para>Description: Indicates the format of the audio file.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_BSTR.</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 2 (PIDASI_FORMAT)</para>
+ /// </summary>
+ public static PropertyKey Format
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.IsVariableBitRate -- PKEY_Audio_IsVariableBitRate</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {E6822FEE-8C17-4D62-823C-8E9CFCBD1D5C}, 100</para>
+ /// </summary>
+ public static PropertyKey IsVariableBitrate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E6822FEE-8C17-4D62-823C-8E9CFCBD1D5C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.PeakValue -- PKEY_Audio_PeakValue</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2579E5D0-1116-4084-BD9A-9B4F7CB4DF5E}, 100</para>
+ /// </summary>
+ public static PropertyKey PeakValue
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2579E5D0-1116-4084-BD9A-9B4F7CB4DF5E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.SampleRate -- PKEY_Audio_SampleRate</para>
+ /// <para>Description: Indicates the audio sample rate for the audio file in "samples per second".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 5 (PIDASI_SAMPLE_RATE)</para>
+ /// </summary>
+ public static PropertyKey SampleRate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.SampleSize -- PKEY_Audio_SampleSize</para>
+ /// <para>Description: Indicates the audio sample size for the audio file in "bits per sample".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 6 (PIDASI_SAMPLE_SIZE)</para>
+ /// </summary>
+ public static PropertyKey SampleSize
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.StreamName -- PKEY_Audio_StreamName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 9 (PIDASI_STREAM_NAME)</para>
+ /// </summary>
+ public static PropertyKey StreamName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Audio.StreamNumber -- PKEY_Audio_StreamNumber</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 8 (PIDASI_STREAM_NUMBER)</para>
+ /// </summary>
+ public static PropertyKey StreamNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 8);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Calendar Properties
+ /// </summary>
+ public static class Calendar
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Calendar.Duration -- PKEY_Calendar_Duration</para>
+ /// <para>Description: The duration as specified in a string.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {293CA35A-09AA-4DD2-B180-1FE245728A52}, 100</para>
+ /// </summary>
+ public static PropertyKey Duration
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{293CA35A-09AA-4DD2-B180-1FE245728A52}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.IsOnline -- PKEY_Calendar_IsOnline</para>
+ /// <para>Description: Identifies if the event is an online event.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {BFEE9149-E3E2-49A7-A862-C05988145CEC}, 100</para>
+ /// </summary>
+ public static PropertyKey IsOnline
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BFEE9149-E3E2-49A7-A862-C05988145CEC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.IsRecurring -- PKEY_Calendar_IsRecurring</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {315B9C8D-80A9-4EF9-AE16-8E746DA51D70}, 100</para>
+ /// </summary>
+ public static PropertyKey IsRecurring
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{315B9C8D-80A9-4EF9-AE16-8E746DA51D70}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.Location -- PKEY_Calendar_Location</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F6272D18-CECC-40B1-B26A-3911717AA7BD}, 100</para>
+ /// </summary>
+ public static PropertyKey Location
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F6272D18-CECC-40B1-B26A-3911717AA7BD}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OptionalAttendeeAddresses -- PKEY_Calendar_OptionalAttendeeAddresses</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D55BAE5A-3892-417A-A649-C6AC5AAAEAB3}, 100</para>
+ /// </summary>
+ public static PropertyKey OptionalAttendeeAddresses
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D55BAE5A-3892-417A-A649-C6AC5AAAEAB3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OptionalAttendeeNames -- PKEY_Calendar_OptionalAttendeeNames</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {09429607-582D-437F-84C3-DE93A2B24C3C}, 100</para>
+ /// </summary>
+ public static PropertyKey OptionalAttendeeNames
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{09429607-582D-437F-84C3-DE93A2B24C3C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OrganizerAddress -- PKEY_Calendar_OrganizerAddress</para>
+ /// <para>Description: Address of the organizer organizing the event.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {744C8242-4DF5-456C-AB9E-014EFB9021E3}, 100</para>
+ /// </summary>
+ public static PropertyKey OrganizerAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{744C8242-4DF5-456C-AB9E-014EFB9021E3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.OrganizerName -- PKEY_Calendar_OrganizerName</para>
+ /// <para>Description: Name of the organizer organizing the event.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AAA660F9-9865-458E-B484-01BC7FE3973E}, 100</para>
+ /// </summary>
+ public static PropertyKey OrganizerName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AAA660F9-9865-458E-B484-01BC7FE3973E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ReminderTime -- PKEY_Calendar_ReminderTime</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {72FC5BA4-24F9-4011-9F3F-ADD27AFAD818}, 100</para>
+ /// </summary>
+ public static PropertyKey ReminderTime
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{72FC5BA4-24F9-4011-9F3F-ADD27AFAD818}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.RequiredAttendeeAddresses -- PKEY_Calendar_RequiredAttendeeAddresses</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {0BA7D6C3-568D-4159-AB91-781A91FB71E5}, 100</para>
+ /// </summary>
+ public static PropertyKey RequiredAttendeeAddresses
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0BA7D6C3-568D-4159-AB91-781A91FB71E5}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.RequiredAttendeeNames -- PKEY_Calendar_RequiredAttendeeNames</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {B33AF30B-F552-4584-936C-CB93E5CDA29F}, 100</para>
+ /// </summary>
+ public static PropertyKey RequiredAttendeeNames
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B33AF30B-F552-4584-936C-CB93E5CDA29F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.Resources -- PKEY_Calendar_Resources</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {00F58A38-C54B-4C40-8696-97235980EAE1}, 100</para>
+ /// </summary>
+ public static PropertyKey Resources
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{00F58A38-C54B-4C40-8696-97235980EAE1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ResponseStatus -- PKEY_Calendar_ResponseStatus</para>
+ /// <para>Description: This property stores the status of the user responses to meetings in her calendar.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {188C1F91-3C40-4132-9EC5-D8B03B72A8A2}, 100</para>
+ /// </summary>
+ public static PropertyKey ResponseStatus
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{188C1F91-3C40-4132-9EC5-D8B03B72A8A2}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ShowTimeAs -- PKEY_Calendar_ShowTimeAs</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {5BF396D4-5EB2-466F-BDE9-2FB3F2361D6E}, 100</para>
+ /// </summary>
+ public static PropertyKey ShowTimeAs
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5BF396D4-5EB2-466F-BDE9-2FB3F2361D6E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Calendar.ShowTimeAsText -- PKEY_Calendar_ShowTimeAsText</para>
+ /// <para>Description: This is the user-friendly form of System.Calendar.ShowTimeAs. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {53DA57CF-62C0-45C4-81DE-7610BCEFD7F5}, 100</para>
+ /// </summary>
+ public static PropertyKey ShowTimeAsText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{53DA57CF-62C0-45C4-81DE-7610BCEFD7F5}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Communication Properties
+ /// </summary>
+ public static class Communication
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Communication.AccountName -- PKEY_Communication_AccountName</para>
+ /// <para>Description: Account Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 9</para>
+ /// </summary>
+ public static PropertyKey AccountName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.DateItemExpires -- PKEY_Communication_DateItemExpires</para>
+ /// <para>Description: Date the item expires due to the retention policy.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {428040AC-A177-4C8A-9760-F6F761227F9A}, 100</para>
+ /// </summary>
+ public static PropertyKey DateItemExpires
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{428040AC-A177-4C8A-9760-F6F761227F9A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.FollowupIconIndex -- PKEY_Communication_FollowupIconIndex</para>
+ /// <para>Description: This is the icon index used on messages marked for followup.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {83A6347E-6FE4-4F40-BA9C-C4865240D1F4}, 100</para>
+ /// </summary>
+ public static PropertyKey FollowUpIconIndex
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{83A6347E-6FE4-4F40-BA9C-C4865240D1F4}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.HeaderItem -- PKEY_Communication_HeaderItem</para>
+ /// <para>Description: This property will be true if the item is a header item which means the item hasn't been fully downloaded.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {C9C34F84-2241-4401-B607-BD20ED75AE7F}, 100</para>
+ /// </summary>
+ public static PropertyKey HeaderItem
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9C34F84-2241-4401-B607-BD20ED75AE7F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.PolicyTag -- PKEY_Communication_PolicyTag</para>
+ /// <para>Description: This a string used to identify the retention policy applied to the item.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {EC0B4191-AB0B-4C66-90B6-C6637CDEBBAB}, 100</para>
+ /// </summary>
+ public static PropertyKey PolicyTag
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{EC0B4191-AB0B-4C66-90B6-C6637CDEBBAB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.SecurityFlags -- PKEY_Communication_SecurityFlags</para>
+ /// <para>Description: Security flags associated with the item to know if the item is encrypted, signed or DRM enabled.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {8619A4B6-9F4D-4429-8C0F-B996CA59E335}, 100</para>
+ /// </summary>
+ public static PropertyKey SecurityFlags
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8619A4B6-9F4D-4429-8C0F-B996CA59E335}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.Suffix -- PKEY_Communication_Suffix</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {807B653A-9E91-43EF-8F97-11CE04EE20C5}, 100</para>
+ /// </summary>
+ public static PropertyKey Suffix
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{807B653A-9E91-43EF-8F97-11CE04EE20C5}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.TaskStatus -- PKEY_Communication_TaskStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {BE1A72C6-9A1D-46B7-AFE7-AFAF8CEF4999}, 100</para>
+ /// </summary>
+ public static PropertyKey TaskStatus
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BE1A72C6-9A1D-46B7-AFE7-AFAF8CEF4999}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Communication.TaskStatusText -- PKEY_Communication_TaskStatusText</para>
+ /// <para>Description: This is the user-friendly form of System.Communication.TaskStatus. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A6744477-C237-475B-A075-54F34498292A}, 100</para>
+ /// </summary>
+ public static PropertyKey TaskStatusText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A6744477-C237-475B-A075-54F34498292A}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Computer Properties
+ /// </summary>
+ public static class Computer
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Computer.DecoratedFreeSpace -- PKEY_Computer_DecoratedFreeSpace</para>
+ /// <para>Description: Free space and total space: "%s free of %s"
+ ///</para>
+ /// <para>Type: Multivalue UInt64 -- VT_VECTOR | VT_UI8 (For variants: VT_ARRAY | VT_UI8)</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 7 (Filesystem Volume Properties)</para>
+ /// </summary>
+ public static PropertyKey DecoratedFreeSpace
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9B174B35-40FF-11D2-A27E-00C04FC30871}"), 7);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Contact Properties
+ /// </summary>
+ public static class Contact
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Contact.Anniversary -- PKEY_Contact_Anniversary</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {9AD5BADB-CEA7-4470-A03D-B84E51B9949E}, 100</para>
+ /// </summary>
+ public static PropertyKey Anniversary
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9AD5BADB-CEA7-4470-A03D-B84E51B9949E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.AssistantName -- PKEY_Contact_AssistantName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CD102C9C-5540-4A88-A6F6-64E4981C8CD1}, 100</para>
+ /// </summary>
+ public static PropertyKey AssistantName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CD102C9C-5540-4A88-A6F6-64E4981C8CD1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.AssistantTelephone -- PKEY_Contact_AssistantTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9A93244D-A7AD-4FF8-9B99-45EE4CC09AF6}, 100</para>
+ /// </summary>
+ public static PropertyKey AssistantTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9A93244D-A7AD-4FF8-9B99-45EE4CC09AF6}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Birthday -- PKEY_Contact_Birthday</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 47</para>
+ /// </summary>
+ public static PropertyKey Birthday
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 47);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddress -- PKEY_Contact_BusinessAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {730FB6DD-CF7C-426B-A03F-BD166CC9EE24}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{730FB6DD-CF7C-426B-A03F-BD166CC9EE24}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressCity -- PKEY_Contact_BusinessAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {402B5934-EC5A-48C3-93E6-85E86A2D934E}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessAddressCity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{402B5934-EC5A-48C3-93E6-85E86A2D934E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressCountry -- PKEY_Contact_BusinessAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {B0B87314-FCF6-4FEB-8DFF-A50DA6AF561C}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessAddressCountry
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B0B87314-FCF6-4FEB-8DFF-A50DA6AF561C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressPostalCode -- PKEY_Contact_BusinessAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E1D4A09E-D758-4CD1-B6EC-34A8B5A73F80}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E1D4A09E-D758-4CD1-B6EC-34A8B5A73F80}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressPostOfficeBox -- PKEY_Contact_BusinessAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BC4E71CE-17F9-48D5-BEE9-021DF0EA5409}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BC4E71CE-17F9-48D5-BEE9-021DF0EA5409}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressState -- PKEY_Contact_BusinessAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {446F787F-10C4-41CB-A6C4-4D0343551597}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessAddressState
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{446F787F-10C4-41CB-A6C4-4D0343551597}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessAddressStreet -- PKEY_Contact_BusinessAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DDD1460F-C0BF-4553-8CE4-10433C908FB0}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessAddressStreet
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DDD1460F-C0BF-4553-8CE4-10433C908FB0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessFaxNumber -- PKEY_Contact_BusinessFaxNumber</para>
+ /// <para>Description: Business fax number of the contact.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {91EFF6F3-2E27-42CA-933E-7C999FBE310B}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessFaxNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{91EFF6F3-2E27-42CA-933E-7C999FBE310B}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessHomePage -- PKEY_Contact_BusinessHomePage</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {56310920-2491-4919-99CE-EADB06FAFDB2}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessHomepage
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56310920-2491-4919-99CE-EADB06FAFDB2}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.BusinessTelephone -- PKEY_Contact_BusinessTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6A15E5A0-0A1E-4CD7-BB8C-D2F1B0C929BC}, 100</para>
+ /// </summary>
+ public static PropertyKey BusinessTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6A15E5A0-0A1E-4CD7-BB8C-D2F1B0C929BC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.CallbackTelephone -- PKEY_Contact_CallbackTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BF53D1C3-49E0-4F7F-8567-5A821D8AC542}, 100</para>
+ /// </summary>
+ public static PropertyKey CallbackTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BF53D1C3-49E0-4F7F-8567-5A821D8AC542}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.CarTelephone -- PKEY_Contact_CarTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8FDC6DEA-B929-412B-BA90-397A257465FE}, 100</para>
+ /// </summary>
+ public static PropertyKey CarTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8FDC6DEA-B929-412B-BA90-397A257465FE}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Children -- PKEY_Contact_Children</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D4729704-8EF1-43EF-9024-2BD381187FD5}, 100</para>
+ /// </summary>
+ public static PropertyKey Children
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D4729704-8EF1-43EF-9024-2BD381187FD5}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.CompanyMainTelephone -- PKEY_Contact_CompanyMainTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8589E481-6040-473D-B171-7FA89C2708ED}, 100</para>
+ /// </summary>
+ public static PropertyKey CompanyMainTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8589E481-6040-473D-B171-7FA89C2708ED}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Department -- PKEY_Contact_Department</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FC9F7306-FF8F-4D49-9FB6-3FFE5C0951EC}, 100</para>
+ /// </summary>
+ public static PropertyKey Department
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FC9F7306-FF8F-4D49-9FB6-3FFE5C0951EC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddress -- PKEY_Contact_EmailAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F8FA7FA3-D12B-4785-8A4E-691A94F7A3E7}, 100</para>
+ /// </summary>
+ public static PropertyKey EmailAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F8FA7FA3-D12B-4785-8A4E-691A94F7A3E7}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddress2 -- PKEY_Contact_EmailAddress2</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {38965063-EDC8-4268-8491-B7723172CF29}, 100</para>
+ /// </summary>
+ public static PropertyKey EmailAddress2
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{38965063-EDC8-4268-8491-B7723172CF29}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddress3 -- PKEY_Contact_EmailAddress3</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {644D37B4-E1B3-4BAD-B099-7E7C04966ACA}, 100</para>
+ /// </summary>
+ public static PropertyKey EmailAddress3
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{644D37B4-E1B3-4BAD-B099-7E7C04966ACA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailAddresses -- PKEY_Contact_EmailAddresses</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {84D8F337-981D-44B3-9615-C7596DBA17E3}, 100</para>
+ /// </summary>
+ public static PropertyKey EmailAddresses
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{84D8F337-981D-44B3-9615-C7596DBA17E3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.EmailName -- PKEY_Contact_EmailName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CC6F4F24-6083-4BD4-8754-674D0DE87AB8}, 100</para>
+ /// </summary>
+ public static PropertyKey EmailName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CC6F4F24-6083-4BD4-8754-674D0DE87AB8}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.FileAsName -- PKEY_Contact_FileAsName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F1A24AA7-9CA7-40F6-89EC-97DEF9FFE8DB}, 100</para>
+ /// </summary>
+ public static PropertyKey FileAsName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F1A24AA7-9CA7-40F6-89EC-97DEF9FFE8DB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.FirstName -- PKEY_Contact_FirstName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {14977844-6B49-4AAD-A714-A4513BF60460}, 100</para>
+ /// </summary>
+ public static PropertyKey FirstName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14977844-6B49-4AAD-A714-A4513BF60460}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.FullName -- PKEY_Contact_FullName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {635E9051-50A5-4BA2-B9DB-4ED056C77296}, 100</para>
+ /// </summary>
+ public static PropertyKey FullName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{635E9051-50A5-4BA2-B9DB-4ED056C77296}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Gender -- PKEY_Contact_Gender</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {3C8CEE58-D4F0-4CF9-B756-4E5D24447BCD}, 100</para>
+ /// </summary>
+ public static PropertyKey Gender
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{3C8CEE58-D4F0-4CF9-B756-4E5D24447BCD}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.GenderValue -- PKEY_Contact_GenderValue</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {3C8CEE58-D4F0-4CF9-B756-4E5D24447BCD}, 101</para>
+ /// </summary>
+ public static PropertyKey GenderValue
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{3C8CEE58-D4F0-4CF9-B756-4E5D24447BCD}"), 101);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Hobbies -- PKEY_Contact_Hobbies</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {5DC2253F-5E11-4ADF-9CFE-910DD01E3E70}, 100</para>
+ /// </summary>
+ public static PropertyKey Hobbies
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5DC2253F-5E11-4ADF-9CFE-910DD01E3E70}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddress -- PKEY_Contact_HomeAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {98F98354-617A-46B8-8560-5B1B64BF1F89}, 100</para>
+ /// </summary>
+ public static PropertyKey HomeAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{98F98354-617A-46B8-8560-5B1B64BF1F89}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressCity -- PKEY_Contact_HomeAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 65</para>
+ /// </summary>
+ public static PropertyKey HomeAddressCity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 65);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressCountry -- PKEY_Contact_HomeAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {08A65AA1-F4C9-43DD-9DDF-A33D8E7EAD85}, 100</para>
+ /// </summary>
+ public static PropertyKey HomeAddressCountry
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{08A65AA1-F4C9-43DD-9DDF-A33D8E7EAD85}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressPostalCode -- PKEY_Contact_HomeAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8AFCC170-8A46-4B53-9EEE-90BAE7151E62}, 100</para>
+ /// </summary>
+ public static PropertyKey HomeAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8AFCC170-8A46-4B53-9EEE-90BAE7151E62}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressPostOfficeBox -- PKEY_Contact_HomeAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7B9F6399-0A3F-4B12-89BD-4ADC51C918AF}, 100</para>
+ /// </summary>
+ public static PropertyKey HomeAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7B9F6399-0A3F-4B12-89BD-4ADC51C918AF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressState -- PKEY_Contact_HomeAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C89A23D0-7D6D-4EB8-87D4-776A82D493E5}, 100</para>
+ /// </summary>
+ public static PropertyKey HomeAddressState
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C89A23D0-7D6D-4EB8-87D4-776A82D493E5}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeAddressStreet -- PKEY_Contact_HomeAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0ADEF160-DB3F-4308-9A21-06237B16FA2A}, 100</para>
+ /// </summary>
+ public static PropertyKey HomeAddressStreet
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0ADEF160-DB3F-4308-9A21-06237B16FA2A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeFaxNumber -- PKEY_Contact_HomeFaxNumber</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {660E04D6-81AB-4977-A09F-82313113AB26}, 100</para>
+ /// </summary>
+ public static PropertyKey HomeFaxNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{660E04D6-81AB-4977-A09F-82313113AB26}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.HomeTelephone -- PKEY_Contact_HomeTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 20</para>
+ /// </summary>
+ public static PropertyKey HomeTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 20);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.IMAddress -- PKEY_Contact_IMAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D68DBD8A-3374-4B81-9972-3EC30682DB3D}, 100</para>
+ /// </summary>
+ public static PropertyKey IMAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D68DBD8A-3374-4B81-9972-3EC30682DB3D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Initials -- PKEY_Contact_Initials</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F3D8F40D-50CB-44A2-9718-40CB9119495D}, 100</para>
+ /// </summary>
+ public static PropertyKey Initials
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F3D8F40D-50CB-44A2-9718-40CB9119495D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JobTitle -- PKEY_Contact_JobTitle</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 6</para>
+ /// </summary>
+ public static PropertyKey JobTitle
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Label -- PKEY_Contact_Label</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {97B0AD89-DF49-49CC-834E-660974FD755B}, 100</para>
+ /// </summary>
+ public static PropertyKey Label
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{97B0AD89-DF49-49CC-834E-660974FD755B}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.LastName -- PKEY_Contact_LastName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8F367200-C270-457C-B1D4-E07C5BCD90C7}, 100</para>
+ /// </summary>
+ public static PropertyKey LastName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8F367200-C270-457C-B1D4-E07C5BCD90C7}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.MailingAddress -- PKEY_Contact_MailingAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C0AC206A-827E-4650-95AE-77E2BB74FCC9}, 100</para>
+ /// </summary>
+ public static PropertyKey MailingAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C0AC206A-827E-4650-95AE-77E2BB74FCC9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.MiddleName -- PKEY_Contact_MiddleName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 71</para>
+ /// </summary>
+ public static PropertyKey MiddleName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 71);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.MobileTelephone -- PKEY_Contact_MobileTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 35</para>
+ /// </summary>
+ public static PropertyKey MobileTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 35);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.NickName -- PKEY_Contact_NickName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 74</para>
+ /// </summary>
+ public static PropertyKey Nickname
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 74);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OfficeLocation -- PKEY_Contact_OfficeLocation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 7</para>
+ /// </summary>
+ public static PropertyKey OfficeLocation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddress -- PKEY_Contact_OtherAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {508161FA-313B-43D5-83A1-C1ACCF68622C}, 100</para>
+ /// </summary>
+ public static PropertyKey OtherAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{508161FA-313B-43D5-83A1-C1ACCF68622C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressCity -- PKEY_Contact_OtherAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6E682923-7F7B-4F0C-A337-CFCA296687BF}, 100</para>
+ /// </summary>
+ public static PropertyKey OtherAddressCity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6E682923-7F7B-4F0C-A337-CFCA296687BF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressCountry -- PKEY_Contact_OtherAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8F167568-0AAE-4322-8ED9-6055B7B0E398}, 100</para>
+ /// </summary>
+ public static PropertyKey OtherAddressCountry
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8F167568-0AAE-4322-8ED9-6055B7B0E398}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressPostalCode -- PKEY_Contact_OtherAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {95C656C1-2ABF-4148-9ED3-9EC602E3B7CD}, 100</para>
+ /// </summary>
+ public static PropertyKey OtherAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{95C656C1-2ABF-4148-9ED3-9EC602E3B7CD}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressPostOfficeBox -- PKEY_Contact_OtherAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {8B26EA41-058F-43F6-AECC-4035681CE977}, 100</para>
+ /// </summary>
+ public static PropertyKey OtherAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8B26EA41-058F-43F6-AECC-4035681CE977}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressState -- PKEY_Contact_OtherAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {71B377D6-E570-425F-A170-809FAE73E54E}, 100</para>
+ /// </summary>
+ public static PropertyKey OtherAddressState
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{71B377D6-E570-425F-A170-809FAE73E54E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.OtherAddressStreet -- PKEY_Contact_OtherAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FF962609-B7D6-4999-862D-95180D529AEA}, 100</para>
+ /// </summary>
+ public static PropertyKey OtherAddressStreet
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FF962609-B7D6-4999-862D-95180D529AEA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PagerTelephone -- PKEY_Contact_PagerTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D6304E01-F8F5-4F45-8B15-D024A6296789}, 100</para>
+ /// </summary>
+ public static PropertyKey PagerTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D6304E01-F8F5-4F45-8B15-D024A6296789}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PersonalTitle -- PKEY_Contact_PersonalTitle</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 69</para>
+ /// </summary>
+ public static PropertyKey PersonalTitle
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 69);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressCity -- PKEY_Contact_PrimaryAddressCity</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C8EA94F0-A9E3-4969-A94B-9C62A95324E0}, 100</para>
+ /// </summary>
+ public static PropertyKey PrimaryAddressCity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C8EA94F0-A9E3-4969-A94B-9C62A95324E0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressCountry -- PKEY_Contact_PrimaryAddressCountry</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E53D799D-0F3F-466E-B2FF-74634A3CB7A4}, 100</para>
+ /// </summary>
+ public static PropertyKey PrimaryAddressCountry
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E53D799D-0F3F-466E-B2FF-74634A3CB7A4}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressPostalCode -- PKEY_Contact_PrimaryAddressPostalCode</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {18BBD425-ECFD-46EF-B612-7B4A6034EDA0}, 100</para>
+ /// </summary>
+ public static PropertyKey PrimaryAddressPostalCode
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{18BBD425-ECFD-46EF-B612-7B4A6034EDA0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressPostOfficeBox -- PKEY_Contact_PrimaryAddressPostOfficeBox</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DE5EF3C7-46E1-484E-9999-62C5308394C1}, 100</para>
+ /// </summary>
+ public static PropertyKey PrimaryAddressPostOfficeBox
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DE5EF3C7-46E1-484E-9999-62C5308394C1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressState -- PKEY_Contact_PrimaryAddressState</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F1176DFE-7138-4640-8B4C-AE375DC70A6D}, 100</para>
+ /// </summary>
+ public static PropertyKey PrimaryAddressState
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F1176DFE-7138-4640-8B4C-AE375DC70A6D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryAddressStreet -- PKEY_Contact_PrimaryAddressStreet</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {63C25B20-96BE-488F-8788-C09C407AD812}, 100</para>
+ /// </summary>
+ public static PropertyKey PrimaryAddressStreet
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{63C25B20-96BE-488F-8788-C09C407AD812}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryEmailAddress -- PKEY_Contact_PrimaryEmailAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 48</para>
+ /// </summary>
+ public static PropertyKey PrimaryEmailAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 48);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.PrimaryTelephone -- PKEY_Contact_PrimaryTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 25</para>
+ /// </summary>
+ public static PropertyKey PrimaryTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 25);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Profession -- PKEY_Contact_Profession</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7268AF55-1CE4-4F6E-A41F-B6E4EF10E4A9}, 100</para>
+ /// </summary>
+ public static PropertyKey Profession
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7268AF55-1CE4-4F6E-A41F-B6E4EF10E4A9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.SpouseName -- PKEY_Contact_SpouseName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9D2408B6-3167-422B-82B0-F583B7A7CFE3}, 100</para>
+ /// </summary>
+ public static PropertyKey SpouseName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9D2408B6-3167-422B-82B0-F583B7A7CFE3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.Suffix -- PKEY_Contact_Suffix</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {176DC63C-2688-4E89-8143-A347800F25E9}, 73</para>
+ /// </summary>
+ public static PropertyKey Suffix
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{176DC63C-2688-4E89-8143-A347800F25E9}"), 73);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.TelexNumber -- PKEY_Contact_TelexNumber</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C554493C-C1F7-40C1-A76C-EF8C0614003E}, 100</para>
+ /// </summary>
+ public static PropertyKey TelexNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C554493C-C1F7-40C1-A76C-EF8C0614003E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.TTYTDDTelephone -- PKEY_Contact_TTYTDDTelephone</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AAF16BAC-2B55-45E6-9F6D-415EB94910DF}, 100</para>
+ /// </summary>
+ public static PropertyKey TTYTDDTelephone
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AAF16BAC-2B55-45E6-9F6D-415EB94910DF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.WebPage -- PKEY_Contact_WebPage</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 18</para>
+ /// </summary>
+ public static PropertyKey Webpage
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 18);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+ #region sub-classes
+
+ /// <summary>
+ /// JA Properties
+ /// </summary>
+ public static class JA
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.CompanyNamePhonetic -- PKEY_Contact_JA_CompanyNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 2</para>
+ /// </summary>
+ public static PropertyKey CompanyNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{897B3694-FE9E-43E6-8066-260F590C0100}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.FirstNamePhonetic -- PKEY_Contact_JA_FirstNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 3</para>
+ /// </summary>
+ public static PropertyKey FirstNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{897B3694-FE9E-43E6-8066-260F590C0100}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.LastNamePhonetic -- PKEY_Contact_JA_LastNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 4</para>
+ /// </summary>
+ public static PropertyKey LastNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{897B3694-FE9E-43E6-8066-260F590C0100}"), 4);
+
+ return key;
+ }
+ }
+ #endregion
+
+ }
+ #endregion
+ }
+
+ /// <summary>
+ /// JA Properties
+ /// </summary>
+ public static class JA
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.CompanyNamePhonetic -- PKEY_Contact_JA_CompanyNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 2</para>
+ /// </summary>
+ public static PropertyKey CompanyNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{897B3694-FE9E-43E6-8066-260F590C0100}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.FirstNamePhonetic -- PKEY_Contact_JA_FirstNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 3</para>
+ /// </summary>
+ public static PropertyKey FirstNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{897B3694-FE9E-43E6-8066-260F590C0100}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Contact.JA.LastNamePhonetic -- PKEY_Contact_JA_LastNamePhonetic</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {897B3694-FE9E-43E6-8066-260F590C0100}, 4</para>
+ /// </summary>
+ public static PropertyKey LastNamePhonetic
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{897B3694-FE9E-43E6-8066-260F590C0100}"), 4);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Device Properties
+ /// </summary>
+ public static class Device
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Device.PrinterURL -- PKEY_Device_PrinterURL</para>
+ /// <para>Description: Printer information Printer URL.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0B48F35A-BE6E-4F17-B108-3C4073D1669A}, 15</para>
+ /// </summary>
+ public static PropertyKey PrinterUrl
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0B48F35A-BE6E-4F17-B108-3C4073D1669A}"), 15);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// DeviceInterface Properties
+ /// </summary>
+ public static class DeviceInterface
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterDriverDirectory -- PKEY_DeviceInterface_PrinterDriverDirectory</para>
+ /// <para>Description: Printer information Printer Driver Directory.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {847C66DE-B8D6-4AF9-ABC3-6F4F926BC039}, 14</para>
+ /// </summary>
+ public static PropertyKey PrinterDriverDirectory
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{847C66DE-B8D6-4AF9-ABC3-6F4F926BC039}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterDriverName -- PKEY_DeviceInterface_PrinterDriverName</para>
+ /// <para>Description: Printer information Driver Name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AFC47170-14F5-498C-8F30-B0D19BE449C6}, 11</para>
+ /// </summary>
+ public static PropertyKey PrinterDriverName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AFC47170-14F5-498C-8F30-B0D19BE449C6}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterName -- PKEY_DeviceInterface_PrinterName</para>
+ /// <para>Description: Printer information Printer Name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0A7B84EF-0C27-463F-84EF-06C5070001BE}, 10</para>
+ /// </summary>
+ public static PropertyKey PrinterName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0A7B84EF-0C27-463F-84EF-06C5070001BE}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DeviceInterface.PrinterPortName -- PKEY_DeviceInterface_PrinterPortName</para>
+ /// <para>Description: Printer information Port Name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {EEC7B761-6F94-41B1-949F-C729720DD13C}, 12</para>
+ /// </summary>
+ public static PropertyKey PrinterPortName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{EEC7B761-6F94-41B1-949F-C729720DD13C}"), 12);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Devices Properties
+ /// </summary>
+ public static class Devices
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Devices.BatteryLife -- PKEY_Devices_BatteryLife</para>
+ /// <para>Description: Remaining battery life of the device as an integer between 0 and 100 percent.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 10</para>
+ /// </summary>
+ public static PropertyKey BatteryLife
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.BatteryPlusCharging -- PKEY_Devices_BatteryPlusCharging</para>
+ /// <para>Description: Remaining battery life of the device as an integer between 0 and 100 percent and the device's charging state.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 22</para>
+ /// </summary>
+ public static PropertyKey BatteryPlusCharging
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 22);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.BatteryPlusChargingText -- PKEY_Devices_BatteryPlusChargingText</para>
+ /// <para>Description: Remaining battery life of the device and the device's charging state as a string.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 23</para>
+ /// </summary>
+ public static PropertyKey BatteryPlusChargingText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 23);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Category -- PKEY_Devices_Category_Desc_Singular</para>
+ /// <para>Description: Singular form of device category.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 91</para>
+ /// </summary>
+ public static PropertyKey Category
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 91);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.CategoryGroup -- PKEY_Devices_CategoryGroup_Desc</para>
+ /// <para>Description: Plural form of device category.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 94</para>
+ /// </summary>
+ public static PropertyKey CategoryGroup
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 94);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.CategoryPlural -- PKEY_Devices_Category_Desc_Plural</para>
+ /// <para>Description: Plural form of device category.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 92</para>
+ /// </summary>
+ public static PropertyKey CategoryPlural
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 92);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ChargingState -- PKEY_Devices_ChargingState</para>
+ /// <para>Description: Boolean value representing if the device is currently charging.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 11</para>
+ /// </summary>
+ public static PropertyKey ChargingState
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Connected -- PKEY_Devices_IsConnected</para>
+ /// <para>Description: Device connection state. If VARIANT_TRUE, indicates the device is currently connected to the computer.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 55</para>
+ /// </summary>
+ public static PropertyKey Connected
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 55);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ContainerId -- PKEY_Devices_ContainerId</para>
+ /// <para>Description: Device container ID.
+ ///</para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: {8C7ED206-3F8A-4827-B3AB-AE9E1FAEFC6C}, 2</para>
+ /// </summary>
+ public static PropertyKey ContainerId
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8C7ED206-3F8A-4827-B3AB-AE9E1FAEFC6C}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DefaultTooltip -- PKEY_Devices_DefaultTooltip</para>
+ /// <para>Description: Tooltip for default state
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {880F70A2-6082-47AC-8AAB-A739D1A300C3}, 153</para>
+ /// </summary>
+ public static PropertyKey DefaultTooltip
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{880F70A2-6082-47AC-8AAB-A739D1A300C3}"), 153);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DeviceDescription1 -- PKEY_Devices_DeviceDescription1</para>
+ /// <para>Description: First line of descriptive text about the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 81</para>
+ /// </summary>
+ public static PropertyKey DeviceDescription1
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 81);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DeviceDescription2 -- PKEY_Devices_DeviceDescription2</para>
+ /// <para>Description: Second line of descriptive text about the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 82</para>
+ /// </summary>
+ public static PropertyKey DeviceDescription2
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 82);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.DiscoveryMethod -- PKEY_Devices_DiscoveryMethod</para>
+ /// <para>Description: Device discovery method. This indicates on what transport or physical connection the device is discovered.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 52</para>
+ /// </summary>
+ public static PropertyKey DiscoveryMethod
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 52);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.FriendlyName -- PKEY_Devices_FriendlyName</para>
+ /// <para>Description: Device friendly name.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 12288</para>
+ /// </summary>
+ public static PropertyKey FriendlyName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{656A3BB3-ECC0-43FD-8477-4AE0404A96CD}"), 12288);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.FunctionPaths -- PKEY_Devices_FunctionPaths</para>
+ /// <para>Description: Available functions for this device.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 3</para>
+ /// </summary>
+ public static PropertyKey FunctionPaths
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D08DD4C0-3A9E-462E-8290-7B636B2576B9}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.InterfacePaths -- PKEY_Devices_InterfacePaths</para>
+ /// <para>Description: Available interfaces for this device.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 2</para>
+ /// </summary>
+ public static PropertyKey InterfacePaths
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D08DD4C0-3A9E-462E-8290-7B636B2576B9}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsDefault -- PKEY_Devices_IsDefaultDevice</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 86</para>
+ /// </summary>
+ public static PropertyKey IsDefault
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 86);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsNetworkConnected -- PKEY_Devices_IsNetworkDevice</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 85</para>
+ /// </summary>
+ public static PropertyKey IsNetworkConnected
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 85);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsShared -- PKEY_Devices_IsSharedDevice</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 84</para>
+ /// </summary>
+ public static PropertyKey IsShared
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 84);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.IsSoftwareInstalling -- PKEY_Devices_IsSoftwareInstalling</para>
+ /// <para>Description: If VARIANT_TRUE, the device installer is currently installing software.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {83DA6326-97A6-4088-9453-A1923F573B29}, 9</para>
+ /// </summary>
+ public static PropertyKey IsSoftwareInstalling
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{83DA6326-97A6-4088-9453-A1923F573B29}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.LaunchDeviceStageFromExplorer -- PKEY_Devices_LaunchDeviceStageFromExplorer</para>
+ /// <para>Description: Indicates whether to launch Device Stage or not
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 77</para>
+ /// </summary>
+ public static PropertyKey LaunchDeviceStageFromExplorer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 77);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.LocalMachine -- PKEY_Devices_IsLocalMachine</para>
+ /// <para>Description: If VARIANT_TRUE, the device in question is actually the computer.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 70</para>
+ /// </summary>
+ public static PropertyKey LocalMachine
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 70);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Manufacturer -- PKEY_Devices_Manufacturer</para>
+ /// <para>Description: Device manufacturer.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 8192</para>
+ /// </summary>
+ public static PropertyKey Manufacturer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{656A3BB3-ECC0-43FD-8477-4AE0404A96CD}"), 8192);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.MissedCalls -- PKEY_Devices_MissedCalls</para>
+ /// <para>Description: Number of missed calls on the device.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 5</para>
+ /// </summary>
+ public static PropertyKey MissedCalls
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ModelName -- PKEY_Devices_ModelName</para>
+ /// <para>Description: Model name of the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 8194</para>
+ /// </summary>
+ public static PropertyKey ModelName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{656A3BB3-ECC0-43FD-8477-4AE0404A96CD}"), 8194);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.ModelNumber -- PKEY_Devices_ModelNumber</para>
+ /// <para>Description: Model number of the device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {656A3BB3-ECC0-43FD-8477-4AE0404A96CD}, 8195</para>
+ /// </summary>
+ public static PropertyKey ModelNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{656A3BB3-ECC0-43FD-8477-4AE0404A96CD}"), 8195);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NetworkedTooltip -- PKEY_Devices_NetworkedTooltip</para>
+ /// <para>Description: Tooltip for connection state
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {880F70A2-6082-47AC-8AAB-A739D1A300C3}, 152</para>
+ /// </summary>
+ public static PropertyKey NetworkedTooltip
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{880F70A2-6082-47AC-8AAB-A739D1A300C3}"), 152);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NetworkName -- PKEY_Devices_NetworkName</para>
+ /// <para>Description: Name of the device's network.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 7</para>
+ /// </summary>
+ public static PropertyKey NetworkName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NetworkType -- PKEY_Devices_NetworkType</para>
+ /// <para>Description: String representing the type of the device's network.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 8</para>
+ /// </summary>
+ public static PropertyKey NetworkType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NewPictures -- PKEY_Devices_NewPictures</para>
+ /// <para>Description: Number of new pictures on the device.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 4</para>
+ /// </summary>
+ public static PropertyKey NewPictures
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notification -- PKEY_Devices_Notification</para>
+ /// <para>Description: Device Notification Property.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {06704B0C-E830-4C81-9178-91E4E95A80A0}, 3</para>
+ /// </summary>
+ public static PropertyKey Notification
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{06704B0C-E830-4C81-9178-91E4E95A80A0}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NotificationStore -- PKEY_Devices_NotificationStore</para>
+ /// <para>Description: Device Notification Store.
+ ///</para>
+ /// <para>Type: Object -- VT_UNKNOWN</para>
+ /// <para>FormatID: {06704B0C-E830-4C81-9178-91E4E95A80A0}, 2</para>
+ /// </summary>
+ public static PropertyKey NotificationStore
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{06704B0C-E830-4C81-9178-91E4E95A80A0}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.NotWorkingProperly -- PKEY_Devices_IsNotWorkingProperly</para>
+ /// <para>Description: If VARIANT_TRUE, the device is not working properly.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 83</para>
+ /// </summary>
+ public static PropertyKey NotWorkingProperly
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 83);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Paired -- PKEY_Devices_IsPaired</para>
+ /// <para>Description: Device paired state. If VARIANT_TRUE, indicates the device is not paired with the computer.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {78C34FC8-104A-4ACA-9EA4-524D52996E57}, 56</para>
+ /// </summary>
+ public static PropertyKey Paired
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78C34FC8-104A-4ACA-9EA4-524D52996E57}"), 56);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.PrimaryCategory -- PKEY_Devices_PrimaryCategory</para>
+ /// <para>Description: Primary category group for this device.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 10</para>
+ /// </summary>
+ public static PropertyKey PrimaryCategory
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D08DD4C0-3A9E-462E-8290-7B636B2576B9}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Roaming -- PKEY_Devices_Roaming</para>
+ /// <para>Description: Status indicator used to indicate if the device is roaming.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 9</para>
+ /// </summary>
+ public static PropertyKey Roaming
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.SafeRemovalRequired -- PKEY_Devices_SafeRemovalRequired</para>
+ /// <para>Description: Indicates if a device requires safe removal or not
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {AFD97640-86A3-4210-B67C-289C41AABE55}, 2</para>
+ /// </summary>
+ public static PropertyKey SafeRemovalRequired
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AFD97640-86A3-4210-B67C-289C41AABE55}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.SharedTooltip -- PKEY_Devices_SharedTooltip</para>
+ /// <para>Description: Tooltip for sharing state
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {880F70A2-6082-47AC-8AAB-A739D1A300C3}, 151</para>
+ /// </summary>
+ public static PropertyKey SharedTooltip
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{880F70A2-6082-47AC-8AAB-A739D1A300C3}"), 151);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.SignalStrength -- PKEY_Devices_SignalStrength</para>
+ /// <para>Description: Device signal strength.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 2</para>
+ /// </summary>
+ public static PropertyKey SignalStrength
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Status1 -- PKEY_Devices_Status1</para>
+ /// <para>Description: 1st line of device status.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 257</para>
+ /// </summary>
+ public static PropertyKey Status1
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D08DD4C0-3A9E-462E-8290-7B636B2576B9}"), 257);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Status2 -- PKEY_Devices_Status2</para>
+ /// <para>Description: 2nd line of device status.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D08DD4C0-3A9E-462E-8290-7B636B2576B9}, 258</para>
+ /// </summary>
+ public static PropertyKey Status2
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D08DD4C0-3A9E-462E-8290-7B636B2576B9}"), 258);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.StorageCapacity -- PKEY_Devices_StorageCapacity</para>
+ /// <para>Description: Total storage capacity of the device.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 12</para>
+ /// </summary>
+ public static PropertyKey StorageCapacity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.StorageFreeSpace -- PKEY_Devices_StorageFreeSpace</para>
+ /// <para>Description: Total free space of the storage of the device.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 13</para>
+ /// </summary>
+ public static PropertyKey StorageFreeSpace
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.StorageFreeSpacePercent -- PKEY_Devices_StorageFreeSpacePercent</para>
+ /// <para>Description: Total free space of the storage of the device as a percentage.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 14</para>
+ /// </summary>
+ public static PropertyKey StorageFreeSpacePercent
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.TextMessages -- PKEY_Devices_TextMessages</para>
+ /// <para>Description: Number of unread text messages on the device.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 3</para>
+ /// </summary>
+ public static PropertyKey TextMessages
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Voicemail -- PKEY_Devices_Voicemail</para>
+ /// <para>Description: Status indicator used to indicate if the device has voicemail.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {49CD1F76-5626-4B17-A4E8-18B4AA1A2213}, 6</para>
+ /// </summary>
+ public static PropertyKey Voicemail
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49CD1F76-5626-4B17-A4E8-18B4AA1A2213}"), 6);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+ #region sub-classes
+
+ /// <summary>
+ /// Notifications Properties
+ /// </summary>
+ public static class Notifications
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.LowBattery -- PKEY_Devices_Notification_LowBattery</para>
+ /// <para>Description: Device Low Battery Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {C4C07F2B-8524-4E66-AE3A-A6235F103BEB}, 2</para>
+ /// </summary>
+ public static PropertyKey LowBattery
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C4C07F2B-8524-4E66-AE3A-A6235F103BEB}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.MissedCall -- PKEY_Devices_Notification_MissedCall</para>
+ /// <para>Description: Device Missed Call Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {6614EF48-4EFE-4424-9EDA-C79F404EDF3E}, 2</para>
+ /// </summary>
+ public static PropertyKey MissedCall
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6614EF48-4EFE-4424-9EDA-C79F404EDF3E}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.NewMessage -- PKEY_Devices_Notification_NewMessage</para>
+ /// <para>Description: Device New Message Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {2BE9260A-2012-4742-A555-F41B638B7DCB}, 2</para>
+ /// </summary>
+ public static PropertyKey NewMessage
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2BE9260A-2012-4742-A555-F41B638B7DCB}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.NewVoicemail -- PKEY_Devices_Notification_NewVoicemail</para>
+ /// <para>Description: Device Voicemail Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {59569556-0A08-4212-95B9-FAE2AD6413DB}, 2</para>
+ /// </summary>
+ public static PropertyKey NewVoicemail
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{59569556-0A08-4212-95B9-FAE2AD6413DB}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.StorageFull -- PKEY_Devices_Notification_StorageFull</para>
+ /// <para>Description: Device Storage Full Notification.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}, 2</para>
+ /// </summary>
+ public static PropertyKey StorageFull
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.StorageFullLinkText -- PKEY_Devices_Notification_StorageFullLinkText</para>
+ /// <para>Description: Link Text for the Device Storage Full Notification.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}, 3</para>
+ /// </summary>
+ public static PropertyKey StorageFullLinkText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}"), 3);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+ #endregion
+ }
+
+ /// <summary>
+ /// Notifications Properties
+ /// </summary>
+ public static class Notifications
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.LowBattery -- PKEY_Devices_Notification_LowBattery</para>
+ /// <para>Description: Device Low Battery Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {C4C07F2B-8524-4E66-AE3A-A6235F103BEB}, 2</para>
+ /// </summary>
+ public static PropertyKey LowBattery
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C4C07F2B-8524-4E66-AE3A-A6235F103BEB}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.MissedCall -- PKEY_Devices_Notification_MissedCall</para>
+ /// <para>Description: Device Missed Call Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {6614EF48-4EFE-4424-9EDA-C79F404EDF3E}, 2</para>
+ /// </summary>
+ public static PropertyKey MissedCall
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6614EF48-4EFE-4424-9EDA-C79F404EDF3E}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.NewMessage -- PKEY_Devices_Notification_NewMessage</para>
+ /// <para>Description: Device New Message Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {2BE9260A-2012-4742-A555-F41B638B7DCB}, 2</para>
+ /// </summary>
+ public static PropertyKey NewMessage
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2BE9260A-2012-4742-A555-F41B638B7DCB}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.NewVoicemail -- PKEY_Devices_Notification_NewVoicemail</para>
+ /// <para>Description: Device Voicemail Notification.
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {59569556-0A08-4212-95B9-FAE2AD6413DB}, 2</para>
+ /// </summary>
+ public static PropertyKey NewVoicemail
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{59569556-0A08-4212-95B9-FAE2AD6413DB}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.StorageFull -- PKEY_Devices_Notification_StorageFull</para>
+ /// <para>Description: Device Storage Full Notification.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}, 2</para>
+ /// </summary>
+ public static PropertyKey StorageFull
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Devices.Notifications.StorageFullLinkText -- PKEY_Devices_Notification_StorageFullLinkText</para>
+ /// <para>Description: Link Text for the Device Storage Full Notification.
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}, 3</para>
+ /// </summary>
+ public static PropertyKey StorageFullLinkText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A0E00EE1-F0C7-4D41-B8E7-26A7BD8D38B0}"), 3);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Document Properties
+ /// </summary>
+ public static class Document
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Document.ByteCount -- PKEY_Document_ByteCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 4 (PIDDSI_BYTECOUNT)</para>
+ /// </summary>
+ public static PropertyKey ByteCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.CharacterCount -- PKEY_Document_CharacterCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 16 (PIDSI_CHARCOUNT)</para>
+ /// </summary>
+ public static PropertyKey CharacterCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 16);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.ClientID -- PKEY_Document_ClientID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {276D7BB0-5B34-4FB0-AA4B-158ED12A1809}, 100</para>
+ /// </summary>
+ public static PropertyKey ClientID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{276D7BB0-5B34-4FB0-AA4B-158ED12A1809}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Contributor -- PKEY_Document_Contributor</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {F334115E-DA1B-4509-9B3D-119504DC7ABB}, 100</para>
+ /// </summary>
+ public static PropertyKey Contributor
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F334115E-DA1B-4509-9B3D-119504DC7ABB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DateCreated -- PKEY_Document_DateCreated</para>
+ /// <para>Description: This property is stored in the document, not obtained from the file system.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 12 (PIDSI_CREATE_DTM)</para>
+ /// </summary>
+ public static PropertyKey DateCreated
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DatePrinted -- PKEY_Document_DatePrinted</para>
+ /// <para>Description: Legacy name: "DocLastPrinted".
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 11 (PIDSI_LASTPRINTED)</para>
+ /// </summary>
+ public static PropertyKey DatePrinted
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DateSaved -- PKEY_Document_DateSaved</para>
+ /// <para>Description: Legacy name: "DocLastSavedTm".
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 13 (PIDSI_LASTSAVE_DTM)</para>
+ /// </summary>
+ public static PropertyKey DateSaved
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Division -- PKEY_Document_Division</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {1E005EE6-BF27-428B-B01C-79676ACD2870}, 100</para>
+ /// </summary>
+ public static PropertyKey Division
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1E005EE6-BF27-428B-B01C-79676ACD2870}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.DocumentID -- PKEY_Document_DocumentID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E08805C8-E395-40DF-80D2-54F0D6C43154}, 100</para>
+ /// </summary>
+ public static PropertyKey DocumentID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E08805C8-E395-40DF-80D2-54F0D6C43154}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.HiddenSlideCount -- PKEY_Document_HiddenSlideCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 9 (PIDDSI_HIDDENCOUNT)</para>
+ /// </summary>
+ public static PropertyKey HiddenSlideCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.LastAuthor -- PKEY_Document_LastAuthor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 8 (PIDSI_LASTAUTHOR)</para>
+ /// </summary>
+ public static PropertyKey LastAuthor
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.LineCount -- PKEY_Document_LineCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 5 (PIDDSI_LINECOUNT)</para>
+ /// </summary>
+ public static PropertyKey LineCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Manager -- PKEY_Document_Manager</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 14 (PIDDSI_MANAGER)</para>
+ /// </summary>
+ public static PropertyKey Manager
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.MultimediaClipCount -- PKEY_Document_MultimediaClipCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 10 (PIDDSI_MMCLIPCOUNT)</para>
+ /// </summary>
+ public static PropertyKey MultimediaClipCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.NoteCount -- PKEY_Document_NoteCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 8 (PIDDSI_NOTECOUNT)</para>
+ /// </summary>
+ public static PropertyKey NoteCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.PageCount -- PKEY_Document_PageCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 14 (PIDSI_PAGECOUNT)</para>
+ /// </summary>
+ public static PropertyKey PageCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.ParagraphCount -- PKEY_Document_ParagraphCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 6 (PIDDSI_PARCOUNT)</para>
+ /// </summary>
+ public static PropertyKey ParagraphCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.PresentationFormat -- PKEY_Document_PresentationFormat</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 3 (PIDDSI_PRESFORMAT)</para>
+ /// </summary>
+ public static PropertyKey PresentationFormat
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.RevisionNumber -- PKEY_Document_RevisionNumber</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 9 (PIDSI_REVNUMBER)</para>
+ /// </summary>
+ public static PropertyKey RevisionNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Security -- PKEY_Document_Security</para>
+ /// <para>Description: Access control information, from SummaryInfo propset
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 19</para>
+ /// </summary>
+ public static PropertyKey Security
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 19);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.SlideCount -- PKEY_Document_SlideCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 7 (PIDDSI_SLIDECOUNT)</para>
+ /// </summary>
+ public static PropertyKey SlideCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Template -- PKEY_Document_Template</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 7 (PIDSI_TEMPLATE)</para>
+ /// </summary>
+ public static PropertyKey Template
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.TotalEditingTime -- PKEY_Document_TotalEditingTime</para>
+ /// <para>Description: 100ns units, not milliseconds. VT_FILETIME for IPropertySetStorage handlers (legacy)
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 10 (PIDSI_EDITTIME)</para>
+ /// </summary>
+ public static PropertyKey TotalEditingTime
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.Version -- PKEY_Document_Version</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DocumentSummaryInformation) {D5CDD502-2E9C-101B-9397-08002B2CF9AE}, 29</para>
+ /// </summary>
+ public static PropertyKey Version
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"), 29);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Document.WordCount -- PKEY_Document_WordCount</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_SummaryInformation) {F29F85E0-4FF9-1068-AB91-08002B27B3D9}, 15 (PIDSI_WORDCOUNT)</para>
+ /// </summary>
+ public static PropertyKey WordCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"), 15);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// DRM Properties
+ /// </summary>
+ public static class DRM
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.DRM.DatePlayExpires -- PKEY_DRM_DatePlayExpires</para>
+ /// <para>Description: Indicates when play expires for digital rights management.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 6 (PIDDRSI_PLAYEXPIRES)</para>
+ /// </summary>
+ public static PropertyKey DatePlayExpires
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.DatePlayStarts -- PKEY_DRM_DatePlayStarts</para>
+ /// <para>Description: Indicates when play starts for digital rights management.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 5 (PIDDRSI_PLAYSTARTS)</para>
+ /// </summary>
+ public static PropertyKey DatePlayStarts
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.Description -- PKEY_DRM_Description</para>
+ /// <para>Description: Displays the description for digital rights management.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 3 (PIDDRSI_DESCRIPTION)</para>
+ /// </summary>
+ public static PropertyKey Description
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.IsProtected -- PKEY_DRM_IsProtected</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 2 (PIDDRSI_PROTECTED)</para>
+ /// </summary>
+ public static PropertyKey IsProtected
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.DRM.PlayCount -- PKEY_DRM_PlayCount</para>
+ /// <para>Description: Indicates the play count for digital rights management.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_DRM) {AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}, 4 (PIDDRSI_PLAYCOUNT)</para>
+ /// </summary>
+ public static PropertyKey PlayCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AEAC19E4-89AE-4508-B9B7-BB867ABEE2ED}"), 4);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// GPS Properties
+ /// </summary>
+ public static class GPS
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.GPS.Altitude -- PKEY_GPS_Altitude</para>
+ /// <para>Description: Indicates the altitude based on the reference in PKEY_GPS_AltitudeRef. Calculated from PKEY_GPS_AltitudeNumerator and
+ ///PKEY_GPS_AltitudeDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {827EDB4F-5B73-44A7-891D-FDFFABEA35CA}, 100</para>
+ /// </summary>
+ public static PropertyKey Altitude
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{827EDB4F-5B73-44A7-891D-FDFFABEA35CA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AltitudeDenominator -- PKEY_GPS_AltitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Altitude
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {78342DCB-E358-4145-AE9A-6BFE4E0F9F51}, 100</para>
+ /// </summary>
+ public static PropertyKey AltitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{78342DCB-E358-4145-AE9A-6BFE4E0F9F51}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AltitudeNumerator -- PKEY_GPS_AltitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Altitude
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2DAD1EB7-816D-40D3-9EC3-C9773BE2AADE}, 100</para>
+ /// </summary>
+ public static PropertyKey AltitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2DAD1EB7-816D-40D3-9EC3-C9773BE2AADE}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AltitudeRef -- PKEY_GPS_AltitudeRef</para>
+ /// <para>Description: Indicates the reference for the altitude property. (eg: above sea level, below sea level, absolute value)
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: {46AC629D-75EA-4515-867F-6DC4321C5844}, 100</para>
+ /// </summary>
+ public static PropertyKey AltitudeRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{46AC629D-75EA-4515-867F-6DC4321C5844}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.AreaInformation -- PKEY_GPS_AreaInformation</para>
+ /// <para>Description: Represents the name of the GPS area
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {972E333E-AC7E-49F1-8ADF-A70D07A9BCAB}, 100</para>
+ /// </summary>
+ public static PropertyKey AreaInformation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{972E333E-AC7E-49F1-8ADF-A70D07A9BCAB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Date -- PKEY_GPS_Date</para>
+ /// <para>Description: Date and time of the GPS record
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {3602C812-0F3B-45F0-85AD-603468D69423}, 100</para>
+ /// </summary>
+ public static PropertyKey Date
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{3602C812-0F3B-45F0-85AD-603468D69423}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearing -- PKEY_GPS_DestBearing</para>
+ /// <para>Description: Indicates the bearing to the destination point. Calculated from PKEY_GPS_DestBearingNumerator and
+ ///PKEY_GPS_DestBearingDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {C66D4B3C-E888-47CC-B99F-9DCA3EE34DEA}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationBearing
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C66D4B3C-E888-47CC-B99F-9DCA3EE34DEA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearingDenominator -- PKEY_GPS_DestBearingDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestBearing
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7ABCF4F8-7C3F-4988-AC91-8D2C2E97ECA5}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationBearingDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7ABCF4F8-7C3F-4988-AC91-8D2C2E97ECA5}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearingNumerator -- PKEY_GPS_DestBearingNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestBearing
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {BA3B1DA9-86EE-4B5D-A2A4-A271A429F0CF}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationBearingNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BA3B1DA9-86EE-4B5D-A2A4-A271A429F0CF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestBearingRef -- PKEY_GPS_DestBearingRef</para>
+ /// <para>Description: Indicates the reference used for the giving the bearing to the destination point. (eg: true direction, magnetic direction)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9AB84393-2A0F-4B75-BB22-7279786977CB}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationBearingRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9AB84393-2A0F-4B75-BB22-7279786977CB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistance -- PKEY_GPS_DestDistance</para>
+ /// <para>Description: Indicates the distance to the destination point. Calculated from PKEY_GPS_DestDistanceNumerator and
+ ///PKEY_GPS_DestDistanceDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {A93EAE04-6804-4F24-AC81-09B266452118}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationDistance
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A93EAE04-6804-4F24-AC81-09B266452118}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistanceDenominator -- PKEY_GPS_DestDistanceDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {9BC2C99B-AC71-4127-9D1C-2596D0D7DCB7}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationDistanceDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9BC2C99B-AC71-4127-9D1C-2596D0D7DCB7}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistanceNumerator -- PKEY_GPS_DestDistanceNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2BDA47DA-08C6-4FE1-80BC-A72FC517C5D0}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationDistanceNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2BDA47DA-08C6-4FE1-80BC-A72FC517C5D0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestDistanceRef -- PKEY_GPS_DestDistanceRef</para>
+ /// <para>Description: Indicates the unit used to express the distance to the destination. (eg: kilometers, miles, knots)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {ED4DF2D3-8695-450B-856F-F5C1C53ACB66}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationDistanceRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{ED4DF2D3-8695-450B-856F-F5C1C53ACB66}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitude -- PKEY_GPS_DestLatitude</para>
+ /// <para>Description: Indicates the latitude of the destination point. This is an array of three values. Index 0 is the degrees, index 1
+ ///is the minutes, index 2 is the seconds. Each is calculated from the values in PKEY_GPS_DestLatitudeNumerator and
+ ///PKEY_GPS_DestLatitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {9D1D7CC5-5C39-451C-86B3-928E2D18CC47}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLatitude
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9D1D7CC5-5C39-451C-86B3-928E2D18CC47}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitudeDenominator -- PKEY_GPS_DestLatitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestLatitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {3A372292-7FCA-49A7-99D5-E47BB2D4E7AB}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLatitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{3A372292-7FCA-49A7-99D5-E47BB2D4E7AB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitudeNumerator -- PKEY_GPS_DestLatitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestLatitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {ECF4B6F6-D5A6-433C-BB92-4076650FC890}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLatitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{ECF4B6F6-D5A6-433C-BB92-4076650FC890}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLatitudeRef -- PKEY_GPS_DestLatitudeRef</para>
+ /// <para>Description: Indicates whether the latitude destination point is north or south latitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CEA820B9-CE61-4885-A128-005D9087C192}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLatitudeRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CEA820B9-CE61-4885-A128-005D9087C192}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitude -- PKEY_GPS_DestLongitude</para>
+ /// <para>Description: Indicates the latitude of the destination point. This is an array of three values. Index 0 is the degrees, index 1
+ ///is the minutes, index 2 is the seconds. Each is calculated from the values in PKEY_GPS_DestLongitudeNumerator and
+ ///PKEY_GPS_DestLongitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {47A96261-CB4C-4807-8AD3-40B9D9DBC6BC}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLongitude
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{47A96261-CB4C-4807-8AD3-40B9D9DBC6BC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitudeDenominator -- PKEY_GPS_DestLongitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DestLongitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {425D69E5-48AD-4900-8D80-6EB6B8D0AC86}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLongitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{425D69E5-48AD-4900-8D80-6EB6B8D0AC86}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitudeNumerator -- PKEY_GPS_DestLongitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DestLongitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {A3250282-FB6D-48D5-9A89-DBCACE75CCCF}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLongitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A3250282-FB6D-48D5-9A89-DBCACE75CCCF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DestLongitudeRef -- PKEY_GPS_DestLongitudeRef</para>
+ /// <para>Description: Indicates whether the longitude destination point is east or west longitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {182C1EA6-7C1C-4083-AB4B-AC6C9F4ED128}, 100</para>
+ /// </summary>
+ public static PropertyKey DestinationLongitudeRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{182C1EA6-7C1C-4083-AB4B-AC6C9F4ED128}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Differential -- PKEY_GPS_Differential</para>
+ /// <para>Description: Indicates whether differential correction was applied to the GPS receiver
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {AAF4EE25-BD3B-4DD7-BFC4-47F77BB00F6D}, 100</para>
+ /// </summary>
+ public static PropertyKey Differential
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AAF4EE25-BD3B-4DD7-BFC4-47F77BB00F6D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DOP -- PKEY_GPS_DOP</para>
+ /// <para>Description: Indicates the GPS DOP (data degree of precision). Calculated from PKEY_GPS_DOPNumerator and PKEY_GPS_DOPDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {0CF8FB02-1837-42F1-A697-A7017AA289B9}, 100</para>
+ /// </summary>
+ public static PropertyKey DOP
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CF8FB02-1837-42F1-A697-A7017AA289B9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DOPDenominator -- PKEY_GPS_DOPDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_DOP
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A0BE94C5-50BA-487B-BD35-0654BE8881ED}, 100</para>
+ /// </summary>
+ public static PropertyKey DOPDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A0BE94C5-50BA-487B-BD35-0654BE8881ED}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.DOPNumerator -- PKEY_GPS_DOPNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_DOP
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {47166B16-364F-4AA0-9F31-E2AB3DF449C3}, 100</para>
+ /// </summary>
+ public static PropertyKey DOPNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{47166B16-364F-4AA0-9F31-E2AB3DF449C3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirection -- PKEY_GPS_ImgDirection</para>
+ /// <para>Description: Indicates direction of the image when it was captured. Calculated from PKEY_GPS_ImgDirectionNumerator and
+ ///PKEY_GPS_ImgDirectionDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {16473C91-D017-4ED9-BA4D-B6BAA55DBCF8}, 100</para>
+ /// </summary>
+ public static PropertyKey ImageDirection
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{16473C91-D017-4ED9-BA4D-B6BAA55DBCF8}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirectionDenominator -- PKEY_GPS_ImgDirectionDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_ImgDirection
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {10B24595-41A2-4E20-93C2-5761C1395F32}, 100</para>
+ /// </summary>
+ public static PropertyKey ImageDirectionDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{10B24595-41A2-4E20-93C2-5761C1395F32}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirectionNumerator -- PKEY_GPS_ImgDirectionNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_ImgDirection
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {DC5877C7-225F-45F7-BAC7-E81334B6130A}, 100</para>
+ /// </summary>
+ public static PropertyKey ImageDirectionNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DC5877C7-225F-45F7-BAC7-E81334B6130A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ImgDirectionRef -- PKEY_GPS_ImgDirectionRef</para>
+ /// <para>Description: Indicates reference for giving the direction of the image when it was captured. (eg: true direction, magnetic direction)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A4AAA5B7-1AD0-445F-811A-0F8F6E67F6B5}, 100</para>
+ /// </summary>
+ public static PropertyKey ImageDirectionRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A4AAA5B7-1AD0-445F-811A-0F8F6E67F6B5}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Latitude -- PKEY_GPS_Latitude</para>
+ /// <para>Description: Indicates the latitude. This is an array of three values. Index 0 is the degrees, index 1 is the minutes, index 2
+ ///is the seconds. Each is calculated from the values in PKEY_GPS_LatitudeNumerator and PKEY_GPS_LatitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {8727CFFF-4868-4EC6-AD5B-81B98521D1AB}, 100</para>
+ /// </summary>
+ public static PropertyKey Latitude
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8727CFFF-4868-4EC6-AD5B-81B98521D1AB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LatitudeDenominator -- PKEY_GPS_LatitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Latitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {16E634EE-2BFF-497B-BD8A-4341AD39EEB9}, 100</para>
+ /// </summary>
+ public static PropertyKey LatitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{16E634EE-2BFF-497B-BD8A-4341AD39EEB9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LatitudeNumerator -- PKEY_GPS_LatitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Latitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {7DDAAAD1-CCC8-41AE-B750-B2CB8031AEA2}, 100</para>
+ /// </summary>
+ public static PropertyKey LatitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7DDAAAD1-CCC8-41AE-B750-B2CB8031AEA2}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LatitudeRef -- PKEY_GPS_LatitudeRef</para>
+ /// <para>Description: Indicates whether latitude is north or south latitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {029C0252-5B86-46C7-ACA0-2769FFC8E3D4}, 100</para>
+ /// </summary>
+ public static PropertyKey LatitudeRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{029C0252-5B86-46C7-ACA0-2769FFC8E3D4}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Longitude -- PKEY_GPS_Longitude</para>
+ /// <para>Description: Indicates the longitude. This is an array of three values. Index 0 is the degrees, index 1 is the minutes, index 2
+ ///is the seconds. Each is calculated from the values in PKEY_GPS_LongitudeNumerator and PKEY_GPS_LongitudeDenominator.
+ ///</para>
+ /// <para>Type: Multivalue Double -- VT_VECTOR | VT_R8 (For variants: VT_ARRAY | VT_R8)</para>
+ /// <para>FormatID: {C4C4DBB2-B593-466B-BBDA-D03D27D5E43A}, 100</para>
+ /// </summary>
+ public static PropertyKey Longitude
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C4C4DBB2-B593-466B-BBDA-D03D27D5E43A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LongitudeDenominator -- PKEY_GPS_LongitudeDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Longitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {BE6E176C-4534-4D2C-ACE5-31DEDAC1606B}, 100</para>
+ /// </summary>
+ public static PropertyKey LongitudeDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BE6E176C-4534-4D2C-ACE5-31DEDAC1606B}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LongitudeNumerator -- PKEY_GPS_LongitudeNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Longitude
+ ///</para>
+ /// <para>Type: Multivalue UInt32 -- VT_VECTOR | VT_UI4 (For variants: VT_ARRAY | VT_UI4)</para>
+ /// <para>FormatID: {02B0F689-A914-4E45-821D-1DDA452ED2C4}, 100</para>
+ /// </summary>
+ public static PropertyKey LongitudeNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{02B0F689-A914-4E45-821D-1DDA452ED2C4}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.LongitudeRef -- PKEY_GPS_LongitudeRef</para>
+ /// <para>Description: Indicates whether longitude is east or west longitude
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {33DCF22B-28D5-464C-8035-1EE9EFD25278}, 100</para>
+ /// </summary>
+ public static PropertyKey LongitudeRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{33DCF22B-28D5-464C-8035-1EE9EFD25278}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.MapDatum -- PKEY_GPS_MapDatum</para>
+ /// <para>Description: Indicates the geodetic survey data used by the GPS receiver
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {2CA2DAE6-EDDC-407D-BEF1-773942ABFA95}, 100</para>
+ /// </summary>
+ public static PropertyKey MapDatum
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2CA2DAE6-EDDC-407D-BEF1-773942ABFA95}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.MeasureMode -- PKEY_GPS_MeasureMode</para>
+ /// <para>Description: Indicates the GPS measurement mode. (eg: 2-dimensional, 3-dimensional)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A015ED5D-AAEA-4D58-8A86-3C586920EA0B}, 100</para>
+ /// </summary>
+ public static PropertyKey MeasureMode
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A015ED5D-AAEA-4D58-8A86-3C586920EA0B}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.ProcessingMethod -- PKEY_GPS_ProcessingMethod</para>
+ /// <para>Description: Indicates the name of the method used for location finding
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {59D49E61-840F-4AA9-A939-E2099B7F6399}, 100</para>
+ /// </summary>
+ public static PropertyKey ProcessingMethod
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{59D49E61-840F-4AA9-A939-E2099B7F6399}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Satellites -- PKEY_GPS_Satellites</para>
+ /// <para>Description: Indicates the GPS satellites used for measurements
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {467EE575-1F25-4557-AD4E-B8B58B0D9C15}, 100</para>
+ /// </summary>
+ public static PropertyKey Satellites
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{467EE575-1F25-4557-AD4E-B8B58B0D9C15}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Speed -- PKEY_GPS_Speed</para>
+ /// <para>Description: Indicates the speed of the GPS receiver movement. Calculated from PKEY_GPS_SpeedNumerator and
+ ///PKEY_GPS_SpeedDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {DA5D0862-6E76-4E1B-BABD-70021BD25494}, 100</para>
+ /// </summary>
+ public static PropertyKey Speed
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DA5D0862-6E76-4E1B-BABD-70021BD25494}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.SpeedDenominator -- PKEY_GPS_SpeedDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Speed
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7D122D5A-AE5E-4335-8841-D71E7CE72F53}, 100</para>
+ /// </summary>
+ public static PropertyKey SpeedDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7D122D5A-AE5E-4335-8841-D71E7CE72F53}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.SpeedNumerator -- PKEY_GPS_SpeedNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Speed
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {ACC9CE3D-C213-4942-8B48-6D0820F21C6D}, 100</para>
+ /// </summary>
+ public static PropertyKey SpeedNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{ACC9CE3D-C213-4942-8B48-6D0820F21C6D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.SpeedRef -- PKEY_GPS_SpeedRef</para>
+ /// <para>Description: Indicates the unit used to express the speed of the GPS receiver movement. (eg: kilometers per hour,
+ ///miles per hour, knots).
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {ECF7F4C9-544F-4D6D-9D98-8AD79ADAF453}, 100</para>
+ /// </summary>
+ public static PropertyKey SpeedRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{ECF7F4C9-544F-4D6D-9D98-8AD79ADAF453}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Status -- PKEY_GPS_Status</para>
+ /// <para>Description: Indicates the status of the GPS receiver when the image was recorded. (eg: measurement in progress,
+ ///measurement interoperability).
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {125491F4-818F-46B2-91B5-D537753617B2}, 100</para>
+ /// </summary>
+ public static PropertyKey Status
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{125491F4-818F-46B2-91B5-D537753617B2}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.Track -- PKEY_GPS_Track</para>
+ /// <para>Description: Indicates the direction of the GPS receiver movement. Calculated from PKEY_GPS_TrackNumerator and
+ ///PKEY_GPS_TrackDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {76C09943-7C33-49E3-9E7E-CDBA872CFADA}, 100</para>
+ /// </summary>
+ public static PropertyKey Track
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{76C09943-7C33-49E3-9E7E-CDBA872CFADA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.TrackDenominator -- PKEY_GPS_TrackDenominator</para>
+ /// <para>Description: Denominator of PKEY_GPS_Track
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {C8D1920C-01F6-40C0-AC86-2F3A4AD00770}, 100</para>
+ /// </summary>
+ public static PropertyKey TrackDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C8D1920C-01F6-40C0-AC86-2F3A4AD00770}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.TrackNumerator -- PKEY_GPS_TrackNumerator</para>
+ /// <para>Description: Numerator of PKEY_GPS_Track
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {702926F4-44A6-43E1-AE71-45627116893B}, 100</para>
+ /// </summary>
+ public static PropertyKey TrackNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{702926F4-44A6-43E1-AE71-45627116893B}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.TrackRef -- PKEY_GPS_TrackRef</para>
+ /// <para>Description: Indicates reference for the direction of the GPS receiver movement. (eg: true direction, magnetic direction)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {35DBE6FE-44C3-4400-AAAE-D2C799C407E8}, 100</para>
+ /// </summary>
+ public static PropertyKey TrackRef
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{35DBE6FE-44C3-4400-AAAE-D2C799C407E8}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.GPS.VersionID -- PKEY_GPS_VersionID</para>
+ /// <para>Description: Indicates the version of the GPS information
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: {22704DA4-C6B2-4A99-8E56-F16DF8C92599}, 100</para>
+ /// </summary>
+ public static PropertyKey VersionID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{22704DA4-C6B2-4A99-8E56-F16DF8C92599}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Identity Properties
+ /// </summary>
+ public static class Identity
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Identity.Blob -- PKEY_Identity_Blob</para>
+ /// <para>Description: Blob used to import/export identities
+ ///</para>
+ /// <para>Type: Blob -- VT_BLOB</para>
+ /// <para>FormatID: {8C3B93A4-BAED-1A83-9A32-102EE313F6EB}, 100</para>
+ /// </summary>
+ public static PropertyKey Blob
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8C3B93A4-BAED-1A83-9A32-102EE313F6EB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.DisplayName -- PKEY_Identity_DisplayName</para>
+ /// <para>Description: Display Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7D683FC9-D155-45A8-BB1F-89D19BCB792F}, 100</para>
+ /// </summary>
+ public static PropertyKey DisplayName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7D683FC9-D155-45A8-BB1F-89D19BCB792F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.IsMeIdentity -- PKEY_Identity_IsMeIdentity</para>
+ /// <para>Description: Is it Me Identity
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {A4108708-09DF-4377-9DFC-6D99986D5A67}, 100</para>
+ /// </summary>
+ public static PropertyKey IsMeIdentity
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A4108708-09DF-4377-9DFC-6D99986D5A67}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.PrimaryEmailAddress -- PKEY_Identity_PrimaryEmailAddress</para>
+ /// <para>Description: Primary Email Address
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FCC16823-BAED-4F24-9B32-A0982117F7FA}, 100</para>
+ /// </summary>
+ public static PropertyKey PrimaryEmailAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FCC16823-BAED-4F24-9B32-A0982117F7FA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.ProviderID -- PKEY_Identity_ProviderID</para>
+ /// <para>Description: Provider ID
+ ///</para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: {74A7DE49-FA11-4D3D-A006-DB7E08675916}, 100</para>
+ /// </summary>
+ public static PropertyKey ProviderID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{74A7DE49-FA11-4D3D-A006-DB7E08675916}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.UniqueID -- PKEY_Identity_UniqueID</para>
+ /// <para>Description: Unique ID
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E55FC3B0-2B60-4220-918E-B21E8BF16016}, 100</para>
+ /// </summary>
+ public static PropertyKey UniqueID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E55FC3B0-2B60-4220-918E-B21E8BF16016}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Identity.UserName -- PKEY_Identity_UserName</para>
+ /// <para>Description: Identity User Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C4322503-78CA-49C6-9ACC-A68E2AFD7B6B}, 100</para>
+ /// </summary>
+ public static PropertyKey UserName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C4322503-78CA-49C6-9ACC-A68E2AFD7B6B}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// IdentityProvider Properties
+ /// </summary>
+ public static class IdentityProvider
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.IdentityProvider.Name -- PKEY_IdentityProvider_Name</para>
+ /// <para>Description: Identity Provider Name
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {B96EFF7B-35CA-4A35-8607-29E3A54C46EA}, 100</para>
+ /// </summary>
+ public static PropertyKey Name
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B96EFF7B-35CA-4A35-8607-29E3A54C46EA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.IdentityProvider.Picture -- PKEY_IdentityProvider_Picture</para>
+ /// <para>Description: Picture for the Identity Provider
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {2425166F-5642-4864-992F-98FD98F294C3}, 100</para>
+ /// </summary>
+ public static PropertyKey Picture
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2425166F-5642-4864-992F-98FD98F294C3}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Image Properties
+ /// </summary>
+ public static class Image
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Image.BitDepth -- PKEY_Image_BitDepth</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 7 (PIDISI_BITDEPTH)</para>
+ /// </summary>
+ public static PropertyKey BitDepth
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6444048F-4C8B-11D1-8B70-080036B11A03}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.ColorSpace -- PKEY_Image_ColorSpace</para>
+ /// <para>Description: PropertyTagExifColorSpace
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 40961</para>
+ /// </summary>
+ public static PropertyKey ColorSpace
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 40961);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressedBitsPerPixel -- PKEY_Image_CompressedBitsPerPixel</para>
+ /// <para>Description: Calculated from PKEY_Image_CompressedBitsPerPixelNumerator and PKEY_Image_CompressedBitsPerPixelDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {364B6FA9-37AB-482A-BE2B-AE02F60D4318}, 100</para>
+ /// </summary>
+ public static PropertyKey CompressedBitsPerPixel
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{364B6FA9-37AB-482A-BE2B-AE02F60D4318}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressedBitsPerPixelDenominator -- PKEY_Image_CompressedBitsPerPixelDenominator</para>
+ /// <para>Description: Denominator of PKEY_Image_CompressedBitsPerPixel.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {1F8844E1-24AD-4508-9DFD-5326A415CE02}, 100</para>
+ /// </summary>
+ public static PropertyKey CompressedBitsPerPixelDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1F8844E1-24AD-4508-9DFD-5326A415CE02}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressedBitsPerPixelNumerator -- PKEY_Image_CompressedBitsPerPixelNumerator</para>
+ /// <para>Description: Numerator of PKEY_Image_CompressedBitsPerPixel.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {D21A7148-D32C-4624-8900-277210F79C0F}, 100</para>
+ /// </summary>
+ public static PropertyKey CompressedBitsPerPixelNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D21A7148-D32C-4624-8900-277210F79C0F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.Compression -- PKEY_Image_Compression</para>
+ /// <para>Description: Indicates the image compression level. PropertyTagCompression.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 259</para>
+ /// </summary>
+ public static PropertyKey Compression
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 259);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.CompressionText -- PKEY_Image_CompressionText</para>
+ /// <para>Description: This is the user-friendly form of System.Image.Compression. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {3F08E66F-2F44-4BB9-A682-AC35D2562322}, 100</para>
+ /// </summary>
+ public static PropertyKey CompressionText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{3F08E66F-2F44-4BB9-A682-AC35D2562322}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.Dimensions -- PKEY_Image_Dimensions</para>
+ /// <para>Description: Indicates the dimensions of the image.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 13 (PIDISI_DIMENSIONS)</para>
+ /// </summary>
+ public static PropertyKey Dimensions
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6444048F-4C8B-11D1-8B70-080036B11A03}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.HorizontalResolution -- PKEY_Image_HorizontalResolution</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 5 (PIDISI_RESOLUTIONX)</para>
+ /// </summary>
+ public static PropertyKey HorizontalResolution
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6444048F-4C8B-11D1-8B70-080036B11A03}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.HorizontalSize -- PKEY_Image_HorizontalSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 3 (PIDISI_CX)</para>
+ /// </summary>
+ public static PropertyKey HorizontalSize
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6444048F-4C8B-11D1-8B70-080036B11A03}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.ImageID -- PKEY_Image_ImageID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {10DABE05-32AA-4C29-BF1A-63E2D220587F}, 100</para>
+ /// </summary>
+ public static PropertyKey ImageID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{10DABE05-32AA-4C29-BF1A-63E2D220587F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.ResolutionUnit -- PKEY_Image_ResolutionUnit</para>
+ /// <para>Description: </para>
+ /// <para>Type: Int16 -- VT_I2</para>
+ /// <para>FormatID: {19B51FA6-1F92-4A5C-AB48-7DF0ABD67444}, 100</para>
+ /// </summary>
+ public static PropertyKey ResolutionUnit
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{19B51FA6-1F92-4A5C-AB48-7DF0ABD67444}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.VerticalResolution -- PKEY_Image_VerticalResolution</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 6 (PIDISI_RESOLUTIONY)</para>
+ /// </summary>
+ public static PropertyKey VerticalResolution
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6444048F-4C8B-11D1-8B70-080036B11A03}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Image.VerticalSize -- PKEY_Image_VerticalSize</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 4 (PIDISI_CY)</para>
+ /// </summary>
+ public static PropertyKey VerticalSize
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6444048F-4C8B-11D1-8B70-080036B11A03}"), 4);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Journal Properties
+ /// </summary>
+ public static class Journal
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Journal.Contacts -- PKEY_Journal_Contacts</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {DEA7C82C-1D89-4A66-9427-A4E3DEBABCB1}, 100</para>
+ /// </summary>
+ public static PropertyKey Contacts
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DEA7C82C-1D89-4A66-9427-A4E3DEBABCB1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Journal.EntryType -- PKEY_Journal_EntryType</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {95BEB1FC-326D-4644-B396-CD3ED90E6DDF}, 100</para>
+ /// </summary>
+ public static PropertyKey EntryType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{95BEB1FC-326D-4644-B396-CD3ED90E6DDF}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// LayoutPattern Properties
+ /// </summary>
+ public static class LayoutPattern
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.LayoutPattern.ContentViewModeForBrowse -- PKEY_LayoutPattern_ContentViewModeForBrowse</para>
+ /// <para>Description: Specifies the layout pattern that the content view mode should apply for this item in the context of browsing.
+ ///Register the regvalue under the name of "ContentViewModeLayoutPatternForBrowse".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 500</para>
+ /// </summary>
+ public static PropertyKey ContentViewModeForBrowse
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 500);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.LayoutPattern.ContentViewModeForSearch -- PKEY_LayoutPattern_ContentViewModeForSearch</para>
+ /// <para>Description: Specifies the layout pattern that the content view mode should apply for this item in the context of searching.
+ ///Register the regvalue under the name of "ContentViewModeLayoutPatternForSearch".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 501</para>
+ /// </summary>
+ public static PropertyKey ContentViewModeForSearch
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 501);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Link Properties
+ /// </summary>
+ public static class Link
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Link.Arguments -- PKEY_Link_Arguments</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {436F2667-14E2-4FEB-B30A-146C53B5B674}, 100</para>
+ /// </summary>
+ public static PropertyKey Arguments
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{436F2667-14E2-4FEB-B30A-146C53B5B674}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.Comment -- PKEY_Link_Comment</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 5</para>
+ /// </summary>
+ public static PropertyKey Comment
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.DateVisited -- PKEY_Link_DateVisited</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {5CBF2787-48CF-4208-B90E-EE5E5D420294}, 23 (PKEYs relating to URLs. Used by IE History.)</para>
+ /// </summary>
+ public static PropertyKey DateVisited
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5CBF2787-48CF-4208-B90E-EE5E5D420294}"), 23);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.Description -- PKEY_Link_Description</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {5CBF2787-48CF-4208-B90E-EE5E5D420294}, 21 (PKEYs relating to URLs. Used by IE History.)</para>
+ /// </summary>
+ public static PropertyKey Description
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5CBF2787-48CF-4208-B90E-EE5E5D420294}"), 21);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.Status -- PKEY_Link_Status</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 3 (PID_LINK_TARGET_TYPE)</para>
+ /// </summary>
+ public static PropertyKey Status
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetExtension -- PKEY_Link_TargetExtension</para>
+ /// <para>Description: The file extension of the link target. See System.File.Extension
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {7A7D76F4-B630-4BD7-95FF-37CC51A975C9}, 2</para>
+ /// </summary>
+ public static PropertyKey TargetExtension
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7A7D76F4-B630-4BD7-95FF-37CC51A975C9}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetParsingPath -- PKEY_Link_TargetParsingPath</para>
+ /// <para>Description: This is the shell namespace path to the target of the link item. This path may be passed to
+ ///SHParseDisplayName to parse the path to the correct shell folder.
+ ///
+ ///If the target item is a file, the value is identical to System.ItemPathDisplay.
+ ///
+ ///If the target item cannot be accessed through the shell namespace, this value is VT_EMPTY.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 2 (PID_LINK_TARGET)</para>
+ /// </summary>
+ public static PropertyKey TargetParsingPath
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetSFGAOFlags -- PKEY_Link_TargetSFGAOFlags</para>
+ /// <para>Description: IShellFolder::GetAttributesOf flags for the target of a link, with SFGAO_PKEYSFGAOMASK
+ ///attributes masked out.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_LINK) {B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}, 8</para>
+ /// </summary>
+ public static PropertyKey TargetSFGAOFlags
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B9B4B3FC-2B51-4A42-B5D8-324146AFCF25}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetSFGAOFlagsStrings -- PKEY_Link_TargetSFGAOFlagsStrings</para>
+ /// <para>Description: Expresses the SFGAO flags of a link as string values and is used as a query optimization. See
+ ///PKEY_Shell_SFGAOFlagsStrings for possible values of this.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D6942081-D53B-443D-AD47-5E059D9CD27A}, 3</para>
+ /// </summary>
+ public static PropertyKey TargetSFGAOFlagsStrings
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D6942081-D53B-443D-AD47-5E059D9CD27A}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Link.TargetUrl -- PKEY_Link_TargetUrl</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {5CBF2787-48CF-4208-B90E-EE5E5D420294}, 2 (PKEYs relating to URLs. Used by IE History.)</para>
+ /// </summary>
+ public static PropertyKey TargetUrl
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{5CBF2787-48CF-4208-B90E-EE5E5D420294}"), 2);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Media Properties
+ /// </summary>
+ public static class Media
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Media.AuthorUrl -- PKEY_Media_AuthorUrl</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 32 (PIDMSI_AUTHOR_URL)</para>
+ /// </summary>
+ public static PropertyKey AuthorUrl
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 32);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.AverageLevel -- PKEY_Media_AverageLevel</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {09EDD5B6-B301-43C5-9990-D00302EFFD46}, 100</para>
+ /// </summary>
+ public static PropertyKey AverageLevel
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{09EDD5B6-B301-43C5-9990-D00302EFFD46}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ClassPrimaryID -- PKEY_Media_ClassPrimaryID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 13 (PIDMSI_CLASS_PRIMARY_ID)</para>
+ /// </summary>
+ public static PropertyKey ClassPrimaryID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ClassSecondaryID -- PKEY_Media_ClassSecondaryID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 14 (PIDMSI_CLASS_SECONDARY_ID)</para>
+ /// </summary>
+ public static PropertyKey ClassSecondaryID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CollectionGroupID -- PKEY_Media_CollectionGroupID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 24 (PIDMSI_COLLECTION_GROUP_ID)</para>
+ /// </summary>
+ public static PropertyKey CollectionGroupID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 24);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CollectionID -- PKEY_Media_CollectionID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 25 (PIDMSI_COLLECTION_ID)</para>
+ /// </summary>
+ public static PropertyKey CollectionID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 25);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ContentDistributor -- PKEY_Media_ContentDistributor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 18 (PIDMSI_CONTENTDISTRIBUTOR)</para>
+ /// </summary>
+ public static PropertyKey ContentDistributor
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 18);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ContentID -- PKEY_Media_ContentID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 26 (PIDMSI_CONTENT_ID)</para>
+ /// </summary>
+ public static PropertyKey ContentID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 26);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CreatorApplication -- PKEY_Media_CreatorApplication</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 27 (PIDMSI_TOOL_NAME)</para>
+ /// </summary>
+ public static PropertyKey CreatorApplication
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 27);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.CreatorApplicationVersion -- PKEY_Media_CreatorApplicationVersion</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 28 (PIDMSI_TOOL_VERSION)</para>
+ /// </summary>
+ public static PropertyKey CreatorApplicationVersion
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 28);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.DateEncoded -- PKEY_Media_DateEncoded</para>
+ /// <para>Description: DateTime is in UTC (in the doc, not file system).
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {2E4B640D-5019-46D8-8881-55414CC5CAA0}, 100</para>
+ /// </summary>
+ public static PropertyKey DateEncoded
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2E4B640D-5019-46D8-8881-55414CC5CAA0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.DateReleased -- PKEY_Media_DateReleased</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DE41CC29-6971-4290-B472-F59F2E2F31E2}, 100</para>
+ /// </summary>
+ public static PropertyKey DateReleased
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DE41CC29-6971-4290-B472-F59F2E2F31E2}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Duration -- PKEY_Media_Duration</para>
+ /// <para>Description: 100ns units, not milliseconds
+ ///</para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: (FMTID_AudioSummaryInformation) {64440490-4C8B-11D1-8B70-080036B11A03}, 3 (PIDASI_TIMELENGTH)</para>
+ /// </summary>
+ public static PropertyKey Duration
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440490-4C8B-11D1-8B70-080036B11A03}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.DVDID -- PKEY_Media_DVDID</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 15 (PIDMSI_DVDID)</para>
+ /// </summary>
+ public static PropertyKey DVDID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 15);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.EncodedBy -- PKEY_Media_EncodedBy</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 36 (PIDMSI_ENCODED_BY)</para>
+ /// </summary>
+ public static PropertyKey EncodedBy
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 36);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.EncodingSettings -- PKEY_Media_EncodingSettings</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 37 (PIDMSI_ENCODING_SETTINGS)</para>
+ /// </summary>
+ public static PropertyKey EncodingSettings
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 37);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.FrameCount -- PKEY_Media_FrameCount</para>
+ /// <para>Description: Indicates the frame count for the image.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (PSGUID_IMAGESUMMARYINFORMATION) {6444048F-4C8B-11D1-8B70-080036B11A03}, 12 (PIDISI_FRAMECOUNT)</para>
+ /// </summary>
+ public static PropertyKey FrameCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6444048F-4C8B-11D1-8B70-080036B11A03}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.MCDI -- PKEY_Media_MCDI</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 16 (PIDMSI_MCDI)</para>
+ /// </summary>
+ public static PropertyKey MCDI
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 16);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.MetadataContentProvider -- PKEY_Media_MetadataContentProvider</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 17 (PIDMSI_PROVIDER)</para>
+ /// </summary>
+ public static PropertyKey MetadataContentProvider
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 17);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Producer -- PKEY_Media_Producer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 22 (PIDMSI_PRODUCER)</para>
+ /// </summary>
+ public static PropertyKey Producer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 22);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.PromotionUrl -- PKEY_Media_PromotionUrl</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 33 (PIDMSI_PROMOTION_URL)</para>
+ /// </summary>
+ public static PropertyKey PromotionUrl
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 33);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ProtectionType -- PKEY_Media_ProtectionType</para>
+ /// <para>Description: If media is protected, how is it protected?
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 38</para>
+ /// </summary>
+ public static PropertyKey ProtectionType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 38);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ProviderRating -- PKEY_Media_ProviderRating</para>
+ /// <para>Description: Rating (0 - 99) supplied by metadata provider
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 39</para>
+ /// </summary>
+ public static PropertyKey ProviderRating
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 39);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.ProviderStyle -- PKEY_Media_ProviderStyle</para>
+ /// <para>Description: Style of music or video, supplied by metadata provider
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 40</para>
+ /// </summary>
+ public static PropertyKey ProviderStyle
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 40);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Publisher -- PKEY_Media_Publisher</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 30 (PIDMSI_PUBLISHER)</para>
+ /// </summary>
+ public static PropertyKey Publisher
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 30);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.SubscriptionContentId -- PKEY_Media_SubscriptionContentId</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {9AEBAE7A-9644-487D-A92C-657585ED751A}, 100</para>
+ /// </summary>
+ public static PropertyKey SubscriptionContentId
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9AEBAE7A-9644-487D-A92C-657585ED751A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.SubTitle -- PKEY_Media_SubTitle</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 38 (PIDSI_MUSIC_SUB_TITLE)</para>
+ /// </summary>
+ public static PropertyKey Subtitle
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 38);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.UniqueFileIdentifier -- PKEY_Media_UniqueFileIdentifier</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 35 (PIDMSI_UNIQUE_FILE_IDENTIFIER)</para>
+ /// </summary>
+ public static PropertyKey UniqueFileIdentifier
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 35);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.UserNoAutoInfo -- PKEY_Media_UserNoAutoInfo</para>
+ /// <para>Description: If true, do NOT alter this file's metadata. Set by user.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 41</para>
+ /// </summary>
+ public static PropertyKey UserNoAutoInfo
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 41);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.UserWebUrl -- PKEY_Media_UserWebUrl</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 34 (PIDMSI_USER_WEB_URL)</para>
+ /// </summary>
+ public static PropertyKey UserWebUrl
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 34);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Writer -- PKEY_Media_Writer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 23 (PIDMSI_WRITER)</para>
+ /// </summary>
+ public static PropertyKey Writer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 23);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Media.Year -- PKEY_Media_Year</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 5 (PIDSI_MUSIC_YEAR)</para>
+ /// </summary>
+ public static PropertyKey Year
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 5);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Message Properties
+ /// </summary>
+ public static class Message
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Message.AttachmentContents -- PKEY_Message_AttachmentContents</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {3143BF7C-80A8-4854-8880-E2E40189BDD0}, 100</para>
+ /// </summary>
+ public static PropertyKey AttachmentContents
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{3143BF7C-80A8-4854-8880-E2E40189BDD0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.AttachmentNames -- PKEY_Message_AttachmentNames</para>
+ /// <para>Description: The names of the attachments in a message
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 21</para>
+ /// </summary>
+ public static PropertyKey AttachmentNames
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 21);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.BccAddress -- PKEY_Message_BccAddress</para>
+ /// <para>Description: Addresses in Bcc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 2</para>
+ /// </summary>
+ public static PropertyKey BccAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.BccName -- PKEY_Message_BccName</para>
+ /// <para>Description: person names in Bcc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 3</para>
+ /// </summary>
+ public static PropertyKey BccName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.CcAddress -- PKEY_Message_CcAddress</para>
+ /// <para>Description: Addresses in Cc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 4</para>
+ /// </summary>
+ public static PropertyKey CcAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.CcName -- PKEY_Message_CcName</para>
+ /// <para>Description: person names in Cc: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 5</para>
+ /// </summary>
+ public static PropertyKey CcName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ConversationID -- PKEY_Message_ConversationID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DC8F80BD-AF1E-4289-85B6-3DFC1B493992}, 100</para>
+ /// </summary>
+ public static PropertyKey ConversationID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DC8F80BD-AF1E-4289-85B6-3DFC1B493992}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ConversationIndex -- PKEY_Message_ConversationIndex</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: {DC8F80BD-AF1E-4289-85B6-3DFC1B493992}, 101</para>
+ /// </summary>
+ public static PropertyKey ConversationIndex
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DC8F80BD-AF1E-4289-85B6-3DFC1B493992}"), 101);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.DateReceived -- PKEY_Message_DateReceived</para>
+ /// <para>Description: Date and Time communication was received
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 20</para>
+ /// </summary>
+ public static PropertyKey DateReceived
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 20);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.DateSent -- PKEY_Message_DateSent</para>
+ /// <para>Description: Date and Time communication was sent
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 19</para>
+ /// </summary>
+ public static PropertyKey DateSent
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 19);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.Flags -- PKEY_Message_Flags</para>
+ /// <para>Description: These are flags associated with email messages to know if a read receipt is pending, etc.
+ ///The values stored here by Outlook are defined for PR_MESSAGE_FLAGS on MSDN.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {A82D9EE7-CA67-4312-965E-226BCEA85023}, 100</para>
+ /// </summary>
+ public static PropertyKey Flags
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A82D9EE7-CA67-4312-965E-226BCEA85023}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.FromAddress -- PKEY_Message_FromAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 13</para>
+ /// </summary>
+ public static PropertyKey FromAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.FromName -- PKEY_Message_FromName</para>
+ /// <para>Description: Address in from field as person name
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 14</para>
+ /// </summary>
+ public static PropertyKey FromName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.HasAttachments -- PKEY_Message_HasAttachments</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9C1FCF74-2D97-41BA-B4AE-CB2E3661A6E4}, 8</para>
+ /// </summary>
+ public static PropertyKey HasAttachments
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9C1FCF74-2D97-41BA-B4AE-CB2E3661A6E4}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.IsFwdOrReply -- PKEY_Message_IsFwdOrReply</para>
+ /// <para>Description: </para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {9A9BC088-4F6D-469E-9919-E705412040F9}, 100</para>
+ /// </summary>
+ public static PropertyKey IsFwdOrReply
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9A9BC088-4F6D-469E-9919-E705412040F9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.MessageClass -- PKEY_Message_MessageClass</para>
+ /// <para>Description: What type of outlook msg this is (meeting, task, mail, etc.)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CD9ED458-08CE-418F-A70E-F912C7BB9C5C}, 103</para>
+ /// </summary>
+ public static PropertyKey MessageClass
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CD9ED458-08CE-418F-A70E-F912C7BB9C5C}"), 103);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ProofInProgress -- PKEY_Message_ProofInProgress</para>
+ /// <para>Description: This property will be true if the message junk email proofing is still in progress.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9098F33C-9A7D-48A8-8DE5-2E1227A64E91}, 100</para>
+ /// </summary>
+ public static PropertyKey ProofInProgress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9098F33C-9A7D-48A8-8DE5-2E1227A64E91}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.SenderAddress -- PKEY_Message_SenderAddress</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0BE1C8E7-1981-4676-AE14-FDD78F05A6E7}, 100</para>
+ /// </summary>
+ public static PropertyKey SenderAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0BE1C8E7-1981-4676-AE14-FDD78F05A6E7}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.SenderName -- PKEY_Message_SenderName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0DA41CFA-D224-4A18-AE2F-596158DB4B3A}, 100</para>
+ /// </summary>
+ public static PropertyKey SenderName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0DA41CFA-D224-4A18-AE2F-596158DB4B3A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.Store -- PKEY_Message_Store</para>
+ /// <para>Description: The store (aka protocol handler) FILE, MAIL, OUTLOOKEXPRESS
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 15</para>
+ /// </summary>
+ public static PropertyKey Store
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 15);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToAddress -- PKEY_Message_ToAddress</para>
+ /// <para>Description: Addresses in To: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 16</para>
+ /// </summary>
+ public static PropertyKey ToAddress
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 16);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToDoFlags -- PKEY_Message_ToDoFlags</para>
+ /// <para>Description: Flags associated with a message flagged to know if it's still active, if it was custom flagged, etc.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {1F856A9F-6900-4ABA-9505-2D5F1B4D66CB}, 100</para>
+ /// </summary>
+ public static PropertyKey ToDoFlags
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1F856A9F-6900-4ABA-9505-2D5F1B4D66CB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToDoTitle -- PKEY_Message_ToDoTitle</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BCCC8A3C-8CEF-42E5-9B1C-C69079398BC7}, 100</para>
+ /// </summary>
+ public static PropertyKey ToDoTitle
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BCCC8A3C-8CEF-42E5-9B1C-C69079398BC7}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Message.ToName -- PKEY_Message_ToName</para>
+ /// <para>Description: Person names in To: field
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}, 17</para>
+ /// </summary>
+ public static PropertyKey ToName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3E0584C-B788-4A5A-BB20-7F5A44C9ACDD}"), 17);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Music Properties
+ /// </summary>
+ public static class Music
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Music.AlbumArtist -- PKEY_Music_AlbumArtist</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 13 (PIDSI_MUSIC_ALBUM_ARTIST)</para>
+ /// </summary>
+ public static PropertyKey AlbumArtist
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.AlbumID -- PKEY_Music_AlbumID</para>
+ /// <para>Description: Concatenation of System.Music.AlbumArtist and System.Music.AlbumTitle, suitable for indexing and display.
+ ///Used to differentiate albums with the same title from different artists.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 100</para>
+ /// </summary>
+ public static PropertyKey AlbumID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.AlbumTitle -- PKEY_Music_AlbumTitle</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 4 (PIDSI_MUSIC_ALBUM)</para>
+ /// </summary>
+ public static PropertyKey AlbumTitle
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Artist -- PKEY_Music_Artist</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 2 (PIDSI_MUSIC_ARTIST)</para>
+ /// </summary>
+ public static PropertyKey Artist
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.BeatsPerMinute -- PKEY_Music_BeatsPerMinute</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 35 (PIDSI_MUSIC_BEATS_PER_MINUTE)</para>
+ /// </summary>
+ public static PropertyKey BeatsPerMinute
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 35);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Composer -- PKEY_Music_Composer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 19 (PIDMSI_COMPOSER)</para>
+ /// </summary>
+ public static PropertyKey Composer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 19);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Conductor -- PKEY_Music_Conductor</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 36 (PIDSI_MUSIC_CONDUCTOR)</para>
+ /// </summary>
+ public static PropertyKey Conductor
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 36);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.ContentGroupDescription -- PKEY_Music_ContentGroupDescription</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 33 (PIDSI_MUSIC_CONTENT_GROUP_DESCRIPTION)</para>
+ /// </summary>
+ public static PropertyKey ContentGroupDescription
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 33);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.DisplayArtist -- PKEY_Music_DisplayArtist</para>
+ /// <para>Description: This property returns the best representation of Album Artist for a given music file
+ ///based upon AlbumArtist, ContributingArtist and compilation info.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FD122953-FA93-4EF7-92C3-04C946B2F7C8}, 100</para>
+ /// </summary>
+ public static PropertyKey DisplayArtist
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FD122953-FA93-4EF7-92C3-04C946B2F7C8}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Genre -- PKEY_Music_Genre</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 11 (PIDSI_MUSIC_GENRE)</para>
+ /// </summary>
+ public static PropertyKey Genre
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.InitialKey -- PKEY_Music_InitialKey</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 34 (PIDSI_MUSIC_INITIAL_KEY)</para>
+ /// </summary>
+ public static PropertyKey InitialKey
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 34);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.IsCompilation -- PKEY_Music_IsCompilation</para>
+ /// <para>Description: Indicates whether the file is part of a compilation.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {C449D5CB-9EA4-4809-82E8-AF9D59DED6D1}, 100</para>
+ /// </summary>
+ public static PropertyKey IsCompilation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C449D5CB-9EA4-4809-82E8-AF9D59DED6D1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Lyrics -- PKEY_Music_Lyrics</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 12 (PIDSI_MUSIC_LYRICS)</para>
+ /// </summary>
+ public static PropertyKey Lyrics
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Mood -- PKEY_Music_Mood</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 39 (PIDSI_MUSIC_MOOD)</para>
+ /// </summary>
+ public static PropertyKey Mood
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 39);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.PartOfSet -- PKEY_Music_PartOfSet</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 37 (PIDSI_MUSIC_PART_OF_SET)</para>
+ /// </summary>
+ public static PropertyKey PartOfSet
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 37);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.Period -- PKEY_Music_Period</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 31 (PIDMSI_PERIOD)</para>
+ /// </summary>
+ public static PropertyKey Period
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 31);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.SynchronizedLyrics -- PKEY_Music_SynchronizedLyrics</para>
+ /// <para>Description: </para>
+ /// <para>Type: Blob -- VT_BLOB</para>
+ /// <para>FormatID: {6B223B6A-162E-4AA9-B39F-05D678FC6D77}, 100</para>
+ /// </summary>
+ public static PropertyKey SynchronizedLyrics
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6B223B6A-162E-4AA9-B39F-05D678FC6D77}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Music.TrackNumber -- PKEY_Music_TrackNumber</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_MUSIC) {56A3372E-CE9C-11D2-9F0E-006097C686F6}, 7 (PIDSI_MUSIC_TRACK)</para>
+ /// </summary>
+ public static PropertyKey TrackNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{56A3372E-CE9C-11D2-9F0E-006097C686F6}"), 7);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Note Properties
+ /// </summary>
+ public static class Note
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Note.Color -- PKEY_Note_Color</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {4776CAFA-BCE4-4CB1-A23E-265E76D8EB11}, 100</para>
+ /// </summary>
+ public static PropertyKey Color
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{4776CAFA-BCE4-4CB1-A23E-265E76D8EB11}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Note.ColorText -- PKEY_Note_ColorText</para>
+ /// <para>Description: This is the user-friendly form of System.Note.Color. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {46B4E8DE-CDB2-440D-885C-1658EB65B914}, 100</para>
+ /// </summary>
+ public static PropertyKey ColorText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{46B4E8DE-CDB2-440D-885C-1658EB65B914}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Photo Properties
+ /// </summary>
+ public static class Photo
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Photo.Aperture -- PKEY_Photo_Aperture</para>
+ /// <para>Description: PropertyTagExifAperture. Calculated from PKEY_Photo_ApertureNumerator and PKEY_Photo_ApertureDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37378</para>
+ /// </summary>
+ public static PropertyKey Aperture
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37378);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ApertureDenominator -- PKEY_Photo_ApertureDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_Aperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {E1A9A38B-6685-46BD-875E-570DC7AD7320}, 100</para>
+ /// </summary>
+ public static PropertyKey ApertureDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E1A9A38B-6685-46BD-875E-570DC7AD7320}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ApertureNumerator -- PKEY_Photo_ApertureNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_Aperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {0337ECEC-39FB-4581-A0BD-4C4CC51E9914}, 100</para>
+ /// </summary>
+ public static PropertyKey ApertureNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0337ECEC-39FB-4581-A0BD-4C4CC51E9914}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Brightness -- PKEY_Photo_Brightness</para>
+ /// <para>Description: This is the brightness of the photo.
+ ///
+ ///Calculated from PKEY_Photo_BrightnessNumerator and PKEY_Photo_BrightnessDenominator.
+ ///
+ ///The units are "APEX", normally in the range of -99.99 to 99.99. If the numerator of
+ ///the recorded value is FFFFFFFF.H, "Unknown" should be indicated.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {1A701BF6-478C-4361-83AB-3701BB053C58}, 100 (PropertyTagExifBrightness)</para>
+ /// </summary>
+ public static PropertyKey Brightness
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1A701BF6-478C-4361-83AB-3701BB053C58}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.BrightnessDenominator -- PKEY_Photo_BrightnessDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_Brightness
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6EBE6946-2321-440A-90F0-C043EFD32476}, 100</para>
+ /// </summary>
+ public static PropertyKey BrightnessDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6EBE6946-2321-440A-90F0-C043EFD32476}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.BrightnessNumerator -- PKEY_Photo_BrightnessNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_Brightness
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {9E7D118F-B314-45A0-8CFB-D654B917C9E9}, 100</para>
+ /// </summary>
+ public static PropertyKey BrightnessNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9E7D118F-B314-45A0-8CFB-D654B917C9E9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.CameraManufacturer -- PKEY_Photo_CameraManufacturer</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 271 (PropertyTagEquipMake)</para>
+ /// </summary>
+ public static PropertyKey CameraManufacturer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 271);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.CameraModel -- PKEY_Photo_CameraModel</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 272 (PropertyTagEquipModel)</para>
+ /// </summary>
+ public static PropertyKey CameraModel
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 272);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.CameraSerialNumber -- PKEY_Photo_CameraSerialNumber</para>
+ /// <para>Description: Serial number of camera that produced this photo
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 273</para>
+ /// </summary>
+ public static PropertyKey CameraSerialNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 273);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Contrast -- PKEY_Photo_Contrast</para>
+ /// <para>Description: This indicates the direction of contrast processing applied by the camera
+ ///when the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {2A785BA9-8D23-4DED-82E6-60A350C86A10}, 100</para>
+ /// </summary>
+ public static PropertyKey Contrast
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2A785BA9-8D23-4DED-82E6-60A350C86A10}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ContrastText -- PKEY_Photo_ContrastText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Contrast. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {59DDE9F2-5253-40EA-9A8B-479E96C6249A}, 100</para>
+ /// </summary>
+ public static PropertyKey ContrastText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{59DDE9F2-5253-40EA-9A8B-479E96C6249A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DateTaken -- PKEY_Photo_DateTaken</para>
+ /// <para>Description: PropertyTagExifDTOrig
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 36867</para>
+ /// </summary>
+ public static PropertyKey DateTaken
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 36867);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DigitalZoom -- PKEY_Photo_DigitalZoom</para>
+ /// <para>Description: PropertyTagExifDigitalZoom. Calculated from PKEY_Photo_DigitalZoomNumerator and PKEY_Photo_DigitalZoomDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {F85BF840-A925-4BC2-B0C4-8E36B598679E}, 100</para>
+ /// </summary>
+ public static PropertyKey DigitalZoom
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F85BF840-A925-4BC2-B0C4-8E36B598679E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DigitalZoomDenominator -- PKEY_Photo_DigitalZoomDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_DigitalZoom
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {745BAF0E-E5C1-4CFB-8A1B-D031A0A52393}, 100</para>
+ /// </summary>
+ public static PropertyKey DigitalZoomDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{745BAF0E-E5C1-4CFB-8A1B-D031A0A52393}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.DigitalZoomNumerator -- PKEY_Photo_DigitalZoomNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_DigitalZoom
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {16CBB924-6500-473B-A5BE-F1599BCBE413}, 100</para>
+ /// </summary>
+ public static PropertyKey DigitalZoomNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{16CBB924-6500-473B-A5BE-F1599BCBE413}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Event -- PKEY_Photo_Event</para>
+ /// <para>Description: The event at which the photo was taken
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 18248</para>
+ /// </summary>
+ public static PropertyKey Event
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 18248);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.EXIFVersion -- PKEY_Photo_EXIFVersion</para>
+ /// <para>Description: The EXIF version.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D35F743A-EB2E-47F2-A286-844132CB1427}, 100</para>
+ /// </summary>
+ public static PropertyKey EXIFVersion
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D35F743A-EB2E-47F2-A286-844132CB1427}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureBias -- PKEY_Photo_ExposureBias</para>
+ /// <para>Description: PropertyTagExifExposureBias. Calculated from PKEY_Photo_ExposureBiasNumerator and PKEY_Photo_ExposureBiasDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37380</para>
+ /// </summary>
+ public static PropertyKey ExposureBias
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37380);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureBiasDenominator -- PKEY_Photo_ExposureBiasDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ExposureBias
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {AB205E50-04B7-461C-A18C-2F233836E627}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureBiasDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AB205E50-04B7-461C-A18C-2F233836E627}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureBiasNumerator -- PKEY_Photo_ExposureBiasNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ExposureBias
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {738BF284-1D87-420B-92CF-5834BF6EF9ED}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureBiasNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{738BF284-1D87-420B-92CF-5834BF6EF9ED}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureIndex -- PKEY_Photo_ExposureIndex</para>
+ /// <para>Description: PropertyTagExifExposureIndex. Calculated from PKEY_Photo_ExposureIndexNumerator and PKEY_Photo_ExposureIndexDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {967B5AF8-995A-46ED-9E11-35B3C5B9782D}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureIndex
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{967B5AF8-995A-46ED-9E11-35B3C5B9782D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureIndexDenominator -- PKEY_Photo_ExposureIndexDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ExposureIndex
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {93112F89-C28B-492F-8A9D-4BE2062CEE8A}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureIndexDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{93112F89-C28B-492F-8A9D-4BE2062CEE8A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureIndexNumerator -- PKEY_Photo_ExposureIndexNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ExposureIndex
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {CDEDCF30-8919-44DF-8F4C-4EB2FFDB8D89}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureIndexNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CDEDCF30-8919-44DF-8F4C-4EB2FFDB8D89}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureProgram -- PKEY_Photo_ExposureProgram</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 34850 (PropertyTagExifExposureProg)</para>
+ /// </summary>
+ public static PropertyKey ExposureProgram
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 34850);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureProgramText -- PKEY_Photo_ExposureProgramText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.ExposureProgram. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FEC690B7-5F30-4646-AE47-4CAAFBA884A3}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureProgramText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FEC690B7-5F30-4646-AE47-4CAAFBA884A3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureTime -- PKEY_Photo_ExposureTime</para>
+ /// <para>Description: PropertyTagExifExposureTime. Calculated from PKEY_Photo_ExposureTimeNumerator and PKEY_Photo_ExposureTimeDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 33434</para>
+ /// </summary>
+ public static PropertyKey ExposureTime
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 33434);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureTimeDenominator -- PKEY_Photo_ExposureTimeDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ExposureTime
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {55E98597-AD16-42E0-B624-21599A199838}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureTimeDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{55E98597-AD16-42E0-B624-21599A199838}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ExposureTimeNumerator -- PKEY_Photo_ExposureTimeNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ExposureTime
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {257E44E2-9031-4323-AC38-85C552871B2E}, 100</para>
+ /// </summary>
+ public static PropertyKey ExposureTimeNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{257E44E2-9031-4323-AC38-85C552871B2E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Flash -- PKEY_Photo_Flash</para>
+ /// <para>Description: PropertyTagExifFlash
+ ///</para>
+ /// <para>Type: Byte -- VT_UI1</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37385</para>
+ /// </summary>
+ public static PropertyKey Flash
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37385);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashEnergy -- PKEY_Photo_FlashEnergy</para>
+ /// <para>Description: PropertyTagExifFlashEnergy. Calculated from PKEY_Photo_FlashEnergyNumerator and PKEY_Photo_FlashEnergyDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 41483</para>
+ /// </summary>
+ public static PropertyKey FlashEnergy
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 41483);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashEnergyDenominator -- PKEY_Photo_FlashEnergyDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FlashEnergy
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {D7B61C70-6323-49CD-A5FC-C84277162C97}, 100</para>
+ /// </summary>
+ public static PropertyKey FlashEnergyDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D7B61C70-6323-49CD-A5FC-C84277162C97}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashEnergyNumerator -- PKEY_Photo_FlashEnergyNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FlashEnergy
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {FCAD3D3D-0858-400F-AAA3-2F66CCE2A6BC}, 100</para>
+ /// </summary>
+ public static PropertyKey FlashEnergyNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FCAD3D3D-0858-400F-AAA3-2F66CCE2A6BC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashManufacturer -- PKEY_Photo_FlashManufacturer</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {AABAF6C9-E0C5-4719-8585-57B103E584FE}, 100</para>
+ /// </summary>
+ public static PropertyKey FlashManufacturer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{AABAF6C9-E0C5-4719-8585-57B103E584FE}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashModel -- PKEY_Photo_FlashModel</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {FE83BB35-4D1A-42E2-916B-06F3E1AF719E}, 100</para>
+ /// </summary>
+ public static PropertyKey FlashModel
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FE83BB35-4D1A-42E2-916B-06F3E1AF719E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FlashText -- PKEY_Photo_FlashText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Flash. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6B8B68F6-200B-47EA-8D25-D8050F57339F}, 100</para>
+ /// </summary>
+ public static PropertyKey FlashText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6B8B68F6-200B-47EA-8D25-D8050F57339F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FNumber -- PKEY_Photo_FNumber</para>
+ /// <para>Description: PropertyTagExifFNumber. Calculated from PKEY_Photo_FNumberNumerator and PKEY_Photo_FNumberDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 33437</para>
+ /// </summary>
+ public static PropertyKey FNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 33437);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FNumberDenominator -- PKEY_Photo_FNumberDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FNumber
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {E92A2496-223B-4463-A4E3-30EABBA79D80}, 100</para>
+ /// </summary>
+ public static PropertyKey FNumberDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E92A2496-223B-4463-A4E3-30EABBA79D80}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FNumberNumerator -- PKEY_Photo_FNumberNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FNumber
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {1B97738A-FDFC-462F-9D93-1957E08BE90C}, 100</para>
+ /// </summary>
+ public static PropertyKey FNumberNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1B97738A-FDFC-462F-9D93-1957E08BE90C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLength -- PKEY_Photo_FocalLength</para>
+ /// <para>Description: PropertyTagExifFocalLength. Calculated from PKEY_Photo_FocalLengthNumerator and PKEY_Photo_FocalLengthDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37386</para>
+ /// </summary>
+ public static PropertyKey FocalLength
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37386);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLengthDenominator -- PKEY_Photo_FocalLengthDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FocalLength
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {305BC615-DCA1-44A5-9FD4-10C0BA79412E}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalLengthDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{305BC615-DCA1-44A5-9FD4-10C0BA79412E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLengthInFilm -- PKEY_Photo_FocalLengthInFilm</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {A0E74609-B84D-4F49-B860-462BD9971F98}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalLengthInFilm
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A0E74609-B84D-4F49-B860-462BD9971F98}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalLengthNumerator -- PKEY_Photo_FocalLengthNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FocalLength
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {776B6B3B-1E3D-4B0C-9A0E-8FBAF2A8492A}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalLengthNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{776B6B3B-1E3D-4B0C-9A0E-8FBAF2A8492A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneXResolution -- PKEY_Photo_FocalPlaneXResolution</para>
+ /// <para>Description: PropertyTagExifFocalXRes. Calculated from PKEY_Photo_FocalPlaneXResolutionNumerator and
+ ///PKEY_Photo_FocalPlaneXResolutionDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {CFC08D97-C6F7-4484-89DD-EBEF4356FE76}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalPlaneXResolution
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CFC08D97-C6F7-4484-89DD-EBEF4356FE76}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneXResolutionDenominator -- PKEY_Photo_FocalPlaneXResolutionDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FocalPlaneXResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {0933F3F5-4786-4F46-A8E8-D64DD37FA521}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalPlaneXResolutionDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0933F3F5-4786-4F46-A8E8-D64DD37FA521}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneXResolutionNumerator -- PKEY_Photo_FocalPlaneXResolutionNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FocalPlaneXResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {DCCB10AF-B4E2-4B88-95F9-031B4D5AB490}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalPlaneXResolutionNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DCCB10AF-B4E2-4B88-95F9-031B4D5AB490}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneYResolution -- PKEY_Photo_FocalPlaneYResolution</para>
+ /// <para>Description: PropertyTagExifFocalYRes. Calculated from PKEY_Photo_FocalPlaneYResolutionNumerator and
+ ///PKEY_Photo_FocalPlaneYResolutionDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {4FFFE4D0-914F-4AC4-8D6F-C9C61DE169B1}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalPlaneYResolution
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{4FFFE4D0-914F-4AC4-8D6F-C9C61DE169B1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneYResolutionDenominator -- PKEY_Photo_FocalPlaneYResolutionDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_FocalPlaneYResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {1D6179A6-A876-4031-B013-3347B2B64DC8}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalPlaneYResolutionDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1D6179A6-A876-4031-B013-3347B2B64DC8}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.FocalPlaneYResolutionNumerator -- PKEY_Photo_FocalPlaneYResolutionNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_FocalPlaneYResolution
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {A2E541C5-4440-4BA8-867E-75CFC06828CD}, 100</para>
+ /// </summary>
+ public static PropertyKey FocalPlaneYResolutionNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A2E541C5-4440-4BA8-867E-75CFC06828CD}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControl -- PKEY_Photo_GainControl</para>
+ /// <para>Description: This indicates the degree of overall image gain adjustment.
+ ///
+ ///Calculated from PKEY_Photo_GainControlNumerator and PKEY_Photo_GainControlDenominator.
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {FA304789-00C7-4D80-904A-1E4DCC7265AA}, 100 (PropertyTagExifGainControl)</para>
+ /// </summary>
+ public static PropertyKey GainControl
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FA304789-00C7-4D80-904A-1E4DCC7265AA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControlDenominator -- PKEY_Photo_GainControlDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_GainControl
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {42864DFD-9DA4-4F77-BDED-4AAD7B256735}, 100</para>
+ /// </summary>
+ public static PropertyKey GainControlDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{42864DFD-9DA4-4F77-BDED-4AAD7B256735}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControlNumerator -- PKEY_Photo_GainControlNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_GainControl
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {8E8ECF7C-B7B8-4EB8-A63F-0EE715C96F9E}, 100</para>
+ /// </summary>
+ public static PropertyKey GainControlNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8E8ECF7C-B7B8-4EB8-A63F-0EE715C96F9E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.GainControlText -- PKEY_Photo_GainControlText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.GainControl. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C06238B2-0BF9-4279-A723-25856715CB9D}, 100</para>
+ /// </summary>
+ public static PropertyKey GainControlText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C06238B2-0BF9-4279-A723-25856715CB9D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ISOSpeed -- PKEY_Photo_ISOSpeed</para>
+ /// <para>Description: PropertyTagExifISOSpeed
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 34855</para>
+ /// </summary>
+ public static PropertyKey ISOSpeed
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 34855);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.LensManufacturer -- PKEY_Photo_LensManufacturer</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E6DDCAF7-29C5-4F0A-9A68-D19412EC7090}, 100</para>
+ /// </summary>
+ public static PropertyKey LensManufacturer
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E6DDCAF7-29C5-4F0A-9A68-D19412EC7090}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.LensModel -- PKEY_Photo_LensModel</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {E1277516-2B5F-4869-89B1-2E585BD38B7A}, 100</para>
+ /// </summary>
+ public static PropertyKey LensModel
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E1277516-2B5F-4869-89B1-2E585BD38B7A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.LightSource -- PKEY_Photo_LightSource</para>
+ /// <para>Description: PropertyTagExifLightSource
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37384</para>
+ /// </summary>
+ public static PropertyKey LightSource
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37384);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MakerNote -- PKEY_Photo_MakerNote</para>
+ /// <para>Description: </para>
+ /// <para>Type: Buffer -- VT_VECTOR | VT_UI1 (For variants: VT_ARRAY | VT_UI1)</para>
+ /// <para>FormatID: {FA303353-B659-4052-85E9-BCAC79549B84}, 100</para>
+ /// </summary>
+ public static PropertyKey MakerNote
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FA303353-B659-4052-85E9-BCAC79549B84}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MakerNoteOffset -- PKEY_Photo_MakerNoteOffset</para>
+ /// <para>Description: </para>
+ /// <para>Type: UInt64 -- VT_UI8</para>
+ /// <para>FormatID: {813F4124-34E6-4D17-AB3E-6B1F3C2247A1}, 100</para>
+ /// </summary>
+ public static PropertyKey MakerNoteOffset
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{813F4124-34E6-4D17-AB3E-6B1F3C2247A1}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MaxAperture -- PKEY_Photo_MaxAperture</para>
+ /// <para>Description: Calculated from PKEY_Photo_MaxApertureNumerator and PKEY_Photo_MaxApertureDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: {08F6D7C2-E3F2-44FC-AF1E-5AA5C81A2D3E}, 100</para>
+ /// </summary>
+ public static PropertyKey MaxAperture
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{08F6D7C2-E3F2-44FC-AF1E-5AA5C81A2D3E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MaxApertureDenominator -- PKEY_Photo_MaxApertureDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_MaxAperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {C77724D4-601F-46C5-9B89-C53F93BCEB77}, 100</para>
+ /// </summary>
+ public static PropertyKey MaxApertureDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C77724D4-601F-46C5-9B89-C53F93BCEB77}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MaxApertureNumerator -- PKEY_Photo_MaxApertureNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_MaxAperture
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {C107E191-A459-44C5-9AE6-B952AD4B906D}, 100</para>
+ /// </summary>
+ public static PropertyKey MaxApertureNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C107E191-A459-44C5-9AE6-B952AD4B906D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MeteringMode -- PKEY_Photo_MeteringMode</para>
+ /// <para>Description: PropertyTagExifMeteringMode
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37383</para>
+ /// </summary>
+ public static PropertyKey MeteringMode
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37383);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.MeteringModeText -- PKEY_Photo_MeteringModeText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.MeteringMode. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {F628FD8C-7BA8-465A-A65B-C5AA79263A9E}, 100</para>
+ /// </summary>
+ public static PropertyKey MeteringModeText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F628FD8C-7BA8-465A-A65B-C5AA79263A9E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Orientation -- PKEY_Photo_Orientation</para>
+ /// <para>Description: This is the image orientation viewed in terms of rows and columns.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 274 (PropertyTagOrientation)</para>
+ /// </summary>
+ public static PropertyKey Orientation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 274);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.OrientationText -- PKEY_Photo_OrientationText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Orientation. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A9EA193C-C511-498A-A06B-58E2776DCC28}, 100</para>
+ /// </summary>
+ public static PropertyKey OrientationText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A9EA193C-C511-498A-A06B-58E2776DCC28}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.PeopleNames -- PKEY_Photo_PeopleNames</para>
+ /// <para>Description: The people tags on an image.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: {E8309B6E-084C-49B4-B1FC-90A80331B638}, 100</para>
+ /// </summary>
+ public static PropertyKey PeopleNames
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E8309B6E-084C-49B4-B1FC-90A80331B638}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.PhotometricInterpretation -- PKEY_Photo_PhotometricInterpretation</para>
+ /// <para>Description: This is the pixel composition. In JPEG compressed data, a JPEG marker is used
+ ///instead of this property.
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: {341796F1-1DF9-4B1C-A564-91BDEFA43877}, 100</para>
+ /// </summary>
+ public static PropertyKey PhotometricInterpretation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{341796F1-1DF9-4B1C-A564-91BDEFA43877}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.PhotometricInterpretationText -- PKEY_Photo_PhotometricInterpretationText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.PhotometricInterpretation. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {821437D6-9EAB-4765-A589-3B1CBBD22A61}, 100</para>
+ /// </summary>
+ public static PropertyKey PhotometricInterpretationText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{821437D6-9EAB-4765-A589-3B1CBBD22A61}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ProgramMode -- PKEY_Photo_ProgramMode</para>
+ /// <para>Description: This is the class of the program used by the camera to set exposure when the
+ ///picture is taken.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6D217F6D-3F6A-4825-B470-5F03CA2FBE9B}, 100</para>
+ /// </summary>
+ public static PropertyKey ProgramMode
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D217F6D-3F6A-4825-B470-5F03CA2FBE9B}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ProgramModeText -- PKEY_Photo_ProgramModeText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.ProgramMode. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7FE3AA27-2648-42F3-89B0-454E5CB150C3}, 100</para>
+ /// </summary>
+ public static PropertyKey ProgramModeText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7FE3AA27-2648-42F3-89B0-454E5CB150C3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.RelatedSoundFile -- PKEY_Photo_RelatedSoundFile</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {318A6B45-087F-4DC2-B8CC-05359551FC9E}, 100</para>
+ /// </summary>
+ public static PropertyKey RelatedSoundFile
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{318A6B45-087F-4DC2-B8CC-05359551FC9E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Saturation -- PKEY_Photo_Saturation</para>
+ /// <para>Description: This indicates the direction of saturation processing applied by the camera when
+ ///the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {49237325-A95A-4F67-B211-816B2D45D2E0}, 100</para>
+ /// </summary>
+ public static PropertyKey Saturation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49237325-A95A-4F67-B211-816B2D45D2E0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SaturationText -- PKEY_Photo_SaturationText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Saturation. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {61478C08-B600-4A84-BBE4-E99C45F0A072}, 100</para>
+ /// </summary>
+ public static PropertyKey SaturationText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{61478C08-B600-4A84-BBE4-E99C45F0A072}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.Sharpness -- PKEY_Photo_Sharpness</para>
+ /// <para>Description: This indicates the direction of sharpness processing applied by the camera when
+ ///the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {FC6976DB-8349-4970-AE97-B3C5316A08F0}, 100</para>
+ /// </summary>
+ public static PropertyKey Sharpness
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{FC6976DB-8349-4970-AE97-B3C5316A08F0}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SharpnessText -- PKEY_Photo_SharpnessText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.Sharpness. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {51EC3F47-DD50-421D-8769-334F50424B1E}, 100</para>
+ /// </summary>
+ public static PropertyKey SharpnessText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{51EC3F47-DD50-421D-8769-334F50424B1E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ShutterSpeed -- PKEY_Photo_ShutterSpeed</para>
+ /// <para>Description: PropertyTagExifShutterSpeed. Calculated from PKEY_Photo_ShutterSpeedNumerator and PKEY_Photo_ShutterSpeedDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37377</para>
+ /// </summary>
+ public static PropertyKey ShutterSpeed
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37377);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ShutterSpeedDenominator -- PKEY_Photo_ShutterSpeedDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_ShutterSpeed
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {E13D8975-81C7-4948-AE3F-37CAE11E8FF7}, 100</para>
+ /// </summary>
+ public static PropertyKey ShutterSpeedDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E13D8975-81C7-4948-AE3F-37CAE11E8FF7}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.ShutterSpeedNumerator -- PKEY_Photo_ShutterSpeedNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_ShutterSpeed
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: {16EA4042-D6F4-4BCA-8349-7C78D30FB333}, 100</para>
+ /// </summary>
+ public static PropertyKey ShutterSpeedNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{16EA4042-D6F4-4BCA-8349-7C78D30FB333}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SubjectDistance -- PKEY_Photo_SubjectDistance</para>
+ /// <para>Description: PropertyTagExifSubjectDist. Calculated from PKEY_Photo_SubjectDistanceNumerator and PKEY_Photo_SubjectDistanceDenominator
+ ///</para>
+ /// <para>Type: Double -- VT_R8</para>
+ /// <para>FormatID: (FMTID_ImageProperties) {14B81DA1-0135-4D31-96D9-6CBFC9671A99}, 37382</para>
+ /// </summary>
+ public static PropertyKey SubjectDistance
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{14B81DA1-0135-4D31-96D9-6CBFC9671A99}"), 37382);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SubjectDistanceDenominator -- PKEY_Photo_SubjectDistanceDenominator</para>
+ /// <para>Description: Denominator of PKEY_Photo_SubjectDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {0C840A88-B043-466D-9766-D4B26DA3FA77}, 100</para>
+ /// </summary>
+ public static PropertyKey SubjectDistanceDenominator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0C840A88-B043-466D-9766-D4B26DA3FA77}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.SubjectDistanceNumerator -- PKEY_Photo_SubjectDistanceNumerator</para>
+ /// <para>Description: Numerator of PKEY_Photo_SubjectDistance
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {8AF4961C-F526-43E5-AA81-DB768219178D}, 100</para>
+ /// </summary>
+ public static PropertyKey SubjectDistanceNumerator
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8AF4961C-F526-43E5-AA81-DB768219178D}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.TagViewAggregate -- PKEY_Photo_TagViewAggregate</para>
+ /// <para>Description: A read-only aggregation of tag-like properties for use in building views.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR) Legacy code may treat this as VT_LPSTR.</para>
+ /// <para>FormatID: {B812F15D-C2D8-4BBF-BACD-79744346113F}, 100</para>
+ /// </summary>
+ public static PropertyKey TagViewAggregate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B812F15D-C2D8-4BBF-BACD-79744346113F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.TranscodedForSync -- PKEY_Photo_TranscodedForSync</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {9A8EBB75-6458-4E82-BACB-35C0095B03BB}, 100</para>
+ /// </summary>
+ public static PropertyKey TranscodedForSync
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9A8EBB75-6458-4E82-BACB-35C0095B03BB}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.WhiteBalance -- PKEY_Photo_WhiteBalance</para>
+ /// <para>Description: This indicates the white balance mode set when the image was shot.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {EE3D3D8A-5381-4CFA-B13B-AAF66B5F4EC9}, 100</para>
+ /// </summary>
+ public static PropertyKey WhiteBalance
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{EE3D3D8A-5381-4CFA-B13B-AAF66B5F4EC9}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Photo.WhiteBalanceText -- PKEY_Photo_WhiteBalanceText</para>
+ /// <para>Description: This is the user-friendly form of System.Photo.WhiteBalance. Not intended to be parsed
+ ///programmatically.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6336B95E-C7A7-426D-86FD-7AE3D39C84B4}, 100</para>
+ /// </summary>
+ public static PropertyKey WhiteBalanceText
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6336B95E-C7A7-426D-86FD-7AE3D39C84B4}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// PropGroup Properties
+ /// </summary>
+ public static class PropGroup
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Advanced -- PKEY_PropGroup_Advanced</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {900A403B-097B-4B95-8AE2-071FDAEEB118}, 100</para>
+ /// </summary>
+ public static PropertyKey Advanced
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{900A403B-097B-4B95-8AE2-071FDAEEB118}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Audio -- PKEY_PropGroup_Audio</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {2804D469-788F-48AA-8570-71B9C187E138}, 100</para>
+ /// </summary>
+ public static PropertyKey Audio
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2804D469-788F-48AA-8570-71B9C187E138}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Calendar -- PKEY_PropGroup_Calendar</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {9973D2B5-BFD8-438A-BA94-5349B293181A}, 100</para>
+ /// </summary>
+ public static PropertyKey Calendar
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9973D2B5-BFD8-438A-BA94-5349B293181A}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Camera -- PKEY_PropGroup_Camera</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {DE00DE32-547E-4981-AD4B-542F2E9007D8}, 100</para>
+ /// </summary>
+ public static PropertyKey Camera
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DE00DE32-547E-4981-AD4B-542F2E9007D8}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Contact -- PKEY_PropGroup_Contact</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {DF975FD3-250A-4004-858F-34E29A3E37AA}, 100</para>
+ /// </summary>
+ public static PropertyKey Contact
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DF975FD3-250A-4004-858F-34E29A3E37AA}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Content -- PKEY_PropGroup_Content</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {D0DAB0BA-368A-4050-A882-6C010FD19A4F}, 100</para>
+ /// </summary>
+ public static PropertyKey Content
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D0DAB0BA-368A-4050-A882-6C010FD19A4F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Description -- PKEY_PropGroup_Description</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {8969B275-9475-4E00-A887-FF93B8B41E44}, 100</para>
+ /// </summary>
+ public static PropertyKey Description
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8969B275-9475-4E00-A887-FF93B8B41E44}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.FileSystem -- PKEY_PropGroup_FileSystem</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {E3A7D2C1-80FC-4B40-8F34-30EA111BDC2E}, 100</para>
+ /// </summary>
+ public static PropertyKey FileSystem
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3A7D2C1-80FC-4B40-8F34-30EA111BDC2E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.General -- PKEY_PropGroup_General</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {CC301630-B192-4C22-B372-9F4C6D338E07}, 100</para>
+ /// </summary>
+ public static PropertyKey General
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CC301630-B192-4C22-B372-9F4C6D338E07}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.GPS -- PKEY_PropGroup_GPS</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {F3713ADA-90E3-4E11-AAE5-FDC17685B9BE}, 100</para>
+ /// </summary>
+ public static PropertyKey GPS
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F3713ADA-90E3-4E11-AAE5-FDC17685B9BE}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Image -- PKEY_PropGroup_Image</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {E3690A87-0FA8-4A2A-9A9F-FCE8827055AC}, 100</para>
+ /// </summary>
+ public static PropertyKey Image
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E3690A87-0FA8-4A2A-9A9F-FCE8827055AC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Media -- PKEY_PropGroup_Media</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {61872CF7-6B5E-4B4B-AC2D-59DA84459248}, 100</para>
+ /// </summary>
+ public static PropertyKey Media
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{61872CF7-6B5E-4B4B-AC2D-59DA84459248}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.MediaAdvanced -- PKEY_PropGroup_MediaAdvanced</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {8859A284-DE7E-4642-99BA-D431D044B1EC}, 100</para>
+ /// </summary>
+ public static PropertyKey MediaAdvanced
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{8859A284-DE7E-4642-99BA-D431D044B1EC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Message -- PKEY_PropGroup_Message</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {7FD7259D-16B4-4135-9F97-7C96ECD2FA9E}, 100</para>
+ /// </summary>
+ public static PropertyKey Message
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7FD7259D-16B4-4135-9F97-7C96ECD2FA9E}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Music -- PKEY_PropGroup_Music</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {68DD6094-7216-40F1-A029-43FE7127043F}, 100</para>
+ /// </summary>
+ public static PropertyKey Music
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{68DD6094-7216-40F1-A029-43FE7127043F}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Origin -- PKEY_PropGroup_Origin</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {2598D2FB-5569-4367-95DF-5CD3A177E1A5}, 100</para>
+ /// </summary>
+ public static PropertyKey Origin
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2598D2FB-5569-4367-95DF-5CD3A177E1A5}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.PhotoAdvanced -- PKEY_PropGroup_PhotoAdvanced</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {0CB2BF5A-9EE7-4A86-8222-F01E07FDADAF}, 100</para>
+ /// </summary>
+ public static PropertyKey PhotoAdvanced
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CB2BF5A-9EE7-4A86-8222-F01E07FDADAF}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.RecordedTV -- PKEY_PropGroup_RecordedTV</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {E7B33238-6584-4170-A5C0-AC25EFD9DA56}, 100</para>
+ /// </summary>
+ public static PropertyKey RecordedTV
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{E7B33238-6584-4170-A5C0-AC25EFD9DA56}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropGroup.Video -- PKEY_PropGroup_Video</para>
+ /// <para>Description: </para>
+ /// <para>Type: Null -- VT_NULL</para>
+ /// <para>FormatID: {BEBE0920-7671-4C54-A3EB-49FDDFC191EE}, 100</para>
+ /// </summary>
+ public static PropertyKey Video
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BEBE0920-7671-4C54-A3EB-49FDDFC191EE}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// PropList Properties
+ /// </summary>
+ public static class PropList
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.PropList.ConflictPrompt -- PKEY_PropList_ConflictPrompt</para>
+ /// <para>Description: The list of properties to show in the file operation conflict resolution dialog. Properties with empty
+ ///values will not be displayed. Register under the regvalue of "ConflictPrompt".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 11</para>
+ /// </summary>
+ public static PropertyKey ConflictPrompt
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.ContentViewModeForBrowse -- PKEY_PropList_ContentViewModeForBrowse</para>
+ /// <para>Description: The list of properties to show in the content view mode of an item in the context of browsing.
+ ///Register the regvalue under the name of "ContentViewModeForBrowse".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 13</para>
+ /// </summary>
+ public static PropertyKey ContentViewModeForBrowse
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.ContentViewModeForSearch -- PKEY_PropList_ContentViewModeForSearch</para>
+ /// <para>Description: The list of properties to show in the content view mode of an item in the context of searching.
+ ///Register the regvalue under the name of "ContentViewModeForSearch".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 14</para>
+ /// </summary>
+ public static PropertyKey ContentViewModeForSearch
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.ExtendedTileInfo -- PKEY_PropList_ExtendedTileInfo</para>
+ /// <para>Description: The list of properties to show in the listview on extended tiles. Register under the regvalue of
+ ///"ExtendedTileInfo".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 9</para>
+ /// </summary>
+ public static PropertyKey ExtendedTileInfo
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.FileOperationPrompt -- PKEY_PropList_FileOperationPrompt</para>
+ /// <para>Description: The list of properties to show in the file operation confirmation dialog. Properties with empty values
+ ///will not be displayed. If this list is not specified, then the InfoTip property list is used instead.
+ ///Register under the regvalue of "FileOperationPrompt".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 10</para>
+ /// </summary>
+ public static PropertyKey FileOperationPrompt
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.FullDetails -- PKEY_PropList_FullDetails</para>
+ /// <para>Description: The list of all the properties to show in the details page. Property groups can be included in this list
+ ///in order to more easily organize the UI. Register under the regvalue of "FullDetails".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 2</para>
+ /// </summary>
+ public static PropertyKey FullDetails
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.InfoTip -- PKEY_PropList_InfoTip</para>
+ /// <para>Description: The list of properties to show in the infotip. Properties with empty values will not be displayed. Register
+ ///under the regvalue of "InfoTip".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 4 (PID_PROPLIST_INFOTIP)</para>
+ /// </summary>
+ public static PropertyKey InfoTip
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.NonPersonal -- PKEY_PropList_NonPersonal</para>
+ /// <para>Description: The list of properties that are considered 'non-personal'. When told to remove all non-personal properties
+ ///from a given file, the system will leave these particular properties untouched. Register under the regvalue
+ ///of "NonPersonal".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {49D1091F-082E-493F-B23F-D2308AA9668C}, 100</para>
+ /// </summary>
+ public static PropertyKey NonPersonal
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49D1091F-082E-493F-B23F-D2308AA9668C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.PreviewDetails -- PKEY_PropList_PreviewDetails</para>
+ /// <para>Description: The list of properties to display in the preview pane. Register under the regvalue of "PreviewDetails".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 8</para>
+ /// </summary>
+ public static PropertyKey PreviewDetails
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.PreviewTitle -- PKEY_PropList_PreviewTitle</para>
+ /// <para>Description: The one or two properties to display in the preview pane title section. The optional second property is
+ ///displayed as a subtitle. Register under the regvalue of "PreviewTitle".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 6</para>
+ /// </summary>
+ public static PropertyKey PreviewTitle
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.QuickTip -- PKEY_PropList_QuickTip</para>
+ /// <para>Description: The list of properties to show in the infotip when the item is on a slow network. Properties with empty
+ ///values will not be displayed. Register under the regvalue of "QuickTip".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 5 (PID_PROPLIST_QUICKTIP)</para>
+ /// </summary>
+ public static PropertyKey QuickTip
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.TileInfo -- PKEY_PropList_TileInfo</para>
+ /// <para>Description: The list of properties to show in the listview on tiles. Register under the regvalue of "TileInfo".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {C9944A21-A406-48FE-8225-AEC7E24C211B}, 3 (PID_PROPLIST_TILEINFO)</para>
+ /// </summary>
+ public static PropertyKey TileInfo
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{C9944A21-A406-48FE-8225-AEC7E24C211B}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.PropList.XPDetailsPanel -- PKEY_PropList_XPDetailsPanel</para>
+ /// <para>Description: The list of properties to display in the XP webview details panel. Obsolete.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_WebView) {F2275480-F782-4291-BD94-F13693513AEC}, 0 (PID_DISPLAY_PROPERTIES)</para>
+ /// </summary>
+ public static PropertyKey XPDetailsPanel
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{F2275480-F782-4291-BD94-F13693513AEC}"), 0);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// RecordedTV Properties
+ /// </summary>
+ public static class RecordedTV
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.ChannelNumber -- PKEY_RecordedTV_ChannelNumber</para>
+ /// <para>Description: Example: 42
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 7</para>
+ /// </summary>
+ public static PropertyKey ChannelNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.Credits -- PKEY_RecordedTV_Credits</para>
+ /// <para>Description: Example: "Don Messick/Frank Welker/Casey Kasem/Heather North/Nicole Jaffe;;;"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 4</para>
+ /// </summary>
+ public static PropertyKey Credits
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.DateContentExpires -- PKEY_RecordedTV_DateContentExpires</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 15</para>
+ /// </summary>
+ public static PropertyKey DateContentExpires
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 15);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.EpisodeName -- PKEY_RecordedTV_EpisodeName</para>
+ /// <para>Description: Example: "Nowhere to Hyde"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 2</para>
+ /// </summary>
+ public static PropertyKey EpisodeName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsATSCContent -- PKEY_RecordedTV_IsATSCContent</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 16</para>
+ /// </summary>
+ public static PropertyKey IsATSCContent
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 16);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsClosedCaptioningAvailable -- PKEY_RecordedTV_IsClosedCaptioningAvailable</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 12</para>
+ /// </summary>
+ public static PropertyKey IsClosedCaptioningAvailable
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 12);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsDTVContent -- PKEY_RecordedTV_IsDTVContent</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 17</para>
+ /// </summary>
+ public static PropertyKey IsDTVContent
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 17);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsHDContent -- PKEY_RecordedTV_IsHDContent</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 18</para>
+ /// </summary>
+ public static PropertyKey IsHDContent
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 18);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsRepeatBroadcast -- PKEY_RecordedTV_IsRepeatBroadcast</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 13</para>
+ /// </summary>
+ public static PropertyKey IsRepeatBroadcast
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.IsSAP -- PKEY_RecordedTV_IsSAP</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 14</para>
+ /// </summary>
+ public static PropertyKey IsSAP
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 14);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.NetworkAffiliation -- PKEY_RecordedTV_NetworkAffiliation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {2C53C813-FB63-4E22-A1AB-0B331CA1E273}, 100</para>
+ /// </summary>
+ public static PropertyKey NetworkAffiliation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{2C53C813-FB63-4E22-A1AB-0B331CA1E273}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.OriginalBroadcastDate -- PKEY_RecordedTV_OriginalBroadcastDate</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {4684FE97-8765-4842-9C13-F006447B178C}, 100</para>
+ /// </summary>
+ public static PropertyKey OriginalBroadcastDate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{4684FE97-8765-4842-9C13-F006447B178C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.ProgramDescription -- PKEY_RecordedTV_ProgramDescription</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 3</para>
+ /// </summary>
+ public static PropertyKey ProgramDescription
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.RecordingTime -- PKEY_RecordedTV_RecordingTime</para>
+ /// <para>Description: </para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {A5477F61-7A82-4ECA-9DDE-98B69B2479B3}, 100</para>
+ /// </summary>
+ public static PropertyKey RecordingTime
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A5477F61-7A82-4ECA-9DDE-98B69B2479B3}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.StationCallSign -- PKEY_RecordedTV_StationCallSign</para>
+ /// <para>Description: Example: "TOONP"
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 5</para>
+ /// </summary>
+ public static PropertyKey StationCallSign
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{6D748DE2-8D38-4CC3-AC60-F009B057C557}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.RecordedTV.StationName -- PKEY_RecordedTV_StationName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {1B5439E7-EBA1-4AF8-BDD7-7AF1D4549493}, 100</para>
+ /// </summary>
+ public static PropertyKey StationName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{1B5439E7-EBA1-4AF8-BDD7-7AF1D4549493}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Search Properties
+ /// </summary>
+ public static class Search
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Search.AutoSummary -- PKEY_Search_AutoSummary</para>
+ /// <para>Description: General Summary of the document.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {560C36C0-503A-11CF-BAA1-00004C752A9A}, 2</para>
+ /// </summary>
+ public static PropertyKey AutoSummary
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{560C36C0-503A-11CF-BAA1-00004C752A9A}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.ContainerHash -- PKEY_Search_ContainerHash</para>
+ /// <para>Description: Hash code used to identify attachments to be deleted based on a common container url
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {BCEEE283-35DF-4D53-826A-F36A3EEFC6BE}, 100</para>
+ /// </summary>
+ public static PropertyKey ContainerHash
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{BCEEE283-35DF-4D53-826A-F36A3EEFC6BE}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.Contents -- PKEY_Search_Contents</para>
+ /// <para>Description: The contents of the item. This property is for query restrictions only; it cannot be retrieved in a
+ ///query result. The Indexing Service friendly name is 'contents'.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Storage) {B725F130-47EF-101A-A5F1-02608C9EEBAC}, 19 (PID_STG_CONTENTS)</para>
+ /// </summary>
+ public static PropertyKey Contents
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{B725F130-47EF-101A-A5F1-02608C9EEBAC}"), 19);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.EntryID -- PKEY_Search_EntryID</para>
+ /// <para>Description: The entry ID for an item within a given catalog in the Windows Search Index.
+ ///This value may be recycled, and therefore is not considered unique over time.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 5 (PROPID_QUERY_WORKID)</para>
+ /// </summary>
+ public static PropertyKey EntryID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49691C90-7E17-101A-A91C-08002B2ECDA9}"), 5);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.ExtendedProperties -- PKEY_Search_ExtendedProperties</para>
+ /// <para>Description: </para>
+ /// <para>Type: Blob -- VT_BLOB</para>
+ /// <para>FormatID: {7B03B546-FA4F-4A52-A2FE-03D5311E5865}, 100</para>
+ /// </summary>
+ public static PropertyKey ExtendedProperties
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7B03B546-FA4F-4A52-A2FE-03D5311E5865}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.GatherTime -- PKEY_Search_GatherTime</para>
+ /// <para>Description: The Datetime that the Windows Search Gatherer process last pushed properties of this document to the Windows Search Gatherer Plugins.
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {0B63E350-9CCC-11D0-BCDB-00805FCCCE04}, 8</para>
+ /// </summary>
+ public static PropertyKey GatherTime
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0B63E350-9CCC-11D0-BCDB-00805FCCCE04}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.HitCount -- PKEY_Search_HitCount</para>
+ /// <para>Description: When using CONTAINS over the Windows Search Index, this is the number of matches of the term.
+ ///If there are multiple CONTAINS, an AND computes the min number of hits and an OR the max number of hits.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 4 (PROPID_QUERY_HITCOUNT)</para>
+ /// </summary>
+ public static PropertyKey HitCount
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49691C90-7E17-101A-A91C-08002B2ECDA9}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.IsClosedDirectory -- PKEY_Search_IsClosedDirectory</para>
+ /// <para>Description: If this property is emitted with a value of TRUE, then it indicates that this URL's last modified time applies to all of it's children, and if this URL is deleted then all of it's children are deleted as well. For example, this would be emitted as TRUE when emitting the URL of an email so that all attachments are tied to the last modified time of that email.
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 23</para>
+ /// </summary>
+ public static PropertyKey IsClosedDirectory
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0B63E343-9CCC-11D0-BCDB-00805FCCCE04}"), 23);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.IsFullyContained -- PKEY_Search_IsFullyContained</para>
+ /// <para>Description: Any child URL of a URL which has System.Search.IsClosedDirectory=TRUE must emit System.Search.IsFullyContained=TRUE. This ensures that the URL is not deleted at the end of a crawl because it hasn't been visited (which is the normal mechanism for detecting deletes). For example an email attachment would emit this property
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 24</para>
+ /// </summary>
+ public static PropertyKey IsFullyContained
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0B63E343-9CCC-11D0-BCDB-00805FCCCE04}"), 24);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.QueryFocusedSummary -- PKEY_Search_QueryFocusedSummary</para>
+ /// <para>Description: Query Focused Summary of the document.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {560C36C0-503A-11CF-BAA1-00004C752A9A}, 3</para>
+ /// </summary>
+ public static PropertyKey QueryFocusedSummary
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{560C36C0-503A-11CF-BAA1-00004C752A9A}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.QueryFocusedSummaryWithFallback -- PKEY_Search_QueryFocusedSummaryWithFallback</para>
+ /// <para>Description: Query Focused Summary of the document, if none is available it returns the AutoSummary.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {560C36C0-503A-11CF-BAA1-00004C752A9A}, 4</para>
+ /// </summary>
+ public static PropertyKey QueryFocusedSummaryWithFallback
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{560C36C0-503A-11CF-BAA1-00004C752A9A}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.Rank -- PKEY_Search_Rank</para>
+ /// <para>Description: Relevance rank of row. Ranges from 0-1000. Larger numbers = better matches. Query-time only.
+ ///</para>
+ /// <para>Type: Int32 -- VT_I4</para>
+ /// <para>FormatID: (FMTID_Query) {49691C90-7E17-101A-A91C-08002B2ECDA9}, 3 (PROPID_QUERY_RANK)</para>
+ /// </summary>
+ public static PropertyKey Rank
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{49691C90-7E17-101A-A91C-08002B2ECDA9}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.Store -- PKEY_Search_Store</para>
+ /// <para>Description: The identifier for the protocol handler that produced this item. (E.g. MAPI, CSC, FILE etc.)
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {A06992B3-8CAF-4ED7-A547-B259E32AC9FC}, 100</para>
+ /// </summary>
+ public static PropertyKey Store
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{A06992B3-8CAF-4ED7-A547-B259E32AC9FC}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.UrlToIndex -- PKEY_Search_UrlToIndex</para>
+ /// <para>Description: This property should be emitted by a container IFilter for each child URL within the container. The children will eventually be crawled by the indexer if they are within scope.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 2</para>
+ /// </summary>
+ public static PropertyKey UrlToIndex
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0B63E343-9CCC-11D0-BCDB-00805FCCCE04}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Search.UrlToIndexWithModificationTime -- PKEY_Search_UrlToIndexWithModificationTime</para>
+ /// <para>Description: This property is the same as System.Search.UrlToIndex except that it includes the time the URL was last modified. This is an optimization for the indexer as it doesn't have to call back into the protocol handler to ask for this information to determine if the content needs to be indexed again. The property is a vector with two elements, a VT_LPWSTR with the URL and a VT_FILETIME for the last modified time.
+ ///</para>
+ /// <para>Type: Multivalue Any -- VT_VECTOR | VT_NULL (For variants: VT_ARRAY | VT_NULL)</para>
+ /// <para>FormatID: {0B63E343-9CCC-11D0-BCDB-00805FCCCE04}, 12</para>
+ /// </summary>
+ public static PropertyKey UrlToIndexWithModificationTime
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0B63E343-9CCC-11D0-BCDB-00805FCCCE04}"), 12);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Shell Properties
+ /// </summary>
+ public static class Shell
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Shell.OmitFromView -- PKEY_Shell_OmitFromView</para>
+ /// <para>Description: Set this to a string value of 'True' to omit this item from shell views
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {DE35258C-C695-4CBC-B982-38B0AD24CED0}, 2</para>
+ /// </summary>
+ public static PropertyKey OmitFromView
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{DE35258C-C695-4CBC-B982-38B0AD24CED0}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Shell.SFGAOFlagsStrings -- PKEY_Shell_SFGAOFlagsStrings</para>
+ /// <para>Description: Expresses the SFGAO flags as string values and is used as a query optimization.
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: {D6942081-D53B-443D-AD47-5E059D9CD27A}, 2</para>
+ /// </summary>
+ [SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Flags")]
+ public static PropertyKey SFGAOFlagsStrings
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D6942081-D53B-443D-AD47-5E059D9CD27A}"), 2);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Software Properties
+ /// </summary>
+ public static class Software
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Software.DateLastUsed -- PKEY_Software_DateLastUsed</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: DateTime -- VT_FILETIME (For variants: VT_DATE)</para>
+ /// <para>FormatID: {841E4F90-FF59-4D16-8947-E81BBFFAB36D}, 16</para>
+ /// </summary>
+ public static PropertyKey DateLastUsed
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{841E4F90-FF59-4D16-8947-E81BBFFAB36D}"), 16);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Software.ProductName -- PKEY_Software_ProductName</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (PSFMTID_VERSION) {0CEF7D53-FA64-11D1-A203-0000F81FEDEE}, 7</para>
+ /// </summary>
+ public static PropertyKey ProductName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{0CEF7D53-FA64-11D1-A203-0000F81FEDEE}"), 7);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Sync Properties
+ /// </summary>
+ public static class Sync
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Sync.Comments -- PKEY_Sync_Comments</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 13</para>
+ /// </summary>
+ public static PropertyKey Comments
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 13);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ConflictDescription -- PKEY_Sync_ConflictDescription</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 4</para>
+ /// </summary>
+ public static PropertyKey ConflictDescription
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CE50C159-2FB8-41FD-BE68-D3E042E274BC}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ConflictFirstLocation -- PKEY_Sync_ConflictFirstLocation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 6</para>
+ /// </summary>
+ public static PropertyKey ConflictFirstLocation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CE50C159-2FB8-41FD-BE68-D3E042E274BC}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ConflictSecondLocation -- PKEY_Sync_ConflictSecondLocation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 7</para>
+ /// </summary>
+ public static PropertyKey ConflictSecondLocation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CE50C159-2FB8-41FD-BE68-D3E042E274BC}"), 7);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerCollectionID -- PKEY_Sync_HandlerCollectionID</para>
+ /// <para>Description: </para>
+ /// <para>Type: Guid -- VT_CLSID</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 2</para>
+ /// </summary>
+ public static PropertyKey HandlerCollectionID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerID -- PKEY_Sync_HandlerID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 3</para>
+ /// </summary>
+ public static PropertyKey HandlerID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerName -- PKEY_Sync_HandlerName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 2</para>
+ /// </summary>
+ public static PropertyKey HandlerName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CE50C159-2FB8-41FD-BE68-D3E042E274BC}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerType -- PKEY_Sync_HandlerType</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 8</para>
+ /// </summary>
+ public static PropertyKey HandlerType
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.HandlerTypeLabel -- PKEY_Sync_HandlerTypeLabel</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 9</para>
+ /// </summary>
+ public static PropertyKey HandlerTypeLabel
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ItemID -- PKEY_Sync_ItemID</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 6</para>
+ /// </summary>
+ public static PropertyKey ItemID
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ItemName -- PKEY_Sync_ItemName</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {CE50C159-2FB8-41FD-BE68-D3E042E274BC}, 3</para>
+ /// </summary>
+ public static PropertyKey ItemName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{CE50C159-2FB8-41FD-BE68-D3E042E274BC}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.ProgressPercentage -- PKEY_Sync_ProgressPercentage</para>
+ /// <para>Description: An integer value between 0 and 100 representing the percentage completed.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 23</para>
+ /// </summary>
+ public static PropertyKey ProgressPercentage
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 23);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.State -- PKEY_Sync_State</para>
+ /// <para>Description: Sync state.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 24</para>
+ /// </summary>
+ public static PropertyKey State
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 24);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Sync.Status -- PKEY_Sync_Status</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {7BD5533E-AF15-44DB-B8C8-BD6624E1D032}, 10</para>
+ /// </summary>
+ public static PropertyKey Status
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{7BD5533E-AF15-44DB-B8C8-BD6624E1D032}"), 10);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Task Properties
+ /// </summary>
+ public static class Task
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Task.BillingInformation -- PKEY_Task_BillingInformation</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {D37D52C6-261C-4303-82B3-08B926AC6F12}, 100</para>
+ /// </summary>
+ public static PropertyKey BillingInformation
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{D37D52C6-261C-4303-82B3-08B926AC6F12}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Task.CompletionStatus -- PKEY_Task_CompletionStatus</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {084D8A0A-E6D5-40DE-BF1F-C8820E7C877C}, 100</para>
+ /// </summary>
+ public static PropertyKey CompletionStatus
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{084D8A0A-E6D5-40DE-BF1F-C8820E7C877C}"), 100);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Task.Owner -- PKEY_Task_Owner</para>
+ /// <para>Description: </para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: {08C7CC5F-60F2-4494-AD75-55E3E0B5ADD0}, 100</para>
+ /// </summary>
+ public static PropertyKey Owner
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{08C7CC5F-60F2-4494-AD75-55E3E0B5ADD0}"), 100);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Video Properties
+ /// </summary>
+ public static class Video
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Video.Compression -- PKEY_Video_Compression</para>
+ /// <para>Description: Indicates the level of compression for the video stream. "Compression".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 10 (PIDVSI_COMPRESSION)</para>
+ /// </summary>
+ public static PropertyKey Compression
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 10);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.Director -- PKEY_Video_Director</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Multivalue String -- VT_VECTOR | VT_LPWSTR (For variants: VT_ARRAY | VT_BSTR)</para>
+ /// <para>FormatID: (PSGUID_MEDIAFILESUMMARYINFORMATION) {64440492-4C8B-11D1-8B70-080036B11A03}, 20 (PIDMSI_DIRECTOR)</para>
+ /// </summary>
+ public static PropertyKey Director
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 20);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.EncodingBitrate -- PKEY_Video_EncodingBitrate</para>
+ /// <para>Description: Indicates the data rate in "bits per second" for the video stream. "DataRate".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 8 (PIDVSI_DATA_RATE)</para>
+ /// </summary>
+ public static PropertyKey EncodingBitrate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 8);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FourCC -- PKEY_Video_FourCC</para>
+ /// <para>Description: Indicates the 4CC for the video stream.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 44</para>
+ /// </summary>
+ public static PropertyKey FourCC
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 44);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FrameHeight -- PKEY_Video_FrameHeight</para>
+ /// <para>Description: Indicates the frame height for the video stream.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 4</para>
+ /// </summary>
+ public static PropertyKey FrameHeight
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FrameRate -- PKEY_Video_FrameRate</para>
+ /// <para>Description: Indicates the frame rate in "frames per millisecond" for the video stream. "FrameRate".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 6 (PIDVSI_FRAME_RATE)</para>
+ /// </summary>
+ public static PropertyKey FrameRate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 6);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.FrameWidth -- PKEY_Video_FrameWidth</para>
+ /// <para>Description: Indicates the frame width for the video stream.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 3</para>
+ /// </summary>
+ public static PropertyKey FrameWidth
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 3);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.HorizontalAspectRatio -- PKEY_Video_HorizontalAspectRatio</para>
+ /// <para>Description: Indicates the horizontal portion of the aspect ratio. The X portion of XX:YY,
+ ///like 16:9.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 42</para>
+ /// </summary>
+ public static PropertyKey HorizontalAspectRatio
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 42);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.SampleSize -- PKEY_Video_SampleSize</para>
+ /// <para>Description: Indicates the sample size in bits for the video stream. "SampleSize".
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 9 (PIDVSI_SAMPLE_SIZE)</para>
+ /// </summary>
+ public static PropertyKey SampleSize
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 9);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.StreamName -- PKEY_Video_StreamName</para>
+ /// <para>Description: Indicates the name for the video stream. "StreamName".
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 2 (PIDVSI_STREAM_NAME)</para>
+ /// </summary>
+ public static PropertyKey StreamName
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.StreamNumber -- PKEY_Video_StreamNumber</para>
+ /// <para>Description: "Stream Number".
+ ///</para>
+ /// <para>Type: UInt16 -- VT_UI2</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 11 (PIDVSI_STREAM_NUMBER)</para>
+ /// </summary>
+ public static PropertyKey StreamNumber
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 11);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.TotalBitrate -- PKEY_Video_TotalBitrate</para>
+ /// <para>Description: Indicates the total data rate in "bits per second" for all video and audio streams.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 43 (PIDVSI_TOTAL_BITRATE)</para>
+ /// </summary>
+ public static PropertyKey TotalBitrate
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 43);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.TranscodedForSync -- PKEY_Video_TranscodedForSync</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 46</para>
+ /// </summary>
+ public static PropertyKey TranscodedForSync
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 46);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Video.VerticalAspectRatio -- PKEY_Video_VerticalAspectRatio</para>
+ /// <para>Description: Indicates the vertical portion of the aspect ratio. The Y portion of
+ ///XX:YY, like 16:9.
+ ///</para>
+ /// <para>Type: UInt32 -- VT_UI4</para>
+ /// <para>FormatID: (FMTID_VideoSummaryInformation) {64440491-4C8B-11D1-8B70-080036B11A03}, 45</para>
+ /// </summary>
+ public static PropertyKey VerticalAspectRatio
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{64440491-4C8B-11D1-8B70-080036B11A03}"), 45);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+
+ /// <summary>
+ /// Volume Properties
+ /// </summary>
+ public static class Volume
+ {
+
+
+ #region Properties
+
+ /// <summary>
+ /// <para>Name: System.Volume.FileSystem -- PKEY_Volume_FileSystem</para>
+ /// <para>Description: Indicates the filesystem of the volume.
+ ///</para>
+ /// <para>Type: String -- VT_LPWSTR (For variants: VT_BSTR)</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 4 (PID_VOLUME_FILESYSTEM) (Filesystem Volume Properties)</para>
+ /// </summary>
+ public static PropertyKey FileSystem
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9B174B35-40FF-11D2-A27E-00C04FC30871}"), 4);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Volume.IsMappedDrive -- PKEY_Volume_IsMappedDrive</para>
+ /// <para>Description: </para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: {149C0B69-2C2D-48FC-808F-D318D78C4636}, 2</para>
+ /// </summary>
+ public static PropertyKey IsMappedDrive
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{149C0B69-2C2D-48FC-808F-D318D78C4636}"), 2);
+
+ return key;
+ }
+ }
+
+ /// <summary>
+ /// <para>Name: System.Volume.IsRoot -- PKEY_Volume_IsRoot</para>
+ /// <para>Description:
+ ///</para>
+ /// <para>Type: Boolean -- VT_BOOL</para>
+ /// <para>FormatID: (FMTID_Volume) {9B174B35-40FF-11D2-A27E-00C04FC30871}, 10 (Filesystem Volume Properties)</para>
+ /// </summary>
+ public static PropertyKey IsRoot
+ {
+ get
+ {
+ PropertyKey key = new PropertyKey(new Guid("{9B174B35-40FF-11D2-A27E-00C04FC30871}"), 10);
+
+ return key;
+ }
+ }
+ #endregion
+
+
+
+ }
+ #endregion
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/WindowProperties.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/WindowProperties.cs
new file mode 100644
index 0000000000..79443662ad
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/PropertySystem/WindowProperties.cs
@@ -0,0 +1,37 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Windows;
+using System.Windows.Interop;
+using Microsoft.WindowsAPICodePack.Taskbar;
+
+namespace Microsoft.WindowsAPICodePack.Shell.PropertySystem
+{
+ /// <summary>
+ /// Helper class to modify properties for a given window
+ /// </summary>
+ public static class WindowProperties
+ {
+ /// <summary>
+ /// Sets a shell property for a given window
+ /// </summary>
+ /// <param name="propKey">The property to set</param>
+ /// <param name="windowHandle">Handle to the window that the property will be set on</param>
+ /// <param name="value">The value to set for the property</param>
+ public static void SetWindowProperty(IntPtr windowHandle, PropertyKey propKey, string value)
+ {
+ TaskbarNativeMethods.SetWindowProperty(windowHandle, propKey, value);
+ }
+
+ /// <summary>
+ /// Sets a shell property for a given window
+ /// </summary>
+ /// <param name="propKey">The property to set</param>
+ /// <param name="window">Window that the property will be set on</param>
+ /// <param name="value">The value to set for the property</param>
+ public static void SetWindowProperty(Window window, PropertyKey propKey, string value)
+ {
+ TaskbarNativeMethods.SetWindowProperty((new WindowInteropHelper(window)).Handle, propKey, value);
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.Designer.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.Designer.cs
new file mode 100644
index 0000000000..01539c1acc
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.Designer.cs
@@ -0,0 +1,1251 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.1
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Microsoft.WindowsAPICodePack.Shell.Resources {
+ using System;
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class LocalizedMessages {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal LocalizedMessages() {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.WindowsAPICodePack.Shell.Resources.LocalizedMessages", typeof(LocalizedMessages).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to AddToMostRecentlyUsedList cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string AddToMostRecentlyUsedListCannotBeChanged {
+ get {
+ return ResourceManager.GetString("AddToMostRecentlyUsedListCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to AlwaysAppendDefaultExtension cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string AlwaysAppendDefaultExtensionCannotBeChanged {
+ get {
+ return ResourceManager.GetString("AlwaysAppendDefaultExtensionCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Index was outside the bounds of the CommonFileDialogComboBox..
+ /// </summary>
+ internal static string ComboBoxIndexOutsideBounds {
+ get {
+ return ResourceManager.GetString("ComboBoxIndexOutsideBounds", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to File name not available - dialog was canceled..
+ /// </summary>
+ internal static string CommonFileDialogCanceled {
+ get {
+ return ResourceManager.GetString("CommonFileDialogCanceled", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Shell item could not be created..
+ /// </summary>
+ internal static string CommonFileDialogCannotCreateShellItem {
+ get {
+ return ResourceManager.GetString("CommonFileDialogCannotCreateShellItem", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Handle provided cannot be IntPtr.Zero..
+ /// </summary>
+ internal static string CommonFileDialogInvalidHandle {
+ get {
+ return ResourceManager.GetString("CommonFileDialogInvalidHandle", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Multiple files selected - the FileNames property should be used instead..
+ /// </summary>
+ internal static string CommonFileDialogMultipleFiles {
+ get {
+ return ResourceManager.GetString("CommonFileDialogMultipleFiles", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Multiple files selected - the Items property should be used instead..
+ /// </summary>
+ internal static string CommonFileDialogMultipleItems {
+ get {
+ return ResourceManager.GetString("CommonFileDialogMultipleItems", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to File name not available - dialog has not closed yet..
+ /// </summary>
+ internal static string CommonFileDialogNotClosed {
+ get {
+ return ResourceManager.GetString("CommonFileDialogNotClosed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Common File Dialog requires Windows Vista or later..
+ /// </summary>
+ internal static string CommonFileDialogRequiresVista {
+ get {
+ return ResourceManager.GetString("CommonFileDialogRequiresVista", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Office Files.
+ /// </summary>
+ internal static string CommonFiltersOffice {
+ get {
+ return ResourceManager.GetString("CommonFiltersOffice", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to All Picture Files.
+ /// </summary>
+ internal static string CommonFiltersPicture {
+ get {
+ return ResourceManager.GetString("CommonFiltersPicture", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Text Files.
+ /// </summary>
+ internal static string CommonFiltersText {
+ get {
+ return ResourceManager.GetString("CommonFiltersText", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to CreatePrompt cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string CreatePromptCannotBeChanged {
+ get {
+ return ResourceManager.GetString("CreatePromptCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Custom controls cannot be removed from a File dialog once added..
+ /// </summary>
+ internal static string DialogControlCollectionCannotRemoveControls {
+ get {
+ return ResourceManager.GetString("DialogControlCollectionCannotRemoveControls", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Control name cannot be null or zero length..
+ /// </summary>
+ internal static string DialogControlCollectionEmptyName {
+ get {
+ return ResourceManager.GetString("DialogControlCollectionEmptyName", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to CommonFileDialogMenuItem controls can only be added to CommonFileDialogMenu controls..
+ /// </summary>
+ internal static string DialogControlCollectionMenuItemControlsCannotBeAdded {
+ get {
+ return ResourceManager.GetString("DialogControlCollectionMenuItemControlsCannotBeAdded", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Modifying controls collection while dialog is showing is not supported..
+ /// </summary>
+ internal static string DialogControlCollectionModifyingControls {
+ get {
+ return ResourceManager.GetString("DialogControlCollectionModifyingControls", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog cannot have more than one control with the same name..
+ /// </summary>
+ internal static string DialogControlCollectionMoreThanOneControl {
+ get {
+ return ResourceManager.GetString("DialogControlCollectionMoreThanOneControl", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Dialog control must be removed from current collections first..
+ /// </summary>
+ internal static string DialogControlCollectionRemoveControlFirst {
+ get {
+ return ResourceManager.GetString("DialogControlCollectionRemoveControlFirst", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to EnsureFileExists cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string EnsureFileExistsCannotBeChanged {
+ get {
+ return ResourceManager.GetString("EnsureFileExistsCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to EnsurePathExists cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string EnsurePathExistsCannotBeChanged {
+ get {
+ return ResourceManager.GetString("EnsurePathExistsCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to EnsureReadOnly cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string EnsureReadonlyCannotBeChanged {
+ get {
+ return ResourceManager.GetString("EnsureReadonlyCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to EnsureValidNames cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string EnsureValidNamesCannotBeChanged {
+ get {
+ return ResourceManager.GetString("EnsureValidNamesCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Browsing to object failed..
+ /// </summary>
+ internal static string ExplorerBrowserBrowseToObjectFailed {
+ get {
+ return ResourceManager.GetString("ExplorerBrowserBrowseToObjectFailed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to ExplorerBrowser failed to get current view..
+ /// </summary>
+ internal static string ExplorerBrowserFailedToGetView {
+ get {
+ return ResourceManager.GetString("ExplorerBrowserFailedToGetView", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to get icon size..
+ /// </summary>
+ internal static string ExplorerBrowserIconSize {
+ get {
+ return ResourceManager.GetString("ExplorerBrowserIconSize", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unexpected error retrieving item count..
+ /// </summary>
+ internal static string ExplorerBrowserItemCount {
+ get {
+ return ResourceManager.GetString("ExplorerBrowserItemCount", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unexpected error retrieving selected item count..
+ /// </summary>
+ internal static string ExplorerBrowserSelectedItemCount {
+ get {
+ return ResourceManager.GetString("ExplorerBrowserSelectedItemCount", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unexpected error retrieving selection..
+ /// </summary>
+ internal static string ExplorerBrowserUnexpectedError {
+ get {
+ return ResourceManager.GetString("ExplorerBrowserUnexpectedError", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unexpected error retrieving view items..
+ /// </summary>
+ internal static string ExplorerBrowserViewItems {
+ get {
+ return ResourceManager.GetString("ExplorerBrowserViewItems", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The given path does not exist ({0}).
+ /// </summary>
+ internal static string FilePathNotExist {
+ get {
+ return ResourceManager.GetString("FilePathNotExist", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Guid does not identify a known folder..
+ /// </summary>
+ internal static string FolderIdsUnknownGuid {
+ get {
+ return ResourceManager.GetString("FolderIdsUnknownGuid", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to ControlPanel Category.
+ /// </summary>
+ internal static string FolderTypeCategory {
+ get {
+ return ResourceManager.GetString("FolderTypeCategory", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to ControlPanel Classic.
+ /// </summary>
+ internal static string FolderTypeClassic {
+ get {
+ return ResourceManager.GetString("FolderTypeClassic", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Communications.
+ /// </summary>
+ internal static string FolderTypeCommunications {
+ get {
+ return ResourceManager.GetString("FolderTypeCommunications", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Compressed Folder.
+ /// </summary>
+ internal static string FolderTypeCompressedFolder {
+ get {
+ return ResourceManager.GetString("FolderTypeCompressedFolder", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Contacts.
+ /// </summary>
+ internal static string FolderTypeContacts {
+ get {
+ return ResourceManager.GetString("FolderTypeContacts", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Documents.
+ /// </summary>
+ internal static string FolderTypeDocuments {
+ get {
+ return ResourceManager.GetString("FolderTypeDocuments", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Games.
+ /// </summary>
+ internal static string FolderTypeGames {
+ get {
+ return ResourceManager.GetString("FolderTypeGames", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Generic Library.
+ /// </summary>
+ internal static string FolderTypeGenericLibrary {
+ get {
+ return ResourceManager.GetString("FolderTypeGenericLibrary", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Invalid.
+ /// </summary>
+ internal static string FolderTypeInvalid {
+ get {
+ return ResourceManager.GetString("FolderTypeInvalid", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Library.
+ /// </summary>
+ internal static string FolderTypeLibrary {
+ get {
+ return ResourceManager.GetString("FolderTypeLibrary", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Music.
+ /// </summary>
+ internal static string FolderTypeMusic {
+ get {
+ return ResourceManager.GetString("FolderTypeMusic", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Music Icons.
+ /// </summary>
+ internal static string FolderTypeMusicIcons {
+ get {
+ return ResourceManager.GetString("FolderTypeMusicIcons", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Network Explorer.
+ /// </summary>
+ internal static string FolderTypeNetworkExplorer {
+ get {
+ return ResourceManager.GetString("FolderTypeNetworkExplorer", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Not Specified.
+ /// </summary>
+ internal static string FolderTypeNotSpecified {
+ get {
+ return ResourceManager.GetString("FolderTypeNotSpecified", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Open Search.
+ /// </summary>
+ internal static string FolderTypeOpenSearch {
+ get {
+ return ResourceManager.GetString("FolderTypeOpenSearch", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Other Users.
+ /// </summary>
+ internal static string FolderTypeOtherUsers {
+ get {
+ return ResourceManager.GetString("FolderTypeOtherUsers", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Pictures.
+ /// </summary>
+ internal static string FolderTypePictures {
+ get {
+ return ResourceManager.GetString("FolderTypePictures", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Printers.
+ /// </summary>
+ internal static string FolderTypePrinters {
+ get {
+ return ResourceManager.GetString("FolderTypePrinters", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to RecordedTV.
+ /// </summary>
+ internal static string FolderTypeRecordedTV {
+ get {
+ return ResourceManager.GetString("FolderTypeRecordedTV", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to RecycleBin.
+ /// </summary>
+ internal static string FolderTypeRecycleBin {
+ get {
+ return ResourceManager.GetString("FolderTypeRecycleBin", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Saved Games.
+ /// </summary>
+ internal static string FolderTypeSavedGames {
+ get {
+ return ResourceManager.GetString("FolderTypeSavedGames", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Search Connector.
+ /// </summary>
+ internal static string FolderTypeSearchConnector {
+ get {
+ return ResourceManager.GetString("FolderTypeSearchConnector", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Searches.
+ /// </summary>
+ internal static string FolderTypeSearches {
+ get {
+ return ResourceManager.GetString("FolderTypeSearches", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Generic SearchResults.
+ /// </summary>
+ internal static string FolderTypeSearchResults {
+ get {
+ return ResourceManager.GetString("FolderTypeSearchResults", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Software Explorer.
+ /// </summary>
+ internal static string FolderTypeSoftwareExplorer {
+ get {
+ return ResourceManager.GetString("FolderTypeSoftwareExplorer", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to User Files.
+ /// </summary>
+ internal static string FolderTypeUserFiles {
+ get {
+ return ResourceManager.GetString("FolderTypeUserFiles", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Users Libraries.
+ /// </summary>
+ internal static string FolderTypeUserLibraries {
+ get {
+ return ResourceManager.GetString("FolderTypeUserLibraries", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Videos.
+ /// </summary>
+ internal static string FolderTypeVideos {
+ get {
+ return ResourceManager.GetString("FolderTypeVideos", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to IsExpandedMode cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string IsExpandedModeCannotBeChanged {
+ get {
+ return ResourceManager.GetString("IsExpandedModeCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Custom categories cannot be added while recent documents tracking is turned off..
+ /// </summary>
+ internal static string JumpListCustomCategoriesDisabled {
+ get {
+ return ResourceManager.GetString("JumpListCustomCategoriesDisabled", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The file type is not registered with this application..
+ /// </summary>
+ internal static string JumpListFileTypeNotRegistered {
+ get {
+ return ResourceManager.GetString("JumpListFileTypeNotRegistered", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to JumpListLink&apos;s path is required and cannot be null..
+ /// </summary>
+ internal static string JumpListLinkPathRequired {
+ get {
+ return ResourceManager.GetString("JumpListLinkPathRequired", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to JumpListLink&apos;s title is required and cannot be null..
+ /// </summary>
+ internal static string JumpListLinkTitleRequired {
+ get {
+ return ResourceManager.GetString("JumpListLinkTitleRequired", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Negative numbers are not allowed for the ordinal position..
+ /// </summary>
+ internal static string JumpListNegativeOrdinalPosition {
+ get {
+ return ResourceManager.GetString("JumpListNegativeOrdinalPosition", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Given Known Folder ID is invalid..
+ /// </summary>
+ internal static string KnownFolderInvalidGuid {
+ get {
+ return ResourceManager.GetString("KnownFolderInvalidGuid", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Parsing name is invalid..
+ /// </summary>
+ internal static string KnownFolderParsingName {
+ get {
+ return ResourceManager.GetString("KnownFolderParsingName", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Creation of window has failed, view inner exception for details..
+ /// </summary>
+ internal static string MessageListenerCannotCreateWindow {
+ get {
+ return ResourceManager.GetString("MessageListenerCannotCreateWindow", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Window class could not be registered, check inner exception for more details..
+ /// </summary>
+ internal static string MessageListenerClassNotRegistered {
+ get {
+ return ResourceManager.GetString("MessageListenerClassNotRegistered", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Message filter registration failed..
+ /// </summary>
+ internal static string MessageListenerFilterUnableToRegister {
+ get {
+ return ResourceManager.GetString("MessageListenerFilterUnableToRegister", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to No listener handled of that value is registered..
+ /// </summary>
+ internal static string MessageListenerFilterUnknownListenerHandle {
+ get {
+ return ResourceManager.GetString("MessageListenerFilterUnknownListenerHandle", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Cannot create window on the listener thread because there is no existing window on the listener thread..
+ /// </summary>
+ internal static string MessageListenerNoWindowHandle {
+ get {
+ return ResourceManager.GetString("MessageListenerNoWindowHandle", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to NavigateToShortcut cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string NavigateToShortcutCannotBeChanged {
+ get {
+ return ResourceManager.GetString("NavigateToShortcutCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Parent cannot be null..
+ /// </summary>
+ internal static string NavigationLogNullParent {
+ get {
+ return ResourceManager.GetString("NavigationLogNullParent", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The method or operation is not implemented..
+ /// </summary>
+ internal static string NotImplementedException {
+ get {
+ return ResourceManager.GetString("NotImplementedException", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to OverwritePrompt cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string OverwritePromptCannotBeChanged {
+ get {
+ return ResourceManager.GetString("OverwritePromptCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to This CanonicalName is not a valid index..
+ /// </summary>
+ internal static string PropertyCollectionCanonicalInvalidIndex {
+ get {
+ return ResourceManager.GetString("PropertyCollectionCanonicalInvalidIndex", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to This PropertyKey is not a valid index..
+ /// </summary>
+ internal static string PropertyCollectionInvalidIndex {
+ get {
+ return ResourceManager.GetString("PropertyCollectionInvalidIndex", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Argument CanonicalName cannot be null or empty..
+ /// </summary>
+ internal static string PropertyCollectionNullCanonicalName {
+ get {
+ return ResourceManager.GetString("PropertyCollectionNullCanonicalName", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Index was outside the bounds of the CommonFileDialogRadioButtonList..
+ /// </summary>
+ internal static string RadioButtonListIndexOutOfBounds {
+ get {
+ return ResourceManager.GetString("RadioButtonListIndexOutOfBounds", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to RestoreDirectory cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string RestoreDirectoryCannotBeChanged {
+ get {
+ return ResourceManager.GetString("RestoreDirectoryCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Retrieved a null shell item from dialog..
+ /// </summary>
+ internal static string SaveFileNullItem {
+ get {
+ return ResourceManager.GetString("SaveFileNullItem", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Given property key is invalid..
+ /// </summary>
+ internal static string SearchConditionFactoryInvalidProperty {
+ get {
+ return ResourceManager.GetString("SearchConditionFactoryInvalidProperty", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Shell Exception has occurred, look at inner exception for information..
+ /// </summary>
+ internal static string ShellExceptionDefaultText {
+ get {
+ return ResourceManager.GetString("ShellExceptionDefaultText", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to GetParsingName has failed..
+ /// </summary>
+ internal static string ShellHelperGetParsingNameFailed {
+ get {
+ return ResourceManager.GetString("ShellHelperGetParsingNameFailed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The given CanonicalName is not valid..
+ /// </summary>
+ internal static string ShellInvalidCanonicalName {
+ get {
+ return ResourceManager.GetString("ShellInvalidCanonicalName", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to DefaultSaveFolder path not found..
+ /// </summary>
+ internal static string ShellLibraryDefaultSaveFolderNotFound {
+ get {
+ return ResourceManager.GetString("ShellLibraryDefaultSaveFolderNotFound", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to LibraryName cannot be empty..
+ /// </summary>
+ internal static string ShellLibraryEmptyName {
+ get {
+ return ResourceManager.GetString("ShellLibraryEmptyName", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Folder path not found..
+ /// </summary>
+ internal static string ShellLibraryFolderNotFound {
+ get {
+ return ResourceManager.GetString("ShellLibraryFolderNotFound", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Invalid FolderType Guid..
+ /// </summary>
+ internal static string ShellLibraryInvalidFolderType {
+ get {
+ return ResourceManager.GetString("ShellLibraryInvalidFolderType", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The given known folder is not a valid library..
+ /// </summary>
+ internal static string ShellLibraryInvalidLibrary {
+ get {
+ return ResourceManager.GetString("ShellLibraryInvalidLibrary", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Can&apos;t get the display name..
+ /// </summary>
+ internal static string ShellObjectCannotGetDisplayName {
+ get {
+ return ResourceManager.GetString("ShellObjectCannotGetDisplayName", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Destination array too small, or invalid arrayIndex..
+ /// </summary>
+ internal static string ShellObjectCollectionArrayTooSmall {
+ get {
+ return ResourceManager.GetString("ShellObjectCollectionArrayTooSmall", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Must have at least one shell object in the collection..
+ /// </summary>
+ internal static string ShellObjectCollectionEmptyCollection {
+ get {
+ return ResourceManager.GetString("ShellObjectCollectionEmptyCollection", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Cannot insert items into a read only list..
+ /// </summary>
+ internal static string ShellObjectCollectionInsertReadOnly {
+ get {
+ return ResourceManager.GetString("ShellObjectCollectionInsertReadOnly", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Cannot remove items from a read only list..
+ /// </summary>
+ internal static string ShellObjectCollectionRemoveReadOnly {
+ get {
+ return ResourceManager.GetString("ShellObjectCollectionRemoveReadOnly", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Shell item could not be created..
+ /// </summary>
+ internal static string ShellObjectCreationFailed {
+ get {
+ return ResourceManager.GetString("ShellObjectCreationFailed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Shell Object creation requires Windows Vista or higher operating system..
+ /// </summary>
+ internal static string ShellObjectFactoryPlatformNotSupported {
+ get {
+ return ResourceManager.GetString("ShellObjectFactoryPlatformNotSupported", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to Create Shell Item..
+ /// </summary>
+ internal static string ShellObjectFactoryUnableToCreateItem {
+ get {
+ return ResourceManager.GetString("ShellObjectFactoryUnableToCreateItem", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Registration for change notification has failed..
+ /// </summary>
+ internal static string ShellObjectWatcherRegisterFailed {
+ get {
+ return ResourceManager.GetString("ShellObjectWatcherRegisterFailed", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to change watched events while listening..
+ /// </summary>
+ internal static string ShellObjectWatcherUnableToChangeEvents {
+ get {
+ return ResourceManager.GetString("ShellObjectWatcherUnableToChangeEvents", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The value on this property cannot be set. To set the property value, use the ShellObject that is associated with this property..
+ /// </summary>
+ internal static string ShellPropertyCannotSetProperty {
+ get {
+ return ResourceManager.GetString("ShellPropertyCannotSetProperty", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to No constructor found matching requested argument types..
+ /// </summary>
+ internal static string ShellPropertyFactoryConstructorNotFound {
+ get {
+ return ResourceManager.GetString("ShellPropertyFactoryConstructorNotFound", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to set property..
+ /// </summary>
+ internal static string ShellPropertySetValue {
+ get {
+ return ResourceManager.GetString("ShellPropertySetValue", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to get writable property store for this property..
+ /// </summary>
+ internal static string ShellPropertyUnableToGetWritableProperty {
+ get {
+ return ResourceManager.GetString("ShellPropertyUnableToGetWritableProperty", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to A value had to be truncated in a string or rounded if a numeric value. Set AllowTruncatedValue to true to prevent this exception..
+ /// </summary>
+ internal static string ShellPropertyValueTruncated {
+ get {
+ return ResourceManager.GetString("ShellPropertyValueTruncated", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to This Property is available on Windows 7 only..
+ /// </summary>
+ internal static string ShellPropertyWindows7 {
+ get {
+ return ResourceManager.GetString("ShellPropertyWindows7", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to This property only accepts a value of type \&quot;{0}\&quot;..
+ /// </summary>
+ internal static string ShellPropertyWrongType {
+ get {
+ return ResourceManager.GetString("ShellPropertyWrongType", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to set list of sort columns..
+ /// </summary>
+ internal static string ShellSearchFolderUnableToSetSortColumns {
+ get {
+ return ResourceManager.GetString("ShellSearchFolderUnableToSetSortColumns", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Unable to set visible columns..
+ /// </summary>
+ internal static string ShellSearchFolderUnableToSetVisibleColumns {
+ get {
+ return ResourceManager.GetString("ShellSearchFolderUnableToSetVisibleColumns", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to CurrentSize (width or height) cannot be greater than the maximum size: {0}..
+ /// </summary>
+ internal static string ShellThumbnailCurrentSizeRange {
+ get {
+ return ResourceManager.GetString("ShellThumbnailCurrentSizeRange", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The current ShellObject does not have a thumbnail. Try using ShellThumbnailFormatOption.Default to get the icon for this item..
+ /// </summary>
+ internal static string ShellThumbnailDoesNotHaveThumbnail {
+ get {
+ return ResourceManager.GetString("ShellThumbnailDoesNotHaveThumbnail", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The current ShellObject does not have a valid thumbnail handler or there was a problem in extracting the thumbnail for this specific shell object..
+ /// </summary>
+ internal static string ShellThumbnailNoHandler {
+ get {
+ return ResourceManager.GetString("ShellThumbnailNoHandler", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to CurrentSize (width or height) cannot be 0..
+ /// </summary>
+ internal static string ShellThumbnailSizeCannotBe0 {
+ get {
+ return ResourceManager.GetString("ShellThumbnailSizeCannotBe0", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to ShowHiddenItems cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string ShowHiddenItemsCannotBeChanged {
+ get {
+ return ResourceManager.GetString("ShowHiddenItemsCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Show places list cannot be changed while dialog is showing..
+ /// </summary>
+ internal static string ShowPlacesListCannotBeChanged {
+ get {
+ return ResourceManager.GetString("ShowPlacesListCannotBeChanged", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The Stock Icon identifier given is invalid ({0})..
+ /// </summary>
+ internal static string StockIconInvalidGuid {
+ get {
+ return ResourceManager.GetString("StockIconInvalidGuid", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Child control&apos;s window handle cannot be zero..
+ /// </summary>
+ internal static string TabbedThumbnailZeroChildHandle {
+ get {
+ return ResourceManager.GetString("TabbedThumbnailZeroChildHandle", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Parent window handle cannot be zero..
+ /// </summary>
+ internal static string TabbedThumbnailZeroParentHandle {
+ get {
+ return ResourceManager.GetString("TabbedThumbnailZeroParentHandle", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to TabbedThumbnailProxyWindow has not been set..
+ /// </summary>
+ internal static string TasbarWindowProxyWindowSet {
+ get {
+ return ResourceManager.GetString("TasbarWindowProxyWindowSet", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to A valid active Window is needed to update the Taskbar..
+ /// </summary>
+ internal static string TaskbarManagerValidWindowRequired {
+ get {
+ return ResourceManager.GetString("TaskbarManagerValidWindowRequired", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The array of buttons must contain at least 1 item..
+ /// </summary>
+ internal static string TaskbarWindowEmptyButtonArray {
+ get {
+ return ResourceManager.GetString("TaskbarWindowEmptyButtonArray", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Tool bar buttons for this window are already added. Please refer to the Remarks section of the AddButtons method for more information on updating the properties or hiding existing buttons..
+ /// </summary>
+ internal static string TaskbarWindowManagerButtonsAlreadyAdded {
+ get {
+ return ResourceManager.GetString("TaskbarWindowManagerButtonsAlreadyAdded", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Value is already set. It cannot be set more than once..
+ /// </summary>
+ internal static string TaskbarWindowValueSet {
+ get {
+ return ResourceManager.GetString("TaskbarWindowValueSet", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The given control has not been added to the taskbar..
+ /// </summary>
+ internal static string ThumbnailManagerControlNotAdded {
+ get {
+ return ResourceManager.GetString("ThumbnailManagerControlNotAdded", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Window handle is invalid..
+ /// </summary>
+ internal static string ThumbnailManagerInvalidHandle {
+ get {
+ return ResourceManager.GetString("ThumbnailManagerInvalidHandle", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to This preview has already been added..
+ /// </summary>
+ internal static string ThumbnailManagerPreviewAdded {
+ get {
+ return ResourceManager.GetString("ThumbnailManagerPreviewAdded", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to The given preview has not been added to the taskbar..
+ /// </summary>
+ internal static string ThumbnailManagerPreviewNotAdded {
+ get {
+ return ResourceManager.GetString("ThumbnailManagerPreviewNotAdded", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Maximum number of buttons allowed is 7..
+ /// </summary>
+ internal static string ThumbnailToolbarManagerMaxButtons {
+ get {
+ return ResourceManager.GetString("ThumbnailToolbarManagerMaxButtons", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Null or empty arrays are not allowed..
+ /// </summary>
+ internal static string ThumbnailToolbarManagerNullEmptyArray {
+ get {
+ return ResourceManager.GetString("ThumbnailToolbarManagerNullEmptyArray", resourceCulture);
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.resx b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.resx
new file mode 100644
index 0000000000..06256dbcdc
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Resources/LocalizedMessages.resx
@@ -0,0 +1,516 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <data name="AddToMostRecentlyUsedListCannotBeChanged" xml:space="preserve">
+ <value>AddToMostRecentlyUsedList cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="AlwaysAppendDefaultExtensionCannotBeChanged" xml:space="preserve">
+ <value>AlwaysAppendDefaultExtension cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="ComboBoxIndexOutsideBounds" xml:space="preserve">
+ <value>Index was outside the bounds of the CommonFileDialogComboBox.</value>
+ </data>
+ <data name="CommonFileDialogCanceled" xml:space="preserve">
+ <value>File name not available - dialog was canceled.</value>
+ </data>
+ <data name="CommonFileDialogCannotCreateShellItem" xml:space="preserve">
+ <value>Shell item could not be created.</value>
+ </data>
+ <data name="CommonFileDialogInvalidHandle" xml:space="preserve">
+ <value>Handle provided cannot be IntPtr.Zero.</value>
+ </data>
+ <data name="CommonFileDialogMultipleFiles" xml:space="preserve">
+ <value>Multiple files selected - the FileNames property should be used instead.</value>
+ </data>
+ <data name="CommonFileDialogMultipleItems" xml:space="preserve">
+ <value>Multiple files selected - the Items property should be used instead.</value>
+ </data>
+ <data name="CommonFileDialogNotClosed" xml:space="preserve">
+ <value>File name not available - dialog has not closed yet.</value>
+ </data>
+ <data name="CommonFileDialogRequiresVista" xml:space="preserve">
+ <value>Common File Dialog requires Windows Vista or later.</value>
+ </data>
+ <data name="CommonFiltersOffice" xml:space="preserve">
+ <value>Office Files</value>
+ </data>
+ <data name="CommonFiltersPicture" xml:space="preserve">
+ <value>All Picture Files</value>
+ </data>
+ <data name="CommonFiltersText" xml:space="preserve">
+ <value>Text Files</value>
+ </data>
+ <data name="CreatePromptCannotBeChanged" xml:space="preserve">
+ <value>CreatePrompt cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="DialogControlCollectionCannotRemoveControls" xml:space="preserve">
+ <value>Custom controls cannot be removed from a File dialog once added.</value>
+ </data>
+ <data name="DialogControlCollectionEmptyName" xml:space="preserve">
+ <value>Control name cannot be null or zero length.</value>
+ </data>
+ <data name="DialogControlCollectionMenuItemControlsCannotBeAdded" xml:space="preserve">
+ <value>CommonFileDialogMenuItem controls can only be added to CommonFileDialogMenu controls.</value>
+ </data>
+ <data name="DialogControlCollectionModifyingControls" xml:space="preserve">
+ <value>Modifying controls collection while dialog is showing is not supported.</value>
+ </data>
+ <data name="DialogControlCollectionMoreThanOneControl" xml:space="preserve">
+ <value>Dialog cannot have more than one control with the same name.</value>
+ </data>
+ <data name="DialogControlCollectionRemoveControlFirst" xml:space="preserve">
+ <value>Dialog control must be removed from current collections first.</value>
+ </data>
+ <data name="EnsureFileExistsCannotBeChanged" xml:space="preserve">
+ <value>EnsureFileExists cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="EnsurePathExistsCannotBeChanged" xml:space="preserve">
+ <value>EnsurePathExists cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="EnsureReadonlyCannotBeChanged" xml:space="preserve">
+ <value>EnsureReadOnly cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="EnsureValidNamesCannotBeChanged" xml:space="preserve">
+ <value>EnsureValidNames cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="ExplorerBrowserFailedToGetView" xml:space="preserve">
+ <value>ExplorerBrowser failed to get current view.</value>
+ </data>
+ <data name="ExplorerBrowserIconSize" xml:space="preserve">
+ <value>Unable to get icon size.</value>
+ </data>
+ <data name="ExplorerBrowserItemCount" xml:space="preserve">
+ <value>Unexpected error retrieving item count.</value>
+ </data>
+ <data name="ExplorerBrowserSelectedItemCount" xml:space="preserve">
+ <value>Unexpected error retrieving selected item count.</value>
+ </data>
+ <data name="ExplorerBrowserUnexpectedError" xml:space="preserve">
+ <value>Unexpected error retrieving selection.</value>
+ </data>
+ <data name="ExplorerBrowserViewItems" xml:space="preserve">
+ <value>Unexpected error retrieving view items.</value>
+ </data>
+ <data name="FilePathNotExist" xml:space="preserve">
+ <value>The given path does not exist ({0})</value>
+ </data>
+ <data name="FolderIdsUnknownGuid" xml:space="preserve">
+ <value>Guid does not identify a known folder.</value>
+ </data>
+ <data name="FolderTypeCategory" xml:space="preserve">
+ <value>ControlPanel Category</value>
+ </data>
+ <data name="FolderTypeClassic" xml:space="preserve">
+ <value>ControlPanel Classic</value>
+ </data>
+ <data name="FolderTypeCommunications" xml:space="preserve">
+ <value>Communications</value>
+ </data>
+ <data name="FolderTypeCompressedFolder" xml:space="preserve">
+ <value>Compressed Folder</value>
+ </data>
+ <data name="FolderTypeContacts" xml:space="preserve">
+ <value>Contacts</value>
+ </data>
+ <data name="FolderTypeDocuments" xml:space="preserve">
+ <value>Documents</value>
+ </data>
+ <data name="FolderTypeGames" xml:space="preserve">
+ <value>Games</value>
+ </data>
+ <data name="FolderTypeGenericLibrary" xml:space="preserve">
+ <value>Generic Library</value>
+ </data>
+ <data name="FolderTypeInvalid" xml:space="preserve">
+ <value>Invalid</value>
+ </data>
+ <data name="FolderTypeLibrary" xml:space="preserve">
+ <value>Library</value>
+ </data>
+ <data name="FolderTypeMusic" xml:space="preserve">
+ <value>Music</value>
+ </data>
+ <data name="FolderTypeMusicIcons" xml:space="preserve">
+ <value>Music Icons</value>
+ </data>
+ <data name="FolderTypeNetworkExplorer" xml:space="preserve">
+ <value>Network Explorer</value>
+ </data>
+ <data name="FolderTypeNotSpecified" xml:space="preserve">
+ <value>Not Specified</value>
+ </data>
+ <data name="FolderTypeOpenSearch" xml:space="preserve">
+ <value>Open Search</value>
+ </data>
+ <data name="FolderTypeOtherUsers" xml:space="preserve">
+ <value>Other Users</value>
+ </data>
+ <data name="FolderTypePictures" xml:space="preserve">
+ <value>Pictures</value>
+ </data>
+ <data name="FolderTypePrinters" xml:space="preserve">
+ <value>Printers</value>
+ </data>
+ <data name="FolderTypeRecordedTV" xml:space="preserve">
+ <value>RecordedTV</value>
+ </data>
+ <data name="FolderTypeRecycleBin" xml:space="preserve">
+ <value>RecycleBin</value>
+ </data>
+ <data name="FolderTypeSavedGames" xml:space="preserve">
+ <value>Saved Games</value>
+ </data>
+ <data name="FolderTypeSearchConnector" xml:space="preserve">
+ <value>Search Connector</value>
+ </data>
+ <data name="FolderTypeSearches" xml:space="preserve">
+ <value>Searches</value>
+ </data>
+ <data name="FolderTypeSearchResults" xml:space="preserve">
+ <value>Generic SearchResults</value>
+ </data>
+ <data name="FolderTypeSoftwareExplorer" xml:space="preserve">
+ <value>Software Explorer</value>
+ </data>
+ <data name="FolderTypeUserFiles" xml:space="preserve">
+ <value>User Files</value>
+ </data>
+ <data name="FolderTypeUserLibraries" xml:space="preserve">
+ <value>Users Libraries</value>
+ </data>
+ <data name="FolderTypeVideos" xml:space="preserve">
+ <value>Videos</value>
+ </data>
+ <data name="IsExpandedModeCannotBeChanged" xml:space="preserve">
+ <value>IsExpandedMode cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="JumpListCustomCategoriesDisabled" xml:space="preserve">
+ <value>Custom categories cannot be added while recent documents tracking is turned off.</value>
+ </data>
+ <data name="JumpListFileTypeNotRegistered" xml:space="preserve">
+ <value>The file type is not registered with this application.</value>
+ </data>
+ <data name="JumpListLinkPathRequired" xml:space="preserve">
+ <value>JumpListLink's path is required and cannot be null.</value>
+ </data>
+ <data name="JumpListLinkTitleRequired" xml:space="preserve">
+ <value>JumpListLink's title is required and cannot be null.</value>
+ </data>
+ <data name="JumpListNegativeOrdinalPosition" xml:space="preserve">
+ <value>Negative numbers are not allowed for the ordinal position.</value>
+ </data>
+ <data name="KnownFolderInvalidGuid" xml:space="preserve">
+ <value>Given Known Folder ID is invalid.</value>
+ </data>
+ <data name="KnownFolderParsingName" xml:space="preserve">
+ <value>Parsing name is invalid.</value>
+ </data>
+ <data name="NavigateToShortcutCannotBeChanged" xml:space="preserve">
+ <value>NavigateToShortcut cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="NavigationLogNullParent" xml:space="preserve">
+ <value>Parent cannot be null.</value>
+ </data>
+ <data name="NotImplementedException" xml:space="preserve">
+ <value>The method or operation is not implemented.</value>
+ </data>
+ <data name="OverwritePromptCannotBeChanged" xml:space="preserve">
+ <value>OverwritePrompt cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="PropertyCollectionCanonicalInvalidIndex" xml:space="preserve">
+ <value>This CanonicalName is not a valid index.</value>
+ </data>
+ <data name="PropertyCollectionInvalidIndex" xml:space="preserve">
+ <value>This PropertyKey is not a valid index.</value>
+ </data>
+ <data name="PropertyCollectionNullCanonicalName" xml:space="preserve">
+ <value>Argument CanonicalName cannot be null or empty.</value>
+ </data>
+ <data name="RadioButtonListIndexOutOfBounds" xml:space="preserve">
+ <value>Index was outside the bounds of the CommonFileDialogRadioButtonList.</value>
+ </data>
+ <data name="RestoreDirectoryCannotBeChanged" xml:space="preserve">
+ <value>RestoreDirectory cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="SaveFileNullItem" xml:space="preserve">
+ <value>Retrieved a null shell item from dialog.</value>
+ </data>
+ <data name="SearchConditionFactoryInvalidProperty" xml:space="preserve">
+ <value>Given property key is invalid.</value>
+ </data>
+ <data name="ShellExceptionDefaultText" xml:space="preserve">
+ <value>Shell Exception has occurred, look at inner exception for information.</value>
+ </data>
+ <data name="ShellHelperGetParsingNameFailed" xml:space="preserve">
+ <value>GetParsingName has failed.</value>
+ </data>
+ <data name="ShellInvalidCanonicalName" xml:space="preserve">
+ <value>The given CanonicalName is not valid.</value>
+ </data>
+ <data name="ShellLibraryDefaultSaveFolderNotFound" xml:space="preserve">
+ <value>DefaultSaveFolder path not found.</value>
+ </data>
+ <data name="ShellLibraryEmptyName" xml:space="preserve">
+ <value>LibraryName cannot be empty.</value>
+ </data>
+ <data name="ShellLibraryFolderNotFound" xml:space="preserve">
+ <value>Folder path not found.</value>
+ </data>
+ <data name="ShellLibraryInvalidFolderType" xml:space="preserve">
+ <value>Invalid FolderType Guid.</value>
+ </data>
+ <data name="ShellLibraryInvalidLibrary" xml:space="preserve">
+ <value>The given known folder is not a valid library.</value>
+ </data>
+ <data name="ShellObjectCannotGetDisplayName" xml:space="preserve">
+ <value>Can't get the display name.</value>
+ </data>
+ <data name="ShellObjectCollectionArrayTooSmall" xml:space="preserve">
+ <value>Destination array too small, or invalid arrayIndex.</value>
+ </data>
+ <data name="ShellObjectCollectionEmptyCollection" xml:space="preserve">
+ <value>Must have at least one shell object in the collection.</value>
+ </data>
+ <data name="ShellObjectCollectionInsertReadOnly" xml:space="preserve">
+ <value>Cannot insert items into a read only list.</value>
+ </data>
+ <data name="ShellObjectCollectionRemoveReadOnly" xml:space="preserve">
+ <value>Cannot remove items from a read only list.</value>
+ </data>
+ <data name="ShellObjectCreationFailed" xml:space="preserve">
+ <value>Shell item could not be created.</value>
+ </data>
+ <data name="ShellObjectFactoryPlatformNotSupported" xml:space="preserve">
+ <value>Shell Object creation requires Windows Vista or higher operating system.</value>
+ </data>
+ <data name="ShellObjectFactoryUnableToCreateItem" xml:space="preserve">
+ <value>Unable to Create Shell Item.</value>
+ </data>
+ <data name="ShellPropertyCannotSetProperty" xml:space="preserve">
+ <value>The value on this property cannot be set. To set the property value, use the ShellObject that is associated with this property.</value>
+ </data>
+ <data name="ShellPropertySetValue" xml:space="preserve">
+ <value>Unable to set property.</value>
+ </data>
+ <data name="ShellPropertyUnableToGetWritableProperty" xml:space="preserve">
+ <value>Unable to get writable property store for this property.</value>
+ </data>
+ <data name="ShellPropertyValueTruncated" xml:space="preserve">
+ <value>A value had to be truncated in a string or rounded if a numeric value. Set AllowTruncatedValue to true to prevent this exception.</value>
+ </data>
+ <data name="ShellPropertyWindows7" xml:space="preserve">
+ <value>This Property is available on Windows 7 only.</value>
+ </data>
+ <data name="ShellPropertyWrongType" xml:space="preserve">
+ <value>This property only accepts a value of type \"{0}\".</value>
+ </data>
+ <data name="ShellSearchFolderUnableToSetSortColumns" xml:space="preserve">
+ <value>Unable to set list of sort columns.</value>
+ </data>
+ <data name="ShellSearchFolderUnableToSetVisibleColumns" xml:space="preserve">
+ <value>Unable to set visible columns.</value>
+ </data>
+ <data name="ShellThumbnailCurrentSizeRange" xml:space="preserve">
+ <value>CurrentSize (width or height) cannot be greater than the maximum size: {0}.</value>
+ </data>
+ <data name="ShellThumbnailDoesNotHaveThumbnail" xml:space="preserve">
+ <value>The current ShellObject does not have a thumbnail. Try using ShellThumbnailFormatOption.Default to get the icon for this item.</value>
+ </data>
+ <data name="ShellThumbnailNoHandler" xml:space="preserve">
+ <value>The current ShellObject does not have a valid thumbnail handler or there was a problem in extracting the thumbnail for this specific shell object.</value>
+ </data>
+ <data name="ShellThumbnailSizeCannotBe0" xml:space="preserve">
+ <value>CurrentSize (width or height) cannot be 0.</value>
+ </data>
+ <data name="ShowHiddenItemsCannotBeChanged" xml:space="preserve">
+ <value>ShowHiddenItems cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="ShowPlacesListCannotBeChanged" xml:space="preserve">
+ <value>Show places list cannot be changed while dialog is showing.</value>
+ </data>
+ <data name="StockIconInvalidGuid" xml:space="preserve">
+ <value>The Stock Icon identifier given is invalid ({0}).</value>
+ </data>
+ <data name="TabbedThumbnailZeroChildHandle" xml:space="preserve">
+ <value>Child control's window handle cannot be zero.</value>
+ </data>
+ <data name="TabbedThumbnailZeroParentHandle" xml:space="preserve">
+ <value>Parent window handle cannot be zero.</value>
+ </data>
+ <data name="TasbarWindowProxyWindowSet" xml:space="preserve">
+ <value>TabbedThumbnailProxyWindow has not been set.</value>
+ </data>
+ <data name="TaskbarManagerValidWindowRequired" xml:space="preserve">
+ <value>A valid active Window is needed to update the Taskbar.</value>
+ </data>
+ <data name="TaskbarWindowEmptyButtonArray" xml:space="preserve">
+ <value>The array of buttons must contain at least 1 item.</value>
+ </data>
+ <data name="TaskbarWindowManagerButtonsAlreadyAdded" xml:space="preserve">
+ <value>Tool bar buttons for this window are already added. Please refer to the Remarks section of the AddButtons method for more information on updating the properties or hiding existing buttons.</value>
+ </data>
+ <data name="TaskbarWindowValueSet" xml:space="preserve">
+ <value>Value is already set. It cannot be set more than once.</value>
+ </data>
+ <data name="ThumbnailManagerControlNotAdded" xml:space="preserve">
+ <value>The given control has not been added to the taskbar.</value>
+ </data>
+ <data name="ThumbnailManagerInvalidHandle" xml:space="preserve">
+ <value>Window handle is invalid.</value>
+ </data>
+ <data name="ThumbnailManagerPreviewAdded" xml:space="preserve">
+ <value>This preview has already been added.</value>
+ </data>
+ <data name="ThumbnailManagerPreviewNotAdded" xml:space="preserve">
+ <value>The given preview has not been added to the taskbar.</value>
+ </data>
+ <data name="ThumbnailToolbarManagerMaxButtons" xml:space="preserve">
+ <value>Maximum number of buttons allowed is 7.</value>
+ </data>
+ <data name="ThumbnailToolbarManagerNullEmptyArray" xml:space="preserve">
+ <value>Null or empty arrays are not allowed.</value>
+ </data>
+ <data name="ExplorerBrowserBrowseToObjectFailed" xml:space="preserve">
+ <value>Browsing to object failed.</value>
+ </data>
+ <data name="ShellObjectWatcherRegisterFailed" xml:space="preserve">
+ <value>Registration for change notification has failed.</value>
+ </data>
+ <data name="ShellPropertyFactoryConstructorNotFound" xml:space="preserve">
+ <value>No constructor found matching requested argument types.</value>
+ </data>
+ <data name="MessageListenerNoWindowHandle" xml:space="preserve">
+ <value>Cannot create window on the listener thread because there is no existing window on the listener thread.</value>
+ </data>
+ <data name="MessageListenerClassNotRegistered" xml:space="preserve">
+ <value>Window class could not be registered, check inner exception for more details.</value>
+ </data>
+ <data name="MessageListenerFilterUnableToRegister" xml:space="preserve">
+ <value>Message filter registration failed.</value>
+ </data>
+ <data name="MessageListenerFilterUnknownListenerHandle" xml:space="preserve">
+ <value>No listener handled of that value is registered.</value>
+ </data>
+ <data name="MessageListenerCannotCreateWindow" xml:space="preserve">
+ <value>Creation of window has failed, view inner exception for details.</value>
+ </data>
+ <data name="ShellObjectWatcherUnableToChangeEvents" xml:space="preserve">
+ <value>Unable to change watched events while listening.</value>
+ </data>
+</root> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj
new file mode 100644
index 0000000000..8c770f269a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Shell.csproj
@@ -0,0 +1,385 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Microsoft.WindowsAPICodePack.Shell</RootNamespace>
+ <AssemblyName>Microsoft.WindowsAPICodePack.Shell</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Debug\Microsoft.WindowsAPICodePack.Shell.XML</DocumentationFile>
+ <CodeAnalysisRules>
+ </CodeAnalysisRules>
+ <RunCodeAnalysis>false</RunCodeAnalysis>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'CodeAnalysisDebug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\CodeAnalysisDebug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;CODE_ANALYSIS</DefineConstants>
+ <DocumentationFile>bin\Debug\Microsoft.WindowsAPICodePack.Shell.XML</DocumentationFile>
+ <DebugType>full</DebugType>
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <CodeAnalysisRules>
+ </CodeAnalysisRules>
+ <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
+ <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
+ <ErrorReport>prompt</ErrorReport>
+ <RunCodeAnalysis>true</RunCodeAnalysis>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <WarningLevel>4</WarningLevel>
+ <Optimize>false</Optimize>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>CODE_ANALYSIS;DEBUG;TRACE</DefineConstants>
+ <DocumentationFile>bin\Debug\Microsoft.WindowsAPICodePack.Shell.XML</DocumentationFile>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <CodeAnalysisLogFile>bin\Debug\Microsoft.WindowsAPICodePack.Shell.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
+ <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
+ <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSetDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
+ <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
+ <CodeAnalysisRuleDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
+ <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
+ <RunCodeAnalysis>false</RunCodeAnalysis>
+ <WarningLevel>4</WarningLevel>
+ <Optimize>false</Optimize>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <CodeAnalysisLogFile>bin\Release\Microsoft.WindowsAPICodePack.Shell.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
+ <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
+ <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSetDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
+ <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
+ <CodeAnalysisRuleDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
+ <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CodeAnalysisDebug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\CodeAnalysisDebug\</OutputPath>
+ <DefineConstants>CODE_ANALYSIS;TRACE;DEBUG;CODE_ANALYSIS</DefineConstants>
+ <DocumentationFile>bin\Debug\Microsoft.WindowsAPICodePack.Shell.XML</DocumentationFile>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <RunCodeAnalysis>true</RunCodeAnalysis>
+ <CodeAnalysisLogFile>bin\CodeAnalysisDebug\Microsoft.WindowsAPICodePack.Shell.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
+ <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
+ <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSetDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
+ <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
+ <CodeAnalysisRuleDirectories>;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
+ <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
+ <WarningLevel>4</WarningLevel>
+ <Optimize>false</Optimize>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="CustomMarshalers" />
+ <Reference Include="PresentationCore" />
+ <Reference Include="PresentationFramework" />
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ <Reference Include="WindowsBase" />
+ <Reference Include="WindowsFormsIntegration" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Common\EnumUnknown.cs" />
+ <Compile Include="Common\EventHandlerExtensionMethods.cs" />
+ <Compile Include="Common\NativePoint.cs" />
+ <Compile Include="Common\NativeRect.cs" />
+ <Compile Include="Common\ShellException.cs" />
+ <Compile Include="Common\ShellFileSystemFolder.cs" />
+ <Compile Include="Common\IconReference.cs" />
+ <Compile Include="Common\SearchCondition.cs" />
+ <Compile Include="Common\SearchConditionFactory.cs" />
+ <Compile Include="Common\ShellSearchFolder.cs" />
+ <Compile Include="Common\ShellFile.cs" />
+ <Compile Include="Common\ShellFolder.cs" />
+ <Compile Include="Common\ShellFolderItems.cs" />
+ <Compile Include="Common\ShellHelper.cs" />
+ <Compile Include="Common\ShellItemArray.cs" />
+ <Compile Include="Common\ShellObjectFactory.cs" />
+ <Compile Include="Common\ShellThumbnail.cs" />
+ <Compile Include="Common\ShellObjectCollection.cs" />
+ <Compile Include="Common\DefaultShellImageSizes.cs" />
+ <Compile Include="Common\SortColumn.cs" />
+ <Compile Include="Controls\CommandLinkWinforms.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="Controls\CommandLinkWPF.xaml.cs">
+ <DependentUpon>CommandLinkWPF.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="DesktopWindowManager\DesktopWindowManagerNativeMethods.cs" />
+ <Compile Include="DesktopWindowManager\GlassEvents.cs" />
+ <Compile Include="DesktopWindowManager\GlassForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="DesktopWindowManager\GlassWindow.cs" />
+ <Compile Include="ExplorerBrowser\CommonControlException.cs" />
+ <Compile Include="ExplorerBrowser\ExplorerBrowser.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="ExplorerBrowser\ExplorerBrowser.WPF.xaml.cs">
+ <DependentUpon>ExplorerBrowser.WPF.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="ExplorerBrowser\ExplorerBrowserContentOptions.cs" />
+ <Compile Include="ExplorerBrowser\ExplorerBrowserEvents.cs" />
+ <Compile Include="ExplorerBrowser\ExplorerBrowserViewEvents.cs" />
+ <Compile Include="ExplorerBrowser\NavigationLog.cs" />
+ <Compile Include="ExplorerBrowser\ExplorerBrowserEnums.cs" />
+ <Compile Include="ExplorerBrowser\ExplorerBrowserPaneVisibility.cs" />
+ <Compile Include="ExplorerBrowser\NavigationLogEnums.cs" />
+ <Compile Include="ExplorerBrowser\NavigationLogEvents.cs" />
+ <Compile Include="ExplorerBrowser\NavigationOptions.cs" />
+ <Compile Include="GlobalSuppressions.cs" />
+ <Compile Include="Interop\Common\IntPtrExtensions.cs" />
+ <Compile Include="Interop\Common\ShellNativeStructs.cs" />
+ <Compile Include="Interop\ShellObjectWatcher\ShellObjectWatcherNativeMethods.cs" />
+ <Compile Include="PropertySystem\PropertySystemException.cs" />
+ <Compile Include="Interop\StockIcons\StockIconsNativeMethods.cs" />
+ <Compile Include="Interop\Common\WindowUtilities.cs" />
+ <Compile Include="KnownFolders\IKnownFolder.cs" />
+ <Compile Include="Interop\Common\ShellCOMClasses.cs" />
+ <Compile Include="Interop\ExplorerBrowser\ExplorerBrowserCOMGuids.cs">
+ </Compile>
+ <Compile Include="Interop\ExplorerBrowser\ExplorerBrowserCOMInterfaces.cs" />
+ <Compile Include="Interop\ExplorerBrowser\ExplorerBrowserNativeMethods.cs" />
+ <Compile Include="KnownFolders\DefinitionOptions.cs" />
+ <Compile Include="KnownFolders\FolderCategory.cs" />
+ <Compile Include="KnownFolders\FolderProperties.cs" />
+ <Compile Include="KnownFolders\FoldersIdentifiers.cs" />
+ <Compile Include="KnownFolders\FolderTypes.cs" />
+ <Compile Include="KnownFolders\KnownFolderHelper.cs" />
+ <Compile Include="KnownFolders\KnownFolders.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="KnownFolders\KnownFolderSettings.cs" />
+ <Compile Include="KnownFolders\RedirectionCapabilities.cs" />
+ <Compile Include="KnownFolders\RetrievalOptions.cs" />
+ <Compile Include="Common\ShellSearchConnector.cs" />
+ <Compile Include="Common\ShellEnums.cs" />
+ <Compile Include="Common\ShellLibrary.cs" />
+ <Compile Include="Common\ShellObject.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialog.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogButton.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogCheckBox.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogComboBox.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogControl.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogControlCollection.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogFilter.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogFilterCollection.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogFolderChangeEventArgs.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogGroupBox.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogLabel.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogMenu.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogProminentControl.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogRadioButtonList.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogResult.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogSeperator.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogStandardFilters.cs" />
+ <Compile Include="CommonFileDialogs\CommonFileDialogTextBox.cs" />
+ <Compile Include="CommonFileDialogs\CommonOpenFileDialog.cs" />
+ <Compile Include="CommonFileDialogs\CommonSaveFileDialog.cs" />
+ <Compile Include="CommonFileDialogs\ICommonFileDialogIndexedControls.cs" />
+ <Compile Include="Interop\KnownFolders\KnownFoldersCOMGuids.cs" />
+ <Compile Include="Interop\KnownFolders\KnownFoldersCOMInterfaces.cs" />
+ <Compile Include="Interop\KnownFolders\KnownFoldersNativeMethods.cs" />
+ <Compile Include="Interop\PropertySystem\PropertySystemCOMInterfaces.cs" />
+ <Compile Include="Interop\PropertySystem\PropertySystemNativeMethods.cs" />
+ <Compile Include="Interop\Taskbar\TabbedThumbnailNativeMethods.cs" />
+ <Compile Include="Interop\Taskbar\TaskbarCOMInterfaces.cs" />
+ <Compile Include="PropertySystem\ShellProperties.cs" />
+ <Compile Include="PropertySystem\ShellPropertyEnums.cs" />
+ <Compile Include="PropertySystem\ShellPropertyEnumType.cs" />
+ <Compile Include="KnownFolders\FileSystemKnownFolder.cs" />
+ <Compile Include="Common\ShellNonFileSystemItem.cs" />
+ <Compile Include="Common\ShellNonFileSystemFolder.cs" />
+ <Compile Include="KnownFolders\NonFileSystemKnownFolder.cs" />
+ <Compile Include="Common\ShellThumbnailEnums.cs" />
+ <Compile Include="Common\ShellSearchCollection.cs" />
+ <Compile Include="Common\ShellObjectContainer.cs" />
+ <Compile Include="Common\ShellLink.cs" />
+ <Compile Include="PropertySystem\ShellPropertyFactory.cs" />
+ <Compile Include="PropertySystem\ShellPropertyWriter.cs" />
+ <Compile Include="PropertySystem\StronglyTypedProperties.cs" />
+ <Compile Include="PropertySystem\SystemProperties.cs" />
+ <Compile Include="PropertySystem\WindowProperties.cs" />
+ <Compile Include="Resources\LocalizedMessages.Designer.cs">
+ <DependentUpon>LocalizedMessages.resx</DependentUpon>
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ </Compile>
+ <Compile Include="ShellObjectWatcher\ChangeNotifyEventManager.cs" />
+ <Compile Include="ShellObjectWatcher\ChangeNotifyLock.cs" />
+ <Compile Include="ShellObjectWatcher\MessageListener.cs" />
+ <Compile Include="ShellObjectWatcher\MessageListenerFilter.cs" />
+ <Compile Include="ShellObjectWatcher\ShellObjectNotificationEventArgs.cs" />
+ <Compile Include="ShellObjectWatcher\ShellObjectWatcher.cs" />
+ <Compile Include="ShellObjectWatcher\ShellObjectWatcherEnums.cs" />
+ <Compile Include="StockIcons\StockIcon.cs" />
+ <Compile Include="StockIcons\StockIconEnums.cs" />
+ <Compile Include="StockIcons\StockIcons.cs" />
+ <Compile Include="Taskbar\JumpListCustomCategoryCollection.cs" />
+ <Compile Include="Taskbar\JumpListItemCollection.cs" />
+ <Compile Include="Taskbar\JumpListLink.cs" />
+ <Compile Include="Taskbar\JumpListSeparator.cs" />
+ <Compile Include="Taskbar\TabbedThumbnailClosedEventArgs.cs" />
+ <Compile Include="Taskbar\TabbedThumbnailScreenCapture.cs" />
+ <Compile Include="Taskbar\TabbedThumbnailManager.cs" />
+ <Compile Include="Taskbar\TabbedThumbnailBitmapRequestedEventArgs.cs" />
+ <Compile Include="Taskbar\TabbedThumbnailEventArgs.cs" />
+ <Compile Include="Taskbar\TabbedThumbnail.cs" />
+ <Compile Include="Taskbar\TabbedThumbnailProxyWindow.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Taskbar\TaskbarEnums.cs" />
+ <Compile Include="Interop\Taskbar\TaskbarNativeMethods.cs" />
+ <Compile Include="PropertySystem\IShellProperty.cs" />
+ <Compile Include="PropertySystem\ShellPropertyCollection.cs" />
+ <Compile Include="PropertySystem\ShellPropertyDescription.cs" />
+ <Compile Include="PropertySystem\ShellPropertyDescriptionsCache.cs" />
+ <Compile Include="Interop\Dialogs\DialogsCOMClasses.cs" />
+ <Compile Include="Interop\Common\ShellCOMGuids.cs" />
+ <Compile Include="Interop\Common\ShellNativeMethods.cs" />
+ <Compile Include="Interop\Common\ShellCOMInterfaces.cs" />
+ <Compile Include="Interop\Dialogs\DialogsCOMInterfaces.cs" />
+ <Compile Include="Common\ShellSavedSearchCollection.cs" />
+ <Compile Include="PropertySystem\ShellProperty.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Taskbar\JumpListCustomCategory.cs" />
+ <Compile Include="Taskbar\JumpList.cs" />
+ <Compile Include="Taskbar\JumpListItem.cs" />
+ <Compile Include="Taskbar\TaskbarList.cs" />
+ <Compile Include="Taskbar\TaskbarManager.cs">
+ </Compile>
+ <Compile Include="Taskbar\TaskbarInterfaces.cs" />
+ <Compile Include="Taskbar\TaskbarWindow.cs" />
+ <Compile Include="Taskbar\TaskbarWindowManager.cs" />
+ <Compile Include="Taskbar\ThumbnailButton.cs" />
+ <Compile Include="Taskbar\ThumbnailButtonClickedEventArgs.cs" />
+ <Compile Include="Taskbar\ThumbnailToolbarManager.cs" />
+ <Compile Include="Taskbar\ThumbnailToolbarProxyWindow.cs" />
+ <Compile Include="Taskbar\UserRemovedJumpListItemsEventArg.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Design\ShellThumbnailClassDiagram.cd" />
+ <None Include="Design\ShellObjects.cd" />
+ <None Include="ExplorerBrowser\ExplorerBrowserDiagram.cd" />
+ </ItemGroup>
+ <ItemGroup>
+ <Page Include="Controls\CommandLinkWPF.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Page Include="ExplorerBrowser\ExplorerBrowser.WPF.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Core\Core.csproj">
+ <Project>{2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}</Project>
+ <Name>Core</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Resources\LocalizedMessages.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>LocalizedMessages.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup>
+ <CodeAnalysisDictionary Include="CustomDictionary.xml" />
+ </ItemGroup>
+ <ItemGroup />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyEventManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyEventManager.cs
new file mode 100644
index 0000000000..cd137b5f34
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyEventManager.cs
@@ -0,0 +1,107 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal class ChangeNotifyEventManager
+ {
+ #region Change order
+ private static readonly ShellObjectChangeTypes[] _changeOrder = {
+ ShellObjectChangeTypes.ItemCreate,
+ ShellObjectChangeTypes.ItemRename,
+ ShellObjectChangeTypes.ItemDelete,
+
+ ShellObjectChangeTypes.AttributesChange,
+
+ ShellObjectChangeTypes.DirectoryCreate,
+ ShellObjectChangeTypes.DirectoryDelete,
+ ShellObjectChangeTypes.DirectoryContentsUpdate,
+ ShellObjectChangeTypes.DirectoryRename,
+
+ ShellObjectChangeTypes.Update,
+
+ ShellObjectChangeTypes.MediaInsert,
+ ShellObjectChangeTypes.MediaRemove,
+ ShellObjectChangeTypes.DriveAdd,
+ ShellObjectChangeTypes.DriveRemove,
+ ShellObjectChangeTypes.NetShare,
+ ShellObjectChangeTypes.NetUnshare,
+
+ ShellObjectChangeTypes.ServerDisconnect,
+ ShellObjectChangeTypes.SystemImageUpdate,
+
+ ShellObjectChangeTypes.AssociationChange,
+ ShellObjectChangeTypes.FreeSpace,
+
+ ShellObjectChangeTypes.DiskEventsMask,
+ ShellObjectChangeTypes.GlobalEventsMask,
+ ShellObjectChangeTypes.AllEventsMask
+ };
+ #endregion
+
+ private Dictionary<ShellObjectChangeTypes, Delegate> _events = new Dictionary<ShellObjectChangeTypes, Delegate>();
+
+ public void Register(ShellObjectChangeTypes changeType, Delegate handler)
+ {
+ Delegate del;
+ if (!_events.TryGetValue(changeType, out del))
+ {
+ _events.Add(changeType, handler);
+ }
+ else
+ {
+ del = MulticastDelegate.Combine(del, handler);
+ _events[changeType] = del;
+ }
+ }
+
+ public void Unregister(ShellObjectChangeTypes changeType, Delegate handler)
+ {
+ Delegate del;
+ if (_events.TryGetValue(changeType, out del))
+ {
+ del = MulticastDelegate.Remove(del, handler);
+ if (del == null) // It's a bug in .NET if del is non-null and has an empty invocation list.
+ {
+ _events.Remove(changeType);
+ }
+ else
+ {
+ _events[changeType] = del;
+ }
+ }
+ }
+
+ public void UnregisterAll()
+ {
+ _events.Clear();
+ }
+
+ public void Invoke(object sender, ShellObjectChangeTypes changeType, EventArgs args)
+ {
+ // Removes FromInterrupt flag if pressent
+ changeType = changeType & ~ShellObjectChangeTypes.FromInterrupt;
+
+ Delegate del;
+ foreach (var change in _changeOrder.Where(x => (x & changeType) != 0))
+ {
+ if (_events.TryGetValue(change, out del))
+ {
+ del.DynamicInvoke(sender, args);
+ }
+ }
+ }
+
+ public ShellObjectChangeTypes RegisteredTypes
+ {
+ get
+ {
+ return _events.Keys.Aggregate<ShellObjectChangeTypes, ShellObjectChangeTypes>(
+ ShellObjectChangeTypes.None,
+ (accumulator, changeType) => (changeType | accumulator));
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyLock.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyLock.cs
new file mode 100644
index 0000000000..37c0578d59
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ChangeNotifyLock.cs
@@ -0,0 +1,90 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Runtime.InteropServices;
+using System.Diagnostics;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal class ChangeNotifyLock
+ {
+ private uint _event = 0;
+
+ internal ChangeNotifyLock(Message message)
+ {
+ IntPtr pidl;
+ IntPtr lockId = ShellNativeMethods.SHChangeNotification_Lock(
+ message.WParam, (int)message.LParam, out pidl, out _event);
+ try
+ {
+ Trace.TraceInformation("Message: {0}", (ShellObjectChangeTypes)_event);
+
+ var notifyStruct = pidl.MarshalAs<ShellNativeMethods.ShellNotifyStruct>();
+
+ Guid guid = new Guid(ShellIIDGuid.IShellItem2);
+ if (notifyStruct.item1 != IntPtr.Zero &&
+ (((ShellObjectChangeTypes)_event) & ShellObjectChangeTypes.SystemImageUpdate) == ShellObjectChangeTypes.None)
+ {
+ IShellItem2 nativeShellItem;
+ if (CoreErrorHelper.Succeeded(ShellNativeMethods.SHCreateItemFromIDList(
+ notifyStruct.item1, ref guid, out nativeShellItem)))
+ {
+ string name;
+ nativeShellItem.GetDisplayName(ShellNativeMethods.ShellItemDesignNameOptions.FileSystemPath,
+ out name);
+ ItemName = name;
+
+ Trace.TraceInformation("Item1: {0}", ItemName);
+ }
+ }
+ else
+ {
+ ImageIndex = notifyStruct.item1.ToInt32();
+ }
+
+ if (notifyStruct.item2 != IntPtr.Zero)
+ {
+ IShellItem2 nativeShellItem;
+ if (CoreErrorHelper.Succeeded(ShellNativeMethods.SHCreateItemFromIDList(
+ notifyStruct.item2, ref guid, out nativeShellItem)))
+ {
+ string name;
+ nativeShellItem.GetDisplayName(ShellNativeMethods.ShellItemDesignNameOptions.FileSystemPath,
+ out name);
+ ItemName2 = name;
+
+ Trace.TraceInformation("Item2: {0}", ItemName2);
+ }
+ }
+ }
+ finally
+ {
+ if (lockId != IntPtr.Zero)
+ {
+ ShellNativeMethods.SHChangeNotification_Unlock(lockId);
+ }
+ }
+
+ }
+
+ public bool FromSystemInterrupt
+ {
+ get
+ {
+ return ((ShellObjectChangeTypes)_event & ShellObjectChangeTypes.FromInterrupt)
+ != ShellObjectChangeTypes.None;
+ }
+ }
+
+ public int ImageIndex { get; private set; }
+ public string ItemName { get; private set; }
+ public string ItemName2 { get; private set; }
+
+ public ShellObjectChangeTypes ChangeType { get { return (ShellObjectChangeTypes)_event; } }
+
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs
new file mode 100644
index 0000000000..b729e25120
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs
@@ -0,0 +1,216 @@
+using System;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using System.Threading;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal class MessageListener : IDisposable
+ {
+ public const uint CreateWindowMessage = (uint)WindowMessage.User + 1;
+ public const uint DestroyWindowMessage = (uint)WindowMessage.User + 2;
+ public const uint BaseUserMessage = (uint)WindowMessage.User + 5;
+
+ private const string MessageWindowClassName = "MessageListenerClass";
+
+ private static readonly object _threadlock = new object();
+ private static uint _atom;
+ private static Thread _windowThread = null;
+ private static volatile bool _running = false;
+
+ private static ShellObjectWatcherNativeMethods.WndProcDelegate wndProc = WndProc;
+ // Dictionary relating window's hwnd to its message window
+ private static Dictionary<IntPtr, MessageListener> _listeners = new Dictionary<IntPtr, MessageListener>();
+ private static IntPtr _firstWindowHandle = IntPtr.Zero;
+
+ private static readonly object _crossThreadWindowLock = new object();
+ private static IntPtr _tempHandle = IntPtr.Zero;
+
+ public event EventHandler<WindowMessageEventArgs> MessageReceived;
+
+ public MessageListener()
+ {
+ lock (_threadlock)
+ {
+ if (_windowThread == null)
+ {
+ _windowThread = new Thread(ThreadMethod);
+ _windowThread.SetApartmentState(ApartmentState.STA);
+ _windowThread.Name = "ShellObjectWatcherMessageListenerHelperThread";
+
+ lock (_crossThreadWindowLock)
+ {
+ _windowThread.Start();
+ Monitor.Wait(_crossThreadWindowLock);
+ }
+
+ _firstWindowHandle = WindowHandle;
+ }
+ else
+ {
+ CrossThreadCreateWindow();
+ }
+
+ if (WindowHandle == IntPtr.Zero)
+ {
+ throw new ShellException(LocalizedMessages.MessageListenerCannotCreateWindow,
+ Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()));
+ }
+
+ _listeners.Add(WindowHandle, this);
+ }
+ }
+
+ private void CrossThreadCreateWindow()
+ {
+ if (_firstWindowHandle == IntPtr.Zero)
+ {
+ throw new InvalidOperationException(LocalizedMessages.MessageListenerNoWindowHandle);
+ }
+
+ lock (_crossThreadWindowLock)
+ {
+ CoreNativeMethods.PostMessage(_firstWindowHandle, (WindowMessage)CreateWindowMessage, IntPtr.Zero, IntPtr.Zero);
+ Monitor.Wait(_crossThreadWindowLock);
+ }
+
+ WindowHandle = _tempHandle;
+ }
+
+ private static void RegisterWindowClass()
+ {
+ WindowClassEx classEx = new WindowClassEx();
+ classEx.ClassName = MessageWindowClassName;
+ classEx.WndProc = wndProc;
+
+ classEx.Size = (uint)Marshal.SizeOf(typeof(WindowClassEx));
+
+ var atom = ShellObjectWatcherNativeMethods.RegisterClassEx(ref classEx);
+ if (atom == 0)
+ {
+ throw new ShellException(LocalizedMessages.MessageListenerClassNotRegistered,
+ Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()));
+ }
+ _atom = atom;
+ }
+
+ private static IntPtr CreateWindow()
+ {
+ IntPtr handle = ShellObjectWatcherNativeMethods.CreateWindowEx(
+ 0, //extended style
+ MessageWindowClassName, //class name
+ "MessageListenerWindow", //title
+ 0, //style
+ 0, 0, 0, 0, // x,y,width,height
+ new IntPtr(-3), // -3 = Message-Only window
+ IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
+
+ return handle;
+ }
+
+ private void ThreadMethod() // Message Loop
+ {
+ lock (_crossThreadWindowLock)
+ {
+ _running = true;
+ if (_atom == 0)
+ {
+ RegisterWindowClass();
+ }
+ WindowHandle = CreateWindow();
+
+ Monitor.Pulse(_crossThreadWindowLock);
+ }
+
+ while (_running)
+ {
+ Message msg;
+ if (ShellObjectWatcherNativeMethods.GetMessage(out msg, IntPtr.Zero, 0, 0))
+ {
+ ShellObjectWatcherNativeMethods.DispatchMessage(ref msg);
+ }
+ }
+ }
+
+ private static int WndProc(IntPtr hwnd, uint msg, IntPtr wparam, IntPtr lparam)
+ {
+ switch (msg)
+ {
+ case CreateWindowMessage:
+ lock (_crossThreadWindowLock)
+ {
+ _tempHandle = CreateWindow();
+ Monitor.Pulse(_crossThreadWindowLock);
+ }
+ break;
+ case (uint)WindowMessage.Destroy:
+ break;
+ default:
+ MessageListener listener;
+ if (_listeners.TryGetValue(hwnd, out listener))
+ {
+ Message message = new Message(hwnd, msg, wparam, lparam, 0, new NativePoint());
+ listener.MessageReceived.SafeRaise(listener, new WindowMessageEventArgs(message));
+ }
+ break;
+ }
+
+ return ShellObjectWatcherNativeMethods.DefWindowProc(hwnd, msg, wparam, lparam);
+ }
+
+ public IntPtr WindowHandle { get; private set; }
+ public static bool Running { get { return _running; } }
+
+ #region IDisposable Members
+
+ ~MessageListener()
+ {
+ Dispose(false);
+ }
+
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ protected virtual void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ lock (_threadlock)
+ {
+ _listeners.Remove(WindowHandle);
+ if (_listeners.Count == 0)
+ {
+ CoreNativeMethods.PostMessage(WindowHandle, WindowMessage.Destroy, IntPtr.Zero, IntPtr.Zero);
+ }
+ }
+ }
+ }
+
+ #endregion
+ }
+
+
+ /// <summary>
+ /// Encapsulates the data about a window message
+ /// </summary>
+ public class WindowMessageEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Received windows message.
+ /// </summary>
+ public Message Message { get; private set; }
+
+ internal WindowMessageEventArgs(Message msg)
+ {
+ Message = msg;
+ }
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListenerFilter.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListenerFilter.cs
new file mode 100644
index 0000000000..d63beea446
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListenerFilter.cs
@@ -0,0 +1,126 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using MS.WindowsAPICodePack.Internal;
+using System.Threading;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ internal static class MessageListenerFilter
+ {
+ private static readonly object _registerLock = new object();
+ private static List<RegisteredListener> _packages = new List<RegisteredListener>();
+
+ public static MessageListenerFilterRegistrationResult Register(Action<WindowMessageEventArgs> callback)
+ {
+ lock (_registerLock)
+ {
+ uint message = 0;
+ var package = _packages.FirstOrDefault(x => x.TryRegister(callback, out message));
+ if (package == null)
+ {
+ package = new RegisteredListener();
+ if (!package.TryRegister(callback, out message))
+ { // this should never happen
+ throw new ShellException(LocalizedMessages.MessageListenerFilterUnableToRegister);
+ }
+ _packages.Add(package);
+ }
+
+ return new MessageListenerFilterRegistrationResult(
+ package.Listener.WindowHandle,
+ message);
+ }
+ }
+
+ public static void Unregister(IntPtr listenerHandle, uint message)
+ {
+ lock (_registerLock)
+ {
+ var package = _packages.FirstOrDefault(x => x.Listener.WindowHandle == listenerHandle);
+ if (package == null || !package.Callbacks.Remove(message))
+ {
+ throw new ArgumentException(LocalizedMessages.MessageListenerFilterUnknownListenerHandle);
+ }
+
+ if (package.Callbacks.Count == 0)
+ {
+ package.Listener.Dispose();
+ _packages.Remove(package);
+ }
+ }
+ }
+
+ class RegisteredListener
+ {
+ public Dictionary<uint, Action<WindowMessageEventArgs>> Callbacks { get; private set; }
+
+ public MessageListener Listener { get; private set; }
+
+ public RegisteredListener()
+ {
+ Callbacks = new Dictionary<uint, Action<WindowMessageEventArgs>>();
+ Listener = new MessageListener();
+ Listener.MessageReceived += MessageReceived;
+ }
+
+ private void MessageReceived(object sender, WindowMessageEventArgs e)
+ {
+ Action<WindowMessageEventArgs> action;
+ if (Callbacks.TryGetValue(e.Message.Msg, out action))
+ {
+ action(e);
+ }
+ }
+
+ private uint _lastMessage = MessageListener.BaseUserMessage;
+ public bool TryRegister(Action<WindowMessageEventArgs> callback, out uint message)
+ {
+ message = 0;
+ if (Callbacks.Count < ushort.MaxValue - MessageListener.BaseUserMessage)
+ {
+ uint i = _lastMessage + 1;
+ while (i != _lastMessage)
+ {
+ if (i > ushort.MaxValue) { i = MessageListener.BaseUserMessage; }
+
+ if (!Callbacks.ContainsKey(i))
+ {
+ _lastMessage = message = i;
+ Callbacks.Add(i, callback);
+ return true;
+ }
+ i++;
+ }
+ }
+ return false;
+ }
+ }
+ }
+
+ /// <summary>
+ /// The result of registering with the MessageListenerFilter
+ /// </summary>
+ internal class MessageListenerFilterRegistrationResult
+ {
+ internal MessageListenerFilterRegistrationResult(IntPtr handle, uint msg)
+ {
+ WindowHandle = handle;
+ Message = msg;
+ }
+
+ /// <summary>
+ /// Gets the window handle to which the callback was registered.
+ /// </summary>
+ public IntPtr WindowHandle { get; private set; }
+
+ /// <summary>
+ /// Gets the message for which the callback was registered.
+ /// </summary>
+ public uint Message { get; private set; }
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectNotificationEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectNotificationEventArgs.cs
new file mode 100644
index 0000000000..b607fb0e67
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectNotificationEventArgs.cs
@@ -0,0 +1,79 @@
+using System;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Base class for the Event Args for change notifications raised by <typeparamref name="ShellObjectWatcher"/>.
+ /// </summary>
+ public class ShellObjectNotificationEventArgs : EventArgs
+ {
+ /// <summary>
+ /// The type of the change that happened to the ShellObject
+ /// </summary>
+ public ShellObjectChangeTypes ChangeType { get; private set; }
+
+ /// <summary>
+ /// True if the event was raised as a result of a system interrupt.
+ /// </summary>
+ public bool FromSystemInterrupt { get; private set; }
+
+ internal ShellObjectNotificationEventArgs(ChangeNotifyLock notifyLock)
+ {
+ ChangeType = notifyLock.ChangeType;
+ FromSystemInterrupt = notifyLock.FromSystemInterrupt;
+ }
+ }
+
+ /// <summary>
+ /// The data that describes a ShellObject event with a single path parameter
+ /// </summary>
+ public class ShellObjectChangedEventArgs : ShellObjectNotificationEventArgs
+ {
+ /// <summary>
+ /// The path of the shell object
+ /// </summary>
+ public string Path { get; private set; }
+
+ internal ShellObjectChangedEventArgs(ChangeNotifyLock notifyLock)
+ : base(notifyLock)
+ {
+ Path = notifyLock.ItemName;
+ }
+ }
+
+ /// <summary>
+ /// The data that describes a ShellObject renamed event
+ /// </summary>
+ public class ShellObjectRenamedEventArgs : ShellObjectChangedEventArgs
+ {
+ /// <summary>
+ /// The new path of the shell object
+ /// </summary>
+ public string NewPath { get; private set; }
+
+ internal ShellObjectRenamedEventArgs(ChangeNotifyLock notifyLock)
+ : base(notifyLock)
+ {
+ NewPath = notifyLock.ItemName2;
+ }
+ }
+
+ /// <summary>
+ /// The data that describes a SystemImageUpdated event.
+ /// </summary>
+ public class SystemImageUpdatedEventArgs : ShellObjectNotificationEventArgs
+ {
+ /// <summary>
+ /// Gets the index of the system image that has been updated.
+ /// </summary>
+ public int ImageIndex { get; private set; }
+
+ internal SystemImageUpdatedEventArgs(ChangeNotifyLock notifyLock)
+ : base(notifyLock)
+ {
+ ImageIndex = notifyLock.ImageIndex;
+ }
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcher.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcher.cs
new file mode 100644
index 0000000000..3639abfb77
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcher.cs
@@ -0,0 +1,561 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.ComponentModel;
+using System.Threading;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Listens for changes in/on a ShellObject and raises events when they occur.
+ /// This class supports all items under the shell namespace including
+ /// files, folders and virtual folders (libraries, search results and network items), etc.
+ /// </summary>
+ public class ShellObjectWatcher : IDisposable
+ {
+ private ShellObject _shellObject;
+ private bool _recursive;
+
+ private ChangeNotifyEventManager _manager = new ChangeNotifyEventManager();
+ private IntPtr _listenerHandle;
+ private uint _message;
+
+ private uint _registrationId;
+ private volatile bool _running;
+
+ private SynchronizationContext _context = SynchronizationContext.Current;
+
+ /// <summary>
+ /// Creates the ShellObjectWatcher for the given ShellObject
+ /// </summary>
+ /// <param name="shellObject">The ShellObject to monitor</param>
+ /// <param name="recursive">Whether to listen for changes recursively (for when monitoring a container)</param>
+ public ShellObjectWatcher(ShellObject shellObject, bool recursive)
+ {
+ if (shellObject == null)
+ {
+ throw new ArgumentNullException("shellObject");
+ }
+
+ if (_context == null)
+ {
+ _context = new SynchronizationContext();
+ SynchronizationContext.SetSynchronizationContext(_context);
+ }
+
+ _shellObject = shellObject;
+ this._recursive = recursive;
+
+ var result = MessageListenerFilter.Register(OnWindowMessageReceived);
+ _listenerHandle = result.WindowHandle;
+ _message = result.Message;
+ }
+
+ /// <summary>
+ /// Gets whether the watcher is currently running.
+ /// </summary>
+ public bool Running
+ {
+ get { return _running; }
+ private set { _running = value; }
+ }
+
+ /// <summary>
+ /// Start the watcher and begin receiving change notifications.
+ /// <remarks>
+ /// If the watcher is running, has no effect.
+ /// Registration for notifications should be done before this is called.
+ /// </remarks>
+ /// </summary>
+ public void Start()
+ {
+ if (Running) { return; }
+
+ #region Registration
+ ShellNativeMethods.SHChangeNotifyEntry entry = new ShellNativeMethods.SHChangeNotifyEntry();
+ entry.recursively = _recursive;
+
+ entry.pIdl = _shellObject.PIDL;
+
+ _registrationId = ShellNativeMethods.SHChangeNotifyRegister(
+ _listenerHandle,
+ ShellNativeMethods.ShellChangeNotifyEventSource.ShellLevel | ShellNativeMethods.ShellChangeNotifyEventSource.InterruptLevel | ShellNativeMethods.ShellChangeNotifyEventSource.NewDelivery,
+ _manager.RegisteredTypes, //ShellObjectChangeTypes.AllEventsMask,
+ _message,
+ 1,
+ ref entry);
+
+ if (_registrationId == 0)
+ {
+ throw new Win32Exception(LocalizedMessages.ShellObjectWatcherRegisterFailed);
+ }
+ #endregion
+
+ Running = true;
+ }
+
+ /// <summary>
+ /// Stop the watcher and prevent further notifications from being received.
+ /// <remarks>If the watcher is not running, this has no effect.</remarks>
+ /// </summary>
+ public void Stop()
+ {
+ if (!Running) { return; }
+ if (_registrationId > 0)
+ {
+ ShellNativeMethods.SHChangeNotifyDeregister(_registrationId);
+ _registrationId = 0;
+ }
+ Running = false;
+ }
+
+ private void OnWindowMessageReceived(WindowMessageEventArgs e)
+ {
+ if (e.Message.Msg == _message)
+ {
+ _context.Send(x => ProcessChangeNotificationEvent(e), null);
+ }
+ }
+
+ private void ThrowIfRunning()
+ {
+ if (Running)
+ {
+ throw new InvalidOperationException(LocalizedMessages.ShellObjectWatcherUnableToChangeEvents);
+ }
+ }
+
+ /// <summary>
+ /// Processes all change notifications sent by the Windows Shell.
+ /// </summary>
+ /// <param name="e">The windows message representing the notification event</param>
+ protected virtual void ProcessChangeNotificationEvent(WindowMessageEventArgs e)
+ {
+ if (!Running) { return; }
+ if (e == null) { throw new ArgumentNullException("e"); }
+
+ ChangeNotifyLock notifyLock = new ChangeNotifyLock(e.Message);
+
+ ShellObjectNotificationEventArgs args = null;
+ switch (notifyLock.ChangeType)
+ {
+ case ShellObjectChangeTypes.DirectoryRename:
+ case ShellObjectChangeTypes.ItemRename:
+ args = new ShellObjectRenamedEventArgs(notifyLock);
+ break;
+ case ShellObjectChangeTypes.SystemImageUpdate:
+ args = new SystemImageUpdatedEventArgs(notifyLock);
+ break;
+ default:
+ args = new ShellObjectChangedEventArgs(notifyLock);
+ break;
+ }
+
+ _manager.Invoke(this, notifyLock.ChangeType, args);
+ }
+
+ #region Change Events
+
+ #region Mask Events
+ /// <summary>
+ /// Raised when any event occurs.
+ /// </summary>
+ public event EventHandler<ShellObjectNotificationEventArgs> AllEvents
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.AllEventsMask, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.AllEventsMask, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when global events occur.
+ /// </summary>
+ public event EventHandler<ShellObjectNotificationEventArgs> GlobalEvents
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.GlobalEventsMask, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.GlobalEventsMask, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when disk events occur.
+ /// </summary>
+ public event EventHandler<ShellObjectNotificationEventArgs> DiskEvents
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.DiskEventsMask, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.DiskEventsMask, value);
+ }
+ }
+ #endregion
+
+ #region Single Events
+ /// <summary>
+ /// Raised when an item is renamed.
+ /// </summary>
+ public event EventHandler<ShellObjectRenamedEventArgs> ItemRenamed
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.ItemRename, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.ItemRename, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when an item is created.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> ItemCreated
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.ItemCreate, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.ItemCreate, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when an item is deleted.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> ItemDeleted
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.ItemDelete, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.ItemDelete, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when an item is updated.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> Updated
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.Update, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.Update, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a directory is updated.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> DirectoryUpdated
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.DirectoryContentsUpdate, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.DirectoryContentsUpdate, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a directory is renamed.
+ /// </summary>
+ public event EventHandler<ShellObjectRenamedEventArgs> DirectoryRenamed
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.DirectoryRename, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.DirectoryRename, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a directory is created.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> DirectoryCreated
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.DirectoryCreate, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.DirectoryCreate, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a directory is deleted.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> DirectoryDeleted
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.DirectoryDelete, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.DirectoryDelete, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when media is inserted.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> MediaInserted
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.MediaInsert, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.MediaInsert, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when media is removed.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> MediaRemoved
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.MediaRemove, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.MediaRemove, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a drive is added.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> DriveAdded
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.DriveAdd, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.DriveAdd, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a drive is removed.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> DriveRemoved
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.DriveRemove, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.DriveRemove, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a folder is shared on a network.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> FolderNetworkShared
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.NetShare, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.NetShare, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a folder is unshared from the network.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> FolderNetworkUnshared
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.NetUnshare, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.NetUnshare, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a server is disconnected.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> ServerDisconnected
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.ServerDisconnect, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.ServerDisconnect, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a system image is changed.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> SystemImageChanged
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.SystemImageUpdate, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.SystemImageUpdate, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when free space changes.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> FreeSpaceChanged
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.FreeSpace, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.FreeSpace, value);
+ }
+ }
+
+ /// <summary>
+ /// Raised when a file type association changes.
+ /// </summary>
+ public event EventHandler<ShellObjectChangedEventArgs> FileTypeAssociationChanged
+ {
+ add
+ {
+ ThrowIfRunning();
+ _manager.Register(ShellObjectChangeTypes.AssociationChange, value);
+ }
+ remove
+ {
+ ThrowIfRunning();
+ _manager.Unregister(ShellObjectChangeTypes.AssociationChange, value);
+ }
+ }
+ #endregion
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Disposes ShellObjectWatcher
+ /// </summary>
+ /// <param name="disposing"></param>
+ protected virtual void Dispose(bool disposing)
+ {
+ Stop();
+ _manager.UnregisterAll();
+
+ if (_listenerHandle != IntPtr.Zero)
+ {
+ MessageListenerFilter.Unregister(_listenerHandle, _message);
+ }
+ }
+
+ /// <summary>
+ /// Disposes ShellObjectWatcher.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Finalizer for ShellObjectWatcher
+ /// </summary>
+ ~ShellObjectWatcher()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcherEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcherEnums.cs
new file mode 100644
index 0000000000..111e9eaf04
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/ShellObjectWatcher/ShellObjectWatcherEnums.cs
@@ -0,0 +1,190 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Describes the event that has occurred.
+ /// Typically, only one event is specified at a time.
+ /// If more than one event is specified,
+ /// the values contained in the dwItem1 and dwItem2 parameters must be the same,
+ /// respectively, for all specified events.
+ /// This parameter can be one or more of the following values:
+ /// </summary>
+ [Flags]
+ public enum ShellObjectChangeTypes
+ {
+ /// <summary>
+ /// None
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// The name of a nonfolder item has changed.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the previous PIDL or name of the item.
+ /// dwItem2 contains the new PIDL or name of the item.
+ /// </summary>
+ ItemRename = 0x00000001,
+
+ /// <summary>
+ /// A nonfolder item has been created. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the item that was created.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ ItemCreate = 0x00000002,
+
+ /// <summary>
+ /// A nonfolder item has been deleted. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the item that was deleted.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ ItemDelete = 0x00000004,
+
+ /// <summary>
+ /// A folder has been created. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the folder that was created.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ DirectoryCreate = 0x00000008,
+
+ /// <summary>
+ /// A folder has been removed. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the folder that was removed.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ DirectoryDelete = 0x00000010,
+
+ /// <summary>
+ /// Storage media has been inserted into a drive. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the root of the drive that contains the new media.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ MediaInsert = 0x00000020,
+
+ /// <summary>
+ /// Storage media has been removed from a drive. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the root of the drive from which the media was removed.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ MediaRemove = 0x00000040,
+
+ /// <summary>
+ /// A drive has been removed. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the root of the drive that was removed.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ DriveRemove = 0x00000080,
+
+ /// <summary>
+ /// A drive has been added. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the root of the drive that was added.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ DriveAdd = 0x00000100,
+
+ /// <summary>
+ /// A folder on the local computer is being shared via the network.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the folder that is being shared.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ NetShare = 0x00000200,
+
+ /// <summary>
+ /// A folder on the local computer is no longer being shared via the network.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the folder that is no longer being shared.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ NetUnshare = 0x00000400,
+
+ /// <summary>
+ /// The attributes of an item or folder have changed.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the item or folder that has changed.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ AttributesChange = 0x00000800,
+
+ /// <summary>
+ /// The contents of an existing folder have changed, but the folder still exists and has not been renamed.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the folder that has changed.
+ /// dwItem2 is not used and should be NULL.
+ /// If a folder has been created, deleted, or renamed, use SHCNE_MKDIR, SHCNE_RMDIR, or SHCNE_RENAMEFOLDER, respectively.
+ /// </summary>
+ DirectoryContentsUpdate = 0x00001000,
+
+ /// <summary>
+ /// An existing item (a folder or a nonfolder) has changed, but the item still exists and has not been renamed.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the item that has changed.
+ /// dwItem2 is not used and should be NULL.
+ /// If a nonfolder item has been created, deleted, or renamed,
+ /// use SHCNE_CREATE, SHCNE_DELETE, or SHCNE_RENAMEITEM, respectively, instead.
+ /// </summary>
+ Update = 0x00002000,
+
+ /// <summary>
+ /// The computer has disconnected from a server.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the server from which the computer was disconnected.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ ServerDisconnect = 0x00004000,
+
+ /// <summary>
+ /// An image in the system image list has changed.
+ /// SHCNF_DWORD must be specified in uFlags.
+ /// dwItem1 is not used and should be NULL.
+ /// dwItem2 contains the index in the system image list that has changed.
+ /// </summary> //verify this is not opposite?
+ SystemImageUpdate = 0x00008000,
+
+ /// <summary>
+ /// The name of a folder has changed. SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the previous PIDL or name of the folder.
+ /// dwItem2 contains the new PIDL or name of the folder.
+ /// </summary>
+ DirectoryRename = 0x00020000,
+
+ /// <summary>
+ /// The amount of free space on a drive has changed.
+ /// SHCNF_IDLIST or SHCNF_PATH must be specified in uFlags.
+ /// dwItem1 contains the root of the drive on which the free space changed.
+ /// dwItem2 is not used and should be NULL.
+ /// </summary>
+ FreeSpace = 0x00040000,
+
+ /// <summary>
+ /// A file type association has changed.
+ /// SHCNF_IDLIST must be specified in the uFlags parameter.
+ /// dwItem1 and dwItem2 are not used and must be NULL.
+ /// </summary>
+ AssociationChange = 0x08000000,
+
+ /// <summary>
+ /// Specifies a combination of all of the disk event identifiers.
+ /// </summary>
+ DiskEventsMask = 0x0002381F,
+
+ /// <summary>
+ /// Specifies a combination of all of the global event identifiers.
+ /// </summary>
+ GlobalEventsMask = 0x0C0581E0,
+
+ /// <summary>
+ /// All events have occurred.
+ /// </summary>
+ AllEventsMask = 0x7FFFFFFF,
+
+ /// <summary>
+ /// The specified event occurred as a result of a system interrupt.
+ /// As this value modifies other event values, it cannot be used alone.
+ /// </summary>
+ FromInterrupt = unchecked((int)0x80000000),
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcon.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcon.cs
new file mode 100644
index 0000000000..43af02ae6e
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcon.cs
@@ -0,0 +1,270 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Drawing;
+using System.Runtime.InteropServices;
+using System.Windows;
+using System.Windows.Interop;
+using System.Windows.Media.Imaging;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Represents a standard system icon.
+ /// </summary>
+ public class StockIcon : IDisposable
+ {
+ #region Private Members
+
+ private StockIconIdentifier identifier = StockIconIdentifier.Application;
+ private StockIconSize currentSize = StockIconSize.Large;
+ private bool linkOverlay;
+ private bool selected;
+ private bool invalidateIcon = true;
+ private IntPtr hIcon = IntPtr.Zero;
+
+ #endregion
+
+ #region Public Constructors
+
+ /// <summary>
+ /// Creates a new StockIcon instance with the specified identifer, default size
+ /// and no link overlay or selected states.
+ /// </summary>
+ /// <param name="id">A value that identifies the icon represented by this instance.</param>
+ public StockIcon(StockIconIdentifier id)
+ {
+ identifier = id;
+ invalidateIcon = true;
+ }
+
+ /// <summary>
+ /// Creates a new StockIcon instance with the specified identifer and options.
+ /// </summary>
+ /// <param name="id">A value that identifies the icon represented by this instance.</param>
+ /// <param name="size">A value that indicates the size of the stock icon.</param>
+ /// <param name="isLinkOverlay">A bool value that indicates whether the icon has a link overlay.</param>
+ /// <param name="isSelected">A bool value that indicates whether the icon is in a selected state.</param>
+ public StockIcon(StockIconIdentifier id, StockIconSize size, bool isLinkOverlay, bool isSelected)
+ {
+ identifier = id;
+ linkOverlay = isLinkOverlay;
+ selected = isSelected;
+ currentSize = size;
+ invalidateIcon = true;
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// Gets or sets a value indicating whether the icon appears selected.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public bool Selected
+ {
+ get { return selected; }
+ set
+ {
+ selected = value;
+ invalidateIcon = true;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets a value that cotrols whether to put a link overlay on the icon.
+ /// </summary>
+ /// <value>A <see cref="System.Boolean"/> value.</value>
+ public bool LinkOverlay
+ {
+ get { return linkOverlay; }
+ set
+ {
+ linkOverlay = value;
+ invalidateIcon = true;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets a value that controls the size of the Stock Icon.
+ /// </summary>
+ /// <value>A <see cref="Microsoft.WindowsAPICodePack.Shell.StockIconSize"/> value.</value>
+ public StockIconSize CurrentSize
+ {
+ get { return currentSize; }
+ set
+ {
+ currentSize = value;
+ invalidateIcon = true;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the Stock Icon identifier associated with this icon.
+ /// </summary>
+ public StockIconIdentifier Identifier
+ {
+ get { return identifier; }
+ set
+ {
+ identifier = value;
+ invalidateIcon = true;
+ }
+ }
+
+ /// <summary>
+ /// Gets the icon image in <see cref="System.Drawing.Bitmap"/> format.
+ /// </summary>
+ public Bitmap Bitmap
+ {
+ get
+ {
+ UpdateHIcon();
+
+ return hIcon != IntPtr.Zero ? Bitmap.FromHicon(hIcon) : null;
+ }
+ }
+
+ /// <summary>
+ /// Gets the icon image in <see cref="System.Windows.Media.Imaging.BitmapSource"/> format.
+ /// </summary>
+ public BitmapSource BitmapSource
+ {
+ get
+ {
+ UpdateHIcon();
+
+ return (hIcon != IntPtr.Zero) ?
+ Imaging.CreateBitmapSourceFromHIcon(hIcon, Int32Rect.Empty, null) : null;
+ }
+ }
+
+ /// <summary>
+ /// Gets the icon image in <see cref="System.Drawing.Icon"/> format.
+ /// </summary>
+ public Icon Icon
+ {
+ get
+ {
+ UpdateHIcon();
+
+ return hIcon != IntPtr.Zero ? Icon.FromHandle(hIcon) : null;
+ }
+ }
+
+ #endregion
+
+ #region Private Methods
+
+ private void UpdateHIcon()
+ {
+ if (invalidateIcon)
+ {
+ if (hIcon != IntPtr.Zero)
+ CoreNativeMethods.DestroyIcon(hIcon);
+
+ hIcon = GetHIcon();
+
+ invalidateIcon = false;
+ }
+ }
+
+ private IntPtr GetHIcon()
+ {
+ // Create our internal flag to pass to the native method
+ StockIconsNativeMethods.StockIconOptions flags = StockIconsNativeMethods.StockIconOptions.Handle;
+
+ // Based on the current settings, update the flags
+ if (CurrentSize == StockIconSize.Small)
+ {
+ flags |= StockIconsNativeMethods.StockIconOptions.Small;
+ }
+ else if (CurrentSize == StockIconSize.ShellSize)
+ {
+ flags |= StockIconsNativeMethods.StockIconOptions.ShellSize;
+ }
+ else
+ {
+ flags |= StockIconsNativeMethods.StockIconOptions.Large; // default
+ }
+
+ if (Selected)
+ {
+ flags |= StockIconsNativeMethods.StockIconOptions.Selected;
+ }
+
+ if (LinkOverlay)
+ {
+ flags |= StockIconsNativeMethods.StockIconOptions.LinkOverlay;
+ }
+
+ // Create a StockIconInfo structure to pass to the native method.
+ StockIconsNativeMethods.StockIconInfo info = new StockIconsNativeMethods.StockIconInfo();
+ info.StuctureSize = (UInt32)Marshal.SizeOf(typeof(StockIconsNativeMethods.StockIconInfo));
+
+ // Pass the struct to the native method
+ HResult hr = StockIconsNativeMethods.SHGetStockIconInfo(identifier, flags, ref info);
+
+ // If we get an error, return null as the icon requested might not be supported
+ // on the current system
+ if (hr != HResult.Ok)
+ {
+ if (hr == HResult.InvalidArguments)
+ {
+ throw new InvalidOperationException(
+ string.Format(System.Globalization.CultureInfo.InvariantCulture,
+ LocalizedMessages.StockIconInvalidGuid,
+ identifier));
+ }
+
+ return IntPtr.Zero;
+ }
+
+ // If we succeed, return the HIcon
+ return info.Handle;
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release the native and managed objects
+ /// </summary>
+ /// <param name="disposing">Indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ // dispose managed resources here
+ }
+
+ // Unmanaged resources
+ if (hIcon != IntPtr.Zero)
+ CoreNativeMethods.DestroyIcon(hIcon);
+ }
+
+ /// <summary>
+ /// Release the native objects
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~StockIcon()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+ }
+}
+
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIconEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIconEnums.cs
new file mode 100644
index 0000000000..49a9452e79
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIconEnums.cs
@@ -0,0 +1,419 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+
+ /// <summary>
+ /// Specifies options for the size of the stock icon.
+ /// </summary>
+ public enum StockIconSize
+ {
+ /// <summary>
+ /// Retrieve the small version of the icon, as specified by SM_CXSMICON and SM_CYSMICON system metrics.
+ /// </summary>
+ Small,
+
+ /// <summary>
+ /// Retrieve the large version of the icon, as specified by SM_CXICON and SM_CYICON system metrics.
+ /// </summary>
+ Large,
+
+ /// <summary>
+ /// Retrieve the shell-sized icons (instead of the size specified by the system metrics).
+ /// </summary>
+ ShellSize,
+ }
+
+ /// <summary>
+ /// Provides values used to specify which standard icon to retrieve.
+ /// </summary>
+ public enum StockIconIdentifier
+ {
+ /// <summary>
+ /// Icon for a document (blank page), no associated program.
+ /// </summary>
+ DocumentNotAssociated = 0,
+ /// <summary>
+ /// Icon for a document with an associated program.
+ /// </summary>
+ DocumentAssociated = 1,
+ /// <summary>
+ /// Icon for a generic application with no custom icon.
+ /// </summary>
+ Application = 2,
+ /// <summary>
+ /// Icon for a closed folder.
+ /// </summary>
+ Folder = 3,
+ /// <summary>
+ /// Icon for an open folder.
+ /// </summary>
+ FolderOpen = 4,
+ /// <summary>
+ /// Icon for a 5.25" floppy disk drive.
+ /// </summary>
+ Drive525 = 5,
+ /// <summary>
+ /// Icon for a 3.5" floppy disk drive.
+ /// </summary>
+ Drive35 = 6,
+ /// <summary>
+ /// Icon for a removable drive.
+ /// </summary>
+ DriveRemove = 7,
+ /// <summary>
+ /// Icon for a fixed (hard disk) drive.
+ /// </summary>
+ DriveFixed = 8,
+ /// <summary>
+ /// Icon for a network drive.
+ /// </summary>
+ DriveNetwork = 9,
+ /// <summary>
+ /// Icon for a disconnected network drive.
+ /// </summary>
+ DriveNetworkDisabled = 10,
+ /// <summary>
+ /// Icon for a CD drive.
+ /// </summary>
+ DriveCD = 11,
+ /// <summary>
+ /// Icon for a RAM disk drive.
+ /// </summary>
+ DriveRam = 12,
+ /// <summary>
+ /// Icon for an entire network.
+ /// </summary>
+ World = 13,
+ /// <summary>
+ /// Icon for a computer on the network.
+ /// </summary>
+ Server = 15,
+ /// <summary>
+ /// Icon for a printer.
+ /// </summary>
+ Printer = 16,
+ /// <summary>
+ /// Icon for My Network places.
+ /// </summary>
+ MyNetwork = 17,
+ /// <summary>
+ /// Icon for search (magnifying glass).
+ /// </summary>
+ Find = 22,
+ /// <summary>
+ /// Icon for help.
+ /// </summary>
+ Help = 23,
+ /// <summary>
+ /// Icon for an overlay indicating shared items.
+ /// </summary>
+ Share = 28,
+ /// <summary>
+ /// Icon for an overlay indicating shortcuts to items.
+ /// </summary>
+ Link = 29,
+ /// <summary>
+ /// Icon for an overlay for slow items.
+ /// </summary>
+ SlowFile = 30,
+ /// <summary>
+ /// Icon for a empty recycle bin.
+ /// </summary>
+ Recycler = 31,
+ /// <summary>
+ /// Icon for a full recycle bin.
+ /// </summary>
+ RecyclerFull = 32,
+ /// <summary>
+ /// Icon for audio CD media.
+ /// </summary>
+ MediaCDAudio = 40,
+ /// <summary>
+ /// Icon for a security lock.
+ /// </summary>
+ Lock = 47,
+ /// <summary>
+ /// Icon for a auto list.
+ /// </summary>
+ AutoList = 49,
+ /// <summary>
+ /// Icon for a network printer.
+ /// </summary>
+ PrinterNet = 50,
+ /// <summary>
+ /// Icon for a server share.
+ /// </summary>
+ ServerShare = 51,
+ /// <summary>
+ /// Icon for a Fax printer.
+ /// </summary>
+ PrinterFax = 52,
+ /// <summary>
+ /// Icon for a networked Fax printer.
+ /// </summary>
+ PrinterFaxNet = 53,
+ /// <summary>
+ /// Icon for print to file.
+ /// </summary>
+ PrinterFile = 54,
+ /// <summary>
+ /// Icon for a stack.
+ /// </summary>
+ Stack = 55,
+ /// <summary>
+ /// Icon for a SVCD media.
+ /// </summary>
+ MediaSvcd = 56,
+ /// <summary>
+ /// Icon for a folder containing other items.
+ /// </summary>
+ StuffedFolder = 57,
+ /// <summary>
+ /// Icon for an unknown drive.
+ /// </summary>
+ DriveUnknown = 58,
+ /// <summary>
+ /// Icon for a DVD drive.
+ /// </summary>
+ DriveDvd = 59,
+ /// <summary>
+ /// Icon for DVD media.
+ /// </summary>
+ MediaDvd = 60,
+ /// <summary>
+ /// Icon for DVD-RAM media.
+ /// </summary>
+ MediaDvdRam = 61,
+ /// <summary>
+ /// Icon for DVD-RW media.
+ /// </summary>
+ MediaDvdRW = 62,
+ /// <summary>
+ /// Icon for DVD-R media.
+ /// </summary>
+ MediaDvdR = 63,
+ /// <summary>
+ /// Icon for a DVD-ROM media.
+ /// </summary>
+ MediaDvdRom = 64,
+ /// <summary>
+ /// Icon for CD+ (Enhanced CD) media.
+ /// </summary>
+ MediaCDAudioPlus = 65,
+ /// <summary>
+ /// Icon for CD-RW media.
+ /// </summary>
+ MediaCDRW = 66,
+ /// <summary>
+ /// Icon for a CD-R media.
+ /// </summary>
+ MediaCDR = 67,
+ /// <summary>
+ /// Icon burning a CD.
+ /// </summary>
+ MediaCDBurn = 68,
+ /// <summary>
+ /// Icon for blank CD media.
+ /// </summary>
+ MediaBlankCD = 69,
+ /// <summary>
+ /// Icon for CD-ROM media.
+ /// </summary>
+ MediaCDRom = 70,
+ /// <summary>
+ /// Icon for audio files.
+ /// </summary>
+ AudioFiles = 71,
+ /// <summary>
+ /// Icon for image files.
+ /// </summary>
+ ImageFiles = 72,
+ /// <summary>
+ /// Icon for video files.
+ /// </summary>
+ VideoFiles = 73,
+ /// <summary>
+ /// Icon for mixed Files.
+ /// </summary>
+ MixedFiles = 74,
+ /// <summary>
+ /// Icon for a folder back.
+ /// </summary>
+ FolderBack = 75,
+ /// <summary>
+ /// Icon for a folder front.
+ /// </summary>
+ FolderFront = 76,
+ /// <summary>
+ /// Icon for a security shield. Use for UAC prompts only.
+ /// </summary>
+ Shield = 77,
+ /// <summary>
+ /// Icon for a warning.
+ /// </summary>
+ Warning = 78,
+ /// <summary>
+ /// Icon for an informational message.
+ /// </summary>
+ Info = 79,
+ /// <summary>
+ /// Icon for an error message.
+ /// </summary>
+ Error = 80,
+ /// <summary>
+ /// Icon for a key.
+ /// </summary>
+ Key = 81,
+ /// <summary>
+ /// Icon for software.
+ /// </summary>
+ Software = 82,
+ /// <summary>
+ /// Icon for a rename.
+ /// </summary>
+ Rename = 83,
+ /// <summary>
+ /// Icon for delete.
+ /// </summary>
+ Delete = 84,
+ /// <summary>
+ /// Icon for audio DVD media.
+ /// </summary>
+ MediaAudioDvd = 85,
+ /// <summary>
+ /// Icon for movie DVD media.
+ /// </summary>
+ MediaMovieDvd = 86,
+ /// <summary>
+ /// Icon for enhanced CD media.
+ /// </summary>
+ MediaEnhancedCD = 87,
+ /// <summary>
+ /// Icon for enhanced DVD media.
+ /// </summary>
+ MediaEnhancedDvd = 88,
+ /// <summary>
+ /// Icon for HD-DVD media.
+ /// </summary>
+ MediaHDDvd = 89,
+ /// <summary>
+ /// Icon for BluRay media.
+ /// </summary>
+ MediaBluRay = 90,
+ /// <summary>
+ /// Icon for VCD media.
+ /// </summary>
+ MediaVcd = 91,
+ /// <summary>
+ /// Icon for DVD+R media.
+ /// </summary>
+ MediaDvdPlusR = 92,
+ /// <summary>
+ /// Icon for DVD+RW media.
+ /// </summary>
+ MediaDvdPlusRW = 93,
+ /// <summary>
+ /// Icon for desktop computer.
+ /// </summary>
+ DesktopPC = 94,
+ /// <summary>
+ /// Icon for mobile computer (laptop/notebook).
+ /// </summary>
+ MobilePC = 95,
+ /// <summary>
+ /// Icon for users.
+ /// </summary>
+ Users = 96,
+ /// <summary>
+ /// Icon for smart media.
+ /// </summary>
+ MediaSmartMedia = 97,
+ /// <summary>
+ /// Icon for compact flash.
+ /// </summary>
+ MediaCompactFlash = 98,
+ /// <summary>
+ /// Icon for a cell phone.
+ /// </summary>
+ DeviceCellPhone = 99,
+ /// <summary>
+ /// Icon for a camera.
+ /// </summary>
+ DeviceCamera = 100,
+ /// <summary>
+ /// Icon for video camera.
+ /// </summary>
+ DeviceVideoCamera = 101,
+ /// <summary>
+ /// Icon for audio player.
+ /// </summary>
+ DeviceAudioPlayer = 102,
+ /// <summary>
+ /// Icon for connecting to network.
+ /// </summary>
+ NetworkConnect = 103,
+ /// <summary>
+ /// Icon for the Internet.
+ /// </summary>
+ Internet = 104,
+ /// <summary>
+ /// Icon for a ZIP file.
+ /// </summary>
+ ZipFile = 105,
+ /// <summary>
+ /// Icon for settings.
+ /// </summary>
+ Settings = 106,
+
+ // 107-131 are internal Vista RTM icons
+ // 132-159 for SP1 icons
+
+ /// <summary>
+ /// HDDVD Drive (all types)
+ /// </summary>
+ DriveHDDVD = 132,
+
+ /// <summary>
+ /// Icon for BluRay Drive (all types)
+ /// </summary>
+ DriveBluRay = 133,
+
+ /// <summary>
+ /// Icon for HDDVD-ROM Media
+ /// </summary>
+ MediaHDDVDROM = 134,
+
+ /// <summary>
+ /// Icon for HDDVD-R Media
+ /// </summary>
+ MediaHDDVDR = 135,
+
+ /// <summary>
+ /// Icon for HDDVD-RAM Media
+ /// </summary>
+ MediaHDDVDRAM = 136,
+
+ /// <summary>
+ /// Icon for BluRay ROM Media
+ /// </summary>
+ MediaBluRayROM = 137,
+
+ /// <summary>
+ /// Icon for BluRay R Media
+ /// </summary>
+ MediaBluRayR = 138,
+
+ /// <summary>
+ /// Icon for BluRay RE Media (Rewriable and RAM)
+ /// </summary>
+ MediaBluRayRE = 139,
+
+ /// <summary>
+ /// Icon for Clustered disk
+ /// </summary>
+ ClusteredDisk = 140,
+
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcons.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcons.cs
new file mode 100644
index 0000000000..5df9bff567
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/StockIcons/StockIcons.cs
@@ -0,0 +1,631 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+
+namespace Microsoft.WindowsAPICodePack.Shell
+{
+ /// <summary>
+ /// Collection of all the standard system stock icons
+ /// </summary>
+ public class StockIcons
+ {
+ #region Private Members
+
+ private IDictionary<StockIconIdentifier, StockIcon> stockIconCache;
+ private StockIconSize defaultSize = StockIconSize.Large;
+ private bool isSelected;
+ private bool isLinkOverlay;
+
+ #endregion
+
+ #region Public Constructors
+
+ /// <summary>
+ /// Creates a stock icon collection using the default options for
+ /// size, link overlay and selection state.
+ /// </summary>
+ public StockIcons()
+ {
+ // Create an empty dictionary. Stock icons will be created when requested
+ // or when they are enumerated on this collection
+ stockIconCache = new Dictionary<StockIconIdentifier, StockIcon>();
+
+ Array allIdentifiers = Enum.GetValues(typeof(StockIconIdentifier));
+
+ foreach (StockIconIdentifier id in allIdentifiers)
+ {
+ stockIconCache.Add(id, null);
+ }
+ }
+
+ /// <summary>
+ /// Overloaded constructor that takes in size and Boolean values for
+ /// link overlay and selected icon state. The settings are applied to
+ /// all the stock icons in the collection.
+ /// </summary>
+ /// <param name="size">StockIcon size for all the icons in the collection.</param>
+ /// <param name="linkOverlay">Link Overlay state for all the icons in the collection.</param>
+ /// <param name="selected">Selection state for all the icons in the collection.</param>
+ public StockIcons(StockIconSize size, bool linkOverlay, bool selected)
+ {
+ defaultSize = size;
+ isLinkOverlay = linkOverlay;
+ isSelected = selected;
+
+ // Create an empty dictionary. Stock icons will be created when requested
+ // or when they are enumerated on this collection
+ stockIconCache = new Dictionary<StockIconIdentifier, StockIcon>();
+
+ Array allIdentifiers = Enum.GetValues(typeof(StockIconIdentifier));
+
+ foreach (StockIconIdentifier id in allIdentifiers)
+ {
+ stockIconCache.Add(id, null);
+ }
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// Gets the default stock icon size in one of the StockIconSize values.
+ /// This size applies to all the stock icons in the collection.
+ /// </summary>
+ public StockIconSize DefaultSize
+ {
+ get { return defaultSize; }
+ }
+
+ /// <summary>
+ /// Gets the default link overlay state for the icon. This property
+ /// applies to all the stock icons in the collection.
+ /// </summary>
+ public bool DefaultLinkOverlay
+ {
+ get { return isLinkOverlay; }
+ }
+
+ /// <summary>
+ /// Gets the default selected state for the icon. This property
+ /// applies to all the stock icons in the collection.
+ /// </summary>
+ public bool DefaultSelectedState
+ {
+ get { return isSelected; }
+ }
+
+ /// <summary>
+ /// Gets a collection of all the system stock icons
+ /// </summary>
+ public ICollection<StockIcon> AllStockIcons
+ {
+ get { return GetAllStockIcons(); }
+ }
+
+ /// <summary>
+ /// Icon for a document (blank page), no associated program.
+ /// </summary>
+ public StockIcon DocumentNotAssociated { get { return GetStockIcon(StockIconIdentifier.DocumentNotAssociated); } }
+
+ /// <summary>
+ /// Icon for a document with an associated program.
+ /// </summary>
+ public StockIcon DocumentAssociated { get { return GetStockIcon(StockIconIdentifier.DocumentAssociated); } }
+
+ /// <summary>
+ /// Icon for a generic application with no custom icon.
+ /// </summary>
+ public StockIcon Application { get { return GetStockIcon(StockIconIdentifier.Application); } }
+
+ /// <summary>
+ /// Icon for a closed folder.
+ /// </summary>
+ public StockIcon Folder { get { return GetStockIcon(StockIconIdentifier.Folder); } }
+
+ /// <summary>
+ /// Icon for an open folder.
+ /// </summary>
+ public StockIcon FolderOpen { get { return GetStockIcon(StockIconIdentifier.FolderOpen); } }
+
+ /// <summary>
+ /// Icon for a 5.25" floppy disk drive.
+ /// </summary>
+ public StockIcon Drive525 { get { return GetStockIcon(StockIconIdentifier.Drive525); } }
+
+ /// <summary>
+ /// Icon for a 3.5" floppy disk drive.
+ /// </summary>
+ public StockIcon Drive35 { get { return GetStockIcon(StockIconIdentifier.Drive35); } }
+
+ /// <summary>
+ /// Icon for a removable drive.
+ /// </summary>
+ public StockIcon DriveRemove { get { return GetStockIcon(StockIconIdentifier.DriveRemove); } }
+
+ /// <summary>
+ /// Icon for a fixed (hard disk) drive.
+ /// </summary>
+ public StockIcon DriveFixed { get { return GetStockIcon(StockIconIdentifier.DriveFixed); } }
+
+ /// <summary>
+ /// Icon for a network drive.
+ /// </summary>
+ public StockIcon DriveNetwork { get { return GetStockIcon(StockIconIdentifier.DriveNetwork); } }
+
+ /// <summary>
+ /// Icon for a disconnected network drive.
+ /// </summary>
+ public StockIcon DriveNetworkDisabled { get { return GetStockIcon(StockIconIdentifier.DriveNetworkDisabled); } }
+
+ /// <summary>
+ /// Icon for a CD drive.
+ /// </summary>
+ public StockIcon DriveCD { get { return GetStockIcon(StockIconIdentifier.DriveCD); } }
+
+ /// <summary>
+ /// Icon for a RAM disk drive.
+ /// </summary>
+ public StockIcon DriveRam { get { return GetStockIcon(StockIconIdentifier.DriveRam); } }
+
+ /// <summary>
+ /// Icon for an entire network.
+ /// </summary>
+ public StockIcon World { get { return GetStockIcon(StockIconIdentifier.World); } }
+
+ /// <summary>
+ /// Icon for a computer on the network.
+ /// </summary>
+ public StockIcon Server { get { return GetStockIcon(StockIconIdentifier.Server); } }
+
+ /// <summary>
+ /// Icon for a printer.
+ /// </summary>
+ public StockIcon Printer { get { return GetStockIcon(StockIconIdentifier.Printer); } }
+
+ /// <summary>
+ /// Icon for My Network places.
+ /// </summary>
+ public StockIcon MyNetwork { get { return GetStockIcon(StockIconIdentifier.MyNetwork); } }
+
+ /// <summary>
+ /// Icon for search (magnifying glass).
+ /// </summary>
+ public StockIcon Find { get { return GetStockIcon(StockIconIdentifier.Find); } }
+
+ /// <summary>
+ /// Icon for help.
+ /// </summary>
+ public StockIcon Help { get { return GetStockIcon(StockIconIdentifier.Help); } }
+
+ /// <summary>
+ /// Icon for an overlay indicating shared items.
+ /// </summary>
+ public StockIcon Share { get { return GetStockIcon(StockIconIdentifier.Share); } }
+
+ /// <summary>
+ /// Icon for an overlay indicating shortcuts to items.
+ /// </summary>
+ public StockIcon Link { get { return GetStockIcon(StockIconIdentifier.Link); } }
+
+ /// <summary>
+ /// Icon for an overlay for slow items.
+ /// </summary>
+ public StockIcon SlowFile { get { return GetStockIcon(StockIconIdentifier.SlowFile); } }
+
+ /// <summary>
+ /// Icon for a empty recycle bin.
+ /// </summary>
+ public StockIcon Recycler { get { return GetStockIcon(StockIconIdentifier.Recycler); } }
+
+ /// <summary>
+ /// Icon for a full recycle bin.
+ /// </summary>
+ public StockIcon RecyclerFull { get { return GetStockIcon(StockIconIdentifier.RecyclerFull); } }
+
+ /// <summary>
+ /// Icon for audio CD media.
+ /// </summary>
+ public StockIcon MediaCDAudio { get { return GetStockIcon(StockIconIdentifier.MediaCDAudio); } }
+
+ /// <summary>
+ /// Icon for a security lock.
+ /// </summary>
+ public StockIcon Lock { get { return GetStockIcon(StockIconIdentifier.Lock); } }
+
+ /// <summary>
+ /// Icon for a auto list.
+ /// </summary>
+ public StockIcon AutoList { get { return GetStockIcon(StockIconIdentifier.AutoList); } }
+
+ /// <summary>
+ /// Icon for a network printer.
+ /// </summary>
+ public StockIcon PrinterNet { get { return GetStockIcon(StockIconIdentifier.PrinterNet); } }
+
+ /// <summary>
+ /// Icon for a server share.
+ /// </summary>
+ public StockIcon ServerShare { get { return GetStockIcon(StockIconIdentifier.ServerShare); } }
+
+ /// <summary>
+ /// Icon for a Fax printer.
+ /// </summary>
+ public StockIcon PrinterFax { get { return GetStockIcon(StockIconIdentifier.PrinterFax); } }
+
+ /// <summary>
+ /// Icon for a networked Fax printer.
+ /// </summary>
+ public StockIcon PrinterFaxNet { get { return GetStockIcon(StockIconIdentifier.PrinterFaxNet); } }
+
+ /// <summary>
+ /// Icon for print to file.
+ /// </summary>
+ public StockIcon PrinterFile { get { return GetStockIcon(StockIconIdentifier.PrinterFile); } }
+
+ /// <summary>
+ /// Icon for a stack.
+ /// </summary>
+ public StockIcon Stack { get { return GetStockIcon(StockIconIdentifier.Stack); } }
+
+ /// <summary>
+ /// Icon for a SVCD media.
+ /// </summary>
+ public StockIcon MediaSvcd { get { return GetStockIcon(StockIconIdentifier.MediaSvcd); } }
+
+ /// <summary>
+ /// Icon for a folder containing other items.
+ /// </summary>
+ public StockIcon StuffedFolder { get { return GetStockIcon(StockIconIdentifier.StuffedFolder); } }
+
+ /// <summary>
+ /// Icon for an unknown drive.
+ /// </summary>
+ public StockIcon DriveUnknown { get { return GetStockIcon(StockIconIdentifier.DriveUnknown); } }
+
+ /// <summary>
+ /// Icon for a DVD drive.
+ /// </summary>
+ public StockIcon DriveDvd { get { return GetStockIcon(StockIconIdentifier.DriveDvd); } }
+
+ /// <summary>
+ /// Icon for DVD media.
+ /// </summary>
+ public StockIcon MediaDvd { get { return GetStockIcon(StockIconIdentifier.MediaDvd); } }
+
+ /// <summary>
+ /// Icon for DVD-RAM media.
+ /// </summary>
+ public StockIcon MediaDvdRam { get { return GetStockIcon(StockIconIdentifier.MediaDvdRam); } }
+
+ /// <summary>
+ /// Icon for DVD-RW media.
+ /// </summary>
+ public StockIcon MediaDvdRW { get { return GetStockIcon(StockIconIdentifier.MediaDvdRW); } }
+
+ /// <summary>
+ /// Icon for DVD-R media.
+ /// </summary>
+ public StockIcon MediaDvdR { get { return GetStockIcon(StockIconIdentifier.MediaDvdR); } }
+
+ /// <summary>
+ /// Icon for a DVD-ROM media.
+ /// </summary>
+ public StockIcon MediaDvdRom { get { return GetStockIcon(StockIconIdentifier.MediaDvdRom); } }
+
+ /// <summary>
+ /// Icon for CD+ (Enhanced CD) media.
+ /// </summary>
+ public StockIcon MediaCDAudioPlus { get { return GetStockIcon(StockIconIdentifier.MediaCDAudioPlus); } }
+
+ /// <summary>
+ /// Icon for CD-RW media.
+ /// </summary>
+ public StockIcon MediaCDRW { get { return GetStockIcon(StockIconIdentifier.MediaCDRW); } }
+
+ /// <summary>
+ /// Icon for a CD-R media.
+ /// </summary>
+ public StockIcon MediaCDR { get { return GetStockIcon(StockIconIdentifier.MediaCDR); } }
+
+ /// <summary>
+ /// Icon burning a CD.
+ /// </summary>
+ public StockIcon MediaCDBurn { get { return GetStockIcon(StockIconIdentifier.MediaCDBurn); } }
+
+ /// <summary>
+ /// Icon for blank CD media.
+ /// </summary>
+ public StockIcon MediaBlankCD { get { return GetStockIcon(StockIconIdentifier.MediaBlankCD); } }
+
+ /// <summary>
+ /// Icon for CD-ROM media.
+ /// </summary>
+ public StockIcon MediaCDRom { get { return GetStockIcon(StockIconIdentifier.MediaCDRom); } }
+
+ /// <summary>
+ /// Icon for audio files.
+ /// </summary>
+ public StockIcon AudioFiles { get { return GetStockIcon(StockIconIdentifier.AudioFiles); } }
+
+ /// <summary>
+ /// Icon for image files.
+ /// </summary>
+ public StockIcon ImageFiles { get { return GetStockIcon(StockIconIdentifier.ImageFiles); } }
+
+ /// <summary>
+ /// Icon for video files.
+ /// </summary>
+ public StockIcon VideoFiles { get { return GetStockIcon(StockIconIdentifier.VideoFiles); } }
+
+ /// <summary>
+ /// Icon for mixed Files.
+ /// </summary>
+ public StockIcon MixedFiles { get { return GetStockIcon(StockIconIdentifier.MixedFiles); } }
+
+ /// <summary>
+ /// Icon for a folder back.
+ /// </summary>
+ public StockIcon FolderBack { get { return GetStockIcon(StockIconIdentifier.FolderBack); } }
+
+ /// <summary>
+ /// Icon for a folder front.
+ /// </summary>
+ public StockIcon FolderFront { get { return GetStockIcon(StockIconIdentifier.FolderFront); } }
+
+ /// <summary>
+ /// Icon for a security shield. Use for UAC prompts only.
+ /// </summary>
+ public StockIcon Shield { get { return GetStockIcon(StockIconIdentifier.Shield); } }
+
+ /// <summary>
+ /// Icon for a warning.
+ /// </summary>
+ public StockIcon Warning { get { return GetStockIcon(StockIconIdentifier.Warning); } }
+
+ /// <summary>
+ /// Icon for an informational message.
+ /// </summary>
+ public StockIcon Info { get { return GetStockIcon(StockIconIdentifier.Info); } }
+
+ /// <summary>
+ /// Icon for an error message.
+ /// </summary>
+ public StockIcon Error { get { return GetStockIcon(StockIconIdentifier.Error); } }
+
+ /// <summary>
+ /// Icon for a key.
+ /// </summary>
+ public StockIcon Key { get { return GetStockIcon(StockIconIdentifier.Key); } }
+
+ /// <summary>
+ /// Icon for software.
+ /// </summary>
+ public StockIcon Software { get { return GetStockIcon(StockIconIdentifier.Software); } }
+
+ /// <summary>
+ /// Icon for a rename.
+ /// </summary>
+ public StockIcon Rename { get { return GetStockIcon(StockIconIdentifier.Rename); } }
+
+ /// <summary>
+ /// Icon for delete.
+ /// </summary>
+ public StockIcon Delete { get { return GetStockIcon(StockIconIdentifier.Delete); } }
+
+ /// <summary>
+ /// Icon for audio DVD media.
+ /// </summary>
+ public StockIcon MediaAudioDvd { get { return GetStockIcon(StockIconIdentifier.MediaAudioDvd); } }
+
+ /// <summary>
+ /// Icon for movie DVD media.
+ /// </summary>
+ public StockIcon MediaMovieDvd { get { return GetStockIcon(StockIconIdentifier.MediaMovieDvd); } }
+
+ /// <summary>
+ /// Icon for enhanced CD media.
+ /// </summary>
+ public StockIcon MediaEnhancedCD { get { return GetStockIcon(StockIconIdentifier.MediaEnhancedCD); } }
+
+ /// <summary>
+ /// Icon for enhanced DVD media.
+ /// </summary>
+ public StockIcon MediaEnhancedDvd { get { return GetStockIcon(StockIconIdentifier.MediaEnhancedDvd); } }
+
+ /// <summary>
+ /// Icon for HD-DVD media.
+ /// </summary>
+ public StockIcon MediaHDDvd { get { return GetStockIcon(StockIconIdentifier.MediaHDDvd); } }
+
+ /// <summary>
+ /// Icon for BluRay media.
+ /// </summary>
+ public StockIcon MediaBluRay { get { return GetStockIcon(StockIconIdentifier.MediaBluRay); } }
+
+ /// <summary>
+ /// Icon for VCD media.
+ /// </summary>
+ public StockIcon MediaVcd { get { return GetStockIcon(StockIconIdentifier.MediaVcd); } }
+
+ /// <summary>
+ /// Icon for DVD+R media.
+ /// </summary>
+ public StockIcon MediaDvdPlusR { get { return GetStockIcon(StockIconIdentifier.MediaDvdPlusR); } }
+
+ /// <summary>
+ /// Icon for DVD+RW media.
+ /// </summary>
+ public StockIcon MediaDvdPlusRW { get { return GetStockIcon(StockIconIdentifier.MediaDvdPlusRW); } }
+
+ /// <summary>
+ /// Icon for desktop computer.
+ /// </summary>
+ public StockIcon DesktopPC { get { return GetStockIcon(StockIconIdentifier.DesktopPC); } }
+
+ /// <summary>
+ /// Icon for mobile computer (laptop/notebook).
+ /// </summary>
+ public StockIcon MobilePC { get { return GetStockIcon(StockIconIdentifier.MobilePC); } }
+
+ /// <summary>
+ /// Icon for users.
+ /// </summary>
+ public StockIcon Users { get { return GetStockIcon(StockIconIdentifier.Users); } }
+
+ /// <summary>
+ /// Icon for smart media.
+ /// </summary>
+ public StockIcon MediaSmartMedia { get { return GetStockIcon(StockIconIdentifier.MediaSmartMedia); } }
+
+ /// <summary>
+ /// Icon for compact flash.
+ /// </summary>
+ public StockIcon MediaCompactFlash { get { return GetStockIcon(StockIconIdentifier.MediaCompactFlash); } }
+
+ /// <summary>
+ /// Icon for a cell phone.
+ /// </summary>
+ public StockIcon DeviceCellPhone { get { return GetStockIcon(StockIconIdentifier.DeviceCellPhone); } }
+
+ /// <summary>
+ /// Icon for a camera.
+ /// </summary>
+ public StockIcon DeviceCamera { get { return GetStockIcon(StockIconIdentifier.DeviceCamera); } }
+
+ /// <summary>
+ /// Icon for video camera.
+ /// </summary>
+ public StockIcon DeviceVideoCamera { get { return GetStockIcon(StockIconIdentifier.DeviceVideoCamera); } }
+
+ /// <summary>
+ /// Icon for audio player.
+ /// </summary>
+ public StockIcon DeviceAudioPlayer { get { return GetStockIcon(StockIconIdentifier.DeviceAudioPlayer); } }
+
+ /// <summary>
+ /// Icon for connecting to network.
+ /// </summary>
+ public StockIcon NetworkConnect { get { return GetStockIcon(StockIconIdentifier.NetworkConnect); } }
+
+ /// <summary>
+ /// Icon for the Internet.
+ /// </summary>
+ public StockIcon Internet { get { return GetStockIcon(StockIconIdentifier.Internet); } }
+
+ /// <summary>
+ /// Icon for a ZIP file.
+ /// </summary>
+ public StockIcon ZipFile { get { return GetStockIcon(StockIconIdentifier.ZipFile); } }
+
+ /// <summary>
+ /// Icon for settings.
+ /// </summary>
+ public StockIcon Settings { get { return GetStockIcon(StockIconIdentifier.Settings); } }
+
+ /// <summary>
+ /// HDDVD Drive (all types)
+ /// </summary>
+ public StockIcon DriveHDDVD { get { return GetStockIcon(StockIconIdentifier.DriveHDDVD); } }
+
+ /// <summary>
+ /// Icon for BluRay Drive (all types)
+ /// </summary>
+ public StockIcon DriveBluRay { get { return GetStockIcon(StockIconIdentifier.DriveBluRay); } }
+
+ /// <summary>
+ /// Icon for HDDVD-ROM Media
+ /// </summary>
+ public StockIcon MediaHDDVDROM { get { return GetStockIcon(StockIconIdentifier.MediaHDDVDROM); } }
+
+ /// <summary>
+ /// Icon for HDDVD-R Media
+ /// </summary>
+ public StockIcon MediaHDDVDR { get { return GetStockIcon(StockIconIdentifier.MediaHDDVDR); } }
+
+ /// <summary>
+ /// Icon for HDDVD-RAM Media
+ /// </summary>
+ public StockIcon MediaHDDVDRAM { get { return GetStockIcon(StockIconIdentifier.MediaHDDVDRAM); } }
+
+ /// <summary>
+ /// Icon for BluRay ROM Media
+ /// </summary>
+ public StockIcon MediaBluRayROM { get { return GetStockIcon(StockIconIdentifier.MediaBluRayROM); } }
+
+ /// <summary>
+ /// Icon for BluRay R Media
+ /// </summary>
+ public StockIcon MediaBluRayR { get { return GetStockIcon(StockIconIdentifier.MediaBluRayR); } }
+
+ /// <summary>
+ /// Icon for BluRay RE Media (Rewriable and RAM)
+ /// </summary>
+ public StockIcon MediaBluRayRE { get { return GetStockIcon(StockIconIdentifier.MediaBluRayRE); } }
+
+ /// <summary>
+ /// Icon for Clustered disk
+ /// </summary>
+ public StockIcon ClusteredDisk { get { return GetStockIcon(StockIconIdentifier.ClusteredDisk); } }
+
+ #endregion
+
+ #region Private Methods
+
+ /// <summary>
+ /// Returns the existing stock icon from the internal cache, or creates a new one
+ /// based on the current settings if it's not in the cache.
+ /// </summary>
+ /// <param name="stockIconIdentifier">Unique identifier for the requested stock icon</param>
+ /// <returns>Stock Icon based on the identifier given (either from the cache or created new)</returns>
+ private StockIcon GetStockIcon(StockIconIdentifier stockIconIdentifier)
+ {
+ // Check the cache first
+ if (stockIconCache[stockIconIdentifier] != null)
+ return stockIconCache[stockIconIdentifier];
+ else
+ {
+ // Create a new icon based on our default settings
+ StockIcon icon = new StockIcon(stockIconIdentifier, defaultSize, isLinkOverlay, isSelected);
+
+ try
+ {
+ // Add it to the cache
+ stockIconCache[stockIconIdentifier] = icon;
+ }
+ catch
+ {
+ icon.Dispose();
+ throw;
+ }
+
+ // Return
+ return icon;
+ }
+ }
+
+ private ICollection<StockIcon> GetAllStockIcons()
+ {
+ // Create a list of stock Identifiers
+ StockIconIdentifier[] ids = new StockIconIdentifier[stockIconCache.Count];
+ stockIconCache.Keys.CopyTo(ids, 0);
+
+ // For each identifier, if our cache is null, create a new stock icon
+ foreach (StockIconIdentifier id in ids)
+ {
+ if (stockIconCache[id] == null)
+ GetStockIcon(id);
+ }
+
+ // return the list of stock icons
+ return stockIconCache.Values;
+ }
+
+
+ #endregion
+
+ }
+
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpList.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpList.cs
new file mode 100644
index 0000000000..e167582182
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpList.cs
@@ -0,0 +1,575 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using System.Text;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents an instance of a Taskbar button jump list.
+ /// </summary>
+ public class JumpList
+ {
+
+ /// <summary>
+ /// Create a JumpList for the application's taskbar button.
+ /// </summary>
+ /// <returns>A new JumpList that is associated with the app id of the main application window</returns>
+ /// <remarks>If there are any other child (top-level) windows for this application and they don't have
+ /// a specific JumpList created for them, they all will share the same JumpList as the main application window.
+ /// In order to have a individual JumpList for a top-level window, use the overloaded method CreateJumpListForIndividualWindow.</remarks>
+ public static JumpList CreateJumpList()
+ {
+ return new JumpList(TaskbarManager.Instance.ApplicationId);
+ }
+
+ /// <summary>
+ /// Create a JumpList for the application's taskbar button.
+ /// </summary>
+ /// <param name="appId">Application Id for the individual window. This must be unique for each top-level window in order to have a individual JumpList.</param>
+ /// <param name="windowHandle">Handle of the window associated with the new JumpList</param>
+ /// <returns>A new JumpList that is associated with the specific window handle</returns>
+ public static JumpList CreateJumpListForIndividualWindow(string appId, IntPtr windowHandle)
+ {
+ return new JumpList(appId, windowHandle);
+ }
+
+ /// <summary>
+ /// Create a JumpList for the application's taskbar button.
+ /// </summary>
+ /// <param name="appId">Application Id for the individual window. This must be unique for each top-level window in order to have a individual JumpList.</param>
+ /// <param name="window">WPF Window associated with the new JumpList</param>
+ /// <returns>A new JumpList that is associated with the specific WPF window</returns>
+ public static JumpList CreateJumpListForIndividualWindow(string appId, System.Windows.Window window)
+ {
+ return new JumpList(appId, window);
+ }
+
+ // Best practice recommends defining a private object to lock on
+ private readonly object syncLock = new Object();
+
+ // Native implementation of destination list
+ private ICustomDestinationList customDestinationList;
+
+ #region Properties
+
+ private JumpListCustomCategoryCollection customCategoriesCollection;
+ /// <summary>
+ /// Adds a collection of custom categories to the Taskbar jump list.
+ /// </summary>
+ /// <param name="customCategories">The catagories to add to the jump list.</param>
+ public void AddCustomCategories(params JumpListCustomCategory[] customCategories)
+ {
+ lock (syncLock)
+ {
+ if (customCategoriesCollection == null)
+ {
+ customCategoriesCollection = new JumpListCustomCategoryCollection();
+ }
+ }
+
+ if (customCategories != null)
+ {
+ foreach (JumpListCustomCategory category in customCategories)
+ {
+ customCategoriesCollection.Add(category);
+ }
+ }
+ }
+
+ private JumpListItemCollection<JumpListTask> userTasks;
+ /// <summary>
+ /// Adds user tasks to the Taskbar JumpList. User tasks can only consist of JumpListTask or
+ /// JumpListSeparator objects.
+ /// </summary>
+ /// <param name="tasks">The user tasks to add to the JumpList.</param>
+ public void AddUserTasks(params JumpListTask[] tasks)
+ {
+ if (userTasks == null)
+ {
+ // Make sure that we don't create multiple instances
+ // of this object
+ lock (syncLock)
+ {
+ if (userTasks == null)
+ {
+ userTasks = new JumpListItemCollection<JumpListTask>();
+ }
+ }
+ }
+
+ if (tasks != null)
+ {
+ foreach (JumpListTask task in tasks)
+ {
+ userTasks.Add(task);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Removes all user tasks that have been added.
+ /// </summary>
+ public void ClearAllUserTasks()
+ {
+ if (userTasks != null)
+ {
+ userTasks.Clear();
+ }
+ }
+
+ /// <summary>
+ /// Gets the recommended number of items to add to the jump list.
+ /// </summary>
+ /// <remarks>
+ /// This number doesn’t
+ /// imply or suggest how many items will appear on the jump list.
+ /// This number should only be used for reference purposes since
+ /// the actual number of slots in the jump list can change after the last
+ /// refresh due to items being pinned or removed and resolution changes.
+ /// The jump list can increase in size accordingly.
+ /// </remarks>
+ public uint MaxSlotsInList
+ {
+ get
+ {
+ // Because we need the correct number for max slots, start a commit, get the max slots
+ // and then abort. If we wait until the user calls RefreshTaskbarlist(), it will be too late.
+ // The user needs to use this number before they update the jumplist.
+
+ object removedItems;
+ uint maxSlotsInList = 10; // default
+
+ // Native call to start adding items to the taskbar destination list
+ HResult hr = customDestinationList.BeginList(
+ out maxSlotsInList,
+ ref TaskbarNativeMethods.TaskbarGuids.IObjectArray,
+ out removedItems);
+
+ if (CoreErrorHelper.Succeeded(hr))
+ {
+ customDestinationList.AbortList();
+ }
+
+ return maxSlotsInList;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the type of known categories to display.
+ /// </summary>
+ public JumpListKnownCategoryType KnownCategoryToDisplay { get; set; }
+
+ private int knownCategoryOrdinalPosition;
+ /// <summary>
+ /// Gets or sets the value for the known category location relative to the
+ /// custom category collection.
+ /// </summary>
+ public int KnownCategoryOrdinalPosition
+ {
+ get
+ {
+ return knownCategoryOrdinalPosition;
+ }
+ set
+ {
+ if (value < 0)
+ {
+ throw new ArgumentOutOfRangeException("value", LocalizedMessages.JumpListNegativeOrdinalPosition);
+ }
+
+ knownCategoryOrdinalPosition = value;
+ }
+
+ }
+
+ /// <summary>
+ /// Gets or sets the application ID to use for this jump list.
+ /// </summary>
+ public string ApplicationId { get; private set; }
+
+ #endregion
+
+ /// <summary>
+ /// Creates a new instance of the JumpList class with the specified
+ /// appId. The JumpList is associated with the main window of the application.
+ /// </summary>
+ /// <param name="appID">Application Id to use for this instace.</param>
+ internal JumpList(string appID)
+ : this(appID, TaskbarManager.Instance.OwnerHandle)
+ {
+ }
+
+ /// <summary>
+ /// Creates a new instance of the JumpList class with the specified
+ /// appId. The JumpList is associated with the given WPF Window.
+ /// </summary>
+ /// <param name="appID">Application Id to use for this instace.</param>
+ /// <param name="window">WPF Window that is associated with this JumpList</param>
+ internal JumpList(string appID, System.Windows.Window window)
+ : this(appID, (new System.Windows.Interop.WindowInteropHelper(window)).Handle)
+ {
+ }
+
+ /// <summary>
+ /// Creates a new instance of the JumpList class with the specified
+ /// appId. The JumpList is associated with the given window.
+ /// </summary>
+ /// <param name="appID">Application Id to use for this instace.</param>
+ /// <param name="windowHandle">Window handle for the window that is associated with this JumpList</param>
+ private JumpList(string appID, IntPtr windowHandle)
+ {
+ // Throw exception if not running on Win7 or newer
+ CoreHelpers.ThrowIfNotWin7();
+
+ // Native implementation of destination list
+ customDestinationList = (ICustomDestinationList)new CDestinationList();
+
+ // Set application user model ID
+ if (!string.IsNullOrEmpty(appID))
+ {
+ ApplicationId = appID;
+
+ // If the user hasn't yet set the application id for the whole process,
+ // use the first JumpList's AppId for the whole process. This will ensure
+ // we have the same JumpList for all the windows (unless user overrides and creates a new
+ // JumpList for a specific child window)
+ if (!TaskbarManager.Instance.ApplicationIdSetProcessWide)
+ {
+ TaskbarManager.Instance.ApplicationId = appID;
+ }
+
+ TaskbarManager.Instance.SetApplicationIdForSpecificWindow(windowHandle, appID);
+ }
+ }
+
+ /// <summary>
+ /// Reports document usage to the shell.
+ /// </summary>
+ /// <param name="destination">The full path of the file to report usage.</param>
+ public static void AddToRecent(string destination)
+ {
+ TaskbarNativeMethods.SHAddToRecentDocs(destination);
+ }
+
+ /// <summary>
+ /// Commits the pending JumpList changes and refreshes the Taskbar.
+ /// </summary>
+ /// <exception cref="System.InvalidOperationException">Will throw if the type of the file being added to the JumpList is not registered with the application.</exception>
+ /// <exception cref="System.UnauthorizedAccessException">Will throw if recent documents tracking is turned off by the user or via group policy.</exception>
+ /// <exception cref="System.Runtime.InteropServices.COMException">Will throw if updating the JumpList fails for any other reason.</exception>
+ public void Refresh()
+ {
+ // Let the taskbar know which specific jumplist we are updating
+ if (!string.IsNullOrEmpty(ApplicationId))
+ {
+ customDestinationList.SetAppID(ApplicationId);
+ }
+
+ // Begins rendering on the taskbar destination list
+ BeginList();
+
+ Exception exception = null;
+
+ try
+ {
+ // try to add the user tasks first
+ AppendTaskList();
+ }
+ catch (Exception e)
+ {
+ // If this fails, save the exception but don't throw it yet.
+ // We need to continue to try and add the custom categories
+ exception = e;
+ }
+
+ // Even it fails, continue appending the custom categories
+ try
+ {
+ // Add custom categories
+ AppendCustomCategories();
+ }
+ finally
+ {
+ // End rendering of the taskbar destination list
+ customDestinationList.CommitList();
+ }
+
+ // If an exception was thrown while adding the user tasks or
+ // custom categories, throw it.
+ if (exception != null)
+ {
+ throw exception;
+ }
+ }
+
+ private void BeginList()
+ {
+ // Get list of removed items from native code
+ object removedItems;
+ uint maxSlotsInList = 10; // default
+
+ // Native call to start adding items to the taskbar destination list
+ HResult hr = customDestinationList.BeginList(
+ out maxSlotsInList,
+ ref TaskbarNativeMethods.TaskbarGuids.IObjectArray,
+ out removedItems);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+
+ // Process the deleted items
+ IEnumerable removedItemsArray = ProcessDeletedItems((IObjectArray)removedItems);
+
+ // Raise the event if items were removed
+ if (JumpListItemsRemoved != null && removedItemsArray != null && removedItemsArray.GetEnumerator().MoveNext())
+ {
+ JumpListItemsRemoved(this, new UserRemovedJumpListItemsEventArgs(removedItemsArray));
+ }
+ }
+
+ /// <summary>
+ /// Occurs when items are removed from the Taskbar's jump list since the last
+ /// refresh.
+ /// </summary>
+ /// <remarks>
+ /// This event is not triggered
+ /// immediately when a user removes an item from the jump list but rather
+ /// when the application refreshes the task bar list directly.
+ /// </remarks>
+ public event EventHandler<UserRemovedJumpListItemsEventArgs> JumpListItemsRemoved = delegate { };
+
+ /// <summary>
+ /// Retrieves the current list of destinations that have been removed from the existing jump list by the user.
+ /// The removed destinations may become items on a custom jump list.
+ /// </summary>
+ /// <value>A collection of items (filenames) removed from the existing jump list by the user.</value>
+ public IEnumerable RemovedDestinations
+ {
+ get
+ {
+ // Get list of removed items from native code
+ object removedItems;
+
+ customDestinationList.GetRemovedDestinations(ref TaskbarNativeMethods.TaskbarGuids.IObjectArray, out removedItems);
+
+ return ProcessDeletedItems((IObjectArray)removedItems);
+ }
+ }
+
+ private IEnumerable<string> ProcessDeletedItems(IObjectArray removedItems)
+ {
+ List<string> removedItemsArray = new List<string>();
+
+ uint count;
+ removedItems.GetCount(out count);
+
+ // Process each removed item based on its type
+ for (uint i = 0; i < count; i++)
+ {
+ // Native call to retrieve objects from IObjectArray
+ object item;
+ removedItems.GetAt(i,
+ ref TaskbarNativeMethods.TaskbarGuids.IUnknown,
+ out item);
+
+ IShellItem shellItem = item as IShellItem;
+ IShellLinkW shellLink;
+ // Process item
+ if (shellItem != null)
+ {
+ removedItemsArray.Add(RemoveCustomCategoryItem(shellItem));
+ }
+ else if ((shellLink = item as IShellLinkW) != null)
+ {
+ removedItemsArray.Add(RemoveCustomCategoryLink(shellLink));
+ }
+ }
+ return removedItemsArray;
+ }
+
+ private string RemoveCustomCategoryItem(IShellItem item)
+ {
+ string path = null;
+
+ if (customCategoriesCollection != null)
+ {
+ IntPtr pszString = IntPtr.Zero;
+ HResult hr = item.GetDisplayName(ShellNativeMethods.ShellItemDesignNameOptions.FileSystemPath, out pszString);
+ if (hr == HResult.Ok && pszString != IntPtr.Zero)
+ {
+ path = Marshal.PtrToStringAuto(pszString);
+ // Free the string
+ Marshal.FreeCoTaskMem(pszString);
+ }
+
+ // Remove this item from each category
+ foreach (JumpListCustomCategory category in customCategoriesCollection)
+ {
+ category.RemoveJumpListItem(path);
+ }
+
+ }
+
+ return path;
+ }
+
+
+ private string RemoveCustomCategoryLink(IShellLinkW link)
+ {
+ string path = null;
+
+ if (customCategoriesCollection != null)
+ {
+ StringBuilder sb = new StringBuilder(256);
+ link.GetPath(sb, sb.Capacity, IntPtr.Zero, 2);
+
+ path = sb.ToString();
+
+ // Remove this item from each category
+ foreach (JumpListCustomCategory category in customCategoriesCollection)
+ {
+ category.RemoveJumpListItem(path);
+ }
+ }
+
+ return path;
+ }
+
+ private void AppendCustomCategories()
+ {
+ // Initialize our current index in the custom categories list
+ int currentIndex = 0;
+
+ // Keep track whether we add the Known Categories to our list
+ bool knownCategoriesAdded = false;
+
+ if (customCategoriesCollection != null)
+ {
+ // Append each category to list
+ foreach (JumpListCustomCategory category in customCategoriesCollection)
+ {
+ // If our current index is same as the KnownCategory OrdinalPosition,
+ // append the Known Categories
+ if (!knownCategoriesAdded && currentIndex == KnownCategoryOrdinalPosition)
+ {
+ AppendKnownCategories();
+ knownCategoriesAdded = true;
+ }
+
+ // Don't process empty categories
+ if (category.JumpListItems.Count == 0) { continue; }
+
+ IObjectCollection categoryContent =
+ (IObjectCollection)new CEnumerableObjectCollection();
+
+ // Add each link's shell representation to the object array
+ foreach (IJumpListItem link in category.JumpListItems)
+ {
+ JumpListItem listItem = link as JumpListItem;
+ JumpListLink listLink = link as JumpListLink;
+ if (listItem != null)
+ {
+ categoryContent.AddObject(listItem.NativeShellItem);
+ }
+ else if (listLink != null)
+ {
+ categoryContent.AddObject(listLink.NativeShellLink);
+ }
+ }
+
+ // Add current category to destination list
+ HResult hr = customDestinationList.AppendCategory(
+ category.Name,
+ (IObjectArray)categoryContent);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ if ((uint)hr == 0x80040F03)
+ {
+ throw new InvalidOperationException(LocalizedMessages.JumpListFileTypeNotRegistered);
+ }
+ else if ((uint)hr == 0x80070005 /*E_ACCESSDENIED*/)
+ {
+ // If the recent documents tracking is turned off by the user,
+ // custom categories or items to an existing category cannot be added.
+ // The recent documents tracking can be changed via:
+ // 1. Group Policy “Do not keep history of recently opened documents”.
+ // 2. Via the user setting “Store and display recently opened items in
+ // the Start menu and the taskbar” in the Start menu property dialog.
+ //
+ throw new UnauthorizedAccessException(LocalizedMessages.JumpListCustomCategoriesDisabled);
+ }
+
+ throw new ShellException(hr);
+ }
+
+ // Increase our current index
+ currentIndex++;
+ }
+ }
+
+ // If the ordinal position was out of range, append the Known Categories
+ // at the end
+ if (!knownCategoriesAdded)
+ {
+ AppendKnownCategories();
+ }
+ }
+
+ private void AppendTaskList()
+ {
+ if (userTasks == null || userTasks.Count == 0) { return; }
+
+ IObjectCollection taskContent =
+ (IObjectCollection)new CEnumerableObjectCollection();
+
+ // Add each task's shell representation to the object array
+ foreach (JumpListTask task in userTasks)
+ {
+ JumpListSeparator seperator;
+ JumpListLink link = task as JumpListLink;
+ if (link != null)
+ {
+ taskContent.AddObject(link.NativeShellLink);
+ }
+ else if ((seperator = task as JumpListSeparator) != null)
+ {
+ taskContent.AddObject(seperator.NativeShellLink);
+ }
+ }
+
+ // Add tasks to the taskbar
+ HResult hr = customDestinationList.AddUserTasks((IObjectArray)taskContent);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ if ((uint)hr == 0x80040F03)
+ {
+ throw new InvalidOperationException(LocalizedMessages.JumpListFileTypeNotRegistered);
+ }
+ throw new ShellException(hr);
+ }
+ }
+
+ private void AppendKnownCategories()
+ {
+ if (KnownCategoryToDisplay == JumpListKnownCategoryType.Recent)
+ {
+ customDestinationList.AppendKnownCategory(KnownDestinationCategory.Recent);
+ }
+ else if (KnownCategoryToDisplay == JumpListKnownCategoryType.Frequent)
+ {
+ customDestinationList.AppendKnownCategory(KnownDestinationCategory.Frequent);
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategory.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategory.cs
new file mode 100644
index 0000000000..b5f616d866
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategory.cs
@@ -0,0 +1,92 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Linq;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a custom category on the taskbar's jump list
+ /// </summary>
+ public class JumpListCustomCategory
+ {
+ private string name;
+
+ internal JumpListItemCollection<IJumpListItem> JumpListItems
+ {
+ get;
+ private set;
+ }
+
+ /// <summary>
+ /// Category name
+ /// </summary>
+ public string Name
+ {
+ get { return name; }
+ set
+ {
+ if (value != name)
+ {
+ name = value;
+ this.CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
+ }
+ }
+ }
+
+
+ /// <summary>
+ /// Add JumpList items for this category
+ /// </summary>
+ /// <param name="items">The items to add to the JumpList.</param>
+ public void AddJumpListItems(params IJumpListItem[] items)
+ {
+ if (items != null)
+ {
+ foreach (IJumpListItem item in items)
+ {
+ JumpListItems.Add(item);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Event that is triggered when the jump list collection is modified
+ /// </summary>
+ internal event NotifyCollectionChangedEventHandler CollectionChanged = delegate { };
+
+ /// <summary>
+ /// Creates a new custom category instance
+ /// </summary>
+ /// <param name="categoryName">Category name</param>
+ public JumpListCustomCategory(string categoryName)
+ {
+ Name = categoryName;
+
+ JumpListItems = new JumpListItemCollection<IJumpListItem>();
+ JumpListItems.CollectionChanged += OnJumpListCollectionChanged;
+ }
+
+ internal void OnJumpListCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
+ {
+ this.CollectionChanged(this, args);
+ }
+
+
+ internal void RemoveJumpListItem(string path)
+ {
+ List<IJumpListItem> itemsToRemove = new List<IJumpListItem>(
+ from i in JumpListItems
+ where string.Equals(path, i.Path, StringComparison.OrdinalIgnoreCase)
+ select i);
+
+ // Remove matching items
+ for (int i = 0; i < itemsToRemove.Count; i++)
+ {
+ JumpListItems.Remove(itemsToRemove[i]);
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategoryCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategoryCollection.cs
new file mode 100644
index 0000000000..ba917a5212
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListCustomCategoryCollection.cs
@@ -0,0 +1,135 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a collection of custom categories
+ /// </summary>
+ internal class JumpListCustomCategoryCollection
+ : ICollection<JumpListCustomCategory>, INotifyCollectionChanged
+ {
+ private List<JumpListCustomCategory> categories = new List<JumpListCustomCategory>();
+
+ /// <summary>
+ /// Event to trigger anytime this collection is modified
+ /// </summary>
+ public event NotifyCollectionChangedEventHandler CollectionChanged = delegate { };
+
+ /// <summary>
+ /// Determines if this collection is read-only
+ /// </summary>
+ public bool IsReadOnly { get; set; }
+
+ /// <summary>
+ /// The number of items in this collection
+ /// </summary>
+ public int Count
+ {
+ get { return categories.Count; }
+ }
+
+ /// <summary>
+ /// Add the specified category to this collection
+ /// </summary>
+ /// <param name="category">Category to add</param>
+ public void Add(JumpListCustomCategory category)
+ {
+ if (category == null)
+ {
+ throw new ArgumentNullException("category");
+ }
+ categories.Add(category);
+
+ // Trigger CollectionChanged event
+ CollectionChanged(
+ this,
+ new NotifyCollectionChangedEventArgs(
+ NotifyCollectionChangedAction.Add,
+ category));
+
+ // Make sure that a collection changed event is fire if this category
+ // or it's corresponding jumplist is modified
+ category.CollectionChanged += CollectionChanged;
+ category.JumpListItems.CollectionChanged += CollectionChanged;
+ }
+
+ /// <summary>
+ /// Remove the specified category from this collection
+ /// </summary>
+ /// <param name="category">Category item to remove</param>
+ /// <returns>True if item was removed.</returns>
+ public bool Remove(JumpListCustomCategory category)
+ {
+ bool removed = categories.Remove(category);
+
+ if (removed == true)
+ {
+ // Trigger CollectionChanged event
+ CollectionChanged(
+ this,
+ new NotifyCollectionChangedEventArgs(
+ NotifyCollectionChangedAction.Remove,
+ 0));
+ }
+
+ return removed;
+ }
+
+ /// <summary>
+ /// Clear all items from the collection
+ /// </summary>
+ public void Clear()
+ {
+ categories.Clear();
+
+ CollectionChanged(
+ this,
+ new NotifyCollectionChangedEventArgs(
+ NotifyCollectionChangedAction.Reset));
+ }
+
+ /// <summary>
+ /// Determine if this collection contains the specified item
+ /// </summary>
+ /// <param name="category">Category to search for</param>
+ /// <returns>True if category was found</returns>
+ public bool Contains(JumpListCustomCategory category)
+ {
+ return categories.Contains(category);
+ }
+
+ /// <summary>
+ /// Copy this collection to a compatible one-dimensional array,
+ /// starting at the specified index of the target array
+ /// </summary>
+ /// <param name="array">Array to copy to</param>
+ /// <param name="index">Index of target array to start copy</param>
+ public void CopyTo(JumpListCustomCategory[] array, int index)
+ {
+ categories.CopyTo(array, index);
+ }
+
+ /// <summary>
+ /// Returns an enumerator that iterates through this collection.
+ /// </summary>
+ /// <returns>Enumerator to iterate through this collection.</returns>
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return categories.GetEnumerator();
+ }
+
+ /// <summary>
+ /// Returns an enumerator that iterates through this collection.
+ /// </summary>
+ /// <returns>Enumerator to iterate through this collection.</returns>
+ IEnumerator<JumpListCustomCategory> IEnumerable<JumpListCustomCategory>.GetEnumerator()
+ {
+ return categories.GetEnumerator();
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItem.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItem.cs
new file mode 100644
index 0000000000..2b29c3a209
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItem.cs
@@ -0,0 +1,39 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a jump list item.
+ /// </summary>
+ public class JumpListItem : ShellFile, IJumpListItem
+ {
+ /// <summary>
+ /// Creates a jump list item with the specified path.
+ /// </summary>
+ /// <param name="path">The path to the jump list item.</param>
+ /// <remarks>The file type should associate the given file
+ /// with the calling application.</remarks>
+ public JumpListItem(string path) : base(path) { }
+
+ #region IJumpListItem Members
+
+ /// <summary>
+ /// Gets or sets the target path for this jump list item.
+ /// </summary>
+ public new string Path
+ {
+ get
+ {
+ return base.Path;
+ }
+ set
+ {
+ base.ParsingName = value;
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItemCollection.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItemCollection.cs
new file mode 100644
index 0000000000..2cfda5c4c0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListItemCollection.cs
@@ -0,0 +1,126 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a collection of jump list items.
+ /// </summary>
+ /// <typeparam name="T">The type of elements in this collection.</typeparam>
+ internal class JumpListItemCollection<T> : ICollection<T>, INotifyCollectionChanged
+ {
+ private List<T> items = new List<T>();
+
+ /// <summary>
+ /// Occurs anytime a change is made to the underlying collection.
+ /// </summary>
+ public event NotifyCollectionChangedEventHandler CollectionChanged = delegate { };
+
+ /// <summary>
+ /// Gets or sets a value that determines if this collection is read-only.
+ /// </summary>
+ public bool IsReadOnly { get; set; }
+
+ /// <summary>
+ /// Gets a count of the items currently in this collection.
+ /// </summary>
+ public int Count
+ {
+ get { return items.Count; }
+ }
+
+ /// <summary>
+ /// Adds the specified item to this collection.
+ /// </summary>
+ /// <param name="item">The item to add.</param>
+ public void Add(T item)
+ {
+ items.Add(item);
+
+ // Trigger CollectionChanged event
+ CollectionChanged(
+ this,
+ new NotifyCollectionChangedEventArgs(
+ NotifyCollectionChangedAction.Add,
+ item));
+ }
+
+ /// <summary>
+ /// Removes the first instance of the specified item from the collection.
+ /// </summary>
+ /// <param name="item">The item to remove.</param>
+ /// <returns><b>true</b> if an item was removed, otherwise <b>false</b> if no items were removed.</returns>
+ public bool Remove(T item)
+ {
+ bool removed = items.Remove(item);
+
+ if (removed == true)
+ {
+ // Trigger CollectionChanged event
+ CollectionChanged(
+ this,
+ new NotifyCollectionChangedEventArgs(
+ NotifyCollectionChangedAction.Remove,
+ 0));
+ }
+
+ return removed;
+ }
+
+ /// <summary>
+ /// Clears all items from this collection.
+ /// </summary>
+ public void Clear()
+ {
+ items.Clear();
+
+ // Trigger CollectionChanged event
+ CollectionChanged(
+ this,
+ new NotifyCollectionChangedEventArgs(
+ NotifyCollectionChangedAction.Reset));
+ }
+
+ /// <summary>
+ /// Determines if this collection contains the specified item.
+ /// </summary>
+ /// <param name="item">The search item.</param>
+ /// <returns><b>true</b> if an item was found, otherwise <b>false</b>.</returns>
+ public bool Contains(T item)
+ {
+ return items.Contains(item);
+ }
+
+ /// <summary>
+ /// Copies this collection to a compatible one-dimensional array,
+ /// starting at the specified index of the target array.
+ /// </summary>
+ /// <param name="array">The array name.</param>
+ /// <param name="index">The index of the starting element.</param>
+ public void CopyTo(T[] array, int index)
+ {
+ items.CopyTo(array, index);
+ }
+
+ /// <summary>
+ /// Returns an enumerator that iterates through a collection.
+ /// </summary>
+ /// <returns>An enumerator to iterate through this collection.</returns>
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return items.GetEnumerator();
+ }
+
+ /// <summary>
+ /// Returns an enumerator that iterates through a collection of a specified type.
+ /// </summary>
+ /// <returns>An enumerator to iterate through this collection.</returns>
+ IEnumerator<T> IEnumerable<T>.GetEnumerator()
+ {
+ return items.GetEnumerator();
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListLink.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListLink.cs
new file mode 100644
index 0000000000..8aa168c3ea
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListLink.cs
@@ -0,0 +1,201 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a jump list link object.
+ /// </summary>
+ public class JumpListLink : JumpListTask, IJumpListItem, IDisposable
+ {
+ internal static PropertyKey PKEY_Title = SystemProperties.System.Title;
+
+ /// <summary>
+ /// Initializes a new instance of a JumpListLink with the specified path.
+ /// </summary>
+ /// <param name="pathValue">The path to the item. The path is required for the JumpList Link</param>
+ /// <param name="titleValue">The title for the JumpListLink item. The title is required for the JumpList link.</param>
+ public JumpListLink(string pathValue, string titleValue)
+ {
+ if (string.IsNullOrEmpty(pathValue))
+ {
+ throw new ArgumentNullException("pathValue", LocalizedMessages.JumpListLinkPathRequired);
+ }
+
+ if (string.IsNullOrEmpty(titleValue))
+ {
+ throw new ArgumentNullException("titleValue", LocalizedMessages.JumpListLinkTitleRequired);
+ }
+
+ Path = pathValue;
+ Title = titleValue;
+ }
+
+ private string title;
+ /// <summary>
+ /// Gets or sets the link's title
+ /// </summary>
+ public string Title
+ {
+ get { return title; }
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentNullException("value", LocalizedMessages.JumpListLinkTitleRequired);
+ }
+
+ title = value;
+ }
+ }
+
+ private string path;
+ /// <summary>
+ /// Gets or sets the link's path
+ /// </summary>
+ public string Path
+ {
+ get { return path; }
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentNullException("value", LocalizedMessages.JumpListLinkTitleRequired);
+ }
+
+ path = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the icon reference (location and index) of the link's icon.
+ /// </summary>
+ public IconReference IconReference { get; set; }
+
+ /// <summary>
+ /// Gets or sets the object's arguments (passed to the command line).
+ /// </summary>
+ public string Arguments { get; set; }
+
+ /// <summary>
+ /// Gets or sets the object's working directory.
+ /// </summary>
+ public string WorkingDirectory { get; set; }
+
+ /// <summary>
+ /// Gets or sets the show command of the lauched application.
+ /// </summary>
+ public WindowShowCommand ShowCommand { get; set; }
+
+ private IPropertyStore nativePropertyStore;
+ private IShellLinkW nativeShellLink;
+ /// <summary>
+ /// Gets an IShellLinkW representation of this object
+ /// </summary>
+ internal override IShellLinkW NativeShellLink
+ {
+ get
+ {
+ if (nativeShellLink != null)
+ {
+ Marshal.ReleaseComObject(nativeShellLink);
+ nativeShellLink = null;
+ }
+
+ nativeShellLink = (IShellLinkW)new CShellLink();
+
+ if (nativePropertyStore != null)
+ {
+ Marshal.ReleaseComObject(nativePropertyStore);
+ nativePropertyStore = null;
+ }
+
+ nativePropertyStore = (IPropertyStore)nativeShellLink;
+
+ nativeShellLink.SetPath(Path);
+
+ if (!string.IsNullOrEmpty(IconReference.ModuleName))
+ {
+ nativeShellLink.SetIconLocation(IconReference.ModuleName, IconReference.ResourceId);
+ }
+
+ if (!string.IsNullOrEmpty(Arguments))
+ {
+ nativeShellLink.SetArguments(Arguments);
+ }
+
+ if (!string.IsNullOrEmpty(WorkingDirectory))
+ {
+ nativeShellLink.SetWorkingDirectory(WorkingDirectory);
+ }
+
+ nativeShellLink.SetShowCmd((uint)ShowCommand);
+
+ using (PropVariant propVariant = new PropVariant(Title))
+ {
+ HResult result = nativePropertyStore.SetValue(ref PKEY_Title, propVariant);
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new ShellException(result);
+ }
+
+ nativePropertyStore.Commit();
+ }
+
+ return nativeShellLink;
+ }
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release the native and managed objects
+ /// </summary>
+ /// <param name="disposing">Indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ title = null;
+ }
+
+ if (nativePropertyStore != null)
+ {
+ Marshal.ReleaseComObject(nativePropertyStore);
+ nativePropertyStore = null;
+ }
+
+ if (nativeShellLink != null)
+ {
+ Marshal.ReleaseComObject(nativeShellLink);
+ nativeShellLink = null;
+ }
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Implement the finalizer.
+ /// </summary>
+ ~JumpListLink()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListSeparator.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListSeparator.cs
new file mode 100644
index 0000000000..0af5aa6c49
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/JumpListSeparator.cs
@@ -0,0 +1,99 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Runtime.InteropServices;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a separator in the user task list. The JumpListSeparator control
+ /// can only be used in a user task list.
+ /// </summary>
+ public class JumpListSeparator : JumpListTask, IDisposable
+ {
+ internal static PropertyKey PKEY_AppUserModel_IsDestListSeparator = SystemProperties.System.AppUserModel.IsDestinationListSeparator;
+
+ private IPropertyStore nativePropertyStore;
+ private IShellLinkW nativeShellLink;
+ /// <summary>
+ /// Gets an IShellLinkW representation of this object
+ /// </summary>
+ internal override IShellLinkW NativeShellLink
+ {
+ get
+ {
+ if (nativeShellLink != null)
+ {
+ Marshal.ReleaseComObject(nativeShellLink);
+ nativeShellLink = null;
+ }
+
+ nativeShellLink = (IShellLinkW)new CShellLink();
+
+ if (nativePropertyStore != null)
+ {
+ Marshal.ReleaseComObject(nativePropertyStore);
+ nativePropertyStore = null;
+ }
+
+ nativePropertyStore = (IPropertyStore)nativeShellLink;
+
+ using(PropVariant propVariant = new PropVariant(true))
+ {
+ HResult result = nativePropertyStore.SetValue(ref PKEY_AppUserModel_IsDestListSeparator, propVariant);
+ if (!CoreErrorHelper.Succeeded(result))
+ {
+ throw new ShellException(result);
+ }
+ nativePropertyStore.Commit();
+ }
+
+ return nativeShellLink; ;
+ }
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ /// Release the native and managed objects
+ /// </summary>
+ /// <param name="disposing">Indicates that this is being called from Dispose(), rather than the finalizer.</param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (nativePropertyStore != null)
+ {
+ Marshal.ReleaseComObject(nativePropertyStore);
+ nativePropertyStore = null;
+ }
+
+ if (nativeShellLink != null)
+ {
+ Marshal.ReleaseComObject(nativeShellLink);
+ nativeShellLink = null;
+ }
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Implement the finalizer.
+ /// </summary>
+ ~JumpListSeparator()
+ {
+ Dispose(false);
+ }
+
+ #endregion
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnail.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnail.cs
new file mode 100644
index 0000000000..fe565119da
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnail.cs
@@ -0,0 +1,566 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Drawing;
+using System.IO;
+using System.Threading;
+using System.Windows;
+using System.Windows.Forms;
+using System.Windows.Interop;
+using System.Windows.Media.Imaging;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a tabbed thumbnail on the taskbar for a given window or a control.
+ /// </summary>
+ public class TabbedThumbnail : IDisposable
+ {
+ #region Internal members
+
+ // Control properties
+ internal IntPtr WindowHandle { get; set; }
+ internal IntPtr ParentWindowHandle { get; set; }
+
+ // WPF properties
+ internal UIElement WindowsControl { get; set; }
+ internal Window WindowsControlParentWindow { get; set; }
+
+ private TaskbarWindow _taskbarWindow;
+ internal TaskbarWindow TaskbarWindow
+ {
+ get { return _taskbarWindow; }
+ set
+ {
+ _taskbarWindow = value;
+
+ // If we have a TaskbarWindow assigned, set it's icon
+ if (_taskbarWindow != null && _taskbarWindow.TabbedThumbnailProxyWindow != null)
+ {
+ _taskbarWindow.TabbedThumbnailProxyWindow.Icon = Icon;
+ }
+ }
+ }
+
+ private bool _addedToTaskbar;
+ internal bool AddedToTaskbar
+ {
+ get { return _addedToTaskbar; }
+ set
+ {
+ _addedToTaskbar = value;
+
+ // The user has updated the clipping region, so invalidate our existing preview
+ if (ClippingRectangle != null)
+ {
+ TaskbarWindowManager.InvalidatePreview(this.TaskbarWindow);
+ }
+ }
+ }
+
+ internal bool RemovedFromTaskbar { get; set; }
+
+ #endregion
+
+ #region Constructors
+
+ /// <summary>
+ /// Creates a new TabbedThumbnail with the given window handle of the parent and
+ /// a child control/window's handle (e.g. TabPage or Panel)
+ /// </summary>
+ /// <param name="parentWindowHandle">Window handle of the parent window.
+ /// This window has to be a top-level window and the handle cannot be null or IntPtr.Zero</param>
+ /// <param name="windowHandle">Window handle of the child control or window for which a tabbed
+ /// thumbnail needs to be displayed</param>
+ public TabbedThumbnail(IntPtr parentWindowHandle, IntPtr windowHandle)
+ {
+ if (parentWindowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.TabbedThumbnailZeroParentHandle, "parentWindowHandle");
+ }
+ if (windowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.TabbedThumbnailZeroChildHandle, "windowHandle");
+ }
+
+ WindowHandle = windowHandle;
+ ParentWindowHandle = parentWindowHandle;
+ }
+
+ /// <summary>
+ /// Creates a new TabbedThumbnail with the given window handle of the parent and
+ /// a child control (e.g. TabPage or Panel)
+ /// </summary>
+ /// <param name="parentWindowHandle">Window handle of the parent window.
+ /// This window has to be a top-level window and the handle cannot be null or IntPtr.Zero</param>
+ /// <param name="control">Child control for which a tabbed thumbnail needs to be displayed</param>
+ /// <remarks>This method can also be called when using a WindowsFormHost control in a WPF application.
+ /// Call this method with the main WPF Window's handle, and windowsFormHost.Child control.</remarks>
+ public TabbedThumbnail(IntPtr parentWindowHandle, Control control)
+ {
+ if (parentWindowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.TabbedThumbnailZeroParentHandle, "parentWindowHandle");
+ }
+ if (control == null)
+ {
+ throw new ArgumentNullException("control");
+ }
+
+ WindowHandle = control.Handle;
+ ParentWindowHandle = parentWindowHandle;
+ }
+
+ /// <summary>
+ /// Creates a new TabbedThumbnail with the given window handle of the parent and
+ /// a WPF child Window. For WindowsFormHost control, use TabbedThumbnail(IntPtr, Control) overload and pass
+ /// the WindowsFormHost.Child as the second parameter.
+ /// </summary>
+ /// <param name="parentWindow">Parent window for the UIElement control.
+ /// This window has to be a top-level window and the handle cannot be null</param>
+ /// <param name="windowsControl">WPF Control (UIElement) for which a tabbed thumbnail needs to be displayed</param>
+ /// <param name="peekOffset">Offset point used for displaying the peek bitmap. This setting is
+ /// recomended for hidden WPF controls as it is difficult to calculate their offset.</param>
+ public TabbedThumbnail(Window parentWindow, UIElement windowsControl, Vector peekOffset)
+ {
+ if (windowsControl == null)
+ {
+ throw new ArgumentNullException("windowsControl");
+ }
+ if (parentWindow == null)
+ {
+ throw new ArgumentNullException("parentWindow");
+ }
+
+ WindowHandle = IntPtr.Zero;
+
+ WindowsControl = windowsControl;
+ WindowsControlParentWindow = parentWindow;
+ ParentWindowHandle = (new WindowInteropHelper(parentWindow)).Handle;
+ PeekOffset = peekOffset;
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ private string _title = string.Empty;
+ /// <summary>
+ /// Title for the window shown as the taskbar thumbnail.
+ /// </summary>
+ public string Title
+ {
+ get
+ {
+ return _title;
+ }
+ set
+ {
+ if (_title != value)
+ {
+ _title = value;
+ if (TitleChanged != null) { TitleChanged(this, EventArgs.Empty); }
+ }
+ }
+ }
+
+ private string _tooltip = string.Empty;
+ /// <summary>
+ /// Tooltip to be shown for this thumbnail on the taskbar.
+ /// By default this is full title of the window shown on the taskbar.
+ /// </summary>
+ public string Tooltip
+ {
+ get { return _tooltip; }
+ set
+ {
+ if (_tooltip != value)
+ {
+ _tooltip = value;
+ if (TooltipChanged != null) { TooltipChanged(this, EventArgs.Empty); }
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets the window icon for this thumbnail preview
+ /// </summary>
+ /// <param name="icon">System.Drawing.Icon for the window/control associated with this preview</param>
+ public void SetWindowIcon(Icon icon)
+ {
+ Icon = icon;
+
+ // If we have a TaskbarWindow assigned, set its icon
+ if (TaskbarWindow != null && TaskbarWindow.TabbedThumbnailProxyWindow != null)
+ {
+ TaskbarWindow.TabbedThumbnailProxyWindow.Icon = Icon;
+ }
+ }
+
+ /// <summary>
+ /// Sets the window icon for this thumbnail preview
+ /// </summary>
+ /// <param name="iconHandle">Icon handle (hIcon) for the window/control associated with this preview</param>
+ /// <remarks>This method will not release the icon handle. It is the caller's responsibility to release the icon handle.</remarks>
+ public void SetWindowIcon(IntPtr iconHandle)
+ {
+ Icon = iconHandle != IntPtr.Zero ? System.Drawing.Icon.FromHandle(iconHandle) : null;
+
+ if (TaskbarWindow != null && TaskbarWindow.TabbedThumbnailProxyWindow != null)
+ {
+ TaskbarWindow.TabbedThumbnailProxyWindow.Icon = Icon;
+ }
+ }
+
+ private Rectangle? _clippingRectangle;
+ /// <summary>
+ /// Specifies that only a portion of the window's client area
+ /// should be used in the window's thumbnail.
+ /// <para>A value of null will clear the clipping area and use the default thumbnail.</para>
+ /// </summary>
+ public Rectangle? ClippingRectangle
+ {
+ get { return _clippingRectangle; }
+ set
+ {
+ _clippingRectangle = value;
+
+ // The user has updated the clipping region, so invalidate our existing preview
+ TaskbarWindowManager.InvalidatePreview(this.TaskbarWindow);
+ }
+ }
+
+ internal IntPtr CurrentHBitmap { get; set; }
+
+ internal Icon Icon { get; private set; }
+
+ /// <summary>
+ /// Override the thumbnail and peek bitmap.
+ /// By providing this bitmap manually, Thumbnail Window manager will provide the
+ /// Desktop Window Manager (DWM) this bitmap instead of rendering one automatically.
+ /// Use this property to update the bitmap whenever the control is updated and the user
+ /// needs to be shown a new thumbnail on the taskbar preview (or aero peek).
+ /// </summary>
+ /// <param name="bitmap">The image to use.</param>
+ /// <remarks>
+ /// If the bitmap doesn't have the right dimensions, the DWM may scale it or not
+ /// render certain areas as appropriate - it is the user's responsibility
+ /// to render a bitmap with the proper dimensions.
+ /// </remarks>
+ public void SetImage(Bitmap bitmap)
+ {
+ if (bitmap != null)
+ {
+ SetImage(bitmap.GetHbitmap());
+ }
+ else
+ {
+ SetImage(IntPtr.Zero);
+ }
+ }
+
+ /// <summary>
+ /// Override the thumbnail and peek bitmap.
+ /// By providing this bitmap manually, Thumbnail Window manager will provide the
+ /// Desktop Window Manager (DWM) this bitmap instead of rendering one automatically.
+ /// Use this property to update the bitmap whenever the control is updated and the user
+ /// needs to be shown a new thumbnail on the taskbar preview (or aero peek).
+ /// </summary>
+ /// <param name="bitmapSource">The image to use.</param>
+ /// <remarks>
+ /// If the bitmap doesn't have the right dimensions, the DWM may scale it or not
+ /// render certain areas as appropriate - it is the user's responsibility
+ /// to render a bitmap with the proper dimensions.
+ /// </remarks>
+ public void SetImage(BitmapSource bitmapSource)
+ {
+ if (bitmapSource == null)
+ {
+ SetImage(IntPtr.Zero);
+ return;
+ }
+
+ BmpBitmapEncoder encoder = new BmpBitmapEncoder();
+ encoder.Frames.Add(BitmapFrame.Create(bitmapSource));
+
+ using (MemoryStream memoryStream = new MemoryStream())
+ {
+ encoder.Save(memoryStream);
+ memoryStream.Position = 0;
+
+ using (Bitmap bmp = new Bitmap(memoryStream))
+ {
+ SetImage(bmp.GetHbitmap());
+ }
+ }
+ }
+
+ /// <summary>
+ /// Override the thumbnail and peek bitmap.
+ /// By providing this bitmap manually, Thumbnail Window manager will provide the
+ /// Desktop Window Manager (DWM) this bitmap instead of rendering one automatically.
+ /// Use this property to update the bitmap whenever the control is updated and the user
+ /// needs to be shown a new thumbnail on the taskbar preview (or aero peek).
+ /// </summary>
+ /// <param name="hBitmap">A bitmap handle for the image to use.
+ /// <para>When the TabbedThumbnail is finalized, this class will delete the provided hBitmap.</para></param>
+ /// <remarks>
+ /// If the bitmap doesn't have the right dimensions, the DWM may scale it or not
+ /// render certain areas as appropriate - it is the user's responsibility
+ /// to render a bitmap with the proper dimensions.
+ /// </remarks>
+ internal void SetImage(IntPtr hBitmap)
+ {
+ // Before we set a new bitmap, dispose the old one
+ if (CurrentHBitmap != IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(CurrentHBitmap);
+ }
+
+ // Set the new bitmap
+ CurrentHBitmap = hBitmap;
+
+ // Let DWM know to invalidate its cached thumbnail/preview and ask us for a new one
+ TaskbarWindowManager.InvalidatePreview(TaskbarWindow);
+ }
+
+ /// <summary>
+ /// Specifies whether a standard window frame will be displayed
+ /// around the bitmap. If the bitmap represents a top-level window,
+ /// you would probably set this flag to <b>true</b>. If the bitmap
+ /// represents a child window (or a frameless window), you would
+ /// probably set this flag to <b>false</b>.
+ /// </summary>
+ public bool DisplayFrameAroundBitmap { get; set; }
+
+ /// <summary>
+ /// Invalidate any existing thumbnail preview. Calling this method
+ /// will force DWM to request a new bitmap next time user previews the thumbnails
+ /// or requests Aero peek preview.
+ /// </summary>
+ public void InvalidatePreview()
+ {
+ // clear current image and invalidate
+ SetImage(IntPtr.Zero);
+ }
+
+ /// <summary>
+ /// Gets or sets the offset used for displaying the peek bitmap. This setting is
+ /// recomended for hidden WPF controls as it is difficult to calculate their offset.
+ /// </summary>
+ public Vector? PeekOffset { get; set; }
+
+ #endregion
+
+
+
+ #region Events
+
+ /// <summary>
+ /// This event is raised when the Title property changes.
+ /// </summary>
+ public event EventHandler TitleChanged;
+
+ /// <summary>
+ /// This event is raised when the Tooltip property changes.
+ /// </summary>
+ public event EventHandler TooltipChanged;
+
+ /// <summary>
+ /// The event that occurs when a tab is closed on the taskbar thumbnail preview.
+ /// </summary>
+ public event EventHandler<TabbedThumbnailClosedEventArgs> TabbedThumbnailClosed;
+
+ /// <summary>
+ /// The event that occurs when a tab is maximized via the taskbar thumbnail preview (context menu).
+ /// </summary>
+ public event EventHandler<TabbedThumbnailEventArgs> TabbedThumbnailMaximized;
+
+ /// <summary>
+ /// The event that occurs when a tab is minimized via the taskbar thumbnail preview (context menu).
+ /// </summary>
+ public event EventHandler<TabbedThumbnailEventArgs> TabbedThumbnailMinimized;
+
+ /// <summary>
+ /// The event that occurs when a tab is activated (clicked) on the taskbar thumbnail preview.
+ /// </summary>
+ public event EventHandler<TabbedThumbnailEventArgs> TabbedThumbnailActivated;
+
+ /// <summary>
+ /// The event that occurs when a thumbnail or peek bitmap is requested by the user.
+ /// </summary>
+ public event EventHandler<TabbedThumbnailBitmapRequestedEventArgs> TabbedThumbnailBitmapRequested;
+
+
+ internal void OnTabbedThumbnailMaximized()
+ {
+ if (TabbedThumbnailMaximized != null)
+ {
+ TabbedThumbnailMaximized(this, GetTabbedThumbnailEventArgs());
+ }
+ else
+ {
+ // No one is listening to these events.
+ // Forward the message to the main window
+ CoreNativeMethods.SendMessage(ParentWindowHandle, WindowMessage.SystemCommand, new IntPtr(TabbedThumbnailNativeMethods.ScMaximize), IntPtr.Zero);
+ }
+ }
+
+ internal void OnTabbedThumbnailMinimized()
+ {
+ if (TabbedThumbnailMinimized != null)
+ {
+ TabbedThumbnailMinimized(this, GetTabbedThumbnailEventArgs());
+ }
+ else
+ {
+ // No one is listening to these events.
+ // Forward the message to the main window
+ CoreNativeMethods.SendMessage(ParentWindowHandle, WindowMessage.SystemCommand, new IntPtr(TabbedThumbnailNativeMethods.ScMinimize), IntPtr.Zero);
+ }
+
+ }
+
+ /// <summary>
+ /// Returns true if the thumbnail was removed from the taskbar; false if it was not.
+ /// </summary>
+ /// <returns>Returns true if the thumbnail was removed from the taskbar; false if it was not.</returns>
+ internal bool OnTabbedThumbnailClosed()
+ {
+ var closedHandler = TabbedThumbnailClosed;
+ if (closedHandler != null)
+ {
+ var closingEvent = GetTabbedThumbnailClosingEventArgs();
+
+ closedHandler(this, closingEvent);
+
+ if (closingEvent.Cancel) { return false; }
+ }
+ else
+ {
+ // No one is listening to these events. Forward the message to the main window
+ CoreNativeMethods.SendMessage(ParentWindowHandle, WindowMessage.NCDestroy, IntPtr.Zero, IntPtr.Zero);
+ }
+
+ // Remove it from the internal list as well as the taskbar
+ TaskbarManager.Instance.TabbedThumbnail.RemoveThumbnailPreview(this);
+ return true;
+ }
+
+ internal void OnTabbedThumbnailActivated()
+ {
+ if (TabbedThumbnailActivated != null)
+ {
+ TabbedThumbnailActivated(this, GetTabbedThumbnailEventArgs());
+ }
+ else
+ {
+ // No one is listening to these events.
+ // Forward the message to the main window
+ CoreNativeMethods.SendMessage(ParentWindowHandle, WindowMessage.ActivateApplication, new IntPtr(1), new IntPtr(Thread.CurrentThread.GetHashCode()));
+ }
+ }
+
+ internal void OnTabbedThumbnailBitmapRequested()
+ {
+ if (TabbedThumbnailBitmapRequested != null)
+ {
+ TabbedThumbnailBitmapRequestedEventArgs eventArgs = null;
+
+ if (this.WindowHandle != IntPtr.Zero)
+ {
+ eventArgs = new TabbedThumbnailBitmapRequestedEventArgs(this.WindowHandle);
+ }
+ else if (this.WindowsControl != null)
+ {
+ eventArgs = new TabbedThumbnailBitmapRequestedEventArgs(this.WindowsControl);
+ }
+
+ TabbedThumbnailBitmapRequested(this, eventArgs);
+ }
+ }
+
+ private TabbedThumbnailClosedEventArgs GetTabbedThumbnailClosingEventArgs()
+ {
+ TabbedThumbnailClosedEventArgs eventArgs = null;
+
+ if (this.WindowHandle != IntPtr.Zero)
+ {
+ eventArgs = new TabbedThumbnailClosedEventArgs(this.WindowHandle);
+ }
+ else if (this.WindowsControl != null)
+ {
+ eventArgs = new TabbedThumbnailClosedEventArgs(this.WindowsControl);
+ }
+
+ return eventArgs;
+ }
+
+ private TabbedThumbnailEventArgs GetTabbedThumbnailEventArgs()
+ {
+ TabbedThumbnailEventArgs eventArgs = null;
+
+ if (this.WindowHandle != IntPtr.Zero)
+ {
+ eventArgs = new TabbedThumbnailEventArgs(this.WindowHandle);
+ }
+ else if (this.WindowsControl != null)
+ {
+ eventArgs = new TabbedThumbnailEventArgs(this.WindowsControl);
+ }
+
+ return eventArgs;
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~TabbedThumbnail()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ /// <param name="disposing"></param>
+ protected virtual void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ _taskbarWindow = null;
+
+ if (Icon != null) { Icon.Dispose(); }
+ Icon = null;
+
+ _title = null;
+ _tooltip = null;
+ WindowsControl = null;
+ }
+
+ if (CurrentHBitmap != IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(CurrentHBitmap);
+ CurrentHBitmap = IntPtr.Zero;
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailBitmapRequestedEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailBitmapRequestedEventArgs.cs
new file mode 100644
index 0000000000..701d0f942f
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailBitmapRequestedEventArgs.cs
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Drawing;
+using System.Windows;
+using System.Windows.Media.Imaging;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Event args for the TabbedThumbnailBitmapRequested event. The event allows applications to
+ /// provide a bitmap for the tabbed thumbnail's preview and peek. The application should also
+ /// set the Handled property if a custom bitmap is provided.
+ /// </summary>
+ public class TabbedThumbnailBitmapRequestedEventArgs : TabbedThumbnailEventArgs
+ {
+ /// <summary>
+ /// Creates a Event Args for a TabbedThumbnailBitmapRequested event.
+ /// </summary>
+ /// <param name="windowHandle">Window handle for the control/window related to the event</param>
+ public TabbedThumbnailBitmapRequestedEventArgs(IntPtr windowHandle)
+ : base(windowHandle)
+ {
+ }
+
+ /// <summary>
+ /// Creates a Event Args for a TabbedThumbnailBitmapRequested event.
+ /// </summary>
+ /// <param name="windowsControl">WPF Control (UIElement) related to the event</param>
+ public TabbedThumbnailBitmapRequestedEventArgs(UIElement windowsControl)
+ : base(windowsControl)
+ {
+ }
+
+
+ /// <summary>
+ /// Gets or sets a value indicating whether the TabbedThumbnailBitmapRequested event was handled.
+ /// Set this property if the SetImage method is called with a custom bitmap for the thumbnail/peek.
+ /// </summary>
+ public bool Handled { get; set; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailClosedEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailClosedEventArgs.cs
new file mode 100644
index 0000000000..b90a695985
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailClosedEventArgs.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Windows;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Event args for when close is selected on a tabbed thumbnail proxy window.
+ /// </summary>
+ public class TabbedThumbnailClosedEventArgs : TabbedThumbnailEventArgs
+ {
+ /// <summary>
+ /// Creates a Event Args for a specific tabbed thumbnail event.
+ /// </summary>
+ /// <param name="windowHandle">Window handle for the control/window related to the event</param>
+ public TabbedThumbnailClosedEventArgs(IntPtr windowHandle) : base(windowHandle) { }
+
+ /// <summary>
+ /// Creates a Event Args for a specific tabbed thumbnail event.
+ /// </summary>
+ /// <param name="windowsControl">WPF Control (UIElement) related to the event</param>
+ public TabbedThumbnailClosedEventArgs(UIElement windowsControl) : base(windowsControl) { }
+
+ /// <summary>
+ /// If set to true, the proxy window will not be removed from the taskbar.
+ /// </summary>
+ public bool Cancel { get; set; }
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailEventArgs.cs
new file mode 100644
index 0000000000..8788ae0f11
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailEventArgs.cs
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Windows;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Event args for various Tabbed Thumbnail related events
+ /// </summary>
+ public class TabbedThumbnailEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Creates a Event Args for a specific tabbed thumbnail event.
+ /// </summary>
+ /// <param name="windowHandle">Window handle for the control/window related to the event</param>
+ public TabbedThumbnailEventArgs(IntPtr windowHandle)
+ {
+ WindowHandle = windowHandle;
+ WindowsControl = null;
+ }
+
+ /// <summary>
+ /// Creates a Event Args for a specific tabbed thumbnail event.
+ /// </summary>
+ /// <param name="windowsControl">WPF Control (UIElement) related to the event</param>
+ public TabbedThumbnailEventArgs(UIElement windowsControl)
+ {
+ WindowHandle = IntPtr.Zero;
+ WindowsControl = windowsControl;
+ }
+
+ /// <summary>
+ /// Gets the Window handle for the specific control/window that is related to this event.
+ /// </summary>
+ /// <remarks>For WPF Controls (UIElement) the WindowHandle will be IntPtr.Zero.
+ /// Check the WindowsControl property to get the specific control associated with this event.</remarks>
+ public IntPtr WindowHandle { get; private set; }
+
+ /// <summary>
+ /// Gets the WPF Control (UIElement) that is related to this event. This property may be null
+ /// for non-WPF applications.
+ /// </summary>
+ public UIElement WindowsControl { get; private set; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailManager.cs
new file mode 100644
index 0000000000..73a7e579db
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailManager.cs
@@ -0,0 +1,464 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Windows;
+using System.Windows.Forms;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Interop;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents the main class for adding and removing tabbed thumbnails on the Taskbar
+ /// for child windows and controls.
+ /// </summary>
+ public class TabbedThumbnailManager
+ {
+ /// <summary>
+ /// Internal dictionary to keep track of the user's window handle and its
+ /// corresponding thumbnail preview objects.
+ /// </summary>
+ private Dictionary<IntPtr, TabbedThumbnail> _tabbedThumbnailCache;
+ private Dictionary<UIElement, TabbedThumbnail> _tabbedThumbnailCacheWPF; // list for WPF controls
+
+ /// <summary>
+ /// Internal constructor that creates a new dictionary for keeping track of the window handles
+ /// and their corresponding thumbnail preview objects.
+ /// </summary>
+ internal TabbedThumbnailManager()
+ {
+ _tabbedThumbnailCache = new Dictionary<IntPtr, TabbedThumbnail>();
+ _tabbedThumbnailCacheWPF = new Dictionary<UIElement, TabbedThumbnail>();
+ }
+
+ /// <summary>
+ /// Adds a new tabbed thumbnail to the taskbar.
+ /// </summary>
+ /// <param name="preview">Thumbnail preview for a specific window handle or control. The preview
+ /// object can be initialized with specific properties for the title, bitmap, and tooltip.</param>
+ /// <exception cref="System.ArgumentException">If the tabbed thumbnail has already been added</exception>
+ public void AddThumbnailPreview(TabbedThumbnail preview)
+ {
+ if (preview == null) { throw new ArgumentNullException("preview"); }
+
+ // UI Element has a windowHandle of zero.
+ if (preview.WindowHandle == IntPtr.Zero)
+ {
+ if (_tabbedThumbnailCacheWPF.ContainsKey(preview.WindowsControl))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerPreviewAdded, "preview");
+ }
+ _tabbedThumbnailCacheWPF.Add(preview.WindowsControl, preview);
+ }
+ else
+ {
+ // Regular control with a valid handle
+ if (_tabbedThumbnailCache.ContainsKey(preview.WindowHandle))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerPreviewAdded, "preview");
+ }
+ _tabbedThumbnailCache.Add(preview.WindowHandle, preview);
+ }
+
+ TaskbarWindowManager.AddTabbedThumbnail(preview);
+
+ preview.InvalidatePreview(); // Note: Why this here?
+ }
+
+ /// <summary>
+ /// Gets the TabbedThumbnail object associated with the given window handle
+ /// </summary>
+ /// <param name="windowHandle">Window handle for the control/window</param>
+ /// <returns>TabbedThumbnail associated with the given window handle</returns>
+ public TabbedThumbnail GetThumbnailPreview(IntPtr windowHandle)
+ {
+ if (windowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerInvalidHandle, "windowHandle");
+ }
+
+ TabbedThumbnail thumbnail;
+ return _tabbedThumbnailCache.TryGetValue(windowHandle, out thumbnail) ? thumbnail : null;
+ }
+
+ /// <summary>
+ /// Gets the TabbedThumbnail object associated with the given control
+ /// </summary>
+ /// <param name="control">Specific control for which the preview object is requested</param>
+ /// <returns>TabbedThumbnail associated with the given control</returns>
+ public TabbedThumbnail GetThumbnailPreview(Control control)
+ {
+ if (control == null)
+ {
+ throw new ArgumentNullException("control");
+ }
+
+ return GetThumbnailPreview(control.Handle);
+ }
+
+ /// <summary>
+ /// Gets the TabbedThumbnail object associated with the given WPF Window
+ /// </summary>
+ /// <param name="windowsControl">WPF Control (UIElement) for which the preview object is requested</param>
+ /// <returns>TabbedThumbnail associated with the given WPF Window</returns>
+ public TabbedThumbnail GetThumbnailPreview(UIElement windowsControl)
+ {
+ if (windowsControl == null)
+ {
+ throw new ArgumentNullException("windowsControl");
+ }
+
+ TabbedThumbnail thumbnail;
+ return _tabbedThumbnailCacheWPF.TryGetValue(windowsControl, out thumbnail) ? thumbnail : null;
+ }
+
+ /// <summary>
+ /// Remove the tabbed thumbnail from the taskbar.
+ /// </summary>
+ /// <param name="preview">TabbedThumbnail associated with the control/window that
+ /// is to be removed from the taskbar</param>
+ public void RemoveThumbnailPreview(TabbedThumbnail preview)
+ {
+ if (preview == null)
+ {
+ throw new ArgumentNullException("preview");
+ }
+
+ if (_tabbedThumbnailCache.ContainsKey(preview.WindowHandle))
+ {
+ RemoveThumbnailPreview(preview.WindowHandle);
+ }
+ else if (_tabbedThumbnailCacheWPF.ContainsKey(preview.WindowsControl))
+ {
+ RemoveThumbnailPreview(preview.WindowsControl);
+ }
+ }
+
+ /// <summary>
+ /// Remove the tabbed thumbnail from the taskbar.
+ /// </summary>
+ /// <param name="windowHandle">TabbedThumbnail associated with the window handle that
+ /// is to be removed from the taskbar</param>
+ public void RemoveThumbnailPreview(IntPtr windowHandle)
+ {
+ if (!_tabbedThumbnailCache.ContainsKey(windowHandle))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerControlNotAdded, "windowHandle");
+ }
+
+ TaskbarWindowManager.UnregisterTab(_tabbedThumbnailCache[windowHandle].TaskbarWindow);
+
+ _tabbedThumbnailCache.Remove(windowHandle);
+
+ TaskbarWindow taskbarWindow = TaskbarWindowManager.GetTaskbarWindow(windowHandle, TaskbarProxyWindowType.TabbedThumbnail);
+
+ if (taskbarWindow != null)
+ {
+ if (TaskbarWindowManager._taskbarWindowList.Contains(taskbarWindow))
+ TaskbarWindowManager._taskbarWindowList.Remove(taskbarWindow);
+ taskbarWindow.Dispose();
+ taskbarWindow = null;
+ }
+ }
+
+ /// <summary>
+ /// Remove the tabbed thumbnail from the taskbar.
+ /// </summary>
+ /// <param name="control">TabbedThumbnail associated with the control that
+ /// is to be removed from the taskbar</param>
+ public void RemoveThumbnailPreview(Control control)
+ {
+ if (control == null)
+ {
+ throw new ArgumentNullException("control");
+ }
+
+ IntPtr handle = control.Handle;
+
+ RemoveThumbnailPreview(handle);
+ }
+
+ /// <summary>
+ /// Remove the tabbed thumbnail from the taskbar.
+ /// </summary>
+ /// <param name="windowsControl">TabbedThumbnail associated with the WPF Control (UIElement) that
+ /// is to be removed from the taskbar</param>
+ public void RemoveThumbnailPreview(UIElement windowsControl)
+ {
+ if (windowsControl == null) { throw new ArgumentNullException("windowsControl"); }
+
+ if (!_tabbedThumbnailCacheWPF.ContainsKey(windowsControl))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerControlNotAdded, "windowsControl");
+ }
+
+ TaskbarWindowManager.UnregisterTab(_tabbedThumbnailCacheWPF[windowsControl].TaskbarWindow);
+
+ _tabbedThumbnailCacheWPF.Remove(windowsControl);
+
+ TaskbarWindow taskbarWindow = TaskbarWindowManager.GetTaskbarWindow(windowsControl, TaskbarProxyWindowType.TabbedThumbnail);
+
+ if (taskbarWindow != null)
+ {
+ if (TaskbarWindowManager._taskbarWindowList.Contains(taskbarWindow))
+ {
+ TaskbarWindowManager._taskbarWindowList.Remove(taskbarWindow);
+ }
+ taskbarWindow.Dispose();
+ taskbarWindow = null;
+ }
+ }
+
+ /// <summary>
+ /// Sets the given tabbed thumbnail preview object as being active on the taskbar tabbed thumbnails list.
+ /// Call this method to keep the application and the taskbar in sync as to which window/control
+ /// is currently active (or selected, in the case of tabbed application).
+ /// </summary>
+ /// <param name="preview">TabbedThumbnail for the specific control/indow that is currently active in the application</param>
+ /// <exception cref="System.ArgumentException">If the control/window is not yet added to the tabbed thumbnails list</exception>
+ public void SetActiveTab(TabbedThumbnail preview)
+ {
+ if (preview == null) { throw new ArgumentNullException("preview"); }
+
+ if (preview.WindowHandle != IntPtr.Zero)
+ {
+ if (!_tabbedThumbnailCache.ContainsKey(preview.WindowHandle))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerPreviewNotAdded, "preview");
+ }
+ TaskbarWindowManager.SetActiveTab(_tabbedThumbnailCache[preview.WindowHandle].TaskbarWindow);
+ }
+ else if (preview.WindowsControl != null)
+ {
+ if (!_tabbedThumbnailCacheWPF.ContainsKey(preview.WindowsControl))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerPreviewNotAdded, "preview");
+ }
+ TaskbarWindowManager.SetActiveTab(_tabbedThumbnailCacheWPF[preview.WindowsControl].TaskbarWindow);
+ }
+ }
+
+ /// <summary>
+ /// Sets the given window handle as being active on the taskbar tabbed thumbnails list.
+ /// Call this method to keep the application and the taskbar in sync as to which window/control
+ /// is currently active (or selected, in the case of tabbed application).
+ /// </summary>
+ /// <param name="windowHandle">Window handle for the control/window that is currently active in the application</param>
+ /// <exception cref="System.ArgumentException">If the control/window is not yet added to the tabbed thumbnails list</exception>
+ public void SetActiveTab(IntPtr windowHandle)
+ {
+ if (!_tabbedThumbnailCache.ContainsKey(windowHandle))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerPreviewNotAdded, "windowHandle");
+ }
+ TaskbarWindowManager.SetActiveTab(_tabbedThumbnailCache[windowHandle].TaskbarWindow);
+ }
+
+ /// <summary>
+ /// Sets the given Control/Form window as being active on the taskbar tabbed thumbnails list.
+ /// Call this method to keep the application and the taskbar in sync as to which window/control
+ /// is currently active (or selected, in the case of tabbed application).
+ /// </summary>
+ /// <param name="control">Control/Form that is currently active in the application</param>
+ /// <exception cref="System.ArgumentException">If the control/window is not yet added to the tabbed thumbnails list</exception>
+ public void SetActiveTab(Control control)
+ {
+ if (control == null)
+ {
+ throw new ArgumentNullException("control");
+ }
+ SetActiveTab(control.Handle);
+ }
+
+ /// <summary>
+ /// Sets the given WPF window as being active on the taskbar tabbed thumbnails list.
+ /// Call this method to keep the application and the taskbar in sync as to which window/control
+ /// is currently active (or selected, in the case of tabbed application).
+ /// </summary>
+ /// <param name="windowsControl">WPF control that is currently active in the application</param>
+ /// <exception cref="System.ArgumentException">If the control/window is not yet added to the tabbed thumbnails list</exception>
+ public void SetActiveTab(UIElement windowsControl)
+ {
+ if (windowsControl == null)
+ {
+ throw new ArgumentNullException("windowsControl");
+ }
+
+ if (!_tabbedThumbnailCacheWPF.ContainsKey(windowsControl))
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerPreviewNotAdded, "windowsControl");
+ }
+ TaskbarWindowManager.SetActiveTab(_tabbedThumbnailCacheWPF[windowsControl].TaskbarWindow);
+
+ }
+
+ /// <summary>
+ /// Determines whether the given preview has been added to the taskbar's tabbed thumbnail list.
+ /// </summary>
+ /// <param name="preview">The preview to locate on the taskbar's tabbed thumbnail list</param>
+ /// <returns>true if the tab is already added on the taskbar; otherwise, false.</returns>
+ public bool IsThumbnailPreviewAdded(TabbedThumbnail preview)
+ {
+ if (preview == null)
+ {
+ throw new ArgumentNullException("preview");
+ }
+
+ if (preview.WindowHandle != IntPtr.Zero && _tabbedThumbnailCache.ContainsKey(preview.WindowHandle))
+ {
+ return true;
+ }
+ else if (preview.WindowsControl != null && _tabbedThumbnailCacheWPF.ContainsKey(preview.WindowsControl))
+ {
+ return true;
+ }
+
+ return false;
+ }
+
+ /// <summary>
+ /// Determines whether the given window has been added to the taskbar's tabbed thumbnail list.
+ /// </summary>
+ /// <param name="windowHandle">The window to locate on the taskbar's tabbed thumbnail list</param>
+ /// <returns>true if the tab is already added on the taskbar; otherwise, false.</returns>
+ public bool IsThumbnailPreviewAdded(IntPtr windowHandle)
+ {
+ if (windowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerInvalidHandle, "windowHandle");
+ }
+
+ return _tabbedThumbnailCache.ContainsKey(windowHandle);
+ }
+
+ /// <summary>
+ /// Determines whether the given control has been added to the taskbar's tabbed thumbnail list.
+ /// </summary>
+ /// <param name="control">The preview to locate on the taskbar's tabbed thumbnail list</param>
+ /// <returns>true if the tab is already added on the taskbar; otherwise, false.</returns>
+ public bool IsThumbnailPreviewAdded(Control control)
+ {
+ if (control == null)
+ {
+ throw new ArgumentNullException("control");
+ }
+
+ return _tabbedThumbnailCache.ContainsKey(control.Handle);
+ }
+
+ /// <summary>
+ /// Determines whether the given control has been added to the taskbar's tabbed thumbnail list.
+ /// </summary>
+ /// <param name="control">The preview to locate on the taskbar's tabbed thumbnail list</param>
+ /// <returns>true if the tab is already added on the taskbar; otherwise, false.</returns>
+ public bool IsThumbnailPreviewAdded(UIElement control)
+ {
+ if (control == null)
+ {
+ throw new ArgumentNullException("control");
+ }
+
+ return _tabbedThumbnailCacheWPF.ContainsKey(control);
+ }
+
+ /// <summary>
+ /// Invalidates all the tabbed thumbnails. This will force the Desktop Window Manager
+ /// to not use the cached thumbnail or preview or aero peek and request a new one next time.
+ /// </summary>
+ /// <remarks>This method should not be called frequently.
+ /// Doing so can lead to poor performance as new bitmaps are created and retrieved.</remarks>
+ public void InvalidateThumbnails()
+ {
+ // Invalidate all the previews currently in our cache.
+ // This will ensure we get updated bitmaps next time
+
+ foreach (TabbedThumbnail thumbnail in _tabbedThumbnailCache.Values)
+ {
+ TaskbarWindowManager.InvalidatePreview(thumbnail.TaskbarWindow);
+ thumbnail.SetImage(IntPtr.Zero); // TODO: Investigate this, and why it needs to be called.
+ }
+
+ foreach (TabbedThumbnail thumbnail in _tabbedThumbnailCacheWPF.Values)
+ {
+ TaskbarWindowManager.InvalidatePreview(thumbnail.TaskbarWindow);
+ thumbnail.SetImage(IntPtr.Zero);
+ }
+ }
+
+ /// <summary>
+ /// Clear a clip that is already in place and return to the default display of the thumbnail.
+ /// </summary>
+ /// <param name="windowHandle">The handle to a window represented in the taskbar. This has to be a top-level window.</param>
+ public static void ClearThumbnailClip(IntPtr windowHandle)
+ {
+ TaskbarList.Instance.SetThumbnailClip(windowHandle, IntPtr.Zero);
+ }
+
+ /// <summary>
+ /// Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
+ /// </summary>
+ /// <param name="windowHandle">The handle to a window represented in the taskbar. This has to be a top-level window.</param>
+ /// <param name="clippingRectangle">Rectangle structure that specifies a selection within the window's client area,
+ /// relative to the upper-left corner of that client area.
+ /// <para>If this parameter is null, the clipping area will be cleared and the default display of the thumbnail will be used instead.</para></param>
+ public void SetThumbnailClip(IntPtr windowHandle, Rectangle? clippingRectangle)
+ {
+ if (clippingRectangle == null)
+ {
+ ClearThumbnailClip(windowHandle);
+ return;
+ }
+
+ NativeRect rect = new NativeRect();
+ rect.Left = clippingRectangle.Value.Left;
+ rect.Top = clippingRectangle.Value.Top;
+ rect.Right = clippingRectangle.Value.Right;
+ rect.Bottom = clippingRectangle.Value.Bottom;
+
+ IntPtr rectPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(rect));
+ try
+ {
+ Marshal.StructureToPtr(rect, rectPtr, true);
+ TaskbarList.Instance.SetThumbnailClip(windowHandle, rectPtr);
+ }
+ finally
+ {
+ Marshal.FreeCoTaskMem(rectPtr);
+ }
+ }
+
+ /// <summary>
+ /// Moves an existing thumbnail to a new position in the application's group.
+ /// </summary>
+ /// <param name="previewToChange">Preview for the window whose order is being changed.
+ /// This value is required, must already be added via AddThumbnailPreview method, and cannot be null.</param>
+ /// <param name="insertBeforePreview">The preview of the tab window whose thumbnail that previewToChange is inserted to the left of.
+ /// This preview must already be added via AddThumbnailPreview. If this value is null, the previewToChange tab is added to the end of the list.
+ /// </param>
+ public static void SetTabOrder(TabbedThumbnail previewToChange, TabbedThumbnail insertBeforePreview)
+ {
+ if (previewToChange == null)
+ {
+ throw new ArgumentNullException("previewToChange");
+ }
+
+ IntPtr handleToReorder = previewToChange.TaskbarWindow.WindowToTellTaskbarAbout;
+
+ if (insertBeforePreview == null)
+ {
+ TaskbarList.Instance.SetTabOrder(handleToReorder, IntPtr.Zero);
+ }
+ else
+ {
+ IntPtr handleBefore = insertBeforePreview.TaskbarWindow.WindowToTellTaskbarAbout;
+ TaskbarList.Instance.SetTabOrder(handleToReorder, handleBefore);
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailProxyWindow.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailProxyWindow.cs
new file mode 100644
index 0000000000..c71bebe881
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailProxyWindow.cs
@@ -0,0 +1,90 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Windows;
+using System.Windows.Forms;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ internal sealed class TabbedThumbnailProxyWindow : Form, IDisposable
+ {
+
+ internal TabbedThumbnailProxyWindow(TabbedThumbnail preview)
+ {
+ TabbedThumbnail = preview;
+ Size = new System.Drawing.Size(1, 1);
+
+ if (!string.IsNullOrEmpty(preview.Title))
+ {
+ Text = preview.Title;
+ }
+
+ if (preview.WindowsControl != null)
+ {
+ WindowsControl = preview.WindowsControl;
+ }
+ }
+
+ internal TabbedThumbnail TabbedThumbnail { get; private set; }
+
+ internal UIElement WindowsControl { get; private set; }
+
+ internal IntPtr WindowToTellTaskbarAbout { get { return this.Handle; } }
+
+ protected override void WndProc(ref Message m)
+ {
+ bool handled = false;
+
+ if (this.TabbedThumbnail != null)
+ {
+ handled = TaskbarWindowManager.DispatchMessage(ref m, this.TabbedThumbnail.TaskbarWindow);
+ }
+
+ // If it's a WM_Destroy message, then also forward it to the base class (our native window)
+ if ((m.Msg == (int)WindowMessage.Destroy) ||
+ (m.Msg == (int)WindowMessage.NCDestroy) ||
+ ((m.Msg == (int)WindowMessage.SystemCommand) && (((int)m.WParam) == TabbedThumbnailNativeMethods.ScClose)))
+ {
+ base.WndProc(ref m);
+ }
+ else if (!handled) { base.WndProc(ref m); }
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~TabbedThumbnailProxyWindow()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ void IDisposable.Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ // Dispose managed resources
+ if (TabbedThumbnail != null) { TabbedThumbnail.Dispose(); }
+
+ TabbedThumbnail = null;
+
+ WindowsControl = null;
+ }
+
+ base.Dispose(disposing);
+ }
+
+ #endregion
+ }
+} \ No newline at end of file
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailScreenCapture.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailScreenCapture.cs
new file mode 100644
index 0000000000..041437e308
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TabbedThumbnailScreenCapture.cs
@@ -0,0 +1,181 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Drawing;
+using System.IO;
+using System.Windows;
+using System.Windows.Interop;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using Microsoft.WindowsAPICodePack.Shell;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Helper class to capture a control or window as System.Drawing.Bitmap
+ /// </summary>
+ public static class TabbedThumbnailScreenCapture
+ {
+ /// <summary>
+ /// Captures a screenshot of the specified window at the specified
+ /// bitmap size. <para/>NOTE: This method will not accurately capture controls
+ /// that are hidden or obstructed (partially or completely) by another control (e.g. hidden tabs,
+ /// or MDI child windows that are obstructed by other child windows/forms).
+ /// </summary>
+ /// <param name="windowHandle">The window handle.</param>
+ /// <param name="bitmapSize">The requested bitmap size.</param>
+ /// <returns>A screen capture of the window.</returns>
+ public static Bitmap GrabWindowBitmap(IntPtr windowHandle, System.Drawing.Size bitmapSize)
+ {
+ if (bitmapSize.Height <= 0 || bitmapSize.Width <= 0) { return null; }
+
+ IntPtr windowDC = IntPtr.Zero;
+
+ try
+ {
+ windowDC = TabbedThumbnailNativeMethods.GetWindowDC(windowHandle);
+
+ System.Drawing.Size realWindowSize;
+ TabbedThumbnailNativeMethods.GetClientSize(windowHandle, out realWindowSize);
+
+ if (realWindowSize == System.Drawing.Size.Empty)
+ {
+ realWindowSize = new System.Drawing.Size(200, 200);
+ }
+
+ System.Drawing.Size size = (bitmapSize == System.Drawing.Size.Empty) ?
+ realWindowSize : bitmapSize;
+
+ Bitmap targetBitmap = null;
+ try
+ {
+
+
+ targetBitmap = new Bitmap(size.Width, size.Height);
+
+ using (Graphics targetGr = Graphics.FromImage(targetBitmap))
+ {
+ IntPtr targetDC = targetGr.GetHdc();
+ uint operation = 0x00CC0020 /*SRCCOPY*/;
+
+ System.Drawing.Size ncArea = WindowUtilities.GetNonClientArea(windowHandle);
+
+ bool success = TabbedThumbnailNativeMethods.StretchBlt(
+ targetDC, 0, 0, targetBitmap.Width, targetBitmap.Height,
+ windowDC, ncArea.Width, ncArea.Height, realWindowSize.Width,
+ realWindowSize.Height, operation);
+
+ targetGr.ReleaseHdc(targetDC);
+
+ if (!success) { return null; }
+
+ return targetBitmap;
+ }
+ }
+ catch
+ {
+ if (targetBitmap != null) { targetBitmap.Dispose(); }
+ throw;
+ }
+ }
+ finally
+ {
+ if (windowDC != IntPtr.Zero)
+ {
+ TabbedThumbnailNativeMethods.ReleaseDC(windowHandle, windowDC);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Grabs a snapshot of a WPF UIElement and returns the image as Bitmap.
+ /// </summary>
+ /// <param name="element">Represents the element to take the snapshot from.</param>
+ /// <param name="dpiX">Represents the X DPI value used to capture this snapshot.</param>
+ /// <param name="dpiY">Represents the Y DPI value used to capture this snapshot.</param>
+ /// <param name="width">The requested bitmap width.</param>
+ /// <param name="height">The requested bitmap height.</param>
+ /// <returns>Returns the bitmap (PNG format).</returns>
+ public static Bitmap GrabWindowBitmap(UIElement element, int dpiX, int dpiY, int width, int height)
+ {
+ // Special case for HwndHost controls
+ HwndHost host = element as HwndHost;
+ if (host != null)
+ {
+ IntPtr handle = host.Handle;
+ return GrabWindowBitmap(handle, new System.Drawing.Size(width, height));
+ }
+
+ Rect bounds = VisualTreeHelper.GetDescendantBounds(element);
+
+ // create the renderer.
+ if (bounds.Height == 0 || bounds.Width == 0)
+ {
+ return null; // 0 sized element. Probably hidden
+ }
+
+ RenderTargetBitmap rendertarget = new RenderTargetBitmap((int)(bounds.Width * dpiX / 96.0),
+ (int)(bounds.Height * dpiY / 96.0), dpiX, dpiY, PixelFormats.Default);
+
+ DrawingVisual dv = new DrawingVisual();
+ using (DrawingContext ctx = dv.RenderOpen())
+ {
+ VisualBrush vb = new VisualBrush(element);
+ ctx.DrawRectangle(vb, null, new Rect(new System.Windows.Point(), bounds.Size));
+ }
+
+ rendertarget.Render(dv);
+
+ BitmapEncoder bmpe = new PngBitmapEncoder();
+ bmpe.Frames.Add(BitmapFrame.Create(rendertarget));
+
+ Bitmap bmp;
+ // Create a MemoryStream with the image.
+ using (MemoryStream fl = new MemoryStream())
+ {
+ bmpe.Save(fl);
+ fl.Position = 0;
+ bmp = new Bitmap(fl);
+ }
+
+ return (Bitmap)bmp.GetThumbnailImage(width, height, null, IntPtr.Zero);
+ }
+
+ /// <summary>
+ /// Resizes the given bitmap while maintaining the aspect ratio.
+ /// </summary>
+ /// <param name="originalHBitmap">Original/source bitmap</param>
+ /// <param name="newWidth">Maximum width for the new image</param>
+ /// <param name="maxHeight">Maximum height for the new image</param>
+ /// <param name="resizeIfWider">If true and requested image is wider than the source, the new image is resized accordingly.</param>
+ /// <returns></returns>
+ internal static Bitmap ResizeImageWithAspect(IntPtr originalHBitmap, int newWidth, int maxHeight, bool resizeIfWider)
+ {
+ Bitmap originalBitmap = Bitmap.FromHbitmap(originalHBitmap);
+
+ try
+ {
+ if (resizeIfWider && originalBitmap.Width <= newWidth)
+ {
+ newWidth = originalBitmap.Width;
+ }
+
+ int newHeight = originalBitmap.Height * newWidth / originalBitmap.Width;
+
+ if (newHeight > maxHeight) // Height resize if necessary
+ {
+ newWidth = originalBitmap.Width * maxHeight / originalBitmap.Height;
+ newHeight = maxHeight;
+ }
+
+ // Create the new image with the sizes we've calculated
+ return (Bitmap)originalBitmap.GetThumbnailImage(newWidth, newHeight, null, IntPtr.Zero);
+ }
+ finally
+ {
+ originalBitmap.Dispose();
+ originalBitmap = null;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarEnums.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarEnums.cs
new file mode 100644
index 0000000000..5fafb2f4ca
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarEnums.cs
@@ -0,0 +1,65 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+
+ internal enum TaskbarProxyWindowType
+ {
+ TabbedThumbnail,
+ ThumbnailToolbar,
+ }
+
+ /// <summary>
+ /// Known category to display
+ /// </summary>
+ public enum JumpListKnownCategoryType
+ {
+ /// <summary>
+ /// Don't display either known category. You must have at least one
+ /// user task or custom category link in order to not see the
+ /// default 'Recent' known category
+ /// </summary>
+ Neither = 0,
+
+ /// <summary>
+ /// Display the 'Recent' known category
+ /// </summary>
+ Recent,
+
+ /// <summary>
+ /// Display the 'Frequent' known category
+ /// </summary>
+ Frequent,
+ }
+
+ /// <summary>
+ /// Represents the thumbnail progress bar state.
+ /// </summary>
+ public enum TaskbarProgressBarState
+ {
+ /// <summary>
+ /// No progress is displayed.
+ /// </summary>
+ NoProgress = 0,
+
+ /// <summary>
+ /// The progress is indeterminate (marquee).
+ /// </summary>
+ Indeterminate = 0x1,
+
+ /// <summary>
+ /// Normal progress is displayed.
+ /// </summary>
+ Normal = 0x2,
+
+ /// <summary>
+ /// An error occurred (red).
+ /// </summary>
+ Error = 0x4,
+
+ /// <summary>
+ /// The operation is paused (yellow).
+ /// </summary>
+ Paused = 0x8
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarInterfaces.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarInterfaces.cs
new file mode 100644
index 0000000000..efa1d64a63
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarInterfaces.cs
@@ -0,0 +1,25 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Interface for jump list items
+ /// </summary>
+ public interface IJumpListItem
+ {
+ /// <summary>
+ /// Gets or sets this item's path
+ /// </summary>
+ string Path { get; set; }
+ }
+
+ /// <summary>
+ /// Interface for jump list tasks
+ /// </summary>
+ public abstract class JumpListTask
+ {
+ internal abstract IShellLinkW NativeShellLink { get; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarList.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarList.cs
new file mode 100644
index 0000000000..a6ee9f4617
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarList.cs
@@ -0,0 +1,33 @@
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Provides internal access to the functions provided by the ITaskbarList4 interface,
+ /// without being forced to refer to it through another singleton.
+ /// </summary>
+ internal static class TaskbarList
+ {
+ private static object _syncLock = new object();
+
+ private static ITaskbarList4 _taskbarList;
+ internal static ITaskbarList4 Instance
+ {
+ get
+ {
+ if (_taskbarList == null)
+ {
+ lock (_syncLock)
+ {
+ if (_taskbarList == null)
+ {
+ _taskbarList = (ITaskbarList4)new CTaskbarList();
+ _taskbarList.HrInit();
+ }
+ }
+ }
+
+ return _taskbarList;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarManager.cs
new file mode 100644
index 0000000000..80f1677eb0
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarManager.cs
@@ -0,0 +1,317 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Diagnostics;
+using System.Windows.Interop;
+using MS.WindowsAPICodePack.Internal;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents an instance of the Windows taskbar
+ /// </summary>
+ public class TaskbarManager
+ {
+ // Hide the default constructor
+ private TaskbarManager()
+ {
+ CoreHelpers.ThrowIfNotWin7();
+ }
+
+ // Best practice recommends defining a private object to lock on
+ private static object _syncLock = new object();
+
+ private static TaskbarManager _instance;
+ /// <summary>
+ /// Represents an instance of the Windows Taskbar
+ /// </summary>
+ public static TaskbarManager Instance
+ {
+ get
+ {
+ if (_instance == null)
+ {
+ lock (_syncLock)
+ {
+ if (_instance == null)
+ {
+ _instance = new TaskbarManager();
+ }
+ }
+ }
+
+ return _instance;
+ }
+ }
+
+ /// <summary>
+ /// Applies an overlay to a taskbar button of the main application window to indicate application status or a notification to the user.
+ /// </summary>
+ /// <param name="icon">The overlay icon</param>
+ /// <param name="accessibilityText">String that provides an alt text version of the information conveyed by the overlay, for accessibility purposes</param>
+ public void SetOverlayIcon(System.Drawing.Icon icon, string accessibilityText)
+ {
+ TaskbarList.Instance.SetOverlayIcon(
+ OwnerHandle,
+ icon != null ? icon.Handle : IntPtr.Zero,
+ accessibilityText);
+ }
+
+ /// <summary>
+ /// Applies an overlay to a taskbar button of the given window handle to indicate application status or a notification to the user.
+ /// </summary>
+ /// <param name="windowHandle">The handle of the window whose associated taskbar button receives the overlay. This handle must belong to a calling process associated with the button's application and must be a valid HWND or the call is ignored.</param>
+ /// <param name="icon">The overlay icon</param>
+ /// <param name="accessibilityText">String that provides an alt text version of the information conveyed by the overlay, for accessibility purposes</param>
+ public void SetOverlayIcon(IntPtr windowHandle, System.Drawing.Icon icon, string accessibilityText)
+ {
+ TaskbarList.Instance.SetOverlayIcon(
+ windowHandle,
+ icon != null ? icon.Handle : IntPtr.Zero,
+ accessibilityText);
+ }
+
+ /// <summary>
+ /// Applies an overlay to a taskbar button of the given WPF window to indicate application status or a notification to the user.
+ /// </summary>
+ /// <param name="window">The window whose associated taskbar button receives the overlay. This window belong to a calling process associated with the button's application and must be already loaded.</param>
+ /// <param name="icon">The overlay icon</param>
+ /// <param name="accessibilityText">String that provides an alt text version of the information conveyed by the overlay, for accessibility purposes</param>
+ public void SetOverlayIcon(System.Windows.Window window, System.Drawing.Icon icon, string accessibilityText)
+ {
+ TaskbarList.Instance.SetOverlayIcon(
+ (new WindowInteropHelper(window)).Handle,
+ icon != null ? icon.Handle : IntPtr.Zero,
+ accessibilityText);
+ }
+
+ /// <summary>
+ /// Displays or updates a progress bar hosted in a taskbar button of the main application window
+ /// to show the specific percentage completed of the full operation.
+ /// </summary>
+ /// <param name="currentValue">An application-defined value that indicates the proportion of the operation that has been completed at the time the method is called.</param>
+ /// <param name="maximumValue">An application-defined value that specifies the value currentValue will have when the operation is complete.</param>
+ public void SetProgressValue(int currentValue, int maximumValue)
+ {
+ TaskbarList.Instance.SetProgressValue(
+ OwnerHandle,
+ Convert.ToUInt32(currentValue),
+ Convert.ToUInt32(maximumValue));
+ }
+
+ /// <summary>
+ /// Displays or updates a progress bar hosted in a taskbar button of the given window handle
+ /// to show the specific percentage completed of the full operation.
+ /// </summary>
+ /// <param name="windowHandle">The handle of the window whose associated taskbar button is being used as a progress indicator.
+ /// This window belong to a calling process associated with the button's application and must be already loaded.</param>
+ /// <param name="currentValue">An application-defined value that indicates the proportion of the operation that has been completed at the time the method is called.</param>
+ /// <param name="maximumValue">An application-defined value that specifies the value currentValue will have when the operation is complete.</param>
+ public void SetProgressValue(int currentValue, int maximumValue, IntPtr windowHandle)
+ {
+ TaskbarList.Instance.SetProgressValue(
+ windowHandle,
+ Convert.ToUInt32(currentValue),
+ Convert.ToUInt32(maximumValue));
+ }
+
+ /// <summary>
+ /// Displays or updates a progress bar hosted in a taskbar button of the given WPF window
+ /// to show the specific percentage completed of the full operation.
+ /// </summary>
+ /// <param name="window">The window whose associated taskbar button is being used as a progress indicator.
+ /// This window belong to a calling process associated with the button's application and must be already loaded.</param>
+ /// <param name="currentValue">An application-defined value that indicates the proportion of the operation that has been completed at the time the method is called.</param>
+ /// <param name="maximumValue">An application-defined value that specifies the value currentValue will have when the operation is complete.</param>
+ public void SetProgressValue(int currentValue, int maximumValue, System.Windows.Window window)
+ {
+ TaskbarList.Instance.SetProgressValue(
+ (new WindowInteropHelper(window)).Handle,
+ Convert.ToUInt32(currentValue),
+ Convert.ToUInt32(maximumValue));
+ }
+
+ /// <summary>
+ /// Sets the type and state of the progress indicator displayed on a taskbar button of the main application window.
+ /// </summary>
+ /// <param name="state">Progress state of the progress button</param>
+ public void SetProgressState(TaskbarProgressBarState state)
+ {
+ TaskbarList.Instance.SetProgressState(OwnerHandle, (TaskbarProgressBarStatus)state);
+ }
+
+ /// <summary>
+ /// Sets the type and state of the progress indicator displayed on a taskbar button
+ /// of the given window handle
+ /// </summary>
+ /// <param name="windowHandle">The handle of the window whose associated taskbar button is being used as a progress indicator.
+ /// This window belong to a calling process associated with the button's application and must be already loaded.</param>
+ /// <param name="state">Progress state of the progress button</param>
+ public void SetProgressState(TaskbarProgressBarState state, IntPtr windowHandle)
+ {
+ TaskbarList.Instance.SetProgressState(windowHandle, (TaskbarProgressBarStatus)state);
+ }
+
+ /// <summary>
+ /// Sets the type and state of the progress indicator displayed on a taskbar button
+ /// of the given WPF window
+ /// </summary>
+ /// <param name="window">The window whose associated taskbar button is being used as a progress indicator.
+ /// This window belong to a calling process associated with the button's application and must be already loaded.</param>
+ /// <param name="state">Progress state of the progress button</param>
+ public void SetProgressState(TaskbarProgressBarState state, System.Windows.Window window)
+ {
+ TaskbarList.Instance.SetProgressState(
+ (new WindowInteropHelper(window)).Handle,
+ (TaskbarProgressBarStatus)state);
+ }
+
+ private TabbedThumbnailManager _tabbedThumbnail;
+ /// <summary>
+ /// Gets the Tabbed Thumbnail manager class for adding/updating
+ /// tabbed thumbnail previews.
+ /// </summary>
+ public TabbedThumbnailManager TabbedThumbnail
+ {
+ get
+ {
+ if (_tabbedThumbnail == null)
+ {
+ _tabbedThumbnail = new TabbedThumbnailManager();
+ }
+ return _tabbedThumbnail;
+ }
+ }
+
+ private ThumbnailToolBarManager _thumbnailToolBarManager;
+ /// <summary>
+ /// Gets the Thumbnail toolbar manager class for adding/updating
+ /// toolbar buttons.
+ /// </summary>
+ public ThumbnailToolBarManager ThumbnailToolBars
+ {
+ get
+ {
+ if (_thumbnailToolBarManager == null)
+ {
+ _thumbnailToolBarManager = new ThumbnailToolBarManager();
+ }
+
+ return _thumbnailToolBarManager;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the application user model id. Use this to explicitly
+ /// set the application id when generating custom jump lists
+ /// </summary>
+ public string ApplicationId
+ {
+ get
+ {
+ return GetCurrentProcessAppId();
+ }
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ throw new ArgumentNullException("value");
+ }
+
+ SetCurrentProcessAppId(value);
+ ApplicationIdSetProcessWide = true;
+ }
+ }
+
+ private IntPtr _ownerHandle;
+ /// <summary>
+ /// Sets the handle of the window whose taskbar button will be used
+ /// to display progress.
+ /// </summary>
+ internal IntPtr OwnerHandle
+ {
+ get
+ {
+ if (_ownerHandle == IntPtr.Zero)
+ {
+ Process currentProcess = Process.GetCurrentProcess();
+
+ if (currentProcess == null || currentProcess.MainWindowHandle == IntPtr.Zero)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskbarManagerValidWindowRequired);
+ }
+
+ _ownerHandle = currentProcess.MainWindowHandle;
+ }
+
+ return _ownerHandle;
+ }
+ }
+
+ /// <summary>
+ /// Sets the application user model id for an individual window
+ /// </summary>
+ /// <param name="appId">The app id to set</param>
+ /// <param name="windowHandle">Window handle for the window that needs a specific application id</param>
+ /// <remarks>AppId specifies a unique Application User Model ID (AppID) for the application or individual
+ /// top-level window whose taskbar button will hold the custom JumpList built through the methods <see cref="Microsoft.WindowsAPICodePack.Taskbar.JumpList"/> class.
+ /// By setting an appId for a specific window, the window will not be grouped with it's parent window/application. Instead it will have it's own taskbar button.</remarks>
+ public void SetApplicationIdForSpecificWindow(IntPtr windowHandle, string appId)
+ {
+ // Left as instance method, to follow singleton pattern.
+ TaskbarNativeMethods.SetWindowAppId(windowHandle, appId);
+ }
+
+ /// <summary>
+ /// Sets the application user model id for a given window
+ /// </summary>
+ /// <param name="appId">The app id to set</param>
+ /// <param name="window">Window that needs a specific application id</param>
+ /// <remarks>AppId specifies a unique Application User Model ID (AppID) for the application or individual
+ /// top-level window whose taskbar button will hold the custom JumpList built through the methods <see cref="Microsoft.WindowsAPICodePack.Taskbar.JumpList"/> class.
+ /// By setting an appId for a specific window, the window will not be grouped with it's parent window/application. Instead it will have it's own taskbar button.</remarks>
+ public void SetApplicationIdForSpecificWindow(System.Windows.Window window, string appId)
+ {
+ // Left as instance method, to follow singleton pattern.
+ TaskbarNativeMethods.SetWindowAppId((new WindowInteropHelper(window)).Handle, appId);
+ }
+
+ /// <summary>
+ /// Sets the current process' explicit application user model id.
+ /// </summary>
+ /// <param name="appId">The application id.</param>
+ private void SetCurrentProcessAppId(string appId)
+ {
+ TaskbarNativeMethods.SetCurrentProcessExplicitAppUserModelID(appId);
+ }
+
+ /// <summary>
+ /// Gets the current process' explicit application user model id.
+ /// </summary>
+ /// <returns>The app id or null if no app id has been defined.</returns>
+ private string GetCurrentProcessAppId()
+ {
+ string appId = string.Empty;
+ TaskbarNativeMethods.GetCurrentProcessExplicitAppUserModelID(out appId);
+ return appId;
+ }
+
+ /// <summary>
+ /// Indicates if the user has set the application id for the whole process (all windows)
+ /// </summary>
+ internal bool ApplicationIdSetProcessWide { get; private set; }
+
+ /// <summary>
+ /// Indicates whether this feature is supported on the current platform.
+ /// </summary>
+ public static bool IsPlatformSupported
+ {
+ get
+ {
+ // We need Windows 7 onwards ...
+ return CoreHelpers.RunningOnWin7;
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindow.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindow.cs
new file mode 100644
index 0000000000..c14166267d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindow.cs
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Windows;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ internal class TaskbarWindow : IDisposable
+ {
+ internal TabbedThumbnailProxyWindow TabbedThumbnailProxyWindow { get; set; }
+
+ internal ThumbnailToolbarProxyWindow ThumbnailToolbarProxyWindow { get; set; }
+
+ internal bool EnableTabbedThumbnails { get; set; }
+
+ internal bool EnableThumbnailToolbars { get; set; }
+
+ internal IntPtr UserWindowHandle { get; set; }
+
+ internal UIElement WindowsControl { get; set; }
+
+ private TabbedThumbnail _tabbedThumbnailPreview;
+ internal TabbedThumbnail TabbedThumbnail
+ {
+ get { return _tabbedThumbnailPreview; }
+ set
+ {
+ if (_tabbedThumbnailPreview != null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TaskbarWindowValueSet);
+ }
+
+ TabbedThumbnailProxyWindow = new TabbedThumbnailProxyWindow(value);
+ _tabbedThumbnailPreview = value;
+ _tabbedThumbnailPreview.TaskbarWindow = this;
+ }
+ }
+
+ private ThumbnailToolBarButton[] _thumbnailButtons;
+ internal ThumbnailToolBarButton[] ThumbnailButtons
+ {
+ get { return _thumbnailButtons; }
+ set
+ {
+ _thumbnailButtons = value;
+ UpdateHandles();
+ }
+ }
+
+ private void UpdateHandles()
+ {
+ foreach (ThumbnailToolBarButton button in _thumbnailButtons)
+ {
+ button.WindowHandle = WindowToTellTaskbarAbout;
+ button.AddedToTaskbar = false;
+ }
+ }
+
+
+ // TODO: Verify the logic of this property. There are situations where this will throw InvalidOperationException when it shouldn't.
+ internal IntPtr WindowToTellTaskbarAbout
+ {
+ get
+ {
+ if (EnableThumbnailToolbars && !EnableTabbedThumbnails && ThumbnailToolbarProxyWindow != null)
+ {
+ return ThumbnailToolbarProxyWindow.WindowToTellTaskbarAbout;
+ }
+ else if (!EnableThumbnailToolbars && EnableTabbedThumbnails && TabbedThumbnailProxyWindow != null)
+ {
+ return TabbedThumbnailProxyWindow.WindowToTellTaskbarAbout;
+ }
+ // Bug: What should happen when TabedThumbnailProxyWindow IS null, but it is enabled?
+ // This occurs during the TabbedThumbnailProxyWindow constructor at line 31.
+ else if (EnableTabbedThumbnails && EnableThumbnailToolbars && TabbedThumbnailProxyWindow != null)
+ {
+ return TabbedThumbnailProxyWindow.WindowToTellTaskbarAbout;
+ }
+
+ throw new InvalidOperationException();
+ }
+ }
+
+ internal void SetTitle(string title)
+ {
+ if (TabbedThumbnailProxyWindow == null)
+ {
+ throw new InvalidOperationException(LocalizedMessages.TasbarWindowProxyWindowSet);
+ }
+ TabbedThumbnailProxyWindow.Text = title;
+ }
+
+ internal TaskbarWindow(IntPtr userWindowHandle, params ThumbnailToolBarButton[] buttons)
+ {
+ if (userWindowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.CommonFileDialogInvalidHandle, "userWindowHandle");
+ }
+
+ if (buttons == null || buttons.Length == 0)
+ {
+ throw new ArgumentException(LocalizedMessages.TaskbarWindowEmptyButtonArray, "buttons");
+ }
+
+ // Create our proxy window
+ ThumbnailToolbarProxyWindow = new ThumbnailToolbarProxyWindow(userWindowHandle, buttons);
+ ThumbnailToolbarProxyWindow.TaskbarWindow = this;
+
+ // Set our current state
+ EnableThumbnailToolbars = true;
+ EnableTabbedThumbnails = false;
+
+ //
+ this.ThumbnailButtons = buttons;
+ UserWindowHandle = userWindowHandle;
+ WindowsControl = null;
+ }
+
+ internal TaskbarWindow(System.Windows.UIElement windowsControl, params ThumbnailToolBarButton[] buttons)
+ {
+ if (windowsControl == null)
+ {
+ throw new ArgumentNullException("windowsControl");
+ }
+
+ if (buttons == null || buttons.Length == 0)
+ {
+ throw new ArgumentException(LocalizedMessages.TaskbarWindowEmptyButtonArray, "buttons");
+ }
+
+ // Create our proxy window
+ ThumbnailToolbarProxyWindow = new ThumbnailToolbarProxyWindow(windowsControl, buttons);
+ ThumbnailToolbarProxyWindow.TaskbarWindow = this;
+
+ // Set our current state
+ EnableThumbnailToolbars = true;
+ EnableTabbedThumbnails = false;
+
+ this.ThumbnailButtons = buttons;
+ UserWindowHandle = IntPtr.Zero;
+ WindowsControl = windowsControl;
+ }
+
+ internal TaskbarWindow(TabbedThumbnail preview)
+ {
+ if (preview == null) { throw new ArgumentNullException("preview"); }
+
+ // Create our proxy window
+ // Bug: This is only called in this constructor. Which will cause the property
+ // to fail if TaskbarWindow is initialized from a different constructor.
+ TabbedThumbnailProxyWindow = new TabbedThumbnailProxyWindow(preview);
+
+ // set our current state
+ EnableThumbnailToolbars = false;
+ EnableTabbedThumbnails = true;
+
+ // copy values
+ UserWindowHandle = preview.WindowHandle;
+ WindowsControl = preview.WindowsControl;
+ TabbedThumbnail = preview;
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~TaskbarWindow()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ public void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ // Dispose managed resources
+ if (_tabbedThumbnailPreview != null)
+ {
+ _tabbedThumbnailPreview.Dispose();
+ }
+ _tabbedThumbnailPreview = null;
+
+ if (ThumbnailToolbarProxyWindow != null)
+ {
+ ThumbnailToolbarProxyWindow.Dispose();
+ }
+ ThumbnailToolbarProxyWindow = null;
+
+ if (TabbedThumbnailProxyWindow != null)
+ {
+ TabbedThumbnailProxyWindow.Dispose();
+ }
+ TabbedThumbnailProxyWindow = null;
+
+ // Don't dispose the thumbnail buttons as they might be used in another window.
+ // Setting them to null will indicate we don't need use anymore.
+ _thumbnailButtons = null;
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindowManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindowManager.cs
new file mode 100644
index 0000000000..e750b1be7d
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/TaskbarWindowManager.cs
@@ -0,0 +1,794 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Windows.Forms;
+using System.Windows.Media;
+using Microsoft.WindowsAPICodePack.Shell;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ internal static class TaskbarWindowManager
+ {
+ internal static List<TaskbarWindow> _taskbarWindowList = new List<TaskbarWindow>();
+
+ private static bool _buttonsAdded;
+
+ internal static void AddThumbnailButtons(IntPtr userWindowHandle, params ThumbnailToolBarButton[] buttons)
+ {
+ // Try to get an existing taskbar window for this user windowhandle
+ TaskbarWindow taskbarWindow = GetTaskbarWindow(userWindowHandle, TaskbarProxyWindowType.ThumbnailToolbar);
+ TaskbarWindow temp = null;
+ try
+ {
+ AddThumbnailButtons(
+ taskbarWindow ?? (temp = new TaskbarWindow(userWindowHandle, buttons)),
+ taskbarWindow == null,
+ buttons);
+ }
+ catch
+ {
+ if (temp != null) { temp.Dispose(); }
+ throw;
+ }
+ }
+
+ internal static void AddThumbnailButtons(System.Windows.UIElement control, params ThumbnailToolBarButton[] buttons)
+ {
+ // Try to get an existing taskbar window for this user uielement
+ TaskbarWindow taskbarWindow = GetTaskbarWindow(control, TaskbarProxyWindowType.ThumbnailToolbar);
+ TaskbarWindow temp = null;
+ try
+ {
+ AddThumbnailButtons(
+ taskbarWindow ?? (temp = new TaskbarWindow(control, buttons)),
+ taskbarWindow == null,
+ buttons);
+ }
+ catch
+ {
+ if (temp != null) { temp.Dispose(); }
+ throw;
+ }
+ }
+
+ private static void AddThumbnailButtons(TaskbarWindow taskbarWindow, bool add, params ThumbnailToolBarButton[] buttons)
+ {
+ if (add)
+ {
+ _taskbarWindowList.Add(taskbarWindow);
+ }
+ else if (taskbarWindow.ThumbnailButtons == null)
+ {
+ taskbarWindow.ThumbnailButtons = buttons;
+ }
+ else
+ {
+ // We already have buttons assigned
+ throw new InvalidOperationException(LocalizedMessages.TaskbarWindowManagerButtonsAlreadyAdded);
+ }
+ }
+
+ internal static void AddTabbedThumbnail(TabbedThumbnail preview)
+ {
+ // Create a TOP-LEVEL proxy window for the user's source window/control
+ TaskbarWindow taskbarWindow = null;
+
+ // get the TaskbarWindow for UIElement/WindowHandle respectfully.
+ if (preview.WindowHandle == IntPtr.Zero)
+ {
+ taskbarWindow = GetTaskbarWindow(preview.WindowsControl, TaskbarProxyWindowType.TabbedThumbnail);
+ }
+ else
+ {
+ taskbarWindow = GetTaskbarWindow(preview.WindowHandle, TaskbarProxyWindowType.TabbedThumbnail);
+ }
+
+ //create taskbar, or set its TabbedThumbnail
+ if (taskbarWindow == null)
+ {
+ taskbarWindow = new TaskbarWindow(preview);
+ _taskbarWindowList.Add(taskbarWindow);
+ }
+ else if (taskbarWindow.TabbedThumbnail == null)
+ {
+ taskbarWindow.TabbedThumbnail = preview;
+ }
+
+ // Listen for Title changes
+ preview.TitleChanged += new EventHandler(thumbnailPreview_TitleChanged);
+ preview.TooltipChanged += new EventHandler(thumbnailPreview_TooltipChanged);
+
+ // Get/Set properties for proxy window
+ IntPtr windowHandle = taskbarWindow.WindowToTellTaskbarAbout;
+
+ // Register this new tab and set it as being active.
+ TaskbarList.Instance.RegisterTab(windowHandle, preview.ParentWindowHandle);
+ TaskbarList.Instance.SetTabOrder(windowHandle, IntPtr.Zero);
+ TaskbarList.Instance.SetTabActive(windowHandle, preview.ParentWindowHandle, 0);
+
+ // We need to make sure we can set these properties even when running with admin
+ TabbedThumbnailNativeMethods.ChangeWindowMessageFilter(
+ TabbedThumbnailNativeMethods.WmDwmSendIconicThumbnail,
+ TabbedThumbnailNativeMethods.MsgfltAdd);
+
+ TabbedThumbnailNativeMethods.ChangeWindowMessageFilter(
+ TabbedThumbnailNativeMethods.WmDwmSendIconicLivePreviewBitmap,
+ TabbedThumbnailNativeMethods.MsgfltAdd);
+
+ // BUG: There should be somewhere to disable CustomWindowPreview. I didn't find it.
+ TabbedThumbnailNativeMethods.EnableCustomWindowPreview(windowHandle, true);
+
+ // Make sure we use the initial title set by the user
+ // Trigger a "fake" title changed event, so the title is set on the taskbar thumbnail.
+ // Empty/null title will be ignored.
+ thumbnailPreview_TitleChanged(preview, EventArgs.Empty);
+ thumbnailPreview_TooltipChanged(preview, EventArgs.Empty);
+
+ // Indicate to the preview that we've added it on the taskbar
+ preview.AddedToTaskbar = true;
+ }
+
+ internal static TaskbarWindow GetTaskbarWindow(System.Windows.UIElement windowsControl, TaskbarProxyWindowType taskbarProxyWindowType)
+ {
+ if (windowsControl == null) { throw new ArgumentNullException("windowsControl"); }
+
+ TaskbarWindow toReturn = _taskbarWindowList.FirstOrDefault(window =>
+ {
+ return (window.TabbedThumbnail != null && window.TabbedThumbnail.WindowsControl == windowsControl) ||
+ (window.ThumbnailToolbarProxyWindow != null &&
+ window.ThumbnailToolbarProxyWindow.WindowsControl == windowsControl);
+ });
+
+ if (toReturn != null)
+ {
+ if (taskbarProxyWindowType == TaskbarProxyWindowType.ThumbnailToolbar)
+ {
+ toReturn.EnableThumbnailToolbars = true;
+ }
+ else if (taskbarProxyWindowType == TaskbarProxyWindowType.TabbedThumbnail)
+ {
+ toReturn.EnableTabbedThumbnails = true;
+ }
+ }
+
+ return toReturn;
+ }
+
+ internal static TaskbarWindow GetTaskbarWindow(IntPtr userWindowHandle, TaskbarProxyWindowType taskbarProxyWindowType)
+ {
+ if (userWindowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.CommonFileDialogInvalidHandle, "userWindowHandle");
+ }
+
+ TaskbarWindow toReturn = _taskbarWindowList.FirstOrDefault(window => window.UserWindowHandle == userWindowHandle);
+
+ // If its not in the list, return null so it can be added.
+ if (toReturn != null)
+ {
+ if (taskbarProxyWindowType == TaskbarProxyWindowType.ThumbnailToolbar)
+ {
+ toReturn.EnableThumbnailToolbars = true;
+ }
+ else if (taskbarProxyWindowType == TaskbarProxyWindowType.TabbedThumbnail)
+ {
+ toReturn.EnableTabbedThumbnails = true;
+ }
+ }
+
+ return toReturn;
+ }
+
+ #region Message dispatch methods
+ private static void DispatchTaskbarButtonMessages(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (m.Msg == (int)TaskbarNativeMethods.WmTaskbarButtonCreated)
+ {
+ AddButtons(taskbarWindow);
+ }
+ else
+ {
+ if (!_buttonsAdded)
+ {
+ AddButtons(taskbarWindow);
+ }
+
+ if (m.Msg == TaskbarNativeMethods.WmCommand &&
+ CoreNativeMethods.GetHiWord(m.WParam.ToInt64(), 16) == ThumbButton.Clicked)
+ {
+ int buttonId = CoreNativeMethods.GetLoWord(m.WParam.ToInt64());
+
+ var buttonsFound =
+ from b in taskbarWindow.ThumbnailButtons
+ where b.Id == buttonId
+ select b;
+
+ foreach (ThumbnailToolBarButton button in buttonsFound)
+ {
+ button.FireClick(taskbarWindow);
+ }
+ }
+ }
+ }
+
+ private static bool DispatchActivateMessage(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (m.Msg == (int)WindowMessage.Activate)
+ {
+ // Raise the event
+ taskbarWindow.TabbedThumbnail.OnTabbedThumbnailActivated();
+ SetActiveTab(taskbarWindow);
+ return true;
+ }
+ return false;
+ }
+
+ private static bool DispatchSendIconThumbnailMessage(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (m.Msg == (int)TaskbarNativeMethods.WmDwmSendIconThumbnail)
+ {
+ int width = (int)((long)m.LParam >> 16);
+ int height = (int)(((long)m.LParam) & (0xFFFF));
+ Size requestedSize = new Size(width, height);
+
+ // Fire an event to let the user update their bitmap
+ taskbarWindow.TabbedThumbnail.OnTabbedThumbnailBitmapRequested();
+
+ IntPtr hBitmap = IntPtr.Zero;
+
+ // Default size for the thumbnail
+ Size realWindowSize = new Size(200, 200);
+
+ // Get the size of teh control or UIElement
+ if (taskbarWindow.TabbedThumbnail.WindowHandle != IntPtr.Zero)
+ {
+ TabbedThumbnailNativeMethods.GetClientSize(taskbarWindow.TabbedThumbnail.WindowHandle, out realWindowSize);
+ }
+ else if (taskbarWindow.TabbedThumbnail.WindowsControl != null)
+ {
+ realWindowSize = new Size(
+ Convert.ToInt32(taskbarWindow.TabbedThumbnail.WindowsControl.RenderSize.Width),
+ Convert.ToInt32(taskbarWindow.TabbedThumbnail.WindowsControl.RenderSize.Height));
+ }
+
+ if (realWindowSize.Height == -1 && realWindowSize.Width == -1)
+ {
+ realWindowSize.Width = realWindowSize.Height = 199;
+ }
+
+ // capture the bitmap for the given control
+ // If the user has already specified us a bitmap to use, use that.
+ if (taskbarWindow.TabbedThumbnail.ClippingRectangle != null &&
+ taskbarWindow.TabbedThumbnail.ClippingRectangle.Value != Rectangle.Empty)
+ {
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ hBitmap = GrabBitmap(taskbarWindow, realWindowSize);
+ }
+ else
+ {
+ hBitmap = taskbarWindow.TabbedThumbnail.CurrentHBitmap;
+ }
+
+ // Clip the bitmap we just got.
+ Bitmap bmp = Bitmap.FromHbitmap(hBitmap);
+
+ Rectangle clippingRectangle = taskbarWindow.TabbedThumbnail.ClippingRectangle.Value;
+
+ // If our clipping rect is out of bounds, update it
+ if (clippingRectangle.Height > requestedSize.Height)
+ {
+ clippingRectangle.Height = requestedSize.Height;
+ }
+ if (clippingRectangle.Width > requestedSize.Width)
+ {
+ clippingRectangle.Width = requestedSize.Width;
+ }
+
+ // NOTE: Is this a memory leak?
+ bmp = bmp.Clone(clippingRectangle, bmp.PixelFormat);
+
+ // Make sure we dispose the bitmap before assigning, otherwise we'll have a memory leak
+ if (hBitmap != IntPtr.Zero && taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(hBitmap);
+ }
+ hBitmap = bmp.GetHbitmap();
+ bmp.Dispose();
+ }
+ else
+ {
+ // Else, user didn't want any clipping, if they haven't provided us a bitmap,
+ // use the screencapture utility and capture it.
+
+ hBitmap = taskbarWindow.TabbedThumbnail.CurrentHBitmap;
+
+ // If no bitmap, capture one using the utility
+ if (hBitmap == IntPtr.Zero)
+ {
+ hBitmap = GrabBitmap(taskbarWindow, realWindowSize);
+ }
+ }
+
+ // Only set the thumbnail if it's not null.
+ // If it's null (either we didn't get the bitmap or size was 0),
+ // let DWM handle it
+ if (hBitmap != IntPtr.Zero)
+ {
+ Bitmap temp = TabbedThumbnailScreenCapture.ResizeImageWithAspect(
+ hBitmap, requestedSize.Width, requestedSize.Height, true);
+
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(hBitmap);
+ }
+
+ hBitmap = temp.GetHbitmap();
+ TabbedThumbnailNativeMethods.SetIconicThumbnail(taskbarWindow.WindowToTellTaskbarAbout, hBitmap);
+ temp.Dispose();
+ }
+
+ // If the bitmap we have is not coming from the user (i.e. we created it here),
+ // then make sure we delete it as we don't need it now.
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(hBitmap);
+ }
+
+ return true;
+ }
+ return false;
+ }
+
+ private static bool DispatchLivePreviewBitmapMessage(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (m.Msg == (int)TaskbarNativeMethods.WmDwmSendIconicLivePreviewBitmap)
+ {
+ // Try to get the width/height
+ int width = (int)(((long)m.LParam) >> 16);
+ int height = (int)(((long)m.LParam) & (0xFFFF));
+
+ // Default size for the thumbnail
+ Size realWindowSize = new Size(200, 200);
+
+ if (taskbarWindow.TabbedThumbnail.WindowHandle != IntPtr.Zero)
+ {
+ TabbedThumbnailNativeMethods.GetClientSize(taskbarWindow.TabbedThumbnail.WindowHandle, out realWindowSize);
+ }
+ else if (taskbarWindow.TabbedThumbnail.WindowsControl != null)
+ {
+ realWindowSize = new Size(
+ Convert.ToInt32(taskbarWindow.TabbedThumbnail.WindowsControl.RenderSize.Width),
+ Convert.ToInt32(taskbarWindow.TabbedThumbnail.WindowsControl.RenderSize.Height));
+ }
+
+ // If we don't have a valid height/width, use the original window's size
+ if (width <= 0)
+ {
+ width = realWindowSize.Width;
+ }
+ if (height <= 0)
+ {
+ height = realWindowSize.Height;
+ }
+
+ // Fire an event to let the user update their bitmap
+ // Raise the event
+ taskbarWindow.TabbedThumbnail.OnTabbedThumbnailBitmapRequested();
+
+ // capture the bitmap for the given control
+ // If the user has already specified us a bitmap to use, use that.
+ IntPtr hBitmap = taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero ? GrabBitmap(taskbarWindow, realWindowSize) : taskbarWindow.TabbedThumbnail.CurrentHBitmap;
+
+ // If we have a valid parent window handle,
+ // calculate the offset so we can place the "peek" bitmap
+ // correctly on the app window
+ if (taskbarWindow.TabbedThumbnail.ParentWindowHandle != IntPtr.Zero && taskbarWindow.TabbedThumbnail.WindowHandle != IntPtr.Zero)
+ {
+ System.Drawing.Point offset = new System.Drawing.Point();
+
+ // if we don't have a offset specified already by the user...
+ if (!taskbarWindow.TabbedThumbnail.PeekOffset.HasValue)
+ {
+ offset = WindowUtilities.GetParentOffsetOfChild(taskbarWindow.TabbedThumbnail.WindowHandle, taskbarWindow.TabbedThumbnail.ParentWindowHandle);
+ }
+ else
+ {
+ offset = new System.Drawing.Point(Convert.ToInt32(taskbarWindow.TabbedThumbnail.PeekOffset.Value.X),
+ Convert.ToInt32(taskbarWindow.TabbedThumbnail.PeekOffset.Value.Y));
+ }
+
+ // Only set the peek bitmap if it's not null.
+ // If it's null (either we didn't get the bitmap or size was 0),
+ // let DWM handle it
+ if (hBitmap != IntPtr.Zero)
+ {
+ if (offset.X >= 0 && offset.Y >= 0)
+ {
+ TabbedThumbnailNativeMethods.SetPeekBitmap(
+ taskbarWindow.WindowToTellTaskbarAbout,
+ hBitmap, offset,
+ taskbarWindow.TabbedThumbnail.DisplayFrameAroundBitmap);
+ }
+ }
+
+ // If the bitmap we have is not coming from the user (i.e. we created it here),
+ // then make sure we delete it as we don't need it now.
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(hBitmap);
+ }
+
+ return true;
+ }
+ // Else, we don't have a valid window handle from the user. This is mostly likely because
+ // we have a WPF UIElement control. If that's the case, use a different screen capture method
+ // and also couple of ways to try to calculate the control's offset w.r.t it's parent.
+ else if (taskbarWindow.TabbedThumbnail.ParentWindowHandle != IntPtr.Zero &&
+ taskbarWindow.TabbedThumbnail.WindowsControl != null)
+ {
+ System.Windows.Point offset;
+
+ if (!taskbarWindow.TabbedThumbnail.PeekOffset.HasValue)
+ {
+ // Calculate the offset for a WPF UIElement control
+ // For hidden controls, we can't seem to perform the transform.
+ GeneralTransform objGeneralTransform = taskbarWindow.TabbedThumbnail.WindowsControl.TransformToVisual(taskbarWindow.TabbedThumbnail.WindowsControlParentWindow);
+ offset = objGeneralTransform.Transform(new System.Windows.Point(0, 0));
+ }
+ else
+ {
+ offset = new System.Windows.Point(taskbarWindow.TabbedThumbnail.PeekOffset.Value.X, taskbarWindow.TabbedThumbnail.PeekOffset.Value.Y);
+ }
+
+ // Only set the peek bitmap if it's not null.
+ // If it's null (either we didn't get the bitmap or size was 0),
+ // let DWM handle it
+ if (hBitmap != IntPtr.Zero)
+ {
+ if (offset.X >= 0 && offset.Y >= 0)
+ {
+ TabbedThumbnailNativeMethods.SetPeekBitmap(
+ taskbarWindow.WindowToTellTaskbarAbout,
+ hBitmap, new System.Drawing.Point((int)offset.X, (int)offset.Y),
+ taskbarWindow.TabbedThumbnail.DisplayFrameAroundBitmap);
+ }
+ else
+ {
+ TabbedThumbnailNativeMethods.SetPeekBitmap(
+ taskbarWindow.WindowToTellTaskbarAbout,
+ hBitmap,
+ taskbarWindow.TabbedThumbnail.DisplayFrameAroundBitmap);
+ }
+ }
+
+ // If the bitmap we have is not coming from the user (i.e. we created it here),
+ // then make sure we delete it as we don't need it now.
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(hBitmap);
+ }
+
+ return true;
+ }
+ else
+ {
+ // Else (no parent specified), just set the bitmap. It would take over the entire
+ // application window (would work only if you are a MDI app)
+
+ // Only set the peek bitmap if it's not null.
+ // If it's null (either we didn't get the bitmap or size was 0),
+ // let DWM handle it
+ if (hBitmap != null)
+ {
+ TabbedThumbnailNativeMethods.SetPeekBitmap(taskbarWindow.WindowToTellTaskbarAbout, hBitmap, taskbarWindow.TabbedThumbnail.DisplayFrameAroundBitmap);
+ }
+
+ // If the bitmap we have is not coming from the user (i.e. we created it here),
+ // then make sure we delete it as we don't need it now.
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ ShellNativeMethods.DeleteObject(hBitmap);
+ }
+
+ return true;
+ }
+ }
+ return false;
+ }
+
+ private static bool DispatchDestroyMessage(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (m.Msg == (int)WindowMessage.Destroy)
+ {
+ TaskbarList.Instance.UnregisterTab(taskbarWindow.WindowToTellTaskbarAbout);
+
+ taskbarWindow.TabbedThumbnail.RemovedFromTaskbar = true;
+
+ return true;
+ }
+ return false;
+ }
+
+ private static bool DispatchNCDestroyMessage(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (m.Msg == (int)WindowMessage.NCDestroy)
+ {
+ // Raise the event
+ taskbarWindow.TabbedThumbnail.OnTabbedThumbnailClosed();
+
+ // Remove the taskbar window from our internal list
+ if (_taskbarWindowList.Contains(taskbarWindow))
+ {
+ _taskbarWindowList.Remove(taskbarWindow);
+ }
+
+ taskbarWindow.Dispose();
+
+ return true;
+ }
+ return false;
+ }
+
+ private static bool DispatchSystemCommandMessage(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (m.Msg == (int)WindowMessage.SystemCommand)
+ {
+ if (((int)m.WParam) == TabbedThumbnailNativeMethods.ScClose)
+ {
+ // Raise the event
+ if (taskbarWindow.TabbedThumbnail.OnTabbedThumbnailClosed())
+ {
+ // Remove the taskbar window from our internal list
+ if (_taskbarWindowList.Contains(taskbarWindow))
+ {
+ _taskbarWindowList.Remove(taskbarWindow);
+ }
+
+ taskbarWindow.Dispose();
+ taskbarWindow = null;
+ }
+ }
+ else if (((int)m.WParam) == TabbedThumbnailNativeMethods.ScMaximize)
+ {
+ // Raise the event
+ taskbarWindow.TabbedThumbnail.OnTabbedThumbnailMaximized();
+ }
+ else if (((int)m.WParam) == TabbedThumbnailNativeMethods.ScMinimize)
+ {
+ // Raise the event
+ taskbarWindow.TabbedThumbnail.OnTabbedThumbnailMinimized();
+ }
+
+ return true;
+ }
+ return false;
+ }
+
+ #endregion
+
+ /// <summary>
+ /// Dispatches a window message so that the appropriate events
+ /// can be invoked. This is used for the Taskbar's thumbnail toolbar feature.
+ /// </summary>
+ /// <param name="m">The window message, typically obtained
+ /// from a Windows Forms or WPF window procedure.</param>
+ /// <param name="taskbarWindow">Taskbar window for which we are intercepting the messages</param>
+ /// <returns>Returns true if this method handles the window message</returns>
+ internal static bool DispatchMessage(ref System.Windows.Forms.Message m, TaskbarWindow taskbarWindow)
+ {
+ if (taskbarWindow.EnableThumbnailToolbars)
+ {
+ DispatchTaskbarButtonMessages(ref m, taskbarWindow);
+ }
+
+ // If we are removed from the taskbar, ignore all the messages
+ if (taskbarWindow.EnableTabbedThumbnails)
+ {
+ if (taskbarWindow.TabbedThumbnail == null ||
+ taskbarWindow.TabbedThumbnail.RemovedFromTaskbar)
+ {
+ return false;
+ }
+
+ if (DispatchActivateMessage(ref m, taskbarWindow))
+ {
+ return true;
+ }
+
+ if (DispatchSendIconThumbnailMessage(ref m, taskbarWindow))
+ {
+ return true;
+ }
+
+ if (DispatchLivePreviewBitmapMessage(ref m, taskbarWindow))
+ {
+ return true;
+ }
+
+ if (DispatchDestroyMessage(ref m, taskbarWindow))
+ {
+ return true;
+ }
+
+ if (DispatchNCDestroyMessage(ref m, taskbarWindow))
+ {
+ return true;
+ }
+
+ if (DispatchSystemCommandMessage(ref m, taskbarWindow))
+ {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /// <summary>
+ /// Helper function to capture a bitmap for a given window handle or incase of WPF app,
+ /// an UIElement.
+ /// </summary>
+ /// <param name="taskbarWindow">The proxy window for which a bitmap needs to be created</param>
+ /// <param name="requestedSize">Size for the requested bitmap image</param>
+ /// <returns>Bitmap captured from the window handle or UIElement. Null if the window is hidden or it's size is zero.</returns>
+ private static IntPtr GrabBitmap(TaskbarWindow taskbarWindow, System.Drawing.Size requestedSize)
+ {
+ IntPtr hBitmap = IntPtr.Zero;
+
+ if (taskbarWindow.TabbedThumbnail.WindowHandle != IntPtr.Zero)
+ { //TabbedThumbnail is linked to WinformsControl
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ using (Bitmap bmp = TabbedThumbnailScreenCapture.GrabWindowBitmap(
+ taskbarWindow.TabbedThumbnail.WindowHandle, requestedSize))
+ {
+
+ hBitmap = bmp.GetHbitmap();
+ }
+ }
+ else
+ {
+ using (Image img = Image.FromHbitmap(taskbarWindow.TabbedThumbnail.CurrentHBitmap))
+ {
+ using (Bitmap bmp = new Bitmap(img, requestedSize))
+ {
+ hBitmap = bmp != null ? bmp.GetHbitmap() : IntPtr.Zero;
+ }
+ }
+ }
+ }
+ else if (taskbarWindow.TabbedThumbnail.WindowsControl != null)
+ { //TabbedThumbnail is linked to a WPF UIElement
+ if (taskbarWindow.TabbedThumbnail.CurrentHBitmap == IntPtr.Zero)
+ {
+ Bitmap bmp = TabbedThumbnailScreenCapture.GrabWindowBitmap(
+ taskbarWindow.TabbedThumbnail.WindowsControl,
+ 96, 96, requestedSize.Width, requestedSize.Height);
+
+ if (bmp != null)
+ {
+ hBitmap = bmp.GetHbitmap();
+ bmp.Dispose();
+ }
+ }
+ else
+ {
+ using (Image img = Image.FromHbitmap(taskbarWindow.TabbedThumbnail.CurrentHBitmap))
+ {
+ using (Bitmap bmp = new Bitmap(img, requestedSize))
+ {
+
+ hBitmap = bmp != null ? bmp.GetHbitmap() : IntPtr.Zero;
+ }
+ }
+ }
+ }
+
+ return hBitmap;
+ }
+
+ internal static void SetActiveTab(TaskbarWindow taskbarWindow)
+ {
+ if (taskbarWindow != null)
+ {
+ TaskbarList.Instance.SetTabActive(
+ taskbarWindow.WindowToTellTaskbarAbout,
+ taskbarWindow.TabbedThumbnail.ParentWindowHandle, 0);
+ }
+ }
+
+ internal static void UnregisterTab(TaskbarWindow taskbarWindow)
+ {
+ if (taskbarWindow != null)
+ {
+ TaskbarList.Instance.UnregisterTab(taskbarWindow.WindowToTellTaskbarAbout);
+ }
+ }
+
+ internal static void InvalidatePreview(TaskbarWindow taskbarWindow)
+ {
+ if (taskbarWindow != null)
+ {
+ TabbedThumbnailNativeMethods.DwmInvalidateIconicBitmaps(
+ taskbarWindow.WindowToTellTaskbarAbout);
+ }
+ }
+
+ private static void AddButtons(TaskbarWindow taskbarWindow)
+ {
+ // Add the buttons
+ // Get the array of thumbnail buttons in native format
+ ThumbButton[] nativeButtons = (from thumbButton in taskbarWindow.ThumbnailButtons
+ select thumbButton.Win32ThumbButton).ToArray();
+
+ // Add the buttons on the taskbar
+ HResult hr = TaskbarList.Instance.ThumbBarAddButtons(taskbarWindow.WindowToTellTaskbarAbout, (uint)taskbarWindow.ThumbnailButtons.Length, nativeButtons);
+
+ if (!CoreErrorHelper.Succeeded(hr))
+ {
+ throw new ShellException(hr);
+ }
+
+ _buttonsAdded = true;
+
+ foreach (ThumbnailToolBarButton button in taskbarWindow.ThumbnailButtons)
+ {
+ button.AddedToTaskbar = _buttonsAdded;
+ }
+ }
+
+ #region Event handlers
+
+ private static void thumbnailPreview_TooltipChanged(object sender, EventArgs e)
+ {
+ TabbedThumbnail preview = sender as TabbedThumbnail;
+
+ TaskbarWindow taskbarWindow = null;
+
+ if (preview.WindowHandle == IntPtr.Zero)
+ {
+ taskbarWindow = GetTaskbarWindow(preview.WindowsControl, TaskbarProxyWindowType.TabbedThumbnail);
+ }
+ else
+ {
+ taskbarWindow = GetTaskbarWindow(preview.WindowHandle, TaskbarProxyWindowType.TabbedThumbnail);
+ }
+
+ // Update the proxy window for the tabbed thumbnail
+ if (taskbarWindow != null)
+ {
+ TaskbarList.Instance.SetThumbnailTooltip(taskbarWindow.WindowToTellTaskbarAbout, preview.Tooltip);
+ }
+ }
+
+ private static void thumbnailPreview_TitleChanged(object sender, EventArgs e)
+ {
+ TabbedThumbnail preview = sender as TabbedThumbnail;
+
+ TaskbarWindow taskbarWindow = null;
+
+ if (preview.WindowHandle == IntPtr.Zero)
+ {
+ taskbarWindow = GetTaskbarWindow(preview.WindowsControl, TaskbarProxyWindowType.TabbedThumbnail);
+ }
+ else
+ {
+ taskbarWindow = GetTaskbarWindow(preview.WindowHandle, TaskbarProxyWindowType.TabbedThumbnail);
+ }
+
+ // Update the proxy window for the tabbed thumbnail
+ if (taskbarWindow != null)
+ {
+ taskbarWindow.SetTitle(preview.Title);
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButton.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButton.cs
new file mode 100644
index 0000000000..8ad48d238c
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButton.cs
@@ -0,0 +1,362 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Drawing;
+using Microsoft.WindowsAPICodePack.Shell;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Represents a taskbar thumbnail button in the thumbnail toolbar.
+ /// </summary>
+ public sealed class ThumbnailToolBarButton : IDisposable
+ {
+ private static uint nextId = 101;
+ private ThumbButton win32ThumbButton;
+
+ /// <summary>
+ /// The event that occurs when the taskbar thumbnail button
+ /// is clicked.
+ /// </summary>
+ public event EventHandler<ThumbnailButtonClickedEventArgs> Click;
+
+ // Internal bool to track whether we should be updating the taskbar
+ // if any of our properties change or if it's just an internal update
+ // on the properties (via the constructor)
+ private bool internalUpdate = false;
+
+ /// <summary>
+ /// Initializes an instance of this class
+ /// </summary>
+ /// <param name="icon">The icon to use for this button</param>
+ /// <param name="tooltip">The tooltip string to use for this button.</param>
+ public ThumbnailToolBarButton(Icon icon, string tooltip)
+ {
+ // Start internal update (so we don't accidently update the taskbar
+ // via the native API)
+ internalUpdate = true;
+
+ // Set our id
+ Id = nextId;
+
+ // increment the ID
+ if (nextId == Int32.MaxValue)
+ nextId = 101; // our starting point
+ else
+ nextId++;
+
+ // Set user settings
+ Icon = icon;
+ Tooltip = tooltip;
+
+ // Defaults
+ Enabled = true;
+
+ // Create a native
+ win32ThumbButton = new ThumbButton();
+
+ // End our internal update
+ internalUpdate = false;
+ }
+
+ #region Public properties
+
+ /// <summary>
+ /// Gets thumbnail button's id.
+ /// </summary>
+ internal uint Id { get; set; }
+
+ private Icon icon;
+ /// <summary>
+ /// Gets or sets the thumbnail button's icon.
+ /// </summary>
+ public Icon Icon
+ {
+ get
+ {
+ return icon;
+ }
+ set
+ {
+ if (icon != value)
+ {
+ icon = value;
+ UpdateThumbnailButton();
+ }
+ }
+ }
+
+ private string tooltip;
+ /// <summary>
+ /// Gets or sets the thumbnail button's tooltip.
+ /// </summary>
+ public string Tooltip
+ {
+ get
+ {
+ return tooltip;
+ }
+ set
+ {
+ if (tooltip != value)
+ {
+ tooltip = value;
+ UpdateThumbnailButton();
+ }
+ }
+ }
+
+ private bool visible = true;
+ /// <summary>
+ /// Gets or sets the thumbnail button's visibility. Default is true.
+ /// </summary>
+ public bool Visible
+ {
+ get
+ {
+ return (this.Flags & ThumbButtonOptions.Hidden) == 0;
+ }
+ set
+ {
+ if (visible != value)
+ {
+ visible = value;
+
+ if (value)
+ {
+ this.Flags &= ~(ThumbButtonOptions.Hidden);
+ }
+ else
+ {
+ this.Flags |= ThumbButtonOptions.Hidden;
+ }
+
+ UpdateThumbnailButton();
+ }
+
+ }
+ }
+
+ private bool enabled = true;
+ /// <summary>
+ /// Gets or sets the thumbnail button's enabled state. If the button is disabled, it is present,
+ /// but has a visual state that indicates that it will not respond to user action. Default is true.
+ /// </summary>
+ public bool Enabled
+ {
+ get
+ {
+ return (this.Flags & ThumbButtonOptions.Disabled) == 0;
+ }
+ set
+ {
+ if (value != enabled)
+ {
+ enabled = value;
+
+ if (value)
+ {
+ this.Flags &= ~(ThumbButtonOptions.Disabled);
+ }
+ else
+ {
+ this.Flags |= ThumbButtonOptions.Disabled;
+ }
+
+ UpdateThumbnailButton();
+ }
+ }
+ }
+
+ private bool dismissOnClick;
+ /// <summary>
+ /// Gets or sets the property that describes the behavior when the button is clicked.
+ /// If set to true, the taskbar button's flyout will close immediately. Default is false.
+ /// </summary>
+ public bool DismissOnClick
+ {
+ get
+ {
+ return (this.Flags & ThumbButtonOptions.DismissOnClick) == 0;
+ }
+ set
+ {
+ if (value != dismissOnClick)
+ {
+ dismissOnClick = value;
+
+ if (value)
+ {
+ this.Flags |= ThumbButtonOptions.DismissOnClick;
+ }
+ else
+ {
+ this.Flags &= ~(ThumbButtonOptions.DismissOnClick);
+ }
+
+ UpdateThumbnailButton();
+ }
+ }
+ }
+
+ private bool isInteractive = true;
+ /// <summary>
+ /// Gets or sets the property that describes whether the button is interactive with the user. Default is true.
+ /// </summary>
+ /// <remarks>
+ /// Non-interactive buttons don't display any hover behavior nor do they raise click events.
+ /// They are intended to be used as status icons. This is mostly similar to being not Enabled,
+ /// but the image is not desaturated.
+ /// </remarks>
+ public bool IsInteractive
+ {
+ get
+ {
+ return (this.Flags & ThumbButtonOptions.NonInteractive) == 0;
+ }
+ set
+ {
+ if (value != isInteractive)
+ {
+ isInteractive = value;
+
+ if (value)
+ {
+ this.Flags &= ~(ThumbButtonOptions.NonInteractive);
+ }
+ else
+ {
+ this.Flags |= ThumbButtonOptions.NonInteractive;
+ }
+
+ UpdateThumbnailButton();
+ }
+ }
+ }
+
+ #endregion
+
+ #region Internal Methods
+
+ /// <summary>
+ /// Native flags enum (used when creating the native button)
+ /// </summary>
+ internal ThumbButtonOptions Flags { get; set; }
+
+ /// <summary>
+ /// Native representation of the thumbnail button
+ /// </summary>
+ internal ThumbButton Win32ThumbButton
+ {
+ get
+ {
+ win32ThumbButton.Id = Id;
+ win32ThumbButton.Tip = Tooltip;
+ win32ThumbButton.Icon = Icon != null ? Icon.Handle : IntPtr.Zero;
+ win32ThumbButton.Flags = Flags;
+
+ win32ThumbButton.Mask = ThumbButtonMask.THB_FLAGS;
+ if (Tooltip != null)
+ {
+ win32ThumbButton.Mask |= ThumbButtonMask.Tooltip;
+ }
+ if (Icon != null)
+ {
+ win32ThumbButton.Mask |= ThumbButtonMask.Icon;
+ }
+
+ return win32ThumbButton;
+ }
+ }
+
+ /// <summary>
+ /// The window manager should call this method to raise the public click event to all
+ /// the subscribers.
+ /// </summary>
+ /// <param name="taskbarWindow">Taskbar Window associated with this button</param>
+ internal void FireClick(TaskbarWindow taskbarWindow)
+ {
+ if (Click != null && taskbarWindow != null)
+ {
+ if (taskbarWindow.UserWindowHandle != IntPtr.Zero)
+ {
+ Click(this, new ThumbnailButtonClickedEventArgs(taskbarWindow.UserWindowHandle, this));
+ }
+ else if (taskbarWindow.WindowsControl != null)
+ {
+ Click(this, new ThumbnailButtonClickedEventArgs(taskbarWindow.WindowsControl, this));
+ }
+ }
+ }
+
+ /// <summary>
+ /// Handle to the window to which this button is for (on the taskbar).
+ /// </summary>
+ internal IntPtr WindowHandle
+ {
+ get;
+ set;
+ }
+
+ /// <summary>
+ /// Indicates if this button was added to the taskbar. If it's not yet added,
+ /// then we can't do any updates on it.
+ /// </summary>
+ internal bool AddedToTaskbar
+ {
+ get;
+ set;
+ }
+
+ internal void UpdateThumbnailButton()
+ {
+ if (internalUpdate || !AddedToTaskbar) { return; }
+
+ // Get the array of thumbnail buttons in native format
+ ThumbButton[] nativeButtons = { Win32ThumbButton };
+
+ HResult hr = TaskbarList.Instance.ThumbBarUpdateButtons(WindowHandle, 1, nativeButtons);
+
+ if (!CoreErrorHelper.Succeeded(hr)) { throw new ShellException(hr); }
+ }
+
+ #endregion
+
+ #region IDisposable Members
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~ThumbnailToolBarButton()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ /// <param name="disposing"></param>
+ public void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ // Dispose managed resources
+ Icon.Dispose();
+ tooltip = null;
+ }
+ }
+
+ #endregion
+ }
+
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButtonClickedEventArgs.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButtonClickedEventArgs.cs
new file mode 100644
index 0000000000..87b6549830
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailButtonClickedEventArgs.cs
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Windows;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Event args for TabbedThumbnailButton.Click event
+ /// </summary>
+ public class ThumbnailButtonClickedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// Creates a Event Args for the TabbedThumbnailButton.Click event
+ /// </summary>
+ /// <param name="windowHandle">Window handle for the control/window related to the event</param>
+ /// <param name="button">Thumbnail toolbar button that was clicked</param>
+ public ThumbnailButtonClickedEventArgs(IntPtr windowHandle, ThumbnailToolBarButton button)
+ {
+ ThumbnailButton = button;
+ WindowHandle = windowHandle;
+ WindowsControl = null;
+ }
+
+ /// <summary>
+ /// Creates a Event Args for the TabbedThumbnailButton.Click event
+ /// </summary>
+ /// <param name="windowsControl">WPF Control (UIElement) related to the event</param>
+ /// <param name="button">Thumbnail toolbar button that was clicked</param>
+ public ThumbnailButtonClickedEventArgs(UIElement windowsControl, ThumbnailToolBarButton button)
+ {
+ ThumbnailButton = button;
+ WindowHandle = IntPtr.Zero;
+ WindowsControl = windowsControl;
+ }
+
+ /// <summary>
+ /// Gets the Window handle for the specific control/window that is related to this event.
+ /// </summary>
+ /// <remarks>For WPF Controls (UIElement) the WindowHandle will be IntPtr.Zero.
+ /// Check the WindowsControl property to get the specific control associated with this event.</remarks>
+ public IntPtr WindowHandle { get; private set; }
+
+ /// <summary>
+ /// Gets the WPF Control (UIElement) that is related to this event. This property may be null
+ /// for non-WPF applications.
+ /// </summary>
+ public UIElement WindowsControl { get; private set; }
+
+ /// <summary>
+ /// Gets the ThumbnailToolBarButton that was clicked
+ /// </summary>
+ public ThumbnailToolBarButton ThumbnailButton { get; private set; }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarManager.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarManager.cs
new file mode 100644
index 0000000000..793b2b162a
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarManager.cs
@@ -0,0 +1,77 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Windows;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Thumbnail toolbar manager class for adding a thumbnail toolbar with a specified set of buttons
+ /// to the thumbnail image of a window in a taskbar button flyout.
+ /// </summary>
+ public class ThumbnailToolBarManager
+ {
+ internal ThumbnailToolBarManager()
+ {
+ // Hide the public constructor so users can't create an instance of this class.
+ }
+
+ /// <summary>
+ /// Adds thumbnail toolbar for the specified window.
+ /// </summary>
+ /// <param name="windowHandle">Window handle for which the thumbnail toolbar buttons need to be added</param>
+ /// <param name="buttons">Thumbnail buttons for the window's thumbnail toolbar</param>
+ /// <exception cref="System.ArgumentException">If the number of buttons exceed the maximum allowed capacity (7).</exception>
+ /// <exception cref="System.ArgumentException">If the Window Handle passed in invalid</exception>
+ /// <remarks>After a toolbar has been added to a thumbnail, buttons can be altered only through various
+ /// properties on the <see cref="T:Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton"/>. While individual buttons cannot be added or removed,
+ /// they can be shown and hidden through <see cref="P:Microsoft.WindowsAPICodePack.Taskbar.ThumbnailToolBarButton.Visible"/> as needed.
+ /// The toolbar itself cannot be removed without re-creating the window itself.
+ /// </remarks>
+ public void AddButtons(IntPtr windowHandle, params ThumbnailToolBarButton[] buttons)
+ {
+ if (windowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailManagerInvalidHandle, "windowHandle");
+ }
+ VerifyButtons(buttons);
+
+ // Add the buttons to our window manager, which will also create a proxy window
+ TaskbarWindowManager.AddThumbnailButtons(windowHandle, buttons);
+ }
+
+ /// <summary>
+ /// Adds thumbnail toolbar for the specified WPF Control.
+ /// </summary>
+ /// <param name="control">WPF Control for which the thumbnail toolbar buttons need to be added</param>
+ /// <param name="buttons">Thumbnail buttons for the window's thumbnail toolbar</param>
+ /// <exception cref="System.ArgumentException">If the number of buttons exceed the maximum allowed capacity (7).</exception>
+ /// <exception cref="System.ArgumentNullException">If the control passed in null</exception>
+ /// <remarks>After a toolbar has been added to a thumbnail, buttons can be altered only through various
+ /// properties on the ThumbnailToolBarButton. While individual buttons cannot be added or removed,
+ /// they can be shown and hidden through ThumbnailToolBarButton.Visible as needed.
+ /// The toolbar itself cannot be removed without re-creating the window itself.
+ /// </remarks>
+ public void AddButtons(UIElement control, params ThumbnailToolBarButton[] buttons)
+ {
+ if (control == null) { throw new ArgumentNullException("control"); }
+ VerifyButtons(buttons);
+
+ // Add the buttons to our window manager, which will also create a proxy window
+ TaskbarWindowManager.AddThumbnailButtons(control, buttons);
+ }
+
+ private static void VerifyButtons(params ThumbnailToolBarButton[] buttons)
+ {
+ if (buttons != null && buttons.Length == 0)
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailToolbarManagerNullEmptyArray, "buttons");
+ }
+ if (buttons.Length > 7)
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailToolbarManagerMaxButtons, "buttons");
+ }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarProxyWindow.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarProxyWindow.cs
new file mode 100644
index 0000000000..012f0ad355
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/ThumbnailToolbarProxyWindow.cs
@@ -0,0 +1,125 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Windows.Forms;
+using Microsoft.WindowsAPICodePack.Shell.Resources;
+using MS.WindowsAPICodePack.Internal;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ internal class ThumbnailToolbarProxyWindow : NativeWindow, IDisposable
+ {
+ private ThumbnailToolBarButton[] _thumbnailButtons;
+ private IntPtr _internalWindowHandle;
+
+ internal System.Windows.UIElement WindowsControl { get; set; }
+
+ internal IntPtr WindowToTellTaskbarAbout
+ {
+ get
+ {
+ return _internalWindowHandle != IntPtr.Zero ? _internalWindowHandle : this.Handle;
+ }
+ }
+
+ internal TaskbarWindow TaskbarWindow { get; set; }
+
+ internal ThumbnailToolbarProxyWindow(IntPtr windowHandle, ThumbnailToolBarButton[] buttons)
+ {
+ if (windowHandle == IntPtr.Zero)
+ {
+ throw new ArgumentException(LocalizedMessages.CommonFileDialogInvalidHandle, "windowHandle");
+ }
+ if (buttons != null && buttons.Length == 0)
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailToolbarManagerNullEmptyArray, "buttons");
+ }
+
+ _internalWindowHandle = windowHandle;
+ _thumbnailButtons = buttons;
+
+ // Set the window handle on the buttons (for future updates)
+ Array.ForEach(_thumbnailButtons, new Action<ThumbnailToolBarButton>(UpdateHandle));
+
+ // Assign the window handle (coming from the user) to this native window
+ // so we can intercept the window messages sent from the taskbar to this window.
+ this.AssignHandle(windowHandle);
+ }
+
+ internal ThumbnailToolbarProxyWindow(System.Windows.UIElement windowsControl, ThumbnailToolBarButton[] buttons)
+ {
+ if (windowsControl == null) { throw new ArgumentNullException("windowsControl"); }
+ if (buttons != null && buttons.Length == 0)
+ {
+ throw new ArgumentException(LocalizedMessages.ThumbnailToolbarManagerNullEmptyArray, "buttons");
+ }
+
+ _internalWindowHandle = IntPtr.Zero;
+ WindowsControl = windowsControl;
+ _thumbnailButtons = buttons;
+
+ // Set the window handle on the buttons (for future updates)
+ Array.ForEach(_thumbnailButtons, new Action<ThumbnailToolBarButton>(UpdateHandle));
+ }
+
+ private void UpdateHandle(ThumbnailToolBarButton button)
+ {
+ button.WindowHandle = _internalWindowHandle;
+ button.AddedToTaskbar = false;
+ }
+
+ protected override void WndProc(ref Message m)
+ {
+ bool handled = false;
+
+ handled = TaskbarWindowManager.DispatchMessage(ref m, this.TaskbarWindow);
+
+ // If it's a WM_Destroy message, then also forward it to the base class (our native window)
+ if ((m.Msg == (int)WindowMessage.Destroy) ||
+ (m.Msg == (int)WindowMessage.NCDestroy) ||
+ ((m.Msg == (int)WindowMessage.SystemCommand) && (((int)m.WParam) == TabbedThumbnailNativeMethods.ScClose)))
+ {
+ base.WndProc(ref m);
+ }
+ else if (!handled)
+ {
+ base.WndProc(ref m);
+ }
+ }
+
+ #region IDisposable Members
+
+ /// <summary>
+ ///
+ /// </summary>
+ ~ThumbnailToolbarProxyWindow()
+ {
+ Dispose(false);
+ }
+
+ /// <summary>
+ /// Release the native objects.
+ /// </summary>
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ public void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ // Dispose managed resources
+
+ // Don't dispose the thumbnail buttons
+ // as they might be used in another window.
+ // Setting them to null will indicate we don't need use anymore.
+ _thumbnailButtons = null;
+ }
+ }
+
+ #endregion
+
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/UserRemovedJumpListItemsEventArg.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/UserRemovedJumpListItemsEventArg.cs
new file mode 100644
index 0000000000..2520f5b1dd
--- /dev/null
+++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/Taskbar/UserRemovedJumpListItemsEventArg.cs
@@ -0,0 +1,29 @@
+//Copyright (c) Microsoft Corporation. All rights reserved.
+
+using System;
+using System.Collections;
+
+namespace Microsoft.WindowsAPICodePack.Taskbar
+{
+ /// <summary>
+ /// Event arguments for when the user is notified of items
+ /// that have been removed from the taskbar destination list
+ /// </summary>
+ public class UserRemovedJumpListItemsEventArgs : EventArgs
+ {
+ private readonly IEnumerable _removedItems;
+
+ internal UserRemovedJumpListItemsEventArgs(IEnumerable RemovedItems)
+ {
+ _removedItems = RemovedItems;
+ }
+
+ /// <summary>
+ /// The collection of removed items based on path.
+ /// </summary>
+ public IEnumerable RemovedItems
+ {
+ get { return _removedItems; }
+ }
+ }
+}
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.Shell.dll b/main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.Shell.dll
deleted file mode 100644
index 4542663e1e..0000000000
--- a/main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.Shell.dll
+++ /dev/null
Binary files differ
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.dll b/main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.dll
deleted file mode 100644
index ac86949212..0000000000
--- a/main/src/addins/WindowsPlatform/WindowsPlatform/Microsoft.WindowsAPICodePack.dll
+++ /dev/null
Binary files differ
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.csproj b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.csproj
index 5e71f6d088..11e863d92f 100644
--- a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.csproj
+++ b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.csproj
@@ -43,12 +43,6 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
- <Reference Include="Microsoft.WindowsAPICodePack">
- <HintPath>Microsoft.WindowsAPICodePack.dll</HintPath>
- </Reference>
- <Reference Include="Microsoft.WindowsAPICodePack.Shell">
- <HintPath>Microsoft.WindowsAPICodePack.Shell.dll</HintPath>
- </Reference>
<Reference Include="PresentationFramework" />
<Reference Include="PresentationCore" />
<Reference Include="System.Xaml" />
@@ -75,6 +69,14 @@
<Name>Xwt</Name>
<Private>False</Private>
</ProjectReference>
+ <ProjectReference Include="..\WindowsAPICodePack\Core\Core.csproj">
+ <Project>{2E1FB0DF-F9BB-4909-9F32-2D9D022A8E57}</Project>
+ <Name>Core</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\WindowsAPICodePack\Shell\Shell.csproj">
+ <Project>{AA0C00CB-8699-4F37-BFAE-40CA87ACC06D}</Project>
+ <Name>Shell</Name>
+ </ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Dialogs\AddFileDialogHandler.cs" />