Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.

SHChangeNotifyRegister and windows XP

Skip to first unread message

Nikos Bozinis

May 13, 2002, 10:57:13 AM5/13/02
I've been experimenting with the infamous & undocumented
SHChangeNotifyRegister as described in

I have discovered that when this is used to monitor a pidl _without_ the
SHCNF_NO_PROXY flag then windows XP leaks one window handle per call,
even though SHChangeNotifyDeregister is called to free the handle

the same code works without leaks in all other windows platforms I've
tried (98/NT4/2000). Interestingly, the hidden windows responsible for
the transfer of the shell notification data from the memory mapped file
are called "Shell32HiddenNotfyWnd" in the old OS versions, whereas the
leaky XP version calls these "WorkerW"

The leak is cured when SHCNF_NO_PROXY is specified.

I know I can't be fussy about undocumented features, but I thought that
the shell team should know just in case something went amiss.

0 new messages