4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windows > バイナリエディタ > 構造体の情報を得る

Last updated at Posted at 2015-03-23

動作確認

Windows 8.1

バイナリエディタで任意の構造体の値を読めるものを探していたら、以下のものを見つけた。

Binary Editor BZ
Link

例として、[ツール]-[BZ.DEFの編集]において、以下のような構造体を定義する。

struct BootPartitionHeader {
    dword	ImageWordLen;
    dword	DataWordLen;
    dword	PartitionWordLen;
    dword	LoadAddr;
    dword	ExecAddr;
    dword	PartitionStart;
    dword	PartitionAttr;
    dword	SectionCount;
    dword	Pads[7];
    dword	CheckSum;
} BootPartitionHeader;

あとは[表示]-[構造体表示]を選択して、左側に表示される「Structures」のうち、読みたい構造体を選択し、右側のHEX表示の部分で任意の場所をダブルクリックすると構造体のメンバの値が読み取れる。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?