BCGControlBar Pro for MFC
BOOL CBCGPShellTree::RegisterShellNotification ( LONG  fEvents = 0)

Specify whether this controls should receive Windows shell notification and update the content.

Parameters
fEventsCombination of file system notification flags that will be used for the shell notifications. By default, the following combimation will be used: SHCNE_RENAMEFOLDER | SHCNE_RMDIR | SHCNE_MKDIR | SHCNE_DRIVEADD | SHCNE_DRIVEREMOVED | SHCNE_MEDIAINSERTED | SHCNE_MEDIAREMOVED
Returns
TRUE if it succeeds, FALSE if it fails.