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

Tells whether a specified item belongs to the Windows Recycle Bin.

Parameters
pParentFolderA pointer to the parent shell folder.
pidlA reference to PIDL.