{"id":9823,"date":"2011-08-24T07:00:00","date_gmt":"2011-08-24T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2011\/08\/24\/what-do-sizeofstackreserve-and-sizeofstackcommit-mean-for-a-dll\/"},"modified":"2011-08-24T07:00:00","modified_gmt":"2011-08-24T07:00:00","slug":"what-do-sizeofstackreserve-and-sizeofstackcommit-mean-for-a-dll","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20110824-00\/?p=9823","title":{"rendered":"What do SizeOfStackReserve and SizeOfStackCommit mean for a DLL?"},"content":{"rendered":"<p>Nothing.\n Those fields in the <code>IMAGE_OPTIONAL_HEADER<\/code> structure are meaningful only when they appear in the EXE. The values provided in DLLs are ignored.<\/p>\n<p> <code>Size&shy;Of&shy;Heap&shy;Reserve<\/code> and <code>Size&shy;Of&shy;Heap&shy;Commit<\/code> fall into the same category. In general, flags and fields which control process settings have no effect when declared in a DLL. We&#8217;ve seen a few examples already, like the <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2010\/09\/22\/10065933.aspx\"> <code>\/LARGE&shy;ADDRESS&shy;AWARE<\/code> flag<\/a> or the <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2010\/06\/11\/10023274.aspx\"> markers which indicate the default layout direction<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nothing. Those fields in the IMAGE_OPTIONAL_HEADER structure are meaningful only when they appear in the EXE. The values provided in DLLs are ignored. Size&shy;Of&shy;Heap&shy;Reserve and Size&shy;Of&shy;Heap&shy;Commit fall into the same category. In general, flags and fields which control process settings have no effect when declared in a DLL. We&#8217;ve seen a few examples already, like [&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":[26],"class_list":["post-9823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>Nothing. Those fields in the IMAGE_OPTIONAL_HEADER structure are meaningful only when they appear in the EXE. The values provided in DLLs are ignored. Size&shy;Of&shy;Heap&shy;Reserve and Size&shy;Of&shy;Heap&shy;Commit fall into the same category. In general, flags and fields which control process settings have no effect when declared in a DLL. We&#8217;ve seen a few examples already, like [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/9823","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=9823"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/9823\/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=9823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=9823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=9823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}