SHChangeNotifyRegister
A version of this page is also available for
4/8/2010
This function enlists a window for receiving change notifications.
Syntax
BOOL WINAPI SHChangeNotifyRegister(
HWND hwnd,
SHCHANGENOTIFYENTRY * pshcne
);
Parameters
- hwnd
[in] Handle to the window that will receive the WM_FILECHANGEINFO message.
- pshcne
[in] Pointer to a SHCHANGENOTIFYENTRY structure identifying the types of events for which the window should receive change notifications. Set to NULL and the window will receive all file system, network, and media notifications.
Return Value
This function returns FALSE when it fails.
Remarks
SHChangeNotifyRegister does not recognize recursive notifications.
For this structure is defined in the Shlobj.h header file and ceshell.lib DLL.
Requirements
Header | aygshell.h |
Library | aygshell.lib |
Windows Embedded CE | Windows CE .NET 4.2 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
FILECHANGENOTIFY
SHCHANGENOTIFYENTRY
SHChangeNotifyDeregister
SHChangeNotifyRegister
WM_FILECHANGEINFO