{"id":8383,"date":"2012-02-03T07:00:00","date_gmt":"2012-02-03T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2012\/02\/03\/the-compatibility-constraints-of-error-codes-episode-2\/"},"modified":"2012-02-03T07:00:00","modified_gmt":"2012-02-03T07:00:00","slug":"the-compatibility-constraints-of-error-codes-episode-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20120203-00\/?p=8383","title":{"rendered":"The compatibility constraints of error codes, episode 2"},"content":{"rendered":"<p>A customer reported an incompatibility in Windows&nbsp;7: If A: is a floppy drive and they call <code>Load&shy;Library(\"A:\\\\foo.dll\")<\/code> and there is no disk in the drive, the <code>Load&shy;Library<\/code> call fails with the error <code>ERROR_NOT_READY<\/code>. Previous versions of Windows failed with the error <code>ERROR_MOD_NOT_FOUND<\/code>.\n Both error codes are reasonable responses to the situation. &#8220;The module couldn&#8217;t be found because the drive is not ready.&#8221; Programs should treat a failed <code>Load&shy;Library<\/code> as a failed library load and shouldn&#8217;t be sensitive to the precise reason for the error. (They can display a more specific error to the user based on the error code, but overall program logic shouldn&#8217;t depend on the error code.)\n Fortunately, the customer discovered this discrepancy during their pre-release testing and were able to accommodate this change in their program before ever releasing it. A sigh of relief from the application compatibility team.<\/p>\n<p> <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2005\/01\/18\/355177.aspx\"> Episode 1<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A customer reported an incompatibility in Windows&nbsp;7: If A: is a floppy drive and they call Load&shy;Library(&#8220;A:\\\\foo.dll&#8221;) and there is no disk in the drive, the Load&shy;Library call fails with the error ERROR_NOT_READY. Previous versions of Windows failed with the error ERROR_MOD_NOT_FOUND. Both error codes are reasonable responses to the situation. &#8220;The module couldn&#8217;t be [&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":[25],"class_list":["post-8383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>A customer reported an incompatibility in Windows&nbsp;7: If A: is a floppy drive and they call Load&shy;Library(&#8220;A:\\\\foo.dll&#8221;) and there is no disk in the drive, the Load&shy;Library call fails with the error ERROR_NOT_READY. Previous versions of Windows failed with the error ERROR_MOD_NOT_FOUND. Both error codes are reasonable responses to the situation. &#8220;The module couldn&#8217;t be [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/8383","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=8383"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/8383\/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=8383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=8383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=8383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}