{"id":41483,"date":"2003-12-16T10:50:00","date_gmt":"2003-12-16T10:50:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2003\/12\/16\/the-unsafe-device-removal-dialog\/"},"modified":"2003-12-16T10:50:00","modified_gmt":"2003-12-16T10:50:00","slug":"the-unsafe-device-removal-dialog","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20031216-00\/?p=41483","title":{"rendered":"The unsafe device removal dialog"},"content":{"rendered":"<p>In a comment, somebody asked what the deal was with the unsafe device removal dialog in Windows 2000 and why it&#8217;s gone in Windows XP.\n I wasn&#8217;t involved with that dialog, but here&#8217;s what I remember: The device was indeed removed unsafely. If it was a USB storage device, for example, there may have been unflushed I\/O buffers. If it were a printer, there may have been an active print job. The USB stack doesn&#8217;t know for sure (those are concepts at a higher layer that the stack doesn&#8217;t know about) &#8211; all it knows is that it had an active channel with the device and now the device is gone, so it gets upset and yells at you.<\/p>\n<p> In Windows XP, it still gets upset but it now keeps its mouth shut. You&#8217;re now on your honor not to rip out your USB drive before waiting two seconds for all I\/O to flush, not to unplug your printer while a job is printing, etc. If you do, then your drive gets corrupted \/ print job is lost \/ etc. and you&#8217;re on your own. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a comment, somebody asked what the deal was with the unsafe device removal dialog in Windows 2000 and why it&#8217;s gone in Windows XP. I wasn&#8217;t involved with that dialog, but here&#8217;s what I remember: The device was indeed removed unsafely. If it was a USB storage device, for example, there may have been [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[2],"class_list":["post-41483","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-history"],"acf":[],"blog_post_summary":"<p>In a comment, somebody asked what the deal was with the unsafe device removal dialog in Windows 2000 and why it&#8217;s gone in Windows XP. I wasn&#8217;t involved with that dialog, but here&#8217;s what I remember: The device was indeed removed unsafely. If it was a USB storage device, for example, there may have been [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/41483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=41483"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/41483\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=41483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=41483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=41483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}