nextcloud-desktop/shell_integration/windows/OCContextMenu
Jocelyn Turcotte 47fbfbc006 shell/Windows: Avoid memory allocations and copies when querying icons
IsMemberOf is called for every file (in the ownCloud directory or not) and
with every instance of OCOverlay (we have 5) when displaying a list of
files in Explorer.

Refactor the code to avoid copying the list of watched directories, as
well as creating a wstring from a PWWSTR for files outside watched
directories.

Also change some calls of begin_with to use isDescendantOf since it
properly handles parent paths not ending with a backslash, which could
lead to SocketAPI queries for sibling folders with a name that starts with
a watched folder name.
2017-01-18 12:15:52 +01:00
..
dllmain.cpp WiP: Add Win32 Context menu integration 2015-01-22 18:45:20 +01:00
OCClientInterface.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCClientInterface.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCContextMenu.cpp shell/Windows: Avoid memory allocations and copies when querying icons 2017-01-18 12:15:52 +01:00
OCContextMenu.def WiP: Add Win32 Context menu integration 2015-01-22 18:45:20 +01:00
OCContextMenu.h [shell_integration] Setup precompiled headers properly with MSVC 2015-02-05 15:14:42 +01:00
OCContextMenu.rc shell_integration/windows: Add a manually-increased build number 2016-06-27 15:13:47 +02:00
OCContextMenu.vcxproj shell/windows: Add missing Win32 configuration changes 2016-07-26 14:53:14 +02:00
OCContextMenu.vcxproj.filters [shell_integration] Setup precompiled headers properly with MSVC 2015-02-05 15:14:42 +01:00
OCContextMenuFactory.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCContextMenuFactory.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCContextMenuRegHandler.cpp shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
OCContextMenuRegHandler.h shell/Windows: Convert tabs to space 2017-01-18 12:15:52 +01:00
RegDelnode.h Fix an infinite loop when unregistering OCContextMenu without admin rights 2015-02-12 13:35:44 +01:00
resource.h Add Resource File for OCContextMenu, adjust (c) dates. 2015-01-29 16:37:51 +01:00
stdafx.cpp WiP: Add Win32 Context menu integration 2015-01-22 18:45:20 +01:00
stdafx.h [shell_integration] Setup precompiled headers properly with MSVC 2015-02-05 15:14:42 +01:00
targetver.h [shell_integration] Remove the usage of Win32 APIs not available on XP 2015-02-05 15:15:05 +01:00