Help and Support

FindFirstChangeNotification May Not Notify All Processes on File Changes

Article ID:188321
Last Review:October 31, 2006
Revision:1.1
This article was previously published under Q188321

SYMPTOMS

The FindFirstChangeNotification call may not notify all processes that have sent a notify request on the same directory. This may occur if the directory is on a remote computer.

Back to the top

CAUSE

This problem occurs because of an optimization in the redirector if multiple processes open the same directory across the network. What the redirector may do is only open one handle to the remote directory. This causes the notify request to behave as though the notify requests were all sent to the same handle. By design, only one request will be notified per directory change per handle.

Back to the top

RESOLUTION

To receive multiple notify requests across the network, the user who runs the program must have the "backup file and directories" user right. Then the program must set the privilege using the AdjustTokenPrivileges call. This is because the FindFirstChangeNotification API sets the FILE_OPEN_FOR_BACKUP_INTENT in its create packet. This is to prevent the optimization mentioned above from occurring. However, the "backup file and directories" privilege must be turned on for it to work.

Back to the top


APPLIES TO
Microsoft Windows NT Workstation 4.0 Developer Edition
Microsoft Windows NT Server 4.0 Standard Edition

Back to the top

Keywords: 
kbprb KB188321

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.