CDRF_NOTIFYITEMERASE is not declared in Win32 headers and doesn't appear to be supported. All my attempts to get CDDS_ITEMPREERASE or CDDS_ITEMPOSTERASE messages by combining together notification flags myself have failed. Someone correct me if I'm wrong.