MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / CanCreate

Method CanCreate

Explorer++/Explorer++/ShellBrowser/ShellBrowser.cpp:712–725  ·  view source on GitHub ↗

We can create files in this folder if it is part of the filesystem, or if it is the root of the namespace (i.e. the desktop). */

Source from the content-addressed store, hash-verified

710part of the filesystem, or if it is the root of
711the namespace (i.e. the desktop). */
712BOOL ShellBrowser::CanCreate() const
713{
714 BOOL bCanCreate = FALSE;
715 unique_pidl_absolute pidl;
716 HRESULT hr = SHGetFolderLocation(nullptr, CSIDL_DESKTOP, nullptr, 0, wil::out_param(pidl));
717
718 if (SUCCEEDED(hr))
719 {
720 bCanCreate =
721 !InVirtualFolder() || CompareIdls(m_directoryState.pidlDirectory.get(), pidl.get());
722 }
723
724 return bCanCreate;
725}
726
727void ShellBrowser::SetDirMonitorId(int iDirMonitorId)
728{

Callers

nothing calls this directly

Calls 2

CompareIdlsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected