IMAGE_DOS_HEADER構造体

宣言文
Type IMAGE_DOS_HEADER
    e_magic As Integer                              Magic number(=0x5A4D)
    e_cblp As Integer                               最終ページのバイト数
    e_cp As Integer                                 ファイルのページ数
    e_crlc As Integer                               リロケートする項目数
    e_cparhdr As Integer                            ヘッダの大きさ(16バイト・パラグラフ)
    e_minalloc As Integer                           ロードされたプログラムの後ろに最小限必要な16バイト・パラグラフ
    e_maxalloc As Integer                           ロードされたプログラムの後ろに最大限必要な16バイト・パラグラフ
    e_ss As Integer                                 ロードされたプログラムのスタック・セグメントのオフセット
    e_sp As Integer                                 SPレジスタに設定される値
    e_csum As Integer                               ファイル内のワード単位によるネガティブ・サム
    e_ip As Integer                                 IPレジスタに設定される値
    e_cs As Integer                                 ロードされたプログラムのコード・セグメントのオフセット
    e_lfarlc As Integer                             最初のリロケーション項目のオフセット
    e_onvo As Integer                               オーバレイ番号
    e_res(3) As Integer                             予約済み
    e_oemid As Integer                              OEMのID
    e_oeminfo As Integer                            e_oemidの情報
    e_res2(9) As Integer                            予約済み
    e_lfanew As Long                                New EXEヘッダーのファイルアドレス
End Type
Structure IMAGE_DOS_HEADER
    e_magic As Short                              Magic number(=0x5A4D)
    e_cblp As Short                               最終ページのバイト数
    e_cp As Short                                 ファイルのページ数
    e_crlc As Short                               リロケートする項目数
    e_cparhdr As Short                            ヘッダの大きさ(16バイト・パラグラフ)
    e_minalloc As Short                           ロードされたプログラムの後ろに最小限必要な16バイト・パラグラフ
    e_maxalloc As Short                           ロードされたプログラムの後ろに最大限必要な16バイト・パラグラフ
    e_ss As Short                                 ロードされたプログラムのスタック・セグメントのオフセット
    e_sp As Short                                 SPレジスタに設定される値
    e_csum As Short                               ファイル内のワード単位によるネガティブ・サム
    e_ip As Short                                 IPレジスタに設定される値
    e_cs As Short                                 ロードされたプログラムのコード・セグメントのオフセット
    e_lfarlc As Short                             最初のリロケーション項目のオフセット
    e_onvo As Short                               オーバレイ番号
    e_res(3) As Short                             予約済み
    e_oemid As Short                              OEMのID
    e_oeminfo As Short                            e_oemidの情報
    e_res2(9) As Short                            予約済み
    e_lfanew As Integer                                New EXEヘッダーのファイルアドレス
End Structure