Jump to content
  • Advertisement
Sign in to follow this  
Shnoutz

Windows file modification callback

This topic is 4890 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I eared that there is a way (some functions) to ask windows to notifiy your application that a file as been modified... It would be nice to have such a feature to automatically reload texture and meshes.. Does anyone knows how to do that ?

Share this post


Link to post
Share on other sites
Advertisement
You probably want to use the SHChangeNotifyRegister() function, with the SHChangeNotifyEntry structure set to use a PIDL to the directory that you want notifications about.

Share this post


Link to post
Share on other sites
A little off topic, but Google desktop search will also let you do this. You can write a filter that recives a callback from the Desktop indexer when it finds out that a file of the type you register has been created or modified.

Cheers
Chris

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!