Quote Originally Posted by fafalone View Post
Code:
tCNE.pidl = VarPtr(0) 'this is a shortcut for the pidl of the desktop; this is to watch every folder/object
Are you sure that's safe to do? Assigning the address of a temporary Integer to tCNE.pidl probably works fine most of the time, but I'm not so sure it's totally bulletproof.

Quote Originally Posted by fafalone View Post
Code:
SHCNRF_NewDelivery = &H8000
That literal value should have the type-declaration character for Longs (&) appended to it (just like the value assigned to SHCNE_UPDATEIMAGE), otherwise VB will treat it as a negative Integer value.