<ahref="#pub-methods">Public Member Functions</a>|
<ahref="#pro-methods">Protected Member Functions</a>|
<ahref="classcrashpad_1_1MinidumpSystemInfoWriter-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::MinidumpSystemInfoWriter Class Reference<spanclass="mlabels"><spanclass="mlabel">final</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p>The writer for a <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html"title="Information about the system that hosted the process that the minidump file contains a snapshot of...">MINIDUMP_SYSTEM_INFO</a> stream in a minidump file.
<areahref="classcrashpad_1_1internal_1_1MinidumpStreamWriter.html"title="The base class for all second-level objects (“streams”) in a minidump file. "alt="crashpad::internal::MinidumpStreamWriter"shape="rect"coords="0,56,246,80"/>
<areahref="classcrashpad_1_1internal_1_1MinidumpWritable.html"title="The base class for all content that might be written to a minidump file. "alt="crashpad::internal::MinidumpWritable"shape="rect"coords="0,0,246,24"/>
<trclass="memdesc:ad0222dd0c83b9e871e9e3d38bf7c6e35"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html"title="Information about the system that hosted the process that the minidump file contains a snapshot of...">MINIDUMP_SYSTEM_INFO</a> based on <em>system_snapshot</em>. <ahref="#ad0222dd0c83b9e871e9e3d38bf7c6e35">More...</a><br/></td></tr>
<trclass="memdesc:ada6151637d50c12566dd3afa33f124c9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#adc85b29d7df8943baf1a96af23051ca8"title="The system’s CPU architecture. This may be a PROCESSOR_ARCHITECTURE_* value, or a member of crashpad...">MINIDUMP_SYSTEM_INFO::ProcessorArchitecture</a>. <br/></td></tr>
<trclass="memdesc:a0cb76b350ee80735873d1cf62d811337"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a3abc0dbe8cba11aa22a43ac93c5abd2b"title="General CPU version information. ">MINIDUMP_SYSTEM_INFO::ProcessorLevel</a> and <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#aa694fe31ada0871e7cfec9bac42af93d"title="Specific CPU version information. ">MINIDUMP_SYSTEM_INFO::ProcessorRevision</a>. <br/></td></tr>
<trclass="memdesc:acb3c080de35dfb482a53c52afb268ce9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#ac340b7a265a50ac7744b6aba6d9d87a9"title="The total number of CPUs present in the system. ">MINIDUMP_SYSTEM_INFO::NumberOfProcessors</a>. <br/></td></tr>
<trclass="memdesc:a23b777cb9fec25d87dbfe6f7f6eff2a5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a214e7bd61a89343a80a3c9a265fbbe96"title="The system’s operating system family. This may be a VER_PLATFORM_* value, or a member of crashpad::M...">MINIDUMP_SYSTEM_INFO::PlatformId</a>. <br/></td></tr>
<trclass="memdesc:a06f104f12f85f75ce93e6d0b91e29f9a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a9aac8ed4707ea43563fed1776454bad5"title="The system’s operating system type, which distinguishes between “desktop” or “workstation” syste...">MINIDUMP_SYSTEM_INFO::ProductType</a>. <br/></td></tr>
<trclass="memdesc:a0da71ce933e90133885f5e0880224fb3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#af657b2ed0798f5962ae59e459133d735"title="The system’s operating system version number’s first (major) component. ">MINIDUMP_SYSTEM_INFO::MajorVersion</a>, <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#af83527912e589bbc4d9937f94fb6496c"title="The system’s operating system version number’s second (minor) component. ">MINIDUMP_SYSTEM_INFO::MinorVersion</a>, and <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a2d417f17d4a3c2d5616268288bf47521"title="The system’s operating system version number’s third (build or patch) component. ">MINIDUMP_SYSTEM_INFO::BuildNumber</a>. <br/></td></tr>
<trclass="memdesc:a03097311660ac7960af16a4101cb7157"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Arranges for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a36f5669d9d4f8dc7d5d3ab0132d60943"title="RVA of a MINIDUMP_STRING containing operating system-specific version information. ">MINIDUMP_SYSTEM_INFO::CSDVersionRva</a> to point to a <aclass="el"href="structMINIDUMP__STRING.html"title="A variable-length UTF-16-encoded string carried within a minidump file. ">MINIDUMP_STRING</a> containing the supplied string. <ahref="#a03097311660ac7960af16a4101cb7157">More...</a><br/></td></tr>
<trclass="memdesc:a47dd82bcce181a0b417b41bfbdb52844"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a8b9c73ce707c57a0280a395051f67945"title="A bitfield identifying products installed on the system. This is composed of VER_SUITE_* values...">MINIDUMP_SYSTEM_INFO::SuiteMask</a>. <br/></td></tr>
<trclass="memdesc:a651d0385b402086fc9f0c8bfca695c9d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets <aclass="el"href="unionCPU__INFORMATION.html#a6b072a6cae2e065111ef20acf21e355a">MINIDUMP_SYSTEM_INFO::Cpu::X86CpuInfo::VersionInformation</a> and <aclass="el"href="unionCPU__INFORMATION.html#a044a13c077ea0b3834dd33e4a48027cc">MINIDUMP_SYSTEM_INFO::Cpu::X86CpuInfo::FeatureInformation</a>. <ahref="#a651d0385b402086fc9f0c8bfca695c9d">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_classcrashpad_1_1internal_1_1MinidumpStreamWriter"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classcrashpad_1_1internal_1_1MinidumpStreamWriter')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpStreamWriter.html">crashpad::internal::MinidumpStreamWriter</a></td></tr>
<trclass="memdesc:a3d2658a99963fa9083c07dc2ddc72845 inherit pub_methods_classcrashpad_1_1internal_1_1MinidumpStreamWriter"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a <aclass="el"href="structMINIDUMP__DIRECTORY.html"title="A pointer to a stream within a minidump file. ">MINIDUMP_DIRECTORY</a> entry that serves as a pointer to this stream. <ahref="classcrashpad_1_1internal_1_1MinidumpStreamWriter.html#a3d2658a99963fa9083c07dc2ddc72845">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html">crashpad::internal::MinidumpWritable</a></td></tr>
<trclass="memdesc:a24507e918299cb566c7f15207de83a7f inherit pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes an object and all of its children to a minidump file. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a24507e918299cb566c7f15207de83a7f">More...</a><br/></td></tr>
<trclass="memdesc:a686683d78f099a07e2a1df8e6b567d37 inherit pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Registers a file offset pointer as one that should point to the object on which this method is called. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a686683d78f099a07e2a1df8e6b567d37">More...</a><br/></td></tr>
<trclass="memdesc:aed263c64ecb0597696d080e395af6400 inherit pub_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Registers a location descriptor as one that should point to the object on which this method is called. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#aed263c64ecb0597696d080e395af6400">More...</a><br/></td></tr>
<trclass="memdesc:a76bad6c5eedf1c4c65b89c04e96bc376"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Transitions the object from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a>. <ahref="#a76bad6c5eedf1c4c65b89c04e96bc376">More...</a><br/></td></tr>
<trclass="memdesc:aeb06ceef2f8a02d196e78a2d7e9cb236"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the amount of space that this object will consume when written to a minidump file, in bytes, not including any leading or trailing padding necessary to maintain proper alignment. <ahref="#aeb06ceef2f8a02d196e78a2d7e9cb236">More...</a><br/></td></tr>
<trclass="memdesc:a0c1f4d092efb955f3e6597343eec505d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the object’s children. <ahref="#a0c1f4d092efb955f3e6597343eec505d">More...</a><br/></td></tr>
<trclass="memdesc:a703099c51937c32e4ab063badc858409"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes the object’s content. <ahref="#a703099c51937c32e4ab063badc858409">More...</a><br/></td></tr>
<trclass="inherit_header pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdcolspan="2"onclick="javascript:toggleInherit('pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable')"><imgsrc="closed.png"alt="-"/> Protected Member Functions inherited from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html">crashpad::internal::MinidumpWritable</a></td></tr>
<trclass="memdesc:aed27972114564f99cda1e7648aec807a inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The state of the object. <br/></td></tr>
<trclass="memdesc:a8439e05e21ccb78a4d61cd6e817d3bf5 inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Prepares the object to be written at a known file offset, transitioning it from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a8439e05e21ccb78a4d61cd6e817d3bf5">More...</a><br/></td></tr>
<trclass="memdesc:a2416cb821816b769d95b92e486713ebf inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called once an object’s writable file offset is determined, as it transitions into <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a2416cb821816b769d95b92e486713ebf">More...</a><br/></td></tr>
<trclass="memdesc:ab82b1e92ae0eced8b8e2efe957411773 inherit pro_methods_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes the object, transitioning it from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af0d794ed29c320fcf35c71f40cc6a510"title="The object has been written to a minidump file. ">kStateWritten</a>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#ab82b1e92ae0eced8b8e2efe957411773">More...</a><br/></td></tr>
<trclass="memitem:ac14e05f291f5fa713b5ec82a208fa7c7 inherit pro_types_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7">State</a><trclass="memdesc:ac14e05f291f5fa713b5ec82a208fa7c7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Identifies the state of an object. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7">More...</a><br/></td></tr>
<trclass="memitem:a009f007265d64a5fb416848480a00ae9 inherit pro_types_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#a009f007265d64a5fb416848480a00ae9">Phase</a><trclass="memdesc:a009f007265d64a5fb416848480a00ae9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Identifies the phase during which an object will be written to a minidump file. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#a009f007265d64a5fb416848480a00ae9">More...</a><br/></td></tr>
<trclass="memdesc:ae7c01f317a519213ac16bfeca94125d1 inherit pro_static_attribs_classcrashpad_1_1internal_1_1MinidumpWritable"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A size value used to signal failure by methods that return <code>size_t</code>. <ahref="classcrashpad_1_1internal_1_1MinidumpWritable.html#ae7c01f317a519213ac16bfeca94125d1">More...</a><br/></td></tr>
<divclass="textblock"><p>The writer for a <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html"title="Information about the system that hosted the process that the minidump file contains a snapshot of...">MINIDUMP_SYSTEM_INFO</a> stream in a minidump file. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a> or any subsequent state. </dd></dl>
<p>Reimplemented from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#a32460b7fe2154fbabc3c58bf10dc7861">crashpad::internal::MinidumpWritable</a>.</p>
<p>Transitions the object from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a> to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a>. </p>
<p>The default implementation marks the object as frozen and recursively calls <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#a76bad6c5eedf1c4c65b89c04e96bc376"title="Transitions the object from kStateMutable to kStateFrozen. ">Freeze()</a> on all of its children. Subclasses may override this method to perform processing that should only be done once callers have finished populating an object with data. Typically, a subclass implementation would call <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#a686683d78f099a07e2a1df8e6b567d37"title="Registers a file offset pointer as one that should point to the object on which this method is called...">RegisterRVA()</a> or <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#aed263c64ecb0597696d080e395af6400"title="Registers a location descriptor as one that should point to the object on which this method is called...">RegisterLocationDescriptor()</a> on other objects as appropriate, because at the time <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#a76bad6c5eedf1c4c65b89c04e96bc376"title="Transitions the object from kStateMutable to kStateFrozen. ">Freeze()</a> runs, the in-memory locations of RVAs and location descriptors are known and will not change for the remaining duration of an object’s lifetime.</p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure, with an appropriate message logged. </dd></dl>
<p>Reimplemented from <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpStreamWriter.html#a6bace0c62b1f29aa710974a2bbcb3e1c">crashpad::internal::MinidumpStreamWriter</a>.</p>
<p>Initializes <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html"title="Information about the system that hosted the process that the minidump file contains a snapshot of...">MINIDUMP_SYSTEM_INFO</a> based on <em>system_snapshot</em>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">system_snapshot</td><td>The system snapshot to use as source data.</td></tr>
</table>
</dd>
</dl>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a18337604dcbdbdb23ed51810f0587665"title="The object’s properties can be modified. ">kStateMutable</a>. No mutator methods may be called before this method, and it is not normally necessary to call any mutator methods after this method. </dd></dl>
<p>This is only valid if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to an architecture other than <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a667f84537acd054ce17f527bcd41c885"title="32-bit x86. ">kMinidumpCPUArchitectureX86</a> or <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a492f53b6303f91d08192bbfb9341e3cb"title="A 32-bit x86 process running on IA-64 (Itanium). ">kMinidumpCPUArchitectureX86Win64</a>.</p>
<dlclass="section note"><dt>Note</dt><dd>This method may be called if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a74c0fcddcbf1502d7dedc7cd965550df"title="64-bit x86. ">kMinidumpCPUArchitectureAMD64</a>. </dd></dl>
<p>This is only valid if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a667f84537acd054ce17f527bcd41c885"title="32-bit x86. ">kMinidumpCPUArchitectureX86</a> or <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a492f53b6303f91d08192bbfb9341e3cb"title="A 32-bit x86 process running on IA-64 (Itanium). ">kMinidumpCPUArchitectureX86Win64</a>, and if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#aa0f52f0e9c6cb04580e9bd5d00e16ab7"title="Sets MINIDUMP_SYSTEM_INFO::Cpu::X86CpuInfo::VendorId. ">SetCPUX86Vendor()</a> or <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#a7fccb529258d6de14ed4bf859169d473"title="Sets MINIDUMP_SYSTEM_INFO::Cpu::X86CpuInfo::VendorId. ">SetCPUX86VendorString()</a> has been used to set the CPU vendor to “AuthenticAMD”.</p>
<dlclass="section note"><dt>Note</dt><dd>Do not call this method if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a74c0fcddcbf1502d7dedc7cd965550df"title="64-bit x86. ">kMinidumpCPUArchitectureAMD64</a>. </dd></dl>
<p>This is only valid if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a667f84537acd054ce17f527bcd41c885"title="32-bit x86. ">kMinidumpCPUArchitectureX86</a> or <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a492f53b6303f91d08192bbfb9341e3cb"title="A 32-bit x86 process running on IA-64 (Itanium). ">kMinidumpCPUArchitectureX86Win64</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">ebx</td><td>The first 4 bytes of the CPU vendor string, the value reported in <code>cpuid 0</code><code>ebx</code>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">edx</td><td>The middle 4 bytes of the CPU vendor string, the value reported in <code>cpuid 0</code><code>edx</code>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">ecx</td><td>The last 4 bytes of the CPU vendor string, the value reported by <code>cpuid 0</code><code>ecx</code>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section note"><dt>Note</dt><dd>Do not call this method if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a74c0fcddcbf1502d7dedc7cd965550df"title="64-bit x86. ">kMinidumpCPUArchitectureAMD64</a>.</dd></dl>
<p>This is only valid if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a667f84537acd054ce17f527bcd41c885"title="32-bit x86. ">kMinidumpCPUArchitectureX86</a> or <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a492f53b6303f91d08192bbfb9341e3cb"title="A 32-bit x86 process running on IA-64 (Itanium). ">kMinidumpCPUArchitectureX86Win64</a>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">vendor</td><td>The entire CPU vendor string, which must be exactly 12 bytes long.</td></tr>
</table>
</dd>
</dl>
<dlclass="section note"><dt>Note</dt><dd>Do not call this method if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a74c0fcddcbf1502d7dedc7cd965550df"title="64-bit x86. ">kMinidumpCPUArchitectureAMD64</a>.</dd></dl>
<p>Sets <aclass="el"href="unionCPU__INFORMATION.html#a6b072a6cae2e065111ef20acf21e355a">MINIDUMP_SYSTEM_INFO::Cpu::X86CpuInfo::VersionInformation</a> and <aclass="el"href="unionCPU__INFORMATION.html#a044a13c077ea0b3834dd33e4a48027cc">MINIDUMP_SYSTEM_INFO::Cpu::X86CpuInfo::FeatureInformation</a>. </p>
<p>This is only valid if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a667f84537acd054ce17f527bcd41c885"title="32-bit x86. ">kMinidumpCPUArchitectureX86</a> or <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a492f53b6303f91d08192bbfb9341e3cb"title="A 32-bit x86 process running on IA-64 (Itanium). ">kMinidumpCPUArchitectureX86Win64</a>.</p>
<dlclass="section note"><dt>Note</dt><dd>Do not call this method if <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#ada6151637d50c12566dd3afa33f124c9"title="Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. ">SetCPUArchitecture()</a> has been used to set the CPU architecture to <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a74c0fcddcbf1502d7dedc7cd965550df"title="64-bit x86. ">kMinidumpCPUArchitectureAMD64</a>. </dd></dl>
<p>Arranges for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a36f5669d9d4f8dc7d5d3ab0132d60943"title="RVA of a MINIDUMP_STRING containing operating system-specific version information. ">MINIDUMP_SYSTEM_INFO::CSDVersionRva</a> to point to a <aclass="el"href="structMINIDUMP__STRING.html"title="A variable-length UTF-16-encoded string carried within a minidump file. ">MINIDUMP_STRING</a> containing the supplied string. </p>
<p>This method must be called prior to <aclass="el"href="classcrashpad_1_1MinidumpSystemInfoWriter.html#a76bad6c5eedf1c4c65b89c04e96bc376"title="Transitions the object from kStateMutable to kStateFrozen. ">Freeze()</a>. A CSD version is required in all <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html"title="Information about the system that hosted the process that the minidump file contains a snapshot of...">MINIDUMP_SYSTEM_INFO</a> streams. An empty string is an acceptable value. </p>
<p>Returns the amount of space that this object will consume when written to a minidump file, in bytes, not including any leading or trailing padding necessary to maintain proper alignment. </p>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af98547144e0e8d4f878f725ef5c0d611"title="The object is “frozen”. ">kStateFrozen</a> or any subsequent state. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file_writer</td><td>The file writer to receive the object’s content.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on error, indicating that the content could not be written to the minidump file.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>Valid in <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7a87483823ca30a8257b2a5fbd21805bcd"title="The object is writable. ">kStateWritable</a>. The object will transition to <aclass="el"href="classcrashpad_1_1internal_1_1MinidumpWritable.html#ac14e05f291f5fa713b5ec82a208fa7c7af0d794ed29c320fcf35c71f40cc6a510"title="The object has been written to a minidump file. ">kStateWritten</a> after this method returns. </dd></dl>