tell filesystem to reload after I write
-
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
-
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
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
-
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
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
-
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
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!)