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

Function GetVirtualParentPath

Explorer++/Helper/ShellHelper.cpp:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166HRESULT GetVirtualParentPath(PCIDLIST_ABSOLUTE pidlDirectory, PIDLIST_ABSOLUTE *pidlParent)
167{
168 if (IsNamespaceRoot(pidlDirectory))
169 {
170 *pidlParent = NULL;
171 return E_FAIL;
172 }
173 else
174 {
175 *pidlParent = ILCloneFull(pidlDirectory);
176 ILRemoveLastID(*pidlParent);
177 return S_OK;
178 }
179}
180
181BOOL IsNamespaceRoot(PCIDLIST_ABSOLUTE pidl)
182{

Callers 3

OnNavigateUpMethod · 0.85
OnOpenParentInNewTabMethod · 0.85
GoUpMethod · 0.85

Calls 1

IsNamespaceRootFunction · 0.85

Tested by

no test coverage detected