{"id":99945,"date":"2018-10-11T07:00:00","date_gmt":"2018-10-11T21:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/?p=99945"},"modified":"2019-03-13T00:21:57","modified_gmt":"2019-03-13T07:21:57","slug":"20181011-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20181011-00\/?p=99945","title":{"rendered":"How can I include\/exclude specific memory blocks in user-mode crash dumps?"},"content":{"rendered":"<p>You can tweak the information included in crash dumps created by Windows Error Reporting. <\/p>\n<p>To request that Windows Error Reporting include a dump of another process if the calling process crashes, use <a HREF=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/werapi\/nf-werapi-werregisteradditionalprocess\">the <code>Wer&shy;Register&shy;Additional&shy;Process<\/code> function<\/a>. This is useful if your program is split up into multiple processes. <\/p>\n<p>You can add additional key\/value pairs of data with <a HREF=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/werapi\/nf-werapi-werregistercustommetadata\">the Wer&shy;Register&shy;Custom&shy;Metadata<\/code> function<\/a>. This information can be used to help categorize and filter crash dumps automatically. For example, you might include metadata that says whether the app is running in trial mode. <\/p>\n<p>You can add a block of memory to user-mode crash dumps (heap dumps or larger), with <a HREF=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/werapi\/nf-werapi-werregistermemoryblock\">the Wer&shy;Register&shy;Memory&shy;Block<\/code> function<\/a>. Note that this memory will be captured in the dump, but it&#8217;s not the same as metadata because you can&#8217;t filter on it. <\/p>\n<p>Conversely, you can exclude a block of memory from user-mode crash dumps with <a HREF=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/api\/werapi\/nf-werapi-werregisterexcludedmemoryblock\">the Wer&shy;Register&shy;Excluded&shy;Memory&shy;Block<\/code> function<\/a>. This is handy if you have large memory blocks containing information that isn&#8217;t all that interesting from a debugging standpoint, like video texture buffers or audio output buffers. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add it to the inclusion or exclusion list.<\/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-99945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Add it to the inclusion or exclusion list.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/99945","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=99945"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/99945\/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=99945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=99945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=99945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}