BCGControlBar Pro for MFC
BOOL CBCGPShellManager::IsControlPanel ( IShellFolder *  pParentFolder,
LPITEMIDLIST &  pidl 
)

Tells whether a specified item belongs to the Windows Control Panel.

Parameters
pParentFolderA pointer to the parent shell folder.
pidlA reference to PIDL.
Returns
TRUE if this a Control Panel item, FALSE if not.