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). */
| 710 | part of the filesystem, or if it is the root of |
| 711 | the namespace (i.e. the desktop). */ |
| 712 | BOOL 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 | |
| 727 | void ShellBrowser::SetDirMonitorId(int iDirMonitorId) |
| 728 | { |
nothing calls this directly
no test coverage detected