Commit Graph

322 Commits (3f0e9f0798de9e884930e75b54dcf79ead7f5b80)

Author SHA1 Message Date
dahall a52ea804ca Changed const params in SHCreateDefaultContextMenu, SHCreateShellFolderView and SHCreateShellFolderViewEx from `ref` to `in`. 2021-09-21 12:16:18 -06:00
dahall 29b299eafa Reverted NativeClipboard's listener window to derive from NativeWindow 2021-08-29 15:08:08 -06:00
dahall 7b1304136a Fixed bug in NativeClipboard change event 2021-08-26 17:28:15 -06:00
dahall 517de67a6a Updated project files for 3.3.12 2021-08-26 10:59:15 -06:00
dahall d52b0d5b18 Updated NuGet package dependencies 2021-08-26 09:05:27 -06:00
dahall b46623a5d3 Added NativeClipboard.GetShellDataObject 2021-08-18 17:03:20 -06:00
dahall 557be16a62 Updated NativeClipboard to use internal support for its listener window and ensured that windows is only created when the ClipboardUpdate event is handled. 2021-08-17 13:04:22 -06:00
dahall cd5fe5678c Removed ClipboardWatcher since functionality was already in NativeClipboard. 2021-08-17 07:44:39 -06:00
dahall dbbee967b0 Added ClipboardWatcher that raises an event when the Windows Clipboard changes. 2021-08-16 10:06:56 -06:00
dahall ff109a347d Updated all constructors where possible to exclude name. 2021-08-15 19:18:36 -06:00
dahall 1069739824 Changed ShellDataObject.ctor to take IEnumerable instead of array and expanded it to set CFSTR_SHELLIDLIST, CFSTR_FILEDESCRIPTORW, CFSTR_FILECONTENTS, CF_HDROP, CFSTR_FILENAMEA, and CFSTR_FILENAMEW.
Added ShellDataObject.GetData handler for CFSTR_INETURL
Added ShellDataObject.SetData handler for CFSTR_DROPDESCRIPTION
Added ShellDataObject.SetOleStreamData
2021-08-15 19:17:29 -06:00
dahall 39e51327a8 Added ASCII text item to SetText method.
Changed order of title and url placement in SetUrl to url first.
2021-08-15 19:06:34 -06:00
dahall 071dff9e62 Added ShellItemArray.ToDataObject method to extract an IDataObject 2021-08-15 19:04:22 -06:00
dahall a30b7c3b84 Streamlined disposals of ShellItem and ReadOnlyPropertyStore to address #242 and minimize impact of garbage collection when IPropertyStore is used. 2021-08-14 14:59:24 -06:00
dahall 346e082d4b Tested #242 and suggested workaround. 2021-08-13 17:26:53 -06:00
dahall b80de57949 Added ShellItemPropertyStore.Dispose overload to null out use of ShellItem. May help with #242. 2021-08-13 15:52:03 -06:00
dahall 22afda95cf Switched ShellBrowser event handler based methods to overrides and reformatted doc. 2021-07-21 17:13:01 -06:00
dahall 89f5605f65 Updated project files 2021-04-26 10:16:34 -06:00
dahall 3e1596ba7f Updated project files with updates 2021-04-07 13:27:08 -06:00
dahall 4b1b7f617d Cleaned and fixed errors handling HWND values in ShellBrowser 2021-04-06 12:44:49 -06:00
dahall 6ede43cde1 Cleaned and reorganized after PR 2021-04-02 10:12:22 -06:00
Thorsten Jung b071867262
Initial commit of Vanara.Windows.Shell.ShellBrowser (#221)
* Fix typo in folder name

* Initial commit of ShellBrowser, as of 01-Apr-21

* Fixing brainbug
2021-04-02 09:04:25 -06:00
NN 28822bab9e
Use explicit framework reference. Remove transitive TFM requirement. (#212)
Co-authored-by: NN <NN---@users.noreply.github.com>
2021-03-23 07:26:03 -06:00
dahall 035b30f146 Fixed bug in ReadOnlyPropertyStore.TryGetValue (#219) 2021-03-22 10:39:35 -06:00
dahall 3e00f2743c Updated referenced NuGet package versions 2021-03-07 11:15:52 -07:00
dahall 859b7094b7 Fixed bug in ShellItem when calling GetHandler without BHID value 2021-02-04 14:23:51 -07:00
dahall 1d9289086b Fixed bug in ShellItemImages throwing unnecessary error if unable to generate thumbnail 2021-02-04 14:22:56 -07:00
dahall 5054e2c6a2 Fixed bug with ShellContextMenu failing when passed the desktop shell item. Took chance to optimize folder params. (#206) 2021-02-03 21:43:22 -07:00
dahall 967389e246 Removed all calls to `Marshal.ReleaseComObject` where there exists a possibility that the interface could have been referenced by another object and changed to nulling the holding variable. See discussion thread #188. 2021-02-01 16:08:43 -07:00
dahall 72e792928f Fixed XML comment problems 2021-02-01 09:08:31 -07:00
dahall a6d225b6b8 Updated project files with `ImportWindowsDesktopTargets` feature to prevent NETSDK1136 build error (#200) 2021-01-26 07:49:48 -07:00
dahall 94d6e8b218 Converted message window from Control to BasicMessageWindow in ShellContextMenu 2021-01-24 19:02:12 -07:00
dahall 31f9a112e5 Added ability to ShellAssociations from ShellItem and improved readability of exception handlers for ERROR_* conditions 2021-01-24 19:01:13 -07:00
dahall cae1050464 Fixed access violation exception in ShellContextMenu when building a MenuItemInfo for separators (#195) 2021-01-21 09:51:54 -07:00
dahall f489e1ca89 Fixed methods in Shell32 (SHGetFolderLocation, SHGetFolderPath, SHGetFolderPathAndSubDir) that should use CSIDL enum but didn't. Fixed dependencies. 2020-12-27 17:32:52 -07:00
dahall f8e8e6f545 Changed IDropTarget methods to use MouseButtonState param value instead of uint. Fixed dependencies. 2020-12-27 17:31:40 -07:00
dahall ee55299902 Fixed ShellContextMenu build error due to change to AppendMenu 2020-12-27 17:30:43 -07:00
dahall f0fd3f0334 Moved MouseButtonState from User32 to Shared assembly and up to PInvoke namespace. Fixed dependencies. 2020-12-27 17:30:06 -07:00
dahall cabf86396c Removed Security.PermissionSetAttribute from all classes, properties and methods. It is now marked Obsolete. 2020-12-24 13:07:32 -07:00
dahall b0415fd93a Fixed XML comment warnings 2020-12-24 10:58:51 -07:00
dahall 4502fcb5af Converted ShellItemChangeWatcher from using NativeWindow to using SystemEventHandler to support console use 2020-12-22 11:46:13 -07:00
dahall e414490ad5 Corrected ShellBrowser after fixing IOleCommandTarget. 2020-12-20 20:40:30 -07:00
dahall 22222887d1 Update XML doc ambiguity 2020-12-17 16:32:07 -07:00
dahall e214393430 Updated project documentation files 2020-12-16 11:41:02 -07:00
dahall 1608010064 Added ShellItemImages and associated tests to pull images for a shell item from a variety of different interfaces. For some items, the image appears upside down without an DIB indication. 2020-12-08 10:43:07 -07:00
dahall 3755e1a195 Added ShellItem.Verbs to get a list of active verbs 2020-12-08 10:41:34 -07:00
dahall b36a8e72ce Added access to handlers for ShellAssociation #181 2020-12-07 19:50:48 -07:00
dahall b0bd100bf2 Removed exception on index == 0 from IndirectResource ctor 2020-12-03 22:23:12 -07:00
dahall a46337952b Added `ShellItem.ContextMenu` and `Images` properties, enhanced `GetHandler` method to check for correct interfaces, changed `InvokeVerb` to use `ShellContextMenu` 2020-12-03 19:37:38 -07:00
dahall 01fe84acd1 Moved function bodies of some ShellImageList to Shell32.ShellUtil 2020-12-03 19:33:06 -07:00