Article ID: 198871
Article Last Modified on 7/11/2005
LPITEMIDLIST pidl = NULL;
SHGetSpecialFolderLocation(NULL, CSIDL_CONTROLS, &pidl);
if(pidl)
{
IShellFolder *pDesktop;
SHGetDesktopFolder(&pDesktop);
if(pDesktop)
{
STRRET str;
TCHAR szText[MAX_PATH];
pDesktop->GetDisplayNameOf( pidl,
SHGDN_FORPARSING,
&str);
pDesktop->Release();
}
}
returns a name such as:
::{<GUID for My Computer>}\{<GUID for Control Panel>}
Control Panel
My Computer\::{GUID for the requested item}
Control Panel
Keywords: kbnamespace kbprb KB198871