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

Function GetDisplayName

Explorer++/Helper/ShellHelper.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 const TCHAR *pszArguments, const TCHAR *pszIconPath, int iIcon);
23
24HRESULT GetDisplayName(const TCHAR *szParsingPath, TCHAR *szDisplayName, UINT cchMax, DWORD uFlags)
25{
26 if (szParsingPath == NULL || szDisplayName == NULL)
27 {
28 return E_FAIL;
29 }
30
31 unique_pidl_absolute pidl;
32 HRESULT hr = SHParseDisplayName(szParsingPath, nullptr, wil::out_param(pidl), 0, nullptr);
33
34 if (SUCCEEDED(hr))
35 {
36 hr = GetDisplayName(pidl.get(), szDisplayName, cchMax, uFlags);
37 }
38
39 return hr;
40}
41
42HRESULT GetDisplayName(PCIDLIST_ABSOLUTE pidl, TCHAR *szDisplayName, UINT cchMax, DWORD uFlags)
43{

Callers 15

OnTreeViewCopyMethod · 0.85
OnTreeViewPasteMethod · 0.85
OnBeginDragMethod · 0.85
UpdateWindowTextMethod · 0.85
OpenItemMethod · 0.85

Calls 2

getMethod · 0.45
ReleaseMethod · 0.45

Tested by 2

TESTFunction · 0.68