Программирование для Windows NT (том 2)


         

Анализ DLL-библиотек при помощи программы dumpbin.exe - часть 2


/p>

Для просмотра более подробной информации о секции следует воспользоваться параметром /SECTION:

c:\msdev\bin>dumpbin comdg32.dll /SECTION:.data > lst.txt

Результат выполнения этой команды показан ниже:

Microsoft (R) COFF Binary File Dumper Version 3.10.6038

Copyright (C) Microsoft Corp 1992-1996. All rights reserved.

Dump of file comdlg32.dll

File Type: DLL

SECTION HEADER #3

   .data name

    35E4 virtual size

   1A000 virtual address

     E00 size of raw data

   18C00 file pointer to raw data

       0 file pointer to relocation table

       0 file pointer to line numbers

       0 number of relocations

       0 number of line numbers

C8000040 flags

         Initialized Data

         Not Paged

         (no align specified)

         Read Write

     Summary

        4000 .data

Аналогичная информация о секции .text приведена ниже:

Microsoft (R) COFF Binary File Dumper Version 3.10.6038

Copyright (C) Microsoft Corp 1992-1996. All rights reserved.

Dump of file comdlg32.dll

File Type: DLL

SECTION HEADER #1

   .text name

   16FF9 virtual size

    1000 virtual address

   17000 size of raw data

     400 file pointer to raw data

       0 file pointer to relocation table

       0 file pointer to line numbers

       0 number of relocations

       0 number of line numbers

68000020 flags

         Code

         Not Paged

         (no align specified)

         Execute Read

     Summary

       17000 .text

Для просмотра списка имен экспортируемых функций и глобальных переменных запустите программу dumpbin.exe с параметром /EXPORTS:

c:\msdev\bin>dumpbin comdg32.dll /EXPORTS > lst.txt

Список появится в следующем виде:

Microsoft (R) COFF Binary File Dumper Version 3.10.6038

Copyright (C) Microsoft Corp 1992-1996. All rights reserved.

Dump of file comdlg32.dll

File Type: DLL

    Section contains the following Exports for comdlg32.dll

                   0 characteristics

            30D0D8ED time date stamp Fri Dec 15 05:09:49 1995




Содержание  Назад  Вперед