Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. tell filesystem to reload after I write

tell filesystem to reload after I write

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Henry miller
    wrote on last edited by
    #1

    I've written an ISO 9660 burner application, which works, but after I burn a disk I need to eject and reinsert the disk before windows sees the new files. How do I tell windows to reload the filesystem? I've found SHChangeNotify which seems like what I should use, but no combonation of option does anything that I can see. SHChagneNotify(SHCNE_ALLEVENTS,SHCNF_PATH,zdDrive,NULL); seems like it should be overkill but it doens't work. Lesser options don't work. In particular sending media removed then media inserted didn't work. Nor did various updateItem combonations. Am I on the wrong track? Are there other options I should give? I also send a message to explorer, which seems like it might be working (the window closes when I send a media removed), but the contents don't change when I look. Nor does a dir at the command prompt get anything. I

    R M 2 Replies Last reply
    0
    • H Henry miller

      I've written an ISO 9660 burner application, which works, but after I burn a disk I need to eject and reinsert the disk before windows sees the new files. How do I tell windows to reload the filesystem? I've found SHChangeNotify which seems like what I should use, but no combonation of option does anything that I can see. SHChagneNotify(SHCNE_ALLEVENTS,SHCNF_PATH,zdDrive,NULL); seems like it should be overkill but it doens't work. Lesser options don't work. In particular sending media removed then media inserted didn't work. Nor did various updateItem combonations. Am I on the wrong track? Are there other options I should give? I also send a message to explorer, which seems like it might be working (the window closes when I send a media removed), but the contents don't change when I look. Nor does a dir at the command prompt get anything. I

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Henry miller wrote: I've written an ISO 9660 burner application, which works, Very cool! :cool: Any chance of turning the CD burning part into a CP article? Thanks in advance! /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

      H 1 Reply Last reply
      0
      • H Henry miller

        I've written an ISO 9660 burner application, which works, but after I burn a disk I need to eject and reinsert the disk before windows sees the new files. How do I tell windows to reload the filesystem? I've found SHChangeNotify which seems like what I should use, but no combonation of option does anything that I can see. SHChagneNotify(SHCNE_ALLEVENTS,SHCNF_PATH,zdDrive,NULL); seems like it should be overkill but it doens't work. Lesser options don't work. In particular sending media removed then media inserted didn't work. Nor did various updateItem combonations. Am I on the wrong track? Are there other options I should give? I also send a message to explorer, which seems like it might be working (the window closes when I send a media removed), but the contents don't change when I look. Nor does a dir at the command prompt get anything. I

        M Offline
        M Offline
        Marcello
        wrote on last edited by
        #3

        Did you notice that some applications like yours they eject the CD when they are finished ? And then they close the tray again ? Like Nero. Maybe because of the same problem you have. And most of applications playing music ( even Windows Media Player and NeroMix ) have the same problem. They have problems to automatically update their music list once he CD is inserted. It doens';t always work. M

        1 Reply Last reply
        0
        • R Ravi Bhavnani

          Henry miller wrote: I've written an ISO 9660 burner application, which works, Very cool! :cool: Any chance of turning the CD burning part into a CP article? Thanks in advance! /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

          H Offline
          H Offline
          Henry miller
          wrote on last edited by
          #4

          I don't think my boss would agree to sharing our source code, which makes an artical less interesting. Although we did agree that we should write a book on how to do this. Writing a CD is easy enough, but keeping track of each different option for each different media can be a pain (CD-R, CD-RW which might be MRW formatted, DVD-R, DVD-RW either sequential recording or restricted overright, DVD-RAM, DVD+R, and DVD+RW) There is no model that is common between all of the above. I did not use all the possible modes, so I'm not sure how to use them all. If you think there is a useful artical here I'll write it (but no source code will be included!)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups