ReactOS  0.4.12-dev-36-g472787f
pedump.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include <malloc.h>
#include <ctype.h>
Include dependency graph for pedump.c:

Go to the source code of this file.

Classes

struct  _IMAGE_DOS_HEADER
 
struct  _IMAGE_FILE_HEADER
 
struct  _IMAGE_DATA_DIRECTORY
 
struct  _IMAGE_OPTIONAL_HEADER
 
struct  _IMAGE_NT_HEADERS
 
struct  _IMAGE_SECTION_HEADER
 
struct  _IMAGE_EXPORT_DIRECTORY
 
struct  _IMAGE_IMPORT_BY_NAME
 
struct  _IMAGE_RESOURCE_DIRECTORY
 
struct  _IMAGE_RESOURCE_DIRECTORY_ENTRY
 
struct  _IMAGE_RESOURCE_DIRECTORY_STRING
 
struct  _IMAGE_RESOURCE_DIR_STRING_U
 
struct  _IMAGE_RESOURCE_DATA_ENTRY
 
struct  _IMAGE_MENU_HEADER
 
struct  _IMAGE_POPUP_MENU_ITEM
 
struct  _IMAGE_NORMAL_MENU_ITEM
 
struct  _IMAGE_DIALOG_BOX_HEADER1
 
union  _NAME_OR_ORDINAL
 
struct  _NAME_OR_ORDINAL::_ORD_ID
 
struct  _IMAGE_CONTROL_DATA
 
struct  _IMAGE_DEBUG_DIRECTORY
 
struct  _IMAGE_DEBUG_MISC
 
struct  _IMAGE_SEPARATE_DEBUG_HEADER
 
struct  tagImportDirectory
 
struct  _Str_P
 

Macros

#define bcopy(s, d, z)   memcpy((d),(s),(z))
 
#define VOID   void
 
#define BOOLEAN   boolean
 
#define NULL   0
 
#define FALSE   0
 
#define TRUE   1
 
#define CONST   const
 
#define LOWORD(l)   ((WORD)(l))
 
#define WINAPI   __stdcall
 
#define IMAGE_DOS_SIGNATURE   0x5A4D
 
#define IMAGE_OS2_SIGNATURE   0x454E
 
#define IMAGE_OS2_SIGNATURE_LE   0x454C
 
#define IMAGE_VXD_SIGNATURE   0x454C
 
#define IMAGE_NT_SIGNATURE   0x00004550
 
#define IMAGE_SIZEOF_FILE_HEADER   20
 
#define IMAGE_FILE_RELOCS_STRIPPED   0x0001
 
#define IMAGE_FILE_EXECUTABLE_IMAGE   0x0002
 
#define IMAGE_FILE_LINE_NUMS_STRIPPED   0x0004
 
#define IMAGE_FILE_LOCAL_SYMS_STRIPPED   0x0008
 
#define IMAGE_FILE_BYTES_REVERSED_LO   0x0080
 
#define IMAGE_FILE_32BIT_MACHINE   0x0100
 
#define IMAGE_FILE_DEBUG_STRIPPED   0x0200
 
#define IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP   0x0400
 
#define IMAGE_FILE_NET_RUN_FROM_SWAP   0x0800
 
#define IMAGE_FILE_SYSTEM   0x1000
 
#define IMAGE_FILE_DLL   0x2000
 
#define IMAGE_FILE_UP_SYSTEM_ONLY   0x4000
 
#define IMAGE_FILE_BYTES_REVERSED_HI   0x8000
 
#define IMAGE_FILE_MACHINE_UNKNOWN   0
 
#define IMAGE_FILE_MACHINE_I386   0x14c
 
#define IMAGE_FILE_MACHINE_R3000   0x162
 
#define IMAGE_FILE_MACHINE_R4000   0x166
 
#define IMAGE_FILE_MACHINE_R10000   0x168
 
#define IMAGE_FILE_MACHINE_ALPHA   0x184
 
#define IMAGE_FILE_MACHINE_POWERPC   0x1F0
 
#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES   16
 
#define IMAGE_DIRECTORY_ENTRY_EXPORT   0
 
#define IMAGE_DIRECTORY_ENTRY_IMPORT   1
 
#define IMAGE_DIRECTORY_ENTRY_RESOURCE   2
 
#define IMAGE_DIRECTORY_ENTRY_EXCEPTION   3
 
#define IMAGE_DIRECTORY_ENTRY_SECURITY   4
 
#define IMAGE_DIRECTORY_ENTRY_BASERELOC   5
 
#define IMAGE_DIRECTORY_ENTRY_DEBUG   6
 
#define IMAGE_DIRECTORY_ENTRY_COPYRIGHT   7
 
#define IMAGE_DIRECTORY_ENTRY_GLOBALPTR   8
 
#define IMAGE_DIRECTORY_ENTRY_TLS   9
 
#define IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG   10
 
#define IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT   11
 
#define IMAGE_DIRECTORY_ENTRY_IAT   12
 
#define IMAGE_SIZEOF_SHORT_NAME   8
 
#define IMAGE_SIZEOF_SECTION_HEADER   40
 
#define IMAGE_ORDINAL_FLAG   0x80000000
 
#define IMAGE_ORDINAL(Ordinal)   (Ordinal & 0xffff)
 
#define RT_NEWRESOURCE   0x2000
 
#define RT_ERROR   0x7fff
 
#define RT_CURSOR   1
 
#define RT_BITMAP   2
 
#define RT_ICON   3
 
#define RT_MENU   4
 
#define RT_DIALOG   5
 
#define RT_STRING   6
 
#define RT_FONTDIR   7
 
#define RT_FONT   8
 
#define RT_ACCELERATORS   9
 
#define RT_RCDATA   10
 
#define RT_MESSAGETABLE   11
 
#define RT_GROUP_CURSOR   12
 
#define RT_GROUP_ICON   14
 
#define RT_VERSION   16
 
#define NEWBITMAP   (RT_BITMAP|RT_NEWRESOURCE)
 
#define NEWMENU   (RT_MENU|RT_NEWRESOURCE)
 
#define NEWDIALOG   (RT_DIALOG|RT_NEWRESOURCE)
 
#define IMAGE_RESOURCE_NAME_IS_STRING   0x80000000
 
#define IMAGE_RESOURCE_DATA_IS_DIRECTORY   0x80000000
 
#define GRAYED   0x0001
 
#define INACTIVE   0x0002
 
#define BITMAP   0x0004
 
#define OWNERDRAW   0x0100
 
#define CHECKED   0x0008
 
#define POPUP   0x0010
 
#define MENUBARBREAK   0x0020
 
#define MENUBREAK   0x0040
 
#define ENDMENU   0x0080
 
#define BUTTON   0x80
 
#define EDIT   0x81
 
#define STATIC   0x82
 
#define LISTBOX   0x83
 
#define SCROLLBAR   0x84
 
#define COMBOBOX   0x85
 
#define WS_OVERLAPPED   0x00000000L
 
#define WS_POPUP   0x80000000L
 
#define WS_CHILD   0x40000000L
 
#define WS_CLIPSIBLINGS   0x04000000L
 
#define WS_CLIPCHILDREN   0x02000000L
 
#define WS_VISIBLE   0x10000000L
 
#define WS_DISABLED   0x08000000L
 
#define WS_MINIMIZE   0x20000000L
 
#define WS_MAXIMIZE   0x01000000L
 
#define WS_CAPTION   0x00C00000L
 
#define WS_BORDER   0x00800000L
 
#define WS_DLGFRAME   0x00400000L
 
#define WS_VSCROLL   0x00200000L
 
#define WS_HSCROLL   0x00100000L
 
#define WS_SYSMENU   0x00080000L
 
#define WS_THICKFRAME   0x00040000L
 
#define WS_MINIMIZEBOX   0x00020000L
 
#define WS_MAXIMIZEBOX   0x00010000L
 
#define WS_GROUP   0x00020000L
 
#define WS_TABSTOP   0x00010000L
 
#define WS_OVERLAPPEDWINDOW   (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
 
#define WS_POPUPWINDOW   (WS_POPUP | WS_BORDER | WS_SYSMENU)
 
#define WS_CHILDWINDOW   (WS_CHILD)
 
#define WS_TILED   WS_OVERLAPPED
 
#define WS_ICONIC   WS_MINIMIZE
 
#define WS_SIZEBOX   WS_THICKFRAME
 
#define WS_TILEDWINDOW   WS_OVERLAPPEDWINDOW
 
#define WS_EX_DLGMODALFRAME   0x00000001L
 
#define WS_EX_NOPARENTNOTIFY   0x00000004L
 
#define WS_EX_TOPMOST   0x00000008L
 
#define WS_EX_ACCEPTFILES   0x00000010L
 
#define WS_EX_TRANSPARENT   0x00000020L
 
#define BS_PUSHBUTTON   0x00000000L
 
#define BS_DEFPUSHBUTTON   0x00000001L
 
#define BS_CHECKBOX   0x00000002L
 
#define BS_AUTOCHECKBOX   0x00000003L
 
#define BS_RADIOBUTTON   0x00000004L
 
#define BS_3STATE   0x00000005L
 
#define BS_AUTO3STATE   0x00000006L
 
#define BS_GROUPBOX   0x00000007L
 
#define BS_USERBUTTON   0x00000008L
 
#define BS_AUTORADIOBUTTON   0x00000009L
 
#define BS_OWNERDRAW   0x0000000BL
 
#define BS_LEFTTEXT   0x00000020L
 
#define ES_LEFT   0x00000000L
 
#define ES_CENTER   0x00000001L
 
#define ES_RIGHT   0x00000002L
 
#define ES_MULTILINE   0x00000004L
 
#define ES_UPPERCASE   0x00000008L
 
#define ES_LOWERCASE   0x00000010L
 
#define ES_PASSWORD   0x00000020L
 
#define ES_AUTOVSCROLL   0x00000040L
 
#define ES_AUTOHSCROLL   0x00000080L
 
#define ES_NOHIDESEL   0x00000100L
 
#define ES_OEMCONVERT   0x00000400L
 
#define ES_READONLY   0x00000800L
 
#define ES_WANTRETURN   0x00001000L
 
#define LBS_NOTIFY   0x0001L
 
#define LBS_SORT   0x0002L
 
#define LBS_NOREDRAW   0x0004L
 
#define LBS_MULTIPLESEL   0x0008L
 
#define LBS_OWNERDRAWFIXED   0x0010L
 
#define LBS_OWNERDRAWVARIABLE   0x0020L
 
#define LBS_HASSTRINGS   0x0040L
 
#define LBS_USETABSTOPS   0x0080L
 
#define LBS_NOINTEGRALHEIGHT   0x0100L
 
#define LBS_MULTICOLUMN   0x0200L
 
#define LBS_WANTKEYBOARDINPUT   0x0400L
 
#define LBS_EXTENDEDSEL   0x0800L
 
#define LBS_DISABLENOSCROLL   0x1000L
 
#define SS_LEFT   0x00000000L
 
#define SS_CENTER   0x00000001L
 
#define SS_RIGHT   0x00000002L
 
#define SS_ICON   0x00000003L
 
#define SS_BLACKRECT   0x00000004L
 
#define SS_GRAYRECT   0x00000005L
 
#define SS_WHITERECT   0x00000006L
 
#define SS_BLACKFRAME   0x00000007L
 
#define SS_GRAYFRAME   0x00000008L
 
#define SS_WHITEFRAME   0x00000009L
 
#define SS_SIMPLE   0x0000000BL
 
#define SS_LEFTNOWORDWRAP   0x0000000CL
 
#define SS_BITMAP   0x0000000EL
 
#define IMAGE_DEBUG_TYPE_UNKNOWN   0
 
#define IMAGE_DEBUG_TYPE_COFF   1
 
#define IMAGE_DEBUG_TYPE_CODEVIEW   2
 
#define IMAGE_DEBUG_TYPE_FPO   3
 
#define IMAGE_DEBUG_TYPE_MISC   4
 
#define IMAGE_DEBUG_TYPE_EXCEPTION   5
 
#define IMAGE_DEBUG_TYPE_FIXUP   6
 
#define IMAGE_DEBUG_TYPE_OMAP_TO_SRC   7
 
#define IMAGE_DEBUG_TYPE_OMAP_FROM_SRC   8
 
#define IMAGE_SEPARATE_DEBUG_SIGNATURE   0x4944
 
#define IMAGE_SEPARATE_DEBUG_FLAGS_MASK   0x8000
 
#define IMAGE_SEPARATE_DEBUG_MISMATCH   0x8000
 
#define SIZE_OF_NT_SIGNATURE   sizeof (DWORD)
 
#define MAXRESOURCENAME   13
 
#define NTSIGNATURE(a)
 
#define PEFHDROFFSET(a)
 
#define OPTHDROFFSET(a)
 
#define SECHDROFFSET(a)
 
#define MAXSECTIONNUMBER   16
 
#define MAXNAMESTRNUMBER   40
 

Typedefs

typedef char CHAR
 
typedef short WCHAR
 
typedef short SHORT
 
typedef long LONG
 
typedef unsigned short USHORT
 
typedef unsigned long DWORD
 
typedef int BOOL
 
typedef unsigned char BYTE
 
typedef unsigned short WORD
 
typedef BYTEPBYTE
 
typedef WORDPWORD
 
typedef DWORDPDWORD
 
typedef voidLPVOID
 
typedef int boolean
 
typedef struct _IMAGE_DOS_HEADER IMAGE_DOS_HEADER
 
typedef struct _IMAGE_DOS_HEADERPIMAGE_DOS_HEADER
 
typedef struct _IMAGE_FILE_HEADER IMAGE_FILE_HEADER
 
typedef struct _IMAGE_FILE_HEADERPIMAGE_FILE_HEADER
 
typedef struct _IMAGE_DATA_DIRECTORY IMAGE_DATA_DIRECTORY
 
typedef struct _IMAGE_DATA_DIRECTORYPIMAGE_DATA_DIRECTORY
 
typedef struct _IMAGE_OPTIONAL_HEADER IMAGE_OPTIONAL_HEADER
 
typedef struct _IMAGE_OPTIONAL_HEADERPIMAGE_OPTIONAL_HEADER
 
typedef struct _IMAGE_NT_HEADERS IMAGE_NT_HEADERS
 
typedef struct _IMAGE_NT_HEADERSPIMAGE_NT_HEADERS
 
typedef struct _IMAGE_SECTION_HEADER IMAGE_SECTION_HEADER
 
typedef struct _IMAGE_SECTION_HEADERPIMAGE_SECTION_HEADER
 
typedef struct _IMAGE_EXPORT_DIRECTORY IMAGE_EXPORT_DIRECTORY
 
typedef struct _IMAGE_EXPORT_DIRECTORYPIMAGE_EXPORT_DIRECTORY
 
typedef struct _IMAGE_IMPORT_BY_NAME IMAGE_IMPORT_BY_NAME
 
typedef struct _IMAGE_IMPORT_BY_NAMEPIMAGE_IMPORT_BY_NAME
 
typedef struct _IMAGE_RESOURCE_DIRECTORY IMAGE_RESOURCE_DIRECTORY
 
typedef struct _IMAGE_RESOURCE_DIRECTORYPIMAGE_RESOURCE_DIRECTORY
 
typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY IMAGE_RESOURCE_DIRECTORY_ENTRY
 
typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRYPIMAGE_RESOURCE_DIRECTORY_ENTRY
 
typedef struct _IMAGE_RESOURCE_DIRECTORY_STRING IMAGE_RESOURCE_DIRECTORY_STRING
 
typedef struct _IMAGE_RESOURCE_DIRECTORY_STRINGPIMAGE_RESOURCE_DIRECTORY_STRING
 
typedef struct _IMAGE_RESOURCE_DIR_STRING_U IMAGE_RESOURCE_DIR_STRING_U
 
typedef struct _IMAGE_RESOURCE_DIR_STRING_UPIMAGE_RESOURCE_DIR_STRING_U
 
typedef struct _IMAGE_RESOURCE_DATA_ENTRY IMAGE_RESOURCE_DATA_ENTRY
 
typedef struct _IMAGE_RESOURCE_DATA_ENTRYPIMAGE_RESOURCE_DATA_ENTRY
 
typedef struct _IMAGE_MENU_HEADER IMAGE_MENU_HEADER
 
typedef struct _IMAGE_MENU_HEADERPIMAGE_MENU_HEADER
 
typedef struct _IMAGE_POPUP_MENU_ITEM IMAGE_POPUP_MENU_ITEM
 
typedef struct _IMAGE_POPUP_MENU_ITEMPIMAGE_POPUP_MENU_ITEM
 
typedef struct _IMAGE_NORMAL_MENU_ITEM IMAGE_NORMAL_MENU_ITEM
 
typedef struct _IMAGE_NORMAL_MENU_ITEMPIMAGE_NORMAL_MENU_ITEM
 
typedef struct _IMAGE_DIALOG_BOX_HEADER1 IMAGE_DIALOG_HEADER
 
typedef struct _IMAGE_DIALOG_BOX_HEADER1PIMAGE_DIALOG_HEADER
 
typedef union _NAME_OR_ORDINAL NAME_OR_ORDINAL
 
typedef union _NAME_OR_ORDINALPNAME_OR_ORDINAL
 
typedef struct _IMAGE_CONTROL_DATA IMAGE_CONTROL_DATA
 
typedef struct _IMAGE_CONTROL_DATAPIMAGE_CONTROL_DATA
 
typedef struct _IMAGE_DEBUG_DIRECTORY IMAGE_DEBUG_DIRECTORY
 
typedef struct _IMAGE_DEBUG_DIRECTORYPIMAGE_DEBUG_DIRECTORY
 
typedef struct _IMAGE_DEBUG_MISC IMAGE_DEBUG_MISC
 
typedef struct _IMAGE_DEBUG_MISCPIMAGE_DEBUG_MISC
 
typedef struct _IMAGE_SEPARATE_DEBUG_HEADER IMAGE_SEPARATE_DEBUG_HEADER
 
typedef struct _IMAGE_SEPARATE_DEBUG_HEADERPIMAGE_SEPARATE_DEBUG_HEADER
 
typedef struct tagImportDirectory IMAGE_IMPORT_MODULE_DIRECTORY
 
typedef struct tagImportDirectoryPIMAGE_IMPORT_MODULE_DIRECTORY
 
typedef struct _Str_P Str_P
 

Functions

BOOL WINAPI GetDosHeader (LPVOID, PIMAGE_DOS_HEADER)
 
DWORD WINAPI ImageFileType (LPVOID)
 
BOOL WINAPI GetPEFileHeader (LPVOID, PIMAGE_FILE_HEADER)
 
BOOL WINAPI GetPEOptionalHeader (LPVOID, PIMAGE_OPTIONAL_HEADER)
 
LPVOID WINAPI GetModuleEntryPoint (LPVOID)
 
int WINAPI NumOfSections (LPVOID)
 
LPVOID WINAPI GetImageBase (LPVOID)
 
LPVOID WINAPI ImageDirectoryOffset (LPVOID, DWORD)
 
LPVOID WINAPI ImageDirectorySection (LPVOID, DWORD)
 
int WINAPI GetSectionNames (LPVOID, char **)
 
BOOL WINAPI GetSectionHdrByName (LPVOID, PIMAGE_SECTION_HEADER, char *)
 
int WINAPI GetImportModuleNames (LPVOID, char **)
 
int WINAPI GetImportFunctionNamesByModule (LPVOID, char *, char **)
 
int WINAPI GetStringLength (char *)
 
void WINAPI GetPreviousParamString (char *, char *)
 
void WINAPI TranslateParameters (char **, char **, char **)
 
BOOL WINAPI StringExpands (char **, char **, char **, Str_P *)
 
char *WINAPI TranslateFunctionName (char *)
 
int WINAPI GetExportFunctionNames (LPVOID, char **)
 
int WINAPI GetNumberOfResources (LPVOID)
 
int WINAPI GetListOfResourceTypes (LPVOID, char **)
 
int WINAPI MenuScan (int *, WORD **)
 
int WINAPI MenuFill (char **, WORD **)
 
void WINAPI StrangeMenuFill (char **, WORD **, int)
 
int WINAPI GetContentsOfMenu (LPVOID, char **)
 
int WINAPI PrintMenu (int, char **)
 
int WINAPI PrintStrangeMenu (char **)
 
int WINAPI dumpMenu (char **psz, int size)
 
BOOL WINAPI IsDebugInfoStripped (LPVOID)
 
int WINAPI RetrieveModuleName (LPVOID, char **)
 
BOOL WINAPI IsDebugFile (LPVOID)
 
BOOL WINAPI GetSeparateDebugHeader (LPVOID, PIMAGE_SEPARATE_DEBUG_HEADER)
 
LPVOID WINAPI GetActualAddress (LPVOID lpFile, DWORD dwRVA)
 
BOOL WINAPI GetSectionHdrByName (LPVOID lpFile, IMAGE_SECTION_HEADER *sh, char *szSection)
 
int WINAPI GetContentsOfDialog (LPVOID lpFile, char **pszResTypes)
 
void WINAPI PrintNameOrOrdinal (char **psz)
 
void WINAPI PrintDialog (char **psz)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ bcopy

#define bcopy (   s,
  d,
  z 
)    memcpy((d),(s),(z))

◆ BITMAP

#define BITMAP   0x0004

Definition at line 503 of file pedump.c.

Referenced by BITMAP_GetObject(), ClipboardReadBitmap(), GetObjectW(), and test_mono_1x1_bmp_dbg().

◆ BOOLEAN

◆ BS_3STATE

#define BS_3STATE   0x00000005L

Definition at line 656 of file pedump.c.

Referenced by test_button_messages(), and WinMain().

◆ BS_AUTO3STATE

#define BS_AUTO3STATE   0x00000006L

◆ BS_AUTOCHECKBOX

◆ BS_AUTORADIOBUTTON

◆ BS_CHECKBOX

◆ BS_DEFPUSHBUTTON

◆ BS_GROUPBOX

◆ BS_LEFTTEXT

#define BS_LEFTTEXT   0x00000020L

Definition at line 662 of file pedump.c.

Referenced by CB_Paint().

◆ BS_OWNERDRAW

◆ BS_PUSHBUTTON

◆ BS_RADIOBUTTON

◆ BS_USERBUTTON

#define BS_USERBUTTON   0x00000008L

◆ BUTTON

#define BUTTON   0x80

Definition at line 581 of file pedump.c.

◆ CHECKED

#define CHECKED   0x0008

Definition at line 505 of file pedump.c.

◆ COMBOBOX

#define COMBOBOX   0x85

Definition at line 586 of file pedump.c.

◆ CONST

#define CONST   const

Definition at line 81 of file pedump.c.

◆ EDIT

#define EDIT   0x81

Definition at line 582 of file pedump.c.

◆ ENDMENU

#define ENDMENU   0x0080

Definition at line 509 of file pedump.c.

◆ ES_AUTOHSCROLL

◆ ES_AUTOVSCROLL

◆ ES_CENTER

◆ ES_LEFT

◆ ES_LOWERCASE

#define ES_LOWERCASE   0x00000010L

◆ ES_MULTILINE

#define ES_MULTILINE   0x00000004L

Definition at line 667 of file pedump.c.

Referenced by CRichEdit::Create(), EDIT_AdjustFormatRect(), EDIT_CharFromPos(), EDIT_EM_GetHandle(), EDIT_EM_GetLine(), EDIT_EM_LineFromChar(), EDIT_EM_LineIndex(), EDIT_EM_LineLength(), EDIT_EM_LineScroll(), EDIT_EM_LineScroll_internal(), EDIT_EM_PosFromChar(), EDIT_EM_ReplaceSel(), EDIT_EM_Scroll(), EDIT_EM_ScrollCaret(), EDIT_EM_SetHandle(), EDIT_EM_SetLimitText(), EDIT_EM_SetPasswordChar(), EDIT_EM_SetTabStops(), EDIT_EM_SetWordBreakProc(), EDIT_EM_Undo(), EDIT_GetLineRect(), EDIT_InvalidateText(), EDIT_MoveBackward(), EDIT_MoveEnd(), EDIT_MoveForward(), EDIT_MoveHome(), EDIT_MoveWordForward(), EDIT_PaintLine(), EDIT_PaintText(), EDIT_UpdateUniscribeData(), EDIT_WindowProc(), EDIT_WM_Char(), EDIT_WM_HScroll(), EDIT_WM_KeyDown(), EDIT_WM_NCCreate(), EDIT_WM_Paint(), EDIT_WM_Paste(), EDIT_WM_SetFocus(), EDIT_WM_SetFont(), EDIT_WM_SetText(), EDIT_WM_StyleChanged(), EDIT_WM_VScroll(), EditWndProc_common(), get_edit_style(), InitEditWnd(), ITextHostImpl_TxGetPropertyBits(), MDIChildWndProc(), ME_GetTextLengthEx(), ME_HandleMessage(), ME_InsertTextFromCursor(), ME_KeyDown(), ME_MakeEditor(), ME_ScrollAbs(), ME_UpdateScrollBar(), msi_dialog_scrolltext_control(), new_richedit(), new_richeditW(), CTextEditWindow::OnCreate(), OnCreate(), parent_wnd_proc(), test_autoscroll(), test_char_from_pos(), test_dialogmode(), test_edit_control_1(), test_edit_control_3(), test_edit_control_4(), test_edit_control_5(), test_edit_control_limittext(), test_edit_control_scroll(), test_edit_messages(), test_EM_GETHANDLE(), test_EM_GETTEXTLENGTHEX(), test_EM_SCROLLCARET(), test_EM_SETTEXTEX(), test_enter(), test_fontsize(), test_format_rect(), test_paste(), test_scrollbar_visibility(), test_tab(), test_text_position(), test_text_position_style(), test_undo_coalescing(), test_WM_CHAR(), test_WM_CREATE(), test_WM_GETDLGCODE(), test_WM_SETTEXT(), test_word_movement(), test_word_wrap(), WINHELP_CreateHelpWindow(), and WndProc().

◆ ES_NOHIDESEL

◆ ES_OEMCONVERT

#define ES_OEMCONVERT   0x00000400L

Definition at line 674 of file pedump.c.

Referenced by COMBO_Create().

◆ ES_PASSWORD

◆ ES_READONLY

◆ ES_RIGHT

◆ ES_UPPERCASE

#define ES_UPPERCASE   0x00000008L

◆ ES_WANTRETURN

◆ FALSE

◆ GRAYED

#define GRAYED   0x0001

Definition at line 501 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_CODEVIEW

#define IMAGE_DEBUG_TYPE_CODEVIEW   2

Definition at line 725 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_COFF

#define IMAGE_DEBUG_TYPE_COFF   1

Definition at line 724 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_EXCEPTION

#define IMAGE_DEBUG_TYPE_EXCEPTION   5

Definition at line 728 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_FIXUP

#define IMAGE_DEBUG_TYPE_FIXUP   6

Definition at line 729 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_FPO

#define IMAGE_DEBUG_TYPE_FPO   3

Definition at line 726 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_MISC

#define IMAGE_DEBUG_TYPE_MISC   4

Definition at line 727 of file pedump.c.

Referenced by RetrieveModuleName().

◆ IMAGE_DEBUG_TYPE_OMAP_FROM_SRC

#define IMAGE_DEBUG_TYPE_OMAP_FROM_SRC   8

Definition at line 731 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_OMAP_TO_SRC

#define IMAGE_DEBUG_TYPE_OMAP_TO_SRC   7

Definition at line 730 of file pedump.c.

◆ IMAGE_DEBUG_TYPE_UNKNOWN

#define IMAGE_DEBUG_TYPE_UNKNOWN   0

Definition at line 723 of file pedump.c.

◆ IMAGE_DIRECTORY_ENTRY_BASERELOC

#define IMAGE_DIRECTORY_ENTRY_BASERELOC   5

◆ IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT

#define IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT   11

Definition at line 270 of file pedump.c.

Referenced by LdrpUpdateLoadCount3(), and LdrpWalkImportDescriptor().

◆ IMAGE_DIRECTORY_ENTRY_COPYRIGHT

#define IMAGE_DIRECTORY_ENTRY_COPYRIGHT   7

Definition at line 266 of file pedump.c.

◆ IMAGE_DIRECTORY_ENTRY_DEBUG

#define IMAGE_DIRECTORY_ENTRY_DEBUG   6

Definition at line 265 of file pedump.c.

Referenced by RetrieveModuleName().

◆ IMAGE_DIRECTORY_ENTRY_EXCEPTION

#define IMAGE_DIRECTORY_ENTRY_EXCEPTION   3

◆ IMAGE_DIRECTORY_ENTRY_EXPORT

#define IMAGE_DIRECTORY_ENTRY_EXPORT   0

Definition at line 259 of file pedump.c.

Referenced by GetExportFunctionNames().

◆ IMAGE_DIRECTORY_ENTRY_GLOBALPTR

#define IMAGE_DIRECTORY_ENTRY_GLOBALPTR   8

Definition at line 267 of file pedump.c.

◆ IMAGE_DIRECTORY_ENTRY_IAT

#define IMAGE_DIRECTORY_ENTRY_IAT   12

Definition at line 271 of file pedump.c.

Referenced by LdrpSnapIAT(), MiBuildImportsForBootDrivers(), and MiUpdateThunks().

◆ IMAGE_DIRECTORY_ENTRY_IMPORT

◆ IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG

#define IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG   10

Definition at line 269 of file pedump.c.

Referenced by LdrpFetchAddressOfSecurityCookie(), LdrpInitializeProcess(), and MmCreatePeb().

◆ IMAGE_DIRECTORY_ENTRY_RESOURCE

◆ IMAGE_DIRECTORY_ENTRY_SECURITY

#define IMAGE_DIRECTORY_ENTRY_SECURITY   4

Definition at line 263 of file pedump.c.

Referenced by SOFTPUB_HashPEFile().

◆ IMAGE_DIRECTORY_ENTRY_TLS

#define IMAGE_DIRECTORY_ENTRY_TLS   9

Definition at line 268 of file pedump.c.

Referenced by LdrpCallTlsInitializers(), LdrpInitializeTls(), and test_import_resolution().

◆ IMAGE_DOS_SIGNATURE

◆ IMAGE_FILE_32BIT_MACHINE

#define IMAGE_FILE_32BIT_MACHINE   0x0100

Definition at line 164 of file pedump.c.

Referenced by test_import_resolution().

◆ IMAGE_FILE_BYTES_REVERSED_HI

#define IMAGE_FILE_BYTES_REVERSED_HI   0x8000

Definition at line 171 of file pedump.c.

◆ IMAGE_FILE_BYTES_REVERSED_LO

#define IMAGE_FILE_BYTES_REVERSED_LO   0x0080

Definition at line 163 of file pedump.c.

◆ IMAGE_FILE_DEBUG_STRIPPED

#define IMAGE_FILE_DEBUG_STRIPPED   0x0200

Definition at line 165 of file pedump.c.

Referenced by CreateOutputFile(), IsDebugInfoStripped(), and pe_load_msc_debug_info().

◆ IMAGE_FILE_DLL

◆ IMAGE_FILE_EXECUTABLE_IMAGE

◆ IMAGE_FILE_LINE_NUMS_STRIPPED

#define IMAGE_FILE_LINE_NUMS_STRIPPED   0x0004

Definition at line 161 of file pedump.c.

Referenced by CreateOutputFile().

◆ IMAGE_FILE_LOCAL_SYMS_STRIPPED

#define IMAGE_FILE_LOCAL_SYMS_STRIPPED   0x0008

Definition at line 162 of file pedump.c.

Referenced by CreateOutputFile().

◆ IMAGE_FILE_MACHINE_ALPHA

#define IMAGE_FILE_MACHINE_ALPHA   0x184

Definition at line 178 of file pedump.c.

◆ IMAGE_FILE_MACHINE_I386

◆ IMAGE_FILE_MACHINE_POWERPC

#define IMAGE_FILE_MACHINE_POWERPC   0x1F0

Definition at line 179 of file pedump.c.

◆ IMAGE_FILE_MACHINE_R10000

#define IMAGE_FILE_MACHINE_R10000   0x168

Definition at line 177 of file pedump.c.

◆ IMAGE_FILE_MACHINE_R3000

#define IMAGE_FILE_MACHINE_R3000   0x162

Definition at line 175 of file pedump.c.

◆ IMAGE_FILE_MACHINE_R4000

#define IMAGE_FILE_MACHINE_R4000   0x166

Definition at line 176 of file pedump.c.

◆ IMAGE_FILE_MACHINE_UNKNOWN

#define IMAGE_FILE_MACHINE_UNKNOWN   0

Definition at line 173 of file pedump.c.

Referenced by test_Loader().

◆ IMAGE_FILE_NET_RUN_FROM_SWAP

#define IMAGE_FILE_NET_RUN_FROM_SWAP   0x0800

Definition at line 167 of file pedump.c.

◆ IMAGE_FILE_RELOCS_STRIPPED

#define IMAGE_FILE_RELOCS_STRIPPED   0x0001

◆ IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP

#define IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP   0x0400

Definition at line 166 of file pedump.c.

◆ IMAGE_FILE_SYSTEM

#define IMAGE_FILE_SYSTEM   0x1000

Definition at line 168 of file pedump.c.

Referenced by LdrpCreateDllSection().

◆ IMAGE_FILE_UP_SYSTEM_ONLY

#define IMAGE_FILE_UP_SYSTEM_ONLY   0x4000

Definition at line 170 of file pedump.c.

Referenced by MmCreatePeb(), and MmVerifyImageIsOkForMpUse().

◆ IMAGE_NT_SIGNATURE

◆ IMAGE_NUMBEROF_DIRECTORY_ENTRIES

#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES   16

Definition at line 195 of file pedump.c.

◆ IMAGE_ORDINAL

#define IMAGE_ORDINAL (   Ordinal)    (Ordinal & 0xffff)

◆ IMAGE_ORDINAL_FLAG

#define IMAGE_ORDINAL_FLAG   0x80000000

Definition at line 336 of file pedump.c.

Referenced by LdrpGetProcedureAddress(), and test_ResolveDelayLoadedAPI().

◆ IMAGE_OS2_SIGNATURE

◆ IMAGE_OS2_SIGNATURE_LE

#define IMAGE_OS2_SIGNATURE_LE   0x454C

Definition at line 91 of file pedump.c.

Referenced by ImageFileType(), and SdbpGetModuleType().

◆ IMAGE_RESOURCE_DATA_IS_DIRECTORY

#define IMAGE_RESOURCE_DATA_IS_DIRECTORY   0x80000000

Definition at line 396 of file pedump.c.

◆ IMAGE_RESOURCE_NAME_IS_STRING

#define IMAGE_RESOURCE_NAME_IS_STRING   0x80000000

Definition at line 395 of file pedump.c.

◆ IMAGE_SEPARATE_DEBUG_FLAGS_MASK

#define IMAGE_SEPARATE_DEBUG_FLAGS_MASK   0x8000

Definition at line 790 of file pedump.c.

◆ IMAGE_SEPARATE_DEBUG_MISMATCH

#define IMAGE_SEPARATE_DEBUG_MISMATCH   0x8000

Definition at line 791 of file pedump.c.

◆ IMAGE_SEPARATE_DEBUG_SIGNATURE

#define IMAGE_SEPARATE_DEBUG_SIGNATURE   0x4944

Definition at line 788 of file pedump.c.

Referenced by GetSeparateDebugHeader(), and IsDebugFile().

◆ IMAGE_SIZEOF_FILE_HEADER

#define IMAGE_SIZEOF_FILE_HEADER   20

Definition at line 157 of file pedump.c.

◆ IMAGE_SIZEOF_SECTION_HEADER

#define IMAGE_SIZEOF_SECTION_HEADER   40

Definition at line 300 of file pedump.c.

◆ IMAGE_SIZEOF_SHORT_NAME

#define IMAGE_SIZEOF_SHORT_NAME   8

◆ IMAGE_VXD_SIGNATURE

#define IMAGE_VXD_SIGNATURE   0x454C

Definition at line 92 of file pedump.c.

◆ INACTIVE

#define INACTIVE   0x0002

Definition at line 502 of file pedump.c.

◆ LBS_DISABLENOSCROLL

#define LBS_DISABLENOSCROLL   0x1000L

◆ LBS_EXTENDEDSEL

◆ LBS_HASSTRINGS

◆ LBS_MULTICOLUMN

◆ LBS_MULTIPLESEL

◆ LBS_NOINTEGRALHEIGHT

◆ LBS_NOREDRAW

◆ LBS_NOTIFY

◆ LBS_OWNERDRAWFIXED

#define LBS_OWNERDRAWFIXED   0x0010L

◆ LBS_OWNERDRAWVARIABLE

◆ LBS_SORT

◆ LBS_USETABSTOPS

#define LBS_USETABSTOPS   0x0080L

Definition at line 685 of file pedump.c.

Referenced by LISTBOX_PaintItem(), and LISTBOX_SetTabStops().

◆ LBS_WANTKEYBOARDINPUT

#define LBS_WANTKEYBOARDINPUT   0x0400L

Definition at line 688 of file pedump.c.

Referenced by LISTBOX_HandleChar(), and LISTBOX_HandleKeyDown().

◆ LISTBOX

#define LISTBOX   0x83

Definition at line 584 of file pedump.c.

◆ LOWORD

#define LOWORD (   l)    ((WORD)(l))

Definition at line 82 of file pedump.c.

Referenced by _CmdWndProc(), _InsertMenuItemW(), CMenuDeskBar::_OnActivate(), _SHGetDefaultValue(), AbortFindDialogProc(), About(), AboutDialogProc(), AboutDialogWndProc(), AboutDlgProc(), AboutProc(), AckPageDlgProc(), ACTION_AppSearchGetSignature(), ACTION_FileVersionMatches(), activate_keyboard_layout(), add_purpose_dlg_proc(), AddGroupToUserDlgProc(), AddPageProc(), addr_to_linear(), CDefaultContextMenu::AddShellExtensionsToMenu(), QuickLaunchBar::AddShortcuts(), AddUsersToGroupDlgProc(), AdvancedDlgProc(), AdvancedPageProc(), AdvAppearanceDlgProc(), AdvGeneralPageProc(), AdvProcDetailsDlgProc(), AdvProcDriverDlgProc(), AdvPropGeneralDlgProc(), AfdCreateSocket(), AffinityDialogWndProc(), Ala_InitData(), ANIMATE_GetAviInfo(), ANIMATE_WindowProc(), AppearancePageProc(), ApplicationPageWndProc(), ApplyProc(), AskTagProc(), AttachToConsoleInternal(), AudioDlgProc(), auxMessage(), AVISaveOptionsDlgProc(), BackgroundPageProc(), BtrfsBalance::BalanceDlgProc(), BtrfsBalance::BalanceOptsDlgProc(), BaseWindowImpl_OnReceiveMessage(), Bios32Post(), BiosDiskService(), BiosMouseIrq(), BiosTimeService(), BounceKeysDlgProc(), BrightnessProc(), BrowseDlgProc(), BUTTON_WindowProc(), ButtonProc(), ButtonWndProc_common(), CalcCheckSum(), calculate_install_state(), CallMouseUserHandlers(), capGetDriverDescriptionW(), CaptureDialogProc(), CardBackDlgProc(), CC_PaintTriangle(), CC_WMCommand(), cert_properties_general_dlg_proc(), CertOpenStore(), CertVerifyCertificateChainPolicy(), CFn_WMCommand(), ChangeKeySeqDialogProc(), ChangePasswordDialogProc(), ChangePasswordDlgProc(), CMenuToolbarBase::ChangeTrackedItem(), CharLowerA(), CharLowerW(), CharMapDlgProc(), CharUpperA(), CharUpperW(), check_menu_item_info(), CheckCdrwFilter(), checkChainPolicyStatus(), CheckForFileInfo(), CheckForValidPEAndVendor(), CheckListWndProc(), CheckSumMappedFile(), ChildWnd_CmdWndProc(), ChildWndProc(), ChkDskDlg(), CHSourceDlgProc(), ClassNameToVersion(), ClbpStyleDlgProc(), ClickLockProc(), CLIPFORMAT_UserMarshal(), CLIPFORMAT_UserSize(), ClockWndProc(), cmd_label(), co_IntProcessKeyboardMessage(), co_MsqInsertMouseMessage(), co_WinPosShowWindow(), ColorsProc(), ColumnsDialogWndProc(), COMBO_LButtonDown(), COMBO_MouseMove(), COMBO_WindowProc(), COMBOEX_ComboWndProc(), COMBOEX_WindowProc(), ComboWndProc_common(), COMDLG32_FindReplaceDlgProc(), CommonWndProc(), compare_menu_data(), CControlPanelFolder::CompareIDs(), CDrivesFolder::CompareIDs(), CFSFolder::CompareIDs(), CRecycleBin::CompareIDs(), ConCfgReadUserSettings(), ConfigDlgProc(), ConfigureDevicesDlgProc(), ConfirmDlgProc(), CongratsDlgProc(), ConnectionDialogProc(), ConsoleMainFrameWndProc(), ConSrvReadUserSettings(), content_dlgproc(), CExplorerBand::ContextMenuHack(), ContrastProc(), Control_WndProc(), ConWndProc(), CopyProfileDlgProc(), CPoint::CPoint(), create_taskdialog_template(), CreateDialogProc(), CreateHelpDialogProc(), CRYPT_GetBuiltinDecoder(), CRYPT_GetBuiltinEncoder(), CRYPT_GetBuiltinFormatFunction(), CRYPT_GetCreateFunction(), CRYPT_GetExpiration(), CRYPT_GetKeyName(), CryptGetObjectUrl(), CSize::CSize(), CurrencyPageProc(), CustomDlgProc(), CustomizeClassicProc(), CustomizeNotifyIconsProc(), CustomPageProc(), DatePageProc(), datetime_proc(), DATETIME_VScroll(), DATETIME_WindowProc(), DateTimePageProc(), dde_msg_client_wndproc(), dde_server_wndproc(), dde_server_wndprocA(), dde_server_wndprocW(), DebugChannelsDlgProc(), debugstr_user_flags(), default_dbgstr_an(), default_dbgstr_wn(), DefFrameProcW(), DefWndHandleSetCursor(), DefWndHandleSysCommand(), DefWndSetHotKey(), delayFocusDlgWinProc(), DeleteDialogProc(), DependenciesPageProc(), DesktopWindowProc(), BtrfsDeviceAdd::DeviceAddDlgProc(), BtrfsVolPropSheet::DeviceDlgProc(), DeviceInterruptBop(), BtrfsDeviceResize::DeviceResizeDlgProc(), DIALOG_COPY_MOVE_DlgProc(), DIALOG_CreateIndirect(), DIALOG_EXECUTE_DlgProc(), DIALOG_FixChildrenOnChangeFocus(), DIALOG_GoTo_DialogProc(), DIALOG_GROUP_DlgProc(), DIALOG_NEW_DlgProc(), DIALOG_PAGESETUP_Hook(), DIALOG_ParseTemplate32(), DIALOG_PROGRAM_DlgProc(), DIALOG_SYMBOL_DlgProc(), Window::DialogProc(), PropSheetPageDlg::DialogProc(), COpenWithDialog::DialogProc(), DifficultyDlgProc(), DirectInputEnumDevCb(), disabled_test_proc(), Display_OnVScroll(), DisplayAdapterDlgProc(), DisplayDlgProc(), DisplayPageProc(), DisplayPageWndProc(), DlgMainProc(), DlgPreferencesProc(), DlgProc(), DlgStatProc(), DllMain(), DNSSuffixPropDlgProc(), doc_view_proc(), DosAbsoluteRead(), DosAbsoluteWrite(), DosAddDriver(), DosChangeDirectory(), DosCmdInterpreterBop(), DosDeleteDevice(), DosFindDeviceDescriptor(), DosFindFreeDescriptor(), DosFindWin32Descriptor(), DosGetCountryInfo(), DosGetDevice(), DosGetDriverNode(), DosGetFileDescriptor(), DosInt21h(), DosInt2Fh(), DosLoadDriver(), DosLoadExecutableInternal(), DosMouseService(), DosReadFile(), DosRemoveDriver(), DosResizeHandleTable(), DosTerminateProcess(), DosWriteFile(), DragDetect(), DriveDlgProc(), driver_tests(), DriverCallback(), DriverDetailsDlgProc(), DriverEnumProc(), DSoundAdviseThread(), dump_user_flags(), DxDiagWndProc(), EDIT_BuildLineDefs_ML(), edit_dialog_proc(), EDIT_EM_LineScroll_internal(), EDIT_EM_ScrollCaret(), EDIT_GetLineRect(), EDIT_MoveDown_ML(), EDIT_MovePageDown_ML(), EDIT_MovePageUp_ML(), EDIT_MoveUp_ML(), EDIT_PaintLine(), EDIT_PaintText(), EDIT_SetCaretPos(), edit_singleline_dialog_proc(), edit_wantreturn_dialog_proc(), EDIT_WindowProc(), EDIT_WM_KeyDown(), EditActionDlgProc(), EditDialogProc(), EditGlyphDlgProc(), CLayerUIPropPage::EditModesProc(), EditTypeDlgProc(), EditVariableDlgProc(), EditWndProc_common(), EffAppearanceDlgProc(), EndNowDlgProc(), EnumPickIconResourceProc(), EnvironmentDlgProc(), ET2_WndProc(), EventDetails(), EventDetailsCtrl(), EventLogPropProc(), export_format_dlg_proc(), ExtendedShortcutProc(), CShellLink::Extract(), CDrvDefExt::ExtraPageProc(), FAST486_OPCODE_HANDLER(), Fast486GetIntVector(), Fast486TaskSwitch(), FD31_FileOpenDlgProc(), FILEDLG95_OnWMCommand(), FileExtractDialogWndProc(), fill_display_information_d3d(), fill_file_description(), FilterKeysDlgProc(), find_ne_resource(), FindDialogProc(), FindDialogWndProc(), FlatComboProc(), FloatToolbarWndProc(), focusDlgWinProc(), CFileDefExt::FolderCustomizePageProc(), FolderOptionsFileTypesDlg(), FolderOptionsGeneralDlg(), FolderOptionsViewDlg(), FontProc(), FontSizeChange(), FontWndProc(), FormatChooseDlgProc(), FormatDriveDlg(), formatopts_proc(), FrameOnCommand(), FrameWndProc(), FreeLdrPageWndProc(), GdiGetCodePage(), general_on_command(), GeneralDlgProc(), CDrvDefExt::GeneralPageProc(), GeneralPageProc(), CFileDefExt::GeneralPageProc(), GeneralPageWndProc(), get_dialog_font_point_size(), get_file_version(), get_host_os_flag(), get_input_codepage(), get_module_version(), get_res_nameA(), get_res_nameW(), get_version_info(), CTooltips::GetBubbleSize(), GetClipboardDataDimensions(), CDefaultContextMenu::GetCommandString(), GetExecutableVendor(), CListView::GetItemSpacing(), GetLayoutIDByHkl(), getMSW(), GetPropW(), GetServices(), CQueryAssociations::GetString(), GhostWndProc_common(), GinaLoadFailedWindowProc(), GplDlgProc(), GROUP_GroupWndProc(), GroupGeneralPageProc(), GroupsPageProc(), GuiConsoleHandleKey(), GuiConsoleHandleNcCreate(), GuiConsoleHandleScroll(), GuiConsoleReadUserSettings(), GuiConsoleResize(), GuiConsoleWndProc(), handle_context_menu(), handle_to_entry(), handle_UserMarshal(), handle_UserSize(), handle_WM_HSCROLL(), handle_WM_LBUTTONDOWN(), handle_WM_LBUTTONUP(), handle_WM_MBUTTONDOWN(), handle_WM_MBUTTONUP(), handle_WM_MOUSEMOVE(), handle_WM_NCHITTEST(), handle_WM_RBUTTONDOWN(), handle_WM_RBUTTONUP(), handle_WM_SIZE(), handle_WM_VSCROLL(), HandleCommand(), HandleDriverCommand(), CNewMenu::HandleMenuMsg2(), HandleMountCommand(), HardProfDlgProc(), HardwareDlgProc(), HardwarePageProc(), HBITMAP_UserFree(), HBITMAP_UserMarshal(), HBITMAP_UserSize(), HEADER_MouseMove(), HEADER_SetCursor(), HEADER_SetHotDivider(), HEADER_WindowProc(), Help_WndProc(), HelpPageWndProc(), HENHMETAFILE_UserFree(), HENHMETAFILE_UserMarshal(), HENHMETAFILE_UserSize(), HexEditWndProc(), HGLOBAL_UserFree(), HGLOBAL_UserMarshal(), HGLOBAL_UserSize(), HibernateDlgProc(), HighContrastDlgProc(), HMETAFILE_UserFree(), HMETAFILE_UserMarshal(), HMETAFILE_UserSize(), HMETAFILEPICT_UserFree(), HMETAFILEPICT_UserMarshal(), HMETAFILEPICT_UserSize(), HOTKEY_WindowProc(), icm_choose_compressor_dlgproc(), ICO_ExtractIconExW(), IDirectInputDevice2WImpl_GetProperty(), IDirectInputDevice2WImpl_SetProperty(), ie_dialog_open_proc(), ie_window_proc(), iewnd_OnCommand(), ImageEditWndProc(), ImageFileType(), ImageView_WndProc(), InetTimePageProc(), InitializeModeTable(), InitializeRecycleBinDlg(), CFileDefExt::InitVersionPage(), InputList_Add(), InputList_Create(), RdpClientUI::InputWindowProc(), InsertTabCtrlItem(), Int32Call(), IntClearWindowState(), IntConvertMsgToAnsi(), IntDefWindowProc(), interface_variant_marshal(), interface_variant_size(), IntFlashWindowEx(), IntMapWindowPoints(), IntMsqSetWakeMask(), IntSetMenuItemInfo(), IntSetWindowState(), IntTranslateKbdMessage(), CDefViewBckgrndMenu::InvokeCommand(), COpenWithMenu::InvokeCommand(), CBandSiteMenu::InvokeCommand(), CVfdShExt::InvokeCommand(), CRecycleBin::InvokeCommand(), CNewMenu::InvokeCommand(), CNetConUiObject::InvokeCommand(), CDefaultContextMenu::InvokeCommand(), CISFBand::InvokeCommand(), CDefaultContextMenu::InvokeRegVerb(), CDefaultContextMenu::InvokeShellExt(), IOCS_OnWndProc(), IOWriteD(), IPropertyStorage_fnWriteMultiple(), IsAccelerator(), IsDialogMessageW(), ITypeInfo_fnGetDllEntry(), ITypeLib2_Constructor_MSFT(), JoystickWGenericImpl_GetProperty(), JoystickWGenericImpl_SetProperty(), K32LoadStringExW(), KbdBiosINT(), KbdBiosIRQ(), KeyboardPageProc(), KeyboardSpeedProc(), KeySettingsDialogProc(), LanguagesPageProc(), CNetConnectionPropertyUi::LANPropertiesUIDlg(), LANStatusDlg(), LANStatusUiAdvancedDlg(), LANStatusUiDetailsDlg(), LANStatusUiDlg(), LayoutList_GetByHkl(), LayoutProc(), LdrProcessRelocationBlockLongLong(), LdrVerifyMappedImageMatchesChecksum(), LegalNoticeDialogProc(), LicenceDlgProc(), ListAllModesDlgProc(), LISTBOX_HandleKeyDown(), LISTBOX_WindowProc(), ListBoxWndProc_common(), LISTVIEW_Command(), LISTVIEW_SetIconSpacing(), LISTVIEW_TrackMouse(), LISTVIEW_WindowProc(), load_string(), LoadDialog(), ATL::CStringT< BaseType, StringTraits >::LoadFromPtr_(), LoadHive_KeyNameInHookProc(), LoadKeyboardLayoutW(), LoadStringA(), LoadStringW(), LocaleDlgProc(), LocaleList_Create(), LocaleList_GetByHkl(), LocalePageDlgProc(), LogOffDialogProc(), LogonDialogProc(), LogonPageProc(), LPK_ApplyMirroring(), LrgCellWndProc(), LsapGetResourceStringLengthEx(), LsapLoadString(), LsapLoadStringEx(), MAIN_MainWndProc(), MainDialogProc(), MainDlgProc(), MainPageProc(), MainProc(), MainWindow_WndProc(), MainWindowProc(), CDeviceManager::MainWndProc(), MainWndProc(), MapWindowPoints(), CGridView::MapWndProc(), MapWndProc(), marshal_WdtpInterfacePointer(), MCI_CleanUp(), MCI_DefYieldProc(), MCI_HandleReturnValues(), MCI_LoadMciDriver(), MCI_Open(), MCI_SysInfo(), MCIAVI_AddFrame(), MCIAVI_GetInfoAudio(), MCIAVI_GetInfoVideo(), MCIAVI_mciClose(), MCIAVI_mciOpen(), MCIAVI_mciSeek(), MCIAVI_mciStatus(), MCIAVI_mciStep(), MCIAVI_mciStop(), MCIAVI_player(), MCICDA_Notify(), MCICDA_Open(), MCICDA_Play(), MCICDA_Status(), MCIQTZ_mciNotify(), MCIQTZ_mciOpen(), MCIQTZ_mciPlay(), MCIWND_Command(), MCIWndProc(), MDI_MoreWindowsDlgProc(), MDIChildWndProc(), MDIClientWndProc_common(), ME_CalculateClickCount(), ME_HandleMessage(), ME_KeyDown(), ME_LinkNotify(), ME_SetCursor(), ME_StreamOutRTFCharProps(), MENU_FindItemByKey(), MENU_NormalizeMenuItemInfoStruct(), MENU_TrackMenu(), MenuHelp(), MessageBoxProc(), MFDRV_ExtFloodFill(), MFDRV_PatBlt(), MFDRV_SetBkColor(), MFDRV_SetMapperFlags(), MFDRV_SetPixel(), MFDRV_SetTextAlign(), MFDRV_SetTextColor(), MFDRV_StretchBlt(), MFDRV_StretchDIBits(), MIDI_ConvertTimeFormatToMS(), MIDI_mciNotify(), MIDI_mciPlay(), MIDI_mciReadMTrk(), MIDI_mciReadNextEvent(), MIDI_mciStatus(), MIDI_player(), MMDRV_PhysicalFeatures(), modData(), modify_binary_dlgproc(), modify_dword_dlgproc(), modify_multi_string_dlgproc(), modify_resource_dlgproc(), modify_resource_list_dlgproc(), modify_string_dlgproc(), MonitorDlgProc(), MonitorSelWndProc(), MONTHCAL_LButtonDown(), MONTHCAL_LButtonUp(), MONTHCAL_MouseMove(), MONTHCAL_RButtonUp(), MONTHCAL_WindowProc(), MonthCalWndProc(), MoreOptDlgProc(), MouseKeysDlgProc(), MouseOnCommand(), MousePageProc(), MsConfigWndProc(), MSFT_DoFuncs(), MSFT_DoTypeInfo(), MSIDialog_WndProc(), MSISelectionTree_WndProc(), mstsc_mousewheel(), mstsc_WndProc(), multi_edit_dialog_proc(), MultiWndProc(), MyMessageBox(), NetIDPageProc(), NetworkPropDlgProc(), NewActionDlgProc(), NewDocSelDlgProc(), NewExtDlgProc(), newfile_proc(), NewGroupDlgProc(), NewUserDlgProc(), COpenWithDialog::NoOpenDlgProc(), NOTEPAD_InitMenuPopup(), NOTEPAD_WndProc(), NotifyParentOfSelection(), notifysink_on_bn_clicked(), notifysink_on_cbn_selchange(), nsembed_proc(), NtUserDragDetect(), NtUserGetThreadState(), NumbersPageProc(), OleTranslateColor(), on_wm_command(), OnActivate(), CToolBox::OnCommand(), CMainWindow::OnCommand(), CCharMapWindow::OnCommand(), CDeviceManager::OnCommand(), CDesktopBrowser::OnCommand(), CBaseBarSite::OnCommand(), OnCommand(), CSysPagerWnd::OnCommand(), CTaskSwitchWnd::OnCommand(), CTrayWindow::OnCommand(), OnCommandAddDialog(), OnCommandSettingsPage(), CExplorerBand::OnContextMenu(), CInternetToolbar::OnContextMenu(), CDefView::OnContextMenu(), CTrayWindow::OnContextMenu(), CScrollboxWindow::OnHScroll(), CDefView::OnInitMenuPopup(), OnKey(), CBaseBar::OnLButtonDown(), CBaseBar::OnMouseMove(), CTrayWindow::OnNcHitTest(), OnOk(), OnScroll(), CTrayClockWnd::OnSetFont(), CMainWindow::OnSize(), OnSize(), CTrayClockWnd::OnSize(), CAddressBand::OnSize(), CBaseBar::OnSize(), CInternetToolbar::OnSize(), CSysPagerWnd::OnSize(), CDefView::OnSize(), CTrayNotifyWnd::OnSize(), CTaskSwitchWnd::OnSize(), CTrayWindow::OnSize(), CScrollboxWindow::OnVScroll(), CISFBand::OnWinEvent(), OptionProc(), OptionsDlgProc(), OptionsProc(), OSK_WarningProc(), page_with_custom_default_button_dlg_proc(), PAGER_WindowProc(), pagesetup_wm_command(), PageWndProc1(), PageWndProc2(), PageWndProc3(), paraformat_proc(), ParentSubWndProc(), PartitionDlgProc(), PerformancePageWndProc(), PickIconProc(), PidlListSort(), PointerProc(), PointToCoord(), populate_size_list(), DesktopShellView::PositionIcons(), PowerSchemesDlgProc(), preview_command(), preview_proc(), PreviewWndProc(), print_vffi_debug(), PrintDirectoryHeader(), PrintDiskInfo(), PRINTDLG_UpdatePrintDlgA(), PRINTDLG_WMCommandA(), PRINTDLG_WMCommandW(), PrintVolumeHeader(), process_vk_key(), MainFrameBase::ProcessMessage(), ProcessMouseMessage(), ProcessPageWndProc(), PROGRESS_SetRange(), ProgressDialogProc(), ProgressWindowProc(), PROPSHEET_DialogProc(), PROPSHEET_InsertPage(), PROPSHEET_SetTitleW(), PropSheetDlgProc(), ps_dlg_proc(), query_image_section(), QUERY_REGISTRY_KEYS_ROUTINE(), CDefViewBckgrndMenu::QueryContextMenu(), RealMsgWaitForMultipleObjectsEx(), REBAR_LButtonDown(), REBAR_MouseMove(), REBAR_NCHitTest(), REBAR_SetCursor(), RecoveryPageProc(), BtrfsRecv::RecvProgressDlgProc(), RecycleBinDlg(), register_vfw_codecs(), CShellBrowser::RelayCommands(), RemovePropW(), RemoveStartMenuItemsProc(), RenameProfileDlgProc(), RepeatKeysDlgProc(), ReportDialogProc(), RequiredServicesDisablingDialogWndProc(), res_strdupW(), RPCRT4_BuildCommonHeader(), RSAENH_CPDeriveKey(), RtlGetFullPathName_Ustr(), RtlNtStatusToDosErrorNoTeb(), RunCallback16(), RunDlgProc(), SampLoadString(), SaveSchemeProc(), SB_OnLButtonUp(), ScreenSaverConfigureDialog(), ScreenSaverPageProc(), ScreenSaverProc(), ScrollBarWndProc_common(), ScrollChildren(), ScrollTrackScrollBar(), BtrfsScrub::ScrubDlgProc(), search_res_tlb(), SecurityDialogProc(), SecurityPageProc(), BtrfsSend::SendDlgProc(), SerialKeysDlgProc(), serverwnd_proc(), ServicesPageWndProc(), set_focus_on_activate_proc(), SetMaxDate(), SetMinDate(), SetPropW(), anonymous_namespace{settingsdlg.cpp}::SettingsDlgProc(), SettingsPageProc(), ATL::CWindow::SetWindowWord(), CShellLink::SH_ShellLinkDlgProc(), SHDlgProcEx(), shell_embedding_proc(), ShellMessageBoxA(), ShellMessageBoxW(), ShellMessageBoxWrapW(), ShowContextMenu(), ShutdownComputerWindowProc(), ShutdownDialogProc(), ShutdownGuiProc(), SizeDetailsDlgProc(), SoftModalMessageBox(), SortPageProc(), SoundPageProc(), SoundPageWndProc(), SoundsDlgProc(), SPY_DumpStructure(), START_TEST(), StartDlgProc(), StartRecDlgProc(), STATIC_WindowProc(), StaticWndProc_common(), BtrfsVolPropSheet::StatsDlgProc(), Status(), STATUSBAR_Relay2Tip(), STATUSBAR_SendMouseNotify(), StatusWindowProc(), STGMEDIUM_UserMarshal(), STGMEDIUM_UserSize(), StickyKeysDlgProc(), StopDependsDialogProc(), StoreDriveSettings(), SubclassedWindow::SubclassedWndProc(), SummaryDlgProc(), SysKeyboardWImpl_GetProperty(), SysLinkWindowProc(), SysMouseWImpl_GetProperty(), SysSettingsDlgProc(), TAB_LButtonDown(), TAB_NCHitTest(), TAB_RecalcHotTrack(), TAB_RelayEvent(), TAB_SetItemSize(), TAB_SetPadding(), TAB_WindowProc(), TabDlgProc(), tabstops_proc(), taskdialog_proc(), TaskManagerWndProc(), TcpipAddDNSDlg(), TcpipAddIpDlg(), TcpipAddSuffixDlg(), TcpipAdvancedDnsDlg(), TcpipAdvancedIpDlg(), TcpipAdvancedOptDlg(), TcpipAdvGwDlg(), TcpipBasicDlg(), TcpipFilterPortDlg(), TcpipFilterSettingsDlg(), test_approximate_viewrect(), test_char_from_pos(), test_combo_editselection(), test_combo_editselection_focus(), test_custom_default_button(), test_dik_codes(), test_DoEnvironmentSubst(), test_edit_control_3(), test_edit_control_4(), test_editselection(), test_editselection_focus(), test_EM_POSFROMCHAR(), test_GetFileVersionInfoEx(), test_getitemspacing(), test_icon_spacing(), test_IFolderView(), test_margins(), test_margins_font_change(), test_margins_usefontinfo(), test_midiOut_device(), test_midiStream(), test_RtlIsDosDeviceName_U(), test_status_control(), test_TabbedText(), test_UDS_SETBUDDYINT(), test_unicode_wm_char(), test_updown_pos(), test_VerQueryValueA(), test_vfw(), test_wiznavigation(), test_WM_NEXTDLGCTL(), TestDefButtonDlgProc(), testDlgWinProc(), TestInitDialogHandleProc(), TestState(), ThemePageDlgProc(), ThemeWndProc(), THEMING_ComboSubclassProc(), THEMING_ScrollbarSubclassProc(), TimePageProc(), timer_message_dlg_proc(), TimesDlgProc(), TimeZonePageProc(), ToggleKeysDlgProc(), TOOLBAR_AddStringW(), TOOLBAR_CheckButton(), TOOLBAR_CustomizeDialogProc(), TOOLBAR_EnableButton(), TOOLBAR_GetImageListForDrawing(), TOOLBAR_GetStringA(), TOOLBAR_GetStringW(), TOOLBAR_LButtonDblClk(), TOOLBAR_LButtonDown(), TOOLBAR_LButtonUp(), TOOLBAR_MouseMove(), TOOLBAR_RButtonUp(), TOOLBAR_RelayEvent(), TOOLBAR_SetBitmapSize(), TOOLBAR_SetButtonSize(), TOOLBAR_SetButtonWidth(), TOOLBAR_SetPadding(), TOOLBAR_SetRows(), TOOLBAR_SetState(), ToolbarWindowProc(), ToolProc(), ToolsPageWndProc(), TOOLTIPS_AddToolT(), TOOLTIPS_GetDispInfoA(), TOOLTIPS_GetDispInfoW(), TOOLTIPS_GetTipText(), TOOLTIPS_RelayEvent(), TOOLTIPS_SetToolInfoT(), TOOLTIPS_TrackPosition(), TOOLTIPS_WindowProc(), TRACKBAR_SetRange(), TRACKBAR_SetSel(), TRACKBAR_UpdateToolTip(), TRACKBAR_WindowProc(), TranslateAcceleratorA(), TRASH_CanTrashFile(), TrayDlgProc(), TreeListMouseClick(), TreeListMouseNotify(), TreeListProc(), TreeListStartAutoEdit(), TreeListStartNotifyEdit(), TREEVIEW_Command(), TREEVIEW_HScroll(), TREEVIEW_LButtonDoubleClick(), TREEVIEW_LButtonDown(), TREEVIEW_MouseMove(), TREEVIEW_RButtonDown(), TREEVIEW_Size(), TREEVIEW_TrackMouse(), TREEVIEW_VScroll(), UIINSOBJDLG_OnWMCommand(), RdpClientUI::UIWindowProc(), UnlockDialogProc(), unpack_dde_message(), UnpackDDElParam(), update_checksum(), UpdateDriverVersionInfoDetails(), UpdateResourceA(), UpDownWindowProc(), UpgradeRepairDlgProc(), url_oid_to_str(), BtrfsVolPropSheet::UsageDlgProc(), User32DefWindowProc(), UserGeneralPageProc(), UserMembershipPageProc(), UserProfileDlgProc(), UserProfilePageProc(), UsersPageProc(), UserUpdateUiState(), ValidateVbeInfo(), VbeService(), version_test(), CFileDefExt::VersionPageProc(), VersionRegisterClass(), VgaTranslateAddress(), VidBiosINT(), VidBiosVideoService(), ViewDlg_OnTreeViewClick(), VirtMemDlgProc(), VolumeDlgProc(), W24(), WarningProc(), WAVE_mciNotify(), WAVE_mciPlay(), WAVE_mciRecord(), WAVE_mciStatus(), WDML_ClientProc(), WdtpInterfacePointer_UserMarshal(), WdtpInterfacePointer_UserSize(), WelcomeDlgProc(), WheelProc(), Window::WindowWndProc(), wine_dbgstr_an(), wine_dbgstr_wn(), wine_debugstr_an(), WINHELP_CheckPopup(), WINHELP_FindLink(), WINHELP_GetPopupWindowInfo(), WINHELP_IndexDlgProc(), WINHELP_MainWndProc(), WINHELP_RicheditWndProc(), WMSFT_compile_typeinfo_aux(), BackgroundWindow::WndProc(), CardWindow::WndProc(), DesktopWindow::WndProc(), FileChildWindow::WndProc(), DesktopBar::WndProc(), NotifyArea::WndProc(), SDIMainFrame::WndProc(), StartMenu::WndProc(), MDIShellBrowserChild::WndProc(), ChildWindow::WndProc(), IPCtrlWindow< ChildWindow, SIfacePtr< IWebBrowser2 > >::WndProc(), ResizeController< Dialog >::WndProc(), WndProc(), WebChildWindow::WndProc(), write_resources(), and XmsBopProcedure().

◆ MAXNAMESTRNUMBER

#define MAXNAMESTRNUMBER   40

Definition at line 3916 of file pedump.c.

◆ MAXRESOURCENAME

#define MAXRESOURCENAME   13

Definition at line 801 of file pedump.c.

Referenced by GetListOfResourceTypes().

◆ MAXSECTIONNUMBER

#define MAXSECTIONNUMBER   16

Definition at line 3915 of file pedump.c.

Referenced by main().

◆ MENUBARBREAK

#define MENUBARBREAK   0x0020

Definition at line 507 of file pedump.c.

◆ MENUBREAK

#define MENUBREAK   0x0040

Definition at line 508 of file pedump.c.

◆ NEWBITMAP

#define NEWBITMAP   (RT_BITMAP|RT_NEWRESOURCE)

Definition at line 377 of file pedump.c.

◆ NEWDIALOG

#define NEWDIALOG   (RT_DIALOG|RT_NEWRESOURCE)

Definition at line 379 of file pedump.c.

◆ NEWMENU

#define NEWMENU   (RT_MENU|RT_NEWRESOURCE)

Definition at line 378 of file pedump.c.

◆ NTSIGNATURE

#define NTSIGNATURE (   a)
Value:
((LPVOID)((BYTE *)a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew))
void * LPVOID
Definition: pedump.c:69
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
unsigned char BYTE
Definition: ntddk_ex.h:96
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 805 of file pedump.c.

Referenced by ImageFileType().

◆ NULL

◆ OPTHDROFFSET

#define OPTHDROFFSET (   a)
Value:
((LPVOID)((BYTE *)a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew + \
SIZE_OF_NT_SIGNATURE + \
sizeof (IMAGE_FILE_HEADER)))
void * LPVOID
Definition: pedump.c:69
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
unsigned char BYTE
Definition: ntddk_ex.h:96
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 815 of file pedump.c.

Referenced by GetImageBase(), GetModuleEntryPoint(), GetPEOptionalHeader(), ImageDirectoryOffset(), and main().

◆ OWNERDRAW

#define OWNERDRAW   0x0100

Definition at line 504 of file pedump.c.

◆ PEFHDROFFSET

#define PEFHDROFFSET (   a)
Value:
((LPVOID)((BYTE *)a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew + \
SIZE_OF_NT_SIGNATURE))
void * LPVOID
Definition: pedump.c:69
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
unsigned char BYTE
Definition: ntddk_ex.h:96
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 810 of file pedump.c.

Referenced by GetPEFileHeader(), IsDebugInfoStripped(), main(), and NumOfSections().

◆ POPUP

#define POPUP   0x0010

Definition at line 506 of file pedump.c.

◆ RT_ACCELERATORS

#define RT_ACCELERATORS   9

Definition at line 371 of file pedump.c.

◆ RT_BITMAP

◆ RT_CURSOR

◆ RT_DIALOG

◆ RT_ERROR

#define RT_ERROR   0x7fff

Definition at line 362 of file pedump.c.

◆ RT_FONT

#define RT_FONT   8

Definition at line 370 of file pedump.c.

◆ RT_FONTDIR

#define RT_FONTDIR   7

Definition at line 369 of file pedump.c.

◆ RT_GROUP_CURSOR

#define RT_GROUP_CURSOR   12

Definition at line 374 of file pedump.c.

Referenced by CURSORICON_LoadImageW(), and START_TEST().

◆ RT_GROUP_ICON

#define RT_GROUP_ICON   14

◆ RT_ICON

◆ RT_MENU

#define RT_MENU   4

Definition at line 366 of file pedump.c.

Referenced by GetContentsOfMenu(), LoadMenuW(), and test_find_resource().

◆ RT_MESSAGETABLE

#define RT_MESSAGETABLE   11

Definition at line 373 of file pedump.c.

Referenced by load_message(), and UserpFormatMessages().

◆ RT_NEWRESOURCE

#define RT_NEWRESOURCE   0x2000

Definition at line 361 of file pedump.c.

◆ RT_RCDATA

◆ RT_STRING

◆ RT_VERSION

#define RT_VERSION   16

◆ SCROLLBAR

#define SCROLLBAR   0x84

Definition at line 585 of file pedump.c.

◆ SECHDROFFSET

#define SECHDROFFSET (   a)
Value:
((LPVOID)((BYTE *)a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew + \
SIZE_OF_NT_SIGNATURE + \
sizeof (IMAGE_FILE_HEADER) + \
void * LPVOID
Definition: pedump.c:69
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
unsigned char BYTE
Definition: ntddk_ex.h:96
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 821 of file pedump.c.

Referenced by GetActualAddress(), GetSectionHdrByName(), GetSectionNames(), ImageDirectoryOffset(), and main().

◆ SIZE_OF_NT_SIGNATURE

#define SIZE_OF_NT_SIGNATURE   sizeof (DWORD)

Definition at line 800 of file pedump.c.

◆ SS_BITMAP

◆ SS_BLACKFRAME

#define SS_BLACKFRAME   0x00000007L

Definition at line 699 of file pedump.c.

Referenced by STATIC_PaintRectfn(), WmCreate(), and WndProc().

◆ SS_BLACKRECT

#define SS_BLACKRECT   0x00000004L

Definition at line 696 of file pedump.c.

Referenced by START_TEST(), STATIC_PaintRectfn(), WmCreate(), and WndProc().

◆ SS_CENTER

#define SS_CENTER   0x00000001L

Definition at line 693 of file pedump.c.

Referenced by hasTextStyle(), InitControls(), MainWndProc(), STATIC_PaintTextfn(), WmCreate(), and WndProc().

◆ SS_GRAYFRAME

#define SS_GRAYFRAME   0x00000008L

Definition at line 700 of file pedump.c.

Referenced by STATIC_PaintRectfn(), WmCreate(), and WndProc().

◆ SS_GRAYRECT

#define SS_GRAYRECT   0x00000005L

Definition at line 697 of file pedump.c.

Referenced by STATIC_PaintRectfn(), WmCreate(), and WndProc().

◆ SS_ICON

◆ SS_LEFT

◆ SS_LEFTNOWORDWRAP

#define SS_LEFTNOWORDWRAP   0x0000000CL

Definition at line 703 of file pedump.c.

Referenced by hasTextStyle(), STATIC_PaintTextfn(), and WmCreate().

◆ SS_RIGHT

#define SS_RIGHT   0x00000002L

Definition at line 694 of file pedump.c.

Referenced by hasTextStyle(), SoftModalMessageBox(), STATIC_PaintTextfn(), WmCreate(), and WndProc().

◆ SS_SIMPLE

#define SS_SIMPLE   0x0000000BL

Definition at line 702 of file pedump.c.

Referenced by hasTextStyle(), START_TEST(), STATIC_PaintTextfn(), and test_set_text().

◆ SS_WHITEFRAME

#define SS_WHITEFRAME   0x00000009L

Definition at line 701 of file pedump.c.

Referenced by STATIC_PaintRectfn(), WmCreate(), and WndProc().

◆ SS_WHITERECT

#define SS_WHITERECT   0x00000006L

Definition at line 698 of file pedump.c.

Referenced by START_TEST(), STATIC_PaintRectfn(), WmCreate(), and WndProc().

◆ STATIC

#define STATIC   0x82

Definition at line 583 of file pedump.c.

◆ TRUE

◆ VOID

#define VOID   void

Definition at line 72 of file pedump.c.

◆ WINAPI

◆ WS_BORDER

#define WS_BORDER   0x00800000L

Definition at line 625 of file pedump.c.

Referenced by CMenuDeskBar::_AdjustForTheme(), CFSDropTarget::_GetEffectFromMenu(), CMenuDeskBar::_OnNcPaint(), AddContentTab(), AddIndexPopup(), AddIndexTab(), AddSearchTab(), co_WinPosGetMinMaxInfo(), COMBO_Create(), COMBO_NCCreate(), COMBOEX_NCCreate(), create_custom_header_control(), create_edit_control(), create_header_control(), create_ipaddress_control(), create_listview_control(), create_listview_controlW(), create_monthcal_control(), create_pager_control(), create_rebar(), create_updown_control(), CreateEditLabelT(), CAutoComplete::CreateListbox(), CreateListView(), CreateMemoryDialog(), CreateSwitcherWindow(), DATETIME_Create(), DATETIME_StyleChanged(), DIALOG_CreateControls32(), DrawClassicFrame(), EDIT_SetRectNP(), EDIT_WM_NCCreate(), EDIT_WM_Paint(), FrameOnCreate(), FrameWndProc(), ICONTITLE_Create(), CDeviceView::Initialize(), IntFlashWindowEx(), IntGetScrollBarRect(), IntScrollGetScrollBarRect(), IPADDRESS_Create(), MainFrameBase::MainFrameBase(), MCIWndCreateW(), mdi_child_wnd_proc_1(), mdi_child_wnd_proc_2(), MDIMainFrame::MDIMainFrame(), msi_dialog_directory_list(), msi_dialog_edit_control(), msi_dialog_list_box(), msi_dialog_pathedit_control(), msi_dialog_scrolltext_control(), msi_dialog_volumecost_list(), msi_maskedit_create_children(), NC_DrawFrame(), NC_HandleNCCalcSize(), on_listbox_container_create(), CTextEditWindow::OnCreate(), OnCreate(), CTrayWindow::OnThemeChanged(), CTrayWindow::Open(), PRINTDLG_WMInitDialog(), PRINTDLG_WMInitDialogW(), REBAR_Create(), REBAR_ForceResize(), REBAR_NCCalcSize(), REBAR_NCPaint(), REBAR_StyleChanged(), CTrayWindow::RunFileDlgThread(), CBaseBarSite::SetDeskBarSite(), CInternetToolbar::SetSite(), show_frame(), STATUSBAR_WMCreate(), test_AWR_flags(), test_AWR_window_size(), test_combo_listbox_styles(), test_comboex(), test_comboex_CB_GETLBTEXT(), test_comboex_get_set_item(), test_comboex_subclass(), test_comboex_WM_WINDOWPOSCHANGING(), test_contextmenu(), test_create(), test_create_tooltip(), test_CreateUpDownControl(), test_custom_source(), test_dialog_messages(), test_dialog_styles(), test_edit_control_2(), test_edit_control_5(), test_EM_GETHANDLE(), test_get_set_style(), test_header_proc(), test_hv_scroll_1(), test_hv_scroll_2(), test_initialization(), test_listbox_styles(), test_margins(), test_pager(), test_paint_messages(), test_resize(), test_scrollvalidate(), test_text_position_style(), test_thick_child_size(), test_thick_child_size_winproc(), test_TrackMouseEvent(), test_updown_buddy(), test_updown_create(), theme_changed(), TOOLBAR_AutoSize(), TOOLBAR_NCPaint(), TOOLTIPS_NCCreate(), CTrayWindow::TrayPropertiesThread(), TreeListEditLabel(), TREEVIEW_EditLabel(), UpDownWindowProc(), VfdToolTip(), wine_AdjustWindowRectEx(), WINHELP_GetPopupWindowInfo(), WinMain(), WinPosGetMinMaxInfo(), and WinPrev_OnDisplayChange().

◆ WS_CAPTION

#define WS_CAPTION   0x00C00000L

Definition at line 624 of file pedump.c.

Referenced by _tWinMain(), AttachAppBar(), StartMenu::CloseStartMenu(), co_WinPosGetMinMaxInfo(), co_WinPosShowWindow(), StartMenu::Create(), create_frame_hwnd(), create_parent_window(), create_taskdialog_template(), CreateApplicationWindow(), CreateMemoryDialog(), createParentWindow(), CreateWindowExA(), CreateWindowExW(), CreateWnd(), DefWndNCHitTest(), DefWndSetIcon(), DIALOG_CreateIndirect(), fullscreen_style(), GetNCCaptionTheme(), GetNCHitEx(), ICONTITLE_Create(), ImageView_CreateWindow(), init_procs(), InitInstance(), IntCreateWindow(), IntDefWindowProc(), intGetTitleBarInfo(), LoadDialogCtrls(), MCIWND_Create(), MCIWndCreateW(), mdi_child_wnd_proc_1(), mdi_child_wnd_proc_2(), mi_create_window(), NC_DoNCPaint(), NC_HandleNCCalcSize(), NC_HandleNCLButtonDblClk(), NC_HandleNCRButtonDown(), OnPostWinPosChanged(), PROPSHEET_CreatePage(), PropSheetCallback(), RealAdjustWindowRectEx(), RealDefWindowProcA(), RealDefWindowProcW(), SH_ShowPropertiesDialog(), ShowFolderOptionsDialog(), SoftModalMessageBox(), START_TEST(), test_AWR_window_size(), test_child_window_from_point(), test_clipboard_viewers(), test_CreateWindow(), test_customdraw(), test_defwinproc(), test_dialog_messages(), test_dialog_styles(), test_disableowner(), test_EndDialog(), test_fullscreen(), test_hv_scroll_1(), test_hv_scroll_2(), test_hwnd_message(), test_layered_window(), test_mdi(), test_MDI_create(), test_mdi_messages(), test_messages(), test_popup_zorder(), test_scroll(), test_scrollwindowex(), test_set_window_style(), test_setinfo(), test_ShowWindow(), test_thick_child_size(), test_thick_child_size_winproc(), test_title(), test_track(), test_window_styles(), test_wiznavigation(), ThemeCalculateCaptionButtonsPos(), ThemeHandleButton(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), ThemePaintWindow(), ThemeWndProc(), UserAdjustWindowRectEx(), UserDrawCaptionBar(), UserGetWindowBorders(), UserHasWindowEdge(), UserPaintCaption(), wine_AdjustWindowRectEx(), WinMain(), WinPosGetMinMaxInfo(), WinPosInitInternalPos(), StartMenu::WndProc(), and wWinMain().

◆ WS_CHILD

#define WS_CHILD   0x40000000L

Definition at line 617 of file pedump.c.

Referenced by _tWinMain(), activate_window(), StartMenu::AddButton(), AddContentTab(), AddIndexPopup(), AddIndexTab(), AddSearchTab(), AddTextButton(), BaseControlWindowImpl_put_Owner(), basic_test(), build_combo(), build_static(), build_toolbar(), BUTTON_WindowProc(), ButtonWndProc_common(), can_activate_window(), cbt_hook_proc(), cctrl_create_new(), check_dialog_style(), check_window_style(), ChildWndProc(), co_IntPaintWindows(), co_IntSendActivateMessages(), co_IntSetParent(), co_IntSetWindowLongPtr(), co_IntTranslateAccelerator(), co_UserCreateWindowEx(), co_UserDestroyWindow(), co_UserFreeWindow(), co_UserSetFocus(), co_WinPosDoNCCALCSize(), co_WinPosGetMinMaxInfo(), co_WinPosSearchChildren(), co_WinPosSetWindowPos(), co_WinPosShowWindow(), COMBO_Create(), COMBOEX_Create(), Control_WndProc_Create(), CGridView::Create(), QuickLaunchBar::Create(), TaskBar::Create(), CRichEdit::Create(), NotifyArea::Create(), CStartButton::Create(), CToolbar<>::Create(), ClockWindow::Create(), CDowloadingAppsListView::Create(), CMainToolbar::Create(), CStatusBar::Create(), CTreeView::Create(), CAppsListView::Create(), CSearchBar::Create(), CUiSplitPanel::Create(), ATL::CWindowImplBaseT< CToolbar< TASK_ITEM >, CControlWinTraits >::Create(), create_animate(), create_button(), create_child_editcontrol(), create_child_thread(), create_combobox(), create_custom_header_control(), create_doc_view_hwnd(), create_drive_bar(), create_edit_control(), create_grand_child_thread(), Pane::create_header(), create_header(), create_header_control(), create_listview_control(), create_listview_controlW(), create_monthcal_control(), create_pager_control(), create_plugin_window(), create_rebar(), create_rebar_control(), create_shell_embedding_hwnd(), create_static(), create_test_windows(), create_tree_window(), create_treeview_control(), create_updown_control(), create_window_tree(), CreateBtn(), CreateCheckButton(), SEALED_::CreateControlWindow(), CreateFontBoxesWindow(), CAddressBand::CreateGoButton(), CreateHSplitBar(), CAutoComplete::CreateListbox(), CreateListView(), CreateMemoryDialog(), CreatePushButton(), CreateScreenSaveWnd(), CISFBand::CreateSimpleToolbar(), CreateStatic(), CCharMapWindow::CreateStatusBar(), CDeviceManager::CreateStatusBar(), CreateStatusBar(), CreateTemplateDialog(), CMenuToolbarBase::CreateToolbar(), CreateToolbarEx(), CreateTreeView(), CDefView::CreateViewWindow3(), CreateVSplitBar(), CreateWindowExA(), CreateWindowExW(), CreateWnd(), ctrl_container_reparent(), DATETIME_StyleChanged(), DefWndDoSizeMove(), DefWndHandleWindowPosChanged(), DefWndHandleWindowPosChanging(), DefWndNCHitTest(), DefWndSetHotKey(), dialog_create_window(), DIALOG_CreateControls32(), DIALOG_CreateIndirect(), DoCreateStatusBar(), empty_dlg_proc2(), EndDialog(), EventDetails(), FILEDLG95_InitControls(), FileOpenDlgProc95(), FloatToolbarCreateColorsGui(), FloatToolbarCreateHistoryGui(), FloatToolbarCreateToolsGui(), FrameOnCreate(), FrameWndProc(), GetParent(), Ghost_OnCreate(), GROUP_GroupWndProc(), handle_internal_message(), HH_CreateHelpWindow(), ICONTITLE_Create(), ICONTITLE_Paint(), IconTitleWndProc(), IDirectInputDevice2WImpl_SetCooperativeLevel(), iewnd_OnCreate(), IFileDialogCustomize_fnAddControlItem(), ImageView_CreateToolBar(), ImageView_InitControls(), TaskBar::Init(), DesktopBar::Init(), init_nscontainer(), init_preview(), init_toolbar(), InitControls(), InitEditWnd(), CDeviceView::Initialize(), CTrayClockWnd::Initialize(), CNotifyToolbar::Initialize(), CToolbarProxy::Initialize(), CSysPagerWnd::Initialize(), CTaskToolbar::Initialize(), CShellBrowser::Initialize(), CTaskSwitchWnd::Initialize(), InitInstance(), InitInstance_wave(), InitMainWnd(), IntCreateWindow(), IntDefWindowProc(), IntFixWindowCoordinates(), IntGetNonChildAncestor(), IntGetParent(), intGetTitleBarInfo(), IntGetWindowPlacement(), IntIsChildWindow(), IntMakeHungWindowGhosted(), IntSendDestroyMsg(), IntSendParentNotify(), IntSendSyncPaint(), IntSetMenu(), IntUpdateLayeredWindowI(), IntUserSetActiveWindow(), IntValidateParent(), IntValidateParents(), invisible_parent_tests(), IPADDRESS_Create(), IsChild(), IsChildVisible(), LaunchScreenSaver(), LISTVIEW_CreateHeader(), MAIN_CreateMDIWindow(), Main_DirectDraw_SetCooperativeLevel(), main_window_procA(), MainFrameBase::MainFrameBase(), MainWindowProc(), MainWnd_OnCreate(), MainWndCreateToolbarClient(), MainWndProc(), MCIAVI_CreateWindow(), MCIQTZ_mciOpen(), MCIQTZ_mciWindow(), MCIWND_Create(), mdi_child_wnd_proc_1(), MDIChildWndProc(), MDIMainFrame::MDIMainFrame(), MENU_DoNextMenu(), MENU_TrackKbdMenuBar(), CTrayNotifyWnd::MESSAGE_HANDLER(), minmax_wnd_proc(), MONTHCAL_EditYear(), MsgCheckProc(), MSGTestProc2(), MSGTestProcMDI(), MSGTestProcMDI2(), msi_dialog_combo_control(), msi_dialog_create_radiobutton(), msi_dialog_directory_combo(), msi_dialog_directory_list(), msi_dialog_group_box(), msi_dialog_hyperlink(), msi_dialog_line_control(), msi_dialog_list_box(), msi_dialog_volumecost_list(), msi_dialog_volumeselect_combo(), msi_maskedit_create_children(), MsqSendParentNotify(), MultiWndProc(), MyWndProc(), NC_GetInsideRect(), NC_GetSysPopupPos(), NC_HandleNCLButtonDown(), NC_HandleNCRButtonDown(), NtUserCallHwndLock(), NtUserCreateWindowEx(), NtUserGetMenuBarInfo(), on_listbox_container_create(), CTextEditWindow::OnCreate(), CToolBox::OnCreate(), CToolSettingsWindow::OnCreate(), OnCreate(), OnMainWindowCreate(), PanelOnCreate(), pCreateToolbar(), preview_bar_show(), PRINTDLG_WMInitDialog(), PRINTDLG_WMInitDialogW(), PROPSHEET_AdjustSize(), PROPSHEET_CreatePage(), rebuild_toolbar(), reparent_owned_dlg_proc(), root_dialog(), CBandSiteBase::SetDeskBarSite(), CBaseBarSite::SetDeskBarSite(), CToolsBand::SetSite(), CBrandBand::SetSite(), CAddressBand::SetSite(), CExplorerBand::SetSite(), CInternetToolbar::SetSite(), show_frame(), SHSetParentHwnd(), SoftModalMessageBox(), START_TEST(), TAB_SetupScrolling(), TbdInitializeDocks(), test_button_messages(), test_change_focus(), test_children_zorder(), test_combo_dropdown_size(), test_combo_editselection_focus(), test_combo_listbox_styles(), test_combobox_messages(), test_comboex(), test_comboex_CB_GETLBTEXT(), test_comboex_get_set_item(), test_comboex_subclass(), test_comboex_WM_LBUTTONDOWN(), test_comboex_WM_WINDOWPOSCHANGING(), test_contextmenu(), test_create(), test_create_syslink(), test_create_tooltip(), test_CreateUpDownControl(), test_CreateWindow(), test_csparentdc(), test_custom_source(), test_default_client_accessible_object(), test_default_ime_window_cb(), test_DestroyWindow(), test_dialog_messages(), test_dialog_parent(), test_dialog_styles(), test_dialogmode(), test_edit_control_2(), test_edit_control_5(), test_edit_messages(), test_editbox(), test_editselection_focus(), test_EM_SETTEXTEX(), test_EndDialog(), test_extents(), test_fullscreen(), test_get_set_style(), test_get_set_tooltips(), test_GetDlgItem(), Test_GetIdealSizeNoThemes(), test_GetListBoxInfo(), test_getstring(), test_gettext(), test_GetUpdateRect(), test_height(), test_ImmGetCompositionString(), test_initialization(), test_Input_mouse(), test_LB_SETCURSEL(), test_listbox_messages(), test_listbox_size(), test_listbox_styles(), test_LM_GETIDEALHEIGHT(), test_LM_GETIDEALSIZE(), test_mdi(), test_MDI_create(), test_mdi_messages(), test_menu_cancelmode(), Test_Messages(), test_messages(), Test_Messages_Child(), Test_Messages_MDI_Child(), Test_MessagesNonThemed(), Test_MessagesThemed(), test_missing_lbuttonup(), test_nccalcscroll(), test_nonclient_area(), test_noresize(), test_notify(), test_oneclickactivate(), test_ownerdraw(), test_pager(), test_paint_messages(), Test_Params(), test_parent_owner(), test_redraw(), test_resize(), test_rtl_layout(), test_scrolldc(), test_scrollvalidate(), test_scrollwindowex(), test_set_coop(), test_set_count(), test_SetFocus(), test_SetForegroundWindow(), test_SetMenu(), test_SetParent(), test_setrows(), test_SetWindowPos(), test_showwindow(), test_SHSetParentHwnd(), test_sizes(), test_status_ownerdraw(), test_TCN_SELCHANGING(), test_thick_child_size(), test_tooltip(), test_TrackMouseEvent(), test_update_region(), test_updown_buddy(), test_updown_create(), test_validatergn(), test_window_from_point(), test_window_styles(), test_window_without_child_style(), test_WM_LBUTTONDOWN(), test_WM_MEASUREITEM(), test_WM_NEXTDLGCTL(), TestControlStyleDlgProc(), tool_window_procA(), TOOLTIPS_NCCreate(), TreeListEditLabel(), TreeListInsertColumn(), TREEVIEW_EditLabel(), SDIMainFrame::update_shell_browser(), MDIShellBrowserChild::update_shell_browser(), User32DefWindowProc(), UserGetDCEx(), UserSetActiveWindow(), WDML_CreateServerConv(), window_from_point_proc(), WindowThreadProc(), WINHELP_ButtonBoxWndProc(), WINHELP_CreateHelpWindow(), WinMain(), WinPosDoOwnedPopups(), WinPosFixupFlags(), WinPosGetMinMaxInfo(), WinPosInitInternalPos(), WmCreate(), and WndProc().

◆ WS_CHILDWINDOW

◆ WS_CLIPCHILDREN

#define WS_CLIPCHILDREN   0x02000000L

Definition at line 619 of file pedump.c.

Referenced by CMenuDeskBar::_AdjustForTheme(), _tWinMain(), activate_window(), AddIndexPopup(), basic_test(), co_IntPaintWindows(), co_UserCreateWindowEx(), co_WinPosSetWindowPos(), COMBOEX_Create(), QuickLaunchBar::Create(), DesktopBar::Create(), MDIMainFrame::Create(), NotifyArea::Create(), StartMenu::Create(), CToolbar<>::Create(), MDIShellBrowserChild::create(), StartMenuRoot::Create(), CMainWindow::Create(), create_doc_view_hwnd(), create_frame_hwnd(), create_plugin_window(), create_rebar(), create_shell_embedding_hwnd(), create_tabcontrol(), CreateApplicationWindow(), CreateConsoleWindow(), SEALED_::CreateControlWindow(), createFilledTabControl(), CAddressBand::CreateGoButton(), CDefView::CreateList(), CreateMainWindow(), CMenuToolbarBase::CreateToolbar(), CDefView::CreateViewWindow3(), DceAllocDCE(), FrameOnCreate(), FrameWndProc(), HH_AddHTMLPane(), HH_CreateHelpWindow(), TaskBar::Init(), DesktopBar::Init(), init_custom_controls(), init_nscontainer(), CDeviceManager::Initialize(), CDesktopBrowser::Initialize(), CNotifyToolbar::Initialize(), CTaskToolbar::Initialize(), CTaskSwitchWnd::Initialize(), InitInstance(), InitMainWnd(), IntCreateDesktop(), IntGetPaintMessage(), IntInvalidateWindows(), IntScrollWindowEx(), IntSendSyncPaint(), IntValidateParent(), IntValidateParents(), LaunchScreenSaver(), LoadDialogCtrls(), MAIN_CreateMDIWindow(), MainFrameBase::MainFrameBase(), MCIWndCreateW(), MDIMainFrame::MDIMainFrame(), CTrayNotifyWnd::MESSAGE_HANDLER(), MSGTestProcMDI(), MSGTestProcMDI2(), OnCreate(), CTrayWindow::Open(), CBaseBar::SetClient(), CBandSiteBase::SetDeskBarSite(), CBaseBarSite::SetDeskBarSite(), CToolsBand::SetSite(), CBrandBand::SetSite(), CAddressBand::SetSite(), CExplorerBand::SetSite(), CInternetToolbar::SetSite(), show_frame(), SwitchFullScreen(), TbdCreateToolbarWnd(), TbdInitializeDocks(), test_get_set_style(), test_getset_item(), test_initialization(), test_mdi_messages(), test_messages(), test_paint_messages(), test_scrollvalidate(), test_setrows(), test_TCM_SETITEMEXTRA(), test_TCS_OWNERDRAWFIXED(), test_update_region(), UpdateTheadChildren(), UserGetDCEx(), UserSyncAndPaintWindows(), WinMain(), and WndProc().

◆ WS_CLIPSIBLINGS

#define WS_CLIPSIBLINGS   0x04000000L

Definition at line 618 of file pedump.c.

Referenced by __wine_register_window(), CFSDropTarget::_GetEffectFromMenu(), _tWinMain(), activate_window(), AddIndexPopup(), cctrl_create_new(), check_dialog_style(), check_window_style(), co_IntSetParent(), co_IntSetWindowLongPtr(), co_UserCreateWindowEx(), co_WinPosSetWindowPos(), COMBO_Create(), COMBOEX_Create(), QuickLaunchBar::Create(), CStartButton::Create(), CMainWindow::Create(), create_clipbrd_window(), create_doc_view_hwnd(), create_plugin_window(), create_rebar(), create_shell_embedding_hwnd(), create_tabcontrol(), CreateApplicationWindow(), CreateConsoleWindow(), CreateEditLabelT(), createFilledTabControl(), CAddressBand::CreateGoButton(), CDefView::CreateList(), CreateMainWindow(), CreateTemplateDialog(), CMenuToolbarBase::CreateToolbar(), CDefView::CreateViewWindow3(), CreateWindowExA(), CreateWindowExW(), DATETIME_Create(), DceAllocDCE(), DceUpdateVisRgn(), EventDetails(), FILEDLG95_InitControls(), FileOpenDlgProc95(), HH_CreateHelpWindow(), ICONTITLE_Create(), IFileDialogCustomize_fnAddControlItem(), TaskBar::Init(), DesktopBar::Init(), init_custom_controls(), init_nscontainer(), InitControls(), CDeviceManager::Initialize(), CDesktopBrowser::Initialize(), CTrayClockWnd::Initialize(), CSysPagerWnd::Initialize(), CShellBrowser::Initialize(), CTaskSwitchWnd::Initialize(), InitInstance(), InitMainWnd(), IntCreateWindow(), LaunchScreenSaver(), LoadDialogCtrls(), MainFrameBase::MainFrameBase(), MainWindowProc(), MainWndCreateToolbarClient(), MCIWndCreateW(), mdi_child_wnd_proc_1(), CTrayNotifyWnd::MESSAGE_HANDLER(), OnCreate(), CTrayWindow::Open(), CTrayWindow::RunFileDlgThread(), CBaseBar::SetClient(), CBandSiteBase::SetDeskBarSite(), CBaseBarSite::SetDeskBarSite(), CToolsBand::SetSite(), CBrandBand::SetSite(), CExplorerBand::SetSite(), CInternetToolbar::SetSite(), SH_ShowPropertiesDialog(), ShowFolderOptionsDialog(), SoftModalMessageBox(), SwitchFullScreen(), TAB_Create(), TbdCreateToolbarWnd(), TbdInitializeDocks(), test_children_zorder(), test_combo_listbox_styles(), test_create(), test_create_tooltip(), test_CreateWindow(), test_dialog_styles(), Test_Dim(), test_getset_item(), test_ImmDefaultHwnd(), test_initialization(), test_listbox_styles(), Test_Messages_MDI_Child(), Test_RealGetWindowClass(), test_scrollvalidate(), test_set_window_style(), test_TCM_SETITEMEXTRA(), test_TCS_OWNERDRAWFIXED(), test_title(), test_window_styles(), test_wiznavigation(), test_WM_NEXTDLGCTL(), TOOLTIPS_NCCreate(), CTrayWindow::TrayPropertiesThread(), TREEVIEW_EditLabel(), UserGetDCEx(), VIS_ComputeVisibleRegion(), and WinMain().

◆ WS_DISABLED

#define WS_DISABLED   0x08000000L

Definition at line 621 of file pedump.c.

Referenced by __wine_register_window(), CFSDropTarget::_GetEffectFromMenu(), ActivateOtherWindowMin(), StartMenu::AddButton(), BaseControlWindowImpl_put_WindowStyle(), BUTTON_BStoDT(), CB_Paint(), Client_get_accState(), co_IntGetScrollBarInfo(), co_IntTranslateAccelerator(), co_UserSetFocus(), co_WinPosSearchChildren(), COMBO_Create(), create_window_tree(), CreateSwitcherWindow(), DATETIME_Enable(), DATETIME_EraseBackground(), DATETIME_Refresh(), ddraw_attach_d3d_device(), DEFDLG_FindDefButton(), DIALOG_GetNextTabItem(), DIALOG_IsAccelerator(), EDIT_WM_NCCreate(), find_control(), find_top_window(), FindDialogProc(), get_window_attributes(), GetNextDlgGroupItem(), HOTKEY_DrawHotKey(), HOTKEY_EraseBackground(), HOTKEY_KeyDown(), HOTKEY_KeyUp(), HOTKEY_LButtonDown(), ICONTITLE_Create(), IFileDialogCustomize_fnSetControlState(), IntChildWindowFromPointEx(), IntEnableWindow(), IntScrollCreateScrollBar(), IsWindowEnabled(), MDI_GetWindow(), MonitorSelWndProc(), MONTHCAL_PaintButton(), MonthCalWndProc(), MsgCheckProc(), msi_dialog_add_control(), msi_dialog_line_control(), msi_dialog_radiogroup_control(), OnCreate(), PROPSHEET_CreatePage(), CTrayWindow::RunFileDlgThread(), SH_ShowPropertiesDialog(), ShowFolderOptionsDialog(), SYSLINK_ParseText(), SysLinkWindowProc(), Test_Dim(), test_EndDialog(), test_ImmDefaultHwnd(), test_mdi_messages(), test_ShowWindow(), TRACKBAR_DrawThumb(), TRACKBAR_Enable(), CTrayWindow::TrayPropertiesThread(), TreeListProc(), UPDOWN_Draw(), UpDownWindowProc(), UserSetActiveWindow(), StartMenuButton::WndProc(), and wWinMain().

◆ WS_DLGFRAME

◆ WS_EX_ACCEPTFILES

#define WS_EX_ACCEPTFILES   0x00000010L

◆ WS_EX_DLGMODALFRAME

◆ WS_EX_NOPARENTNOTIFY

◆ WS_EX_TOPMOST

◆ WS_EX_TRANSPARENT

◆ WS_GROUP

◆ WS_HSCROLL

#define WS_HSCROLL   0x00100000L

Definition at line 628 of file pedump.c.

Referenced by _tWinMain(), BaseControlWindowImpl_put_WindowStyle(), CalcChildScroll(), ClassTest(), co_IntGetScrollBarInfo(), co_UserCreateWindowEx(), co_UserShowScrollBar(), COMBO_NCCreate(), COMBOEX_NCCreate(), create_main_test_wnd(), create_tree_window(), CreateImageEditWindow(), DefWndNCHitTest(), EDIT_UpdateScrollInfo(), EDIT_WM_HScroll(), EDIT_WM_NCCreate(), EDIT_WM_Paint(), FixedAdjustWindowRectEx(), fnTextSrv_TxGetHScroll(), FrameOnCreate(), FrameWndProc(), GetNCHitEx(), GetNCScrollbarTheme(), Ghost_OnCreate(), GuiConsoleNotifyWndProc(), handle_WM_SIZING(), init_preview(), InitEditWnd(), InitMainWnd(), IntGetScrollBarRect(), IntScrollGetScrollBarRect(), ITextHostImpl_TxGetScrollBars(), LISTBOX_HandleLButtonDownCombo(), LISTBOX_SetHorizontalExtent(), LISTBOX_UpdateScroll(), LISTBOX_UpdateSize(), LISTVIEW_StyleChanged(), LISTVIEW_UpdateSize(), MAIN_CreateMDIWindow(), MDIChildWndProc(), MDIMainFrame::MDIMainFrame(), ME_HandleMessage(), ME_MakeEditor(), ME_ScrollAbs(), ME_UpdateScrollBar(), ME_WmCreate(), mi_create_window(), MSGTestProcMDI(), MSGTestProcMDI2(), msi_dialog_volumecost_list(), NC_DoNCPaint(), NC_HandleNCCalcSize(), NC_HandleNCRButtonDown(), new_window(), new_windowW(), NEWco_IntGetScrollInfo(), CTextEditWindow::OnCreate(), OnCreate(), OnSize(), RealDefWindowProcA(), RealDefWindowProcW(), scroll_init_proc(), scrollbar_test_default(), scrollbar_test_init(), show_frame(), START_TEST(), test_autoscroll(), test_AWR_window_size(), test_EM_GETOPTIONS(), test_EM_SCROLLCARET(), test_EM_SETOPTIONS(), test_extents(), test_format_rect(), test_hv_scroll_2(), test_Input_blackbox(), test_mdi(), test_mdi_messages(), test_nccalcscroll(), test_scroll_messages(), test_WM_SETTEXT(), test_word_movement(), test_word_wrap(), ThemeDrawScrollBar(), ThemeGetScrollInfo(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), ThemePaintWindow(), wine_AdjustWindowRectEx(), WINHELP_CreateHelpWindow(), WinMain(), WndProc(), and wWinMain().

◆ WS_ICONIC

#define WS_ICONIC   WS_MINIMIZE

Definition at line 641 of file pedump.c.

Referenced by ActivateOtherWindowMin(), intGetTitleBarInfo(), and NC_GetInsideRect().

◆ WS_MAXIMIZE

◆ WS_MAXIMIZEBOX

◆ WS_MINIMIZE

#define WS_MINIMIZE   0x20000000L

Definition at line 622 of file pedump.c.

Referenced by BaseControlWindowImpl_put_WindowStyle(), can_activate_window(), CenterWindow(), co_IntPaintWindows(), co_IntSendActivateMessages(), co_IntSendDeactivateMessages(), co_IntSetActiveWindow(), co_IntSetWindowLongPtr(), co_UserCreateWindowEx(), co_WinPosArrangeIconicWindows(), co_WinPosDoWinPosChanging(), co_WinPosMinMaximize(), co_WinPosSearchChildren(), co_WinPosSendSizeMove(), co_WinPosShowWindow(), DefMDIChildProcW(), DefWndDoSizeMove(), DefWndHandleSysCommand(), DefWndHandleWindowPosChanged(), DefWndHandleWindowPosChanging(), DefWndNCHitTest(), DrawClassicFrame(), GetNCHitEx(), IntCalcWindowRgn(), IntDefWindowProc(), IntGetWindowBorderMeasures(), IntGetWindowPlacement(), IntIntersectWithParents(), IntInvalidateWindows(), IntIsWindowDrawable(), IntIsWindowVisible(), IntPtInWindow(), IntSetWindowPlacement(), IsIconic(), MENU_DrawMenuItem(), MENU_InitSysMenuPopup(), MENU_TrackKbdMenuBar(), NC_DoButton(), NC_DoNCPaint(), NC_DrawFrame(), NC_GetSysPopupPos(), NC_HandleNCCalcSize(), NC_HandleNCLButtonDblClk(), NC_HandleNCLButtonDown(), NC_HandleNCRButtonDown(), NtUserCallTwoParam(), NtUserSetMenu(), OpenIcon(), PAGER_NCPaint(), REBAR_NCPaint(), SetThemeRegion(), test_messages(), test_minimized(), test_parent_owner(), test_set_window_style(), test_ShowWindow(), ThemeDrawCaption(), ThemeDrawCaptionButton(), ThemeHandleButton(), ThemePaintWindow(), TOOLBAR_NCPaint(), User32DefWindowProc(), UserDrawCaptionBar(), UserDrawCaptionButton(), UserGetDCEx(), UserGetWindowBorders(), UserHasWindowEdge(), VIS_ComputeVisibleRegion(), WinPosFindIconPos(), and WinPosInitInternalPos().

◆ WS_MINIMIZEBOX

◆ WS_OVERLAPPED

◆ WS_OVERLAPPEDWINDOW

Definition at line 637 of file pedump.c.

Referenced by _tWinMain(), AddIndexPopup(), CDummyShellBrowser::CDummyShellBrowser(), check_dialog_style(), check_window_style(), ClassTest(), ClipThread(), Control_DoInterface(), MDIMainFrame::Create(), SDIMainFrame::Create(), CMainWindow::Create(), create_animate(), create_async_message_window(), create_child_editcontrol(), create_container_window(), create_custom_parent_window(), create_main_test_wnd(), create_parent_window(), create_test_windows(), create_window(), CreateConsoleWindow(), CreateMainWindow(), createMainWnd(), CreatePerfWindows(), CreateTestWindow(), CreateWindowHelper(), device_tests(), DrawNCPreview(), GuiConsoleGuiThread(), GuiConsoleInputThread(), GuiConsoleNotifyWndProc(), HH_CreateHelpWindow(), HLPFILE_SystemCommands(), ImageView_CreateWindow(), ImmGetContextThreadFunc(), init(), CDeviceManager::Initialize(), InitInstance(), InitThreads(), invisible_parent_tests(), keyboard_tests(), MACRO_History(), MAIN_CreateMainWindow(), MCIAVI_CreateWindow(), mouse_tests(), RegisterAndCreateWindow(), run_NCRedrawLoop(), ScreenSaverProc(), set_foreground_thread(), show_frame(), smresult_thread_proc(), START_TEST(), swapchain_get_backup_dc(), test_accelerators(), test_AccessibleObjectFromWindow(), test_activateapp(), test_attach_input(), test_builtinproc(), test_button_messages(), test_capture_4(), test_change_focus(), test_combobox_messages(), test_comctl32_class(), test_contextmenu(), test_create_window(), test_CreateWindow(), test_csparentdc(), test_dbcs_wm_char(), test_default_client_accessible_object(), test_default_ime_disabled_cb(), test_default_ime_window_cancel_cb(), test_default_ime_window_cb(), test_default_ime_with_message_only_window_cb(), test_defwinproc(), test_DestroyWindow(), test_dialog_messages(), test_dialog_parent(), test_dialog_styles(), test_dialogmode(), test_DispatchMessage(), test_DoubleSetCapture(), test_edit_control_2(), test_edit_control_5(), test_edit_messages(), test_EndDialog(), test_events(), test_Expose(), Test_GetClipBox(), Test_GetClipRgn(), Test_GetCurrentObject(), test_GetKeyState(), test_GetUpdateRect(), test_hotkey(), test_icons(), test_ime_processkey(), test_ImmDefaultHwnd(), test_ImmGetCompositionString(), test_ImmMessages(), test_Input_unicode(), test_Input_whitebox(), test_interthread_messages(), test_IsDialogMessage(), test_keyflags(), test_listbox_dlgdir(), test_listbox_messages(), test_menu_hilitemenuitem(), test_menu_input(), test_menu_messages(), test_menualign(), test_message_conversion(), test_message_window(), Test_Messages(), test_messages(), Test_Messages_Child(), Test_Messages_MDI(), Test_Messages_MDI_Child(), test_mouse_ll_hook(), test_notify(), test_notify_message(), test_nullCallback(), test_paint_messages(), test_paintingloop(), Test_Params(), test_parent_owner(), test_PeekMessage(), test_PeekMessage2(), test_PeekMessage3(), test_pfd(), test_quit_message(), test_redrawnow(), Test_ScrollDC(), Test_ScrollWindowEx(), test_scrollwindowex(), test_SendMessage_other_thread(), test_SendMessageTimeout(), test_SetActiveWindow(), test_SetFocus(), test_SetForegroundWindow(), test_SetParent(), test_setpixelformat(), test_SetWindowRgn(), test_shell_window(), test_showwindow(), test_smresult(), test_subclass(), test_sys_menu(), test_timers(), test_TrackMouseEvent(), test_unicode_wm_char(), test_window_dc(), test_window_styles(), test_winevents(), test_wmime_keydown_message(), test_wndproc(), test_work_area(), TestMessages(), TestOwnership(), thread_proc(), User32CreateWindowEx(), wined3d_caps_gl_ctx_create(), WINHELP_CreateHelpWindow(), WINHELP_GetWindowInfo(), WinMain(), and wWinMain().

◆ WS_POPUP

#define WS_POPUP   0x80000000L

Definition at line 616 of file pedump.c.

Referenced by __wine_register_window(), button_hook_proc(), can_activate_window(), cbt_global_hook_thread_proc(), cbt_hook_proc(), CDimmedWindow::CDimmedWindow(), check_dialog_style(), check_window_style(), co_IntFindChildWindowToOwner(), co_IntSetParent(), co_IntSetWindowLongPtr(), co_UserCreateWindowEx(), co_UserDestroyWindow(), co_UserFreeWindow(), co_UserSetFocus(), co_WinPosActivateOtherWindow(), co_WinPosGetMinMaxInfo(), co_WinPosSearchChildren(), co_WinPosSetWindowPos(), co_WinPosShowWindow(), COMCTL32_CreateToolTip(), DesktopWindow::Create(), DesktopBar::Create(), StartMenu::Create(), StartMenuRoot::Create(), create_clipbrd_window(), create_dde_server(), create_dde_window(), create_parent(), create_shell_embedding_hwnd(), create_static_win(), create_test_window(), create_thread_hwnd(), create_tooltip(), create_tooltips_window(), create_window(), create_window_thread(), CreateBasicWindow(), CreateMemoryDialog(), CreatePerfWindows(), CreateScreenSaveWnd(), CreateSwitcherWindow(), CreateToolTip(), CreateWindowExA(), CreateWindowExW(), CredDialogCreateBalloonTip(), ctrl_container_reparent(), D3DTests(), DATETIME_Create(), DdeConnect(), DdeNameService(), ddraw_set_cooperative_level(), DDTests(), DefWndHandleWindowPosChanging(), DIALOG_CreateControls32(), DIALOG_CreateIndirect(), DlgProc(), do_child(), do_parent(), do_wait_idle_child(), DoDragDrop(), empty_dlg_proc2(), EndDialog(), enum_thread(), fullscreen_style(), GetParent(), ImmSetOpenStatus(), init_procs(), CDesktopBrowser::Initialize(), InitializeSAS(), InitInstance(), IntCreateDesktop(), IntCreateWindow(), IntDefWindowProc(), IntFindChildWindowToOwner(), IntFixWindowCoordinates(), IntGetNonChildAncestor(), IntGetParent(), IntGetWindowPlacement(), IntIsChildWindow(), IntSendDestroyMsg(), IntSendParentNotify(), IntSetMenu(), IntUserSetActiveWindow(), iocp_async_closesocket(), iocp_async_read_closesocket(), iocp_async_read_thread(), iocp_async_read_thread_closesocket(), IsChild(), IsChildVisible(), LaunchScreenSaver(), LoadWinTypeFromCHM(), main_window_procA(), MCIAVI_CreateWindow(), mdi_child_wnd_proc_1(), MENU_InitPopup(), MENU_TrackKbdMenuBar(), mi_create_window(), mouse_ll_global_thread_proc(), MsgCheckProc(), NC_HandleNCLButtonDown(), new_window(), new_windowW(), NtUserCallHwndLock(), NtUserCreateWindowEx(), CTrayWindow::Open(), open_and_empty_clipboard_win_thread(), PROPSHEET_CreatePage(), PropSheetCallback(), root_dialog(), scrollbar_test_default(), SHSetParentHwnd(), SoftModalMessageBox(), START_TEST(), STATUSBAR_WMCreate(), SwitchFullScreen(), TAB_Create(), test(), test_AssociateFocus(), test_autoscroll(), test_AWR_flags(), test_AWR_window_size(), test_broadcast(), test_button_messages(), test_capture_1(), test_capture_2(), test_child_window_from_point(), test_ClipboardOwner(), test_create_tooltip(), test_CreateWindow(), test_data_handles(), test_DeleteDC(), test_destroy(), test_destroy_read(), test_DestroyWindow(), test_dialog_parent(), test_dialog_styles(), test_dialogmode(), Test_Dim(), test_DrawState(), test_DrawTextCalcRect(), test_EM_GETOPTIONS(), test_EM_GETTEXTLENGTHEX(), test_EM_SCROLLCARET(), test_EM_SETOPTIONS(), test_EM_SETTEXTEX(), test_emf_clipping(), test_emf_ExtTextOut_on_path(), test_emf_WorldTransform(), test_EN_LINK(), test_EndDialog(), test_eventMask(), test_ExtTextOut(), test_ExtTextOutScale(), test_FindWindowEx(), test_FlashWindow(), test_FlashWindowEx(), test_format_rect(), test_fullscreen(), test_get_set_tooltips(), test_GetCharABCWidths(), test_GetCharWidth32(), test_GetRandomRgn(), test_gettext(), test_GetWindowModuleFileName(), test_GetWindowTheme(), test_ImmDefaultHwnd(), test_ImmGetDefaultIMEWnd_thread(), test_Input_blackbox(), test_Input_mouse(), test_IsWindowUnicode(), test_itemfrompoint(), test_listbox_LB_DIR(), test_map_points(), test_margins_usefontinfo(), test_MDI_create(), test_messages(), Test_MessagesNonThemed(), Test_MessagesThemed(), test_mf_clipping(), test_minimized(), test_monthcal(), test_mouse_input(), test_msg_setpos_(), test_OpenThemeData(), test_OpenThemeDataEx(), test_paint_messages(), Test_Params(), test_parent_owner(), test_PostMessage(), test_recursive_hook(), test_rtl_layout(), test_SaveDC(), test_savedc_2(), test_scroll(), test_SetActiveWindow(), test_SetFocus(), test_SetForegroundWindow(), test_SetMenu(), test_SetParent(), test_setpos(), test_SetTextJustification(), test_SetWindowPos(), test_SetWindowTheme(), test_ShellWindows(), test_showwindow(), test_ShowWindow(), test_SHSetParentHwnd(), test_static_messages(), test_swap_control(), test_synthesized(), test_sys_menu(), test_TabbedText(), test_text_position_style(), test_title(), test_TTM_ADDTOOL(), test_undo_coalescing(), test_unicode_conversions(), test_window_classes(), test_window_dc_clipping(), test_window_from_point(), test_window_styles(), test_winproc_limit(), test_wiznavigation(), test_WM_CHAR(), test_WM_CREATE(), test_WM_GETDLGCODE(), test_WM_NOTIFY(), test_WM_SETTEXT(), test_word_movement(), test_word_wrap(), thread(), tool_window_procA(), TOOLBAR_TooltipCreateControl(), TOOLTIPS_NCCreate(), TRACKBAR_Create(), TREEVIEW_Create(), User32CreateWindowEx(), UserSetActiveWindow(), VfdToolTip(), VideoWindow_put_FullScreenMode(), wait_idle_thread(), WDML_Initialize(), win_event_global_thread_proc(), WINHELP_CreateHelpWindow(), WINHELP_GetPopupWindowInfo(), WINHELP_HandleTextMouse(), WinPosFixupFlags(), WinPosGetMinMaxInfo(), WinPosInitInternalPos(), and wmain().

◆ WS_POPUPWINDOW

◆ WS_SIZEBOX

◆ WS_SYSMENU

#define WS_SYSMENU   0x00080000L

Definition at line 629 of file pedump.c.

Referenced by _tWinMain(), CHSourceDlgProc(), StartMenu::Create(), create_frame_hwnd(), create_parent_window(), create_taskdialog_template(), CreateApplicationWindow(), CreateMemoryDialog(), createParentWindow(), CreateWindowExA(), CreateWindowExW(), DefWndDoSizeMove(), DefWndNCHitTest(), DefWndStartSizeMove(), DIALOG_CreateIndirect(), fullscreen_style(), GetNCHitEx(), init_procs(), InitInstance(), InstallDrvDlgProc(), IntGetSystemMenu(), intGetTitleBarInfo(), IntSetSystemMenu(), LoadDialogCtrls(), MCIWndCreateW(), mdi_child_wnd_proc_1(), MENU_DoNextMenu(), MENU_TrackKbdMenuBar(), mi_create_window(), NC_DoButton(), NC_DoNCPaint(), NC_HandleNCLButtonDown(), NC_HandleNCRButtonDown(), NtUserGetMenuBarInfo(), CTrayWindow::OnSysChar(), PROPSHEET_CreatePage(), PropSheetCallback(), SearchDrvDlgProc(), SoftModalMessageBox(), START_TEST(), test_AWR_window_size(), test_child_window_from_point(), test_clipboard_viewers(), test_CreateWindow(), test_customdraw(), test_dialog_messages(), test_dialog_styles(), test_disableowner(), test_EndDialog(), test_getmenubarinfo(), test_layered_window(), test_mdi(), test_mdi_messages(), test_menu_bmp_and_string(), test_messages(), test_scroll(), test_set_window_style(), test_setinfo(), test_SetWindowPos(), test_ShowWindow(), test_sys_menu(), test_system_menu(), test_title(), test_window_styles(), test_wiznavigation(), ThemeCalculateCaptionButtonsPos(), ThemeDrawCaption(), ThemeHandleButton(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), UserDrawCaption(), UserDrawCaptionBar(), UserDrawCaptionButton(), UserDrawCaptionText(), WelcomeDlgProc(), WinMain(), wmain(), and wWinMain().

◆ WS_TABSTOP

◆ WS_THICKFRAME

◆ WS_TILED

#define WS_TILED   WS_OVERLAPPED

Definition at line 640 of file pedump.c.

◆ WS_TILEDWINDOW

◆ WS_VISIBLE

#define WS_VISIBLE   0x10000000L

Definition at line 620 of file pedump.c.

Referenced by _tWinMain(), ActivateOtherWindowMin(), StartMenu::AddButton(), AddIndexPopup(), AddSearchTab(), AddTextButton(), basic_test(), build_combo(), build_static(), build_toolbar(), BUTTON_WindowProc(), ButtonWndProc_common(), CalcChildScroll(), can_activate_window(), cbt_hook_proc(), cctrl_create_new(), CenterWindow(), ChildWndProc(), Client_get_accState(), co_IntFindChildWindowToOwner(), co_IntPaintWindows(), co_IntSendActivateMessages(), co_IntSetWindowLongPtr(), co_IntUpdateWindows(), co_UserCreateWindowEx(), co_UserDestroyWindow(), co_UserFreeWindow(), co_UserSetFocus(), co_WinPosMinMaximize(), co_WinPosSearchChildren(), co_WinPosSetWindowPos(), co_WinPosShowWindow(), COMBO_Create(), COMBOEX_Create(), Control_DoInterface(), Control_WndProc_Create(), CGridView::Create(), DesktopWindow::Create(), QuickLaunchBar::Create(), TaskBar::Create(), DesktopBar::Create(), CRichEdit::Create(), NotifyArea::Create(), StartMenu::Create(), CStartButton::Create(), CToolbar<>::Create(), ClockWindow::Create(), CDowloadingAppsListView::Create(), CMainToolbar::Create(), CStatusBar::Create(), CTreeView::Create(), CAppsListView::Create(), CSearchBar::Create(), CUiSplitPanel::Create(), create_animate(), create_child_thread(), create_combobox(), create_custom_header_control(), create_doc_view_hwnd(), create_drive_bar(), create_edit_control(), create_grand_child_thread(), Pane::create_header(), create_header(), create_header_control(), create_ipaddress_control(), create_listview_control(), create_listview_controlW(), create_monthcal_control(), create_pager_control(), create_parent(), create_parent_window(), create_plugin_window(), create_progress(), create_rebar(), create_rebar_control(), create_static(), create_static_win(), create_taskdialog_template(), create_tree_window(), create_treeview_control(), create_updown_control(), create_window(), create_window_thread(), create_window_tree(), CreateApplicationWindow(), CreateBtn(), CreateCheckButton(), CreateEditLabelT(), CreateFontBoxesWindow(), CreateHSplitBar(), CreateLargeCell(), CDefView::CreateList(), CreateListView(), CreateMemoryDialog(), createParentWindow(), CreatePerfWindows(), CreateScreenSaveWnd(), CreateStatic(), CCharMapWindow::CreateStatusBar(), CDeviceManager::CreateStatusBar(), CreateStatusBar(), CreateTemplateDialog(), CreateTestWindow(), CMenuToolbarBase::CreateToolbar(), CreateTreeView(), CreateVSplitBar(), CreateWindowExA(), CreateWindowExW(), CreateWnd(), DATETIME_StyleChanged(), DEFDLG_FindDefButton(), DIALOG_CreateIndirect(), DIALOG_GetNextTabItem(), DIALOG_IsAccelerator(), dialog_run_message_loop(), do_child(), do_parent(), do_wait_idle_child(), DoCreateStatusBar(), DrawNCPreview(), TaskBar::EnumWndProc(), EventDetails(), FILEDLG95_InitControls(), FileOpenDlgProc95(), find_control(), find_top_window(), FloatToolbarCreateColorsGui(), FloatToolbarCreateHistoryGui(), FloatToolbarCreateToolsGui(), FrameOnCreate(), FrameWndProc(), get_window_attributes(), GetEffectiveClientRect(), GetNextDlgGroupItem(), Ghost_OnCreate(), GROUP_GroupWndProc(), HH_AddHTMLPane(), HH_AddNavigationPane(), HH_AddSizeBar(), HH_CreateHelpWindow(), iewnd_OnCreate(), IFileDialogCustomize_fnAddControlItem(), IFileDialogCustomize_fnSetControlState(), ImageView_CreateToolBar(), ImageView_CreateWindow(), ImageView_InitControls(), TaskBar::Init(), DesktopBar::Init(), init(), init_preview(), init_toolbar(), InitControls(), InitEditWnd(), CDeviceView::Initialize(), CTrayClockWnd::Initialize(), CNotifyToolbar::Initialize(), CSysPagerWnd::Initialize(), CTaskToolbar::Initialize(), CShellBrowser::Initialize(), CTaskSwitchWnd::Initialize(), InitInstance(), InitInstance_wave(), InitMainWnd(), IntChildWindowFromPointEx(), IntCreateWindow(), IntDefWindowProc(), IntFindChildWindowToOwner(), IntHideDesktop(), IntIntersectWithParents(), IntInvalidateWindows(), IntIsWindowDirty(), IntIsWindowDrawable(), IntIsWindowVisible(), IntMakeHungWindowGhosted(), IntRealChildWindowFromPoint(), IntSendSyncPaint(), IntSetStyle(), IntShowOwnedPopups(), IntTopLevelWindowFromPoint(), invisible_parent_tests(), IPADDRESS_Create(), IsChildVisible(), IsWindowVisible(), keyboard_tests(), LaunchScreenSaver(), LISTVIEW_Create(), LISTVIEW_InsertColumnT(), LISTVIEW_StyleChanged(), LoadDialogCtrls(), MainFrameBase::MainFrameBase(), MainWindowProc(), MainWnd_OnCreate(), MainWndCreateFloatWindows(), MainWndCreateToolbarClient(), MainWndProc(), MCIAVI_mciPlay(), MCIWND_Create(), MCIWndCreateW(), mdi_child_wnd_proc_1(), MDI_GetWindow(), MDI_RefreshMenu(), MDIChildWndProc(), MDIMainFrame::MDIMainFrame(), CTrayNotifyWnd::MESSAGE_HANDLER(), MONTHCAL_EditYear(), msi_dialog_add_control(), msi_dialog_create_radiobutton(), msi_dialog_line_control(), msi_dialog_maskedit_control(), msi_dialog_progress_bar(), msi_dialog_radiogroup_control(), msi_dialog_volumeselect_combo(), msi_maskedit_create_children(), MyWndProc(), NC_HandleNCActivate(), new_window(), new_windowW(), NtUserSwitchDesktop(), on_listbox_container_create(), CTextEditWindow::OnCreate(), CToolBox::OnCreate(), OnCreate(), OnMainWindowCreate(), OnTestDlgCreate(), CTrayWindow::Open(), PanelOnCreate(), pCreateToolbar(), PopupMsgCheckProcA(), preview_bar_show(), PRINTDLG_WMInitDialog(), PRINTDLG_WMInitDialogW(), PROPSHEET_CreatePage(), PropSheetCallback(), REBAR_NCCreate(), rebuild_toolbar(), set_foreground_thread(), CBaseBar::SetClient(), CBaseBarSite::SetDeskBarSite(), CToolsBand::SetSite(), CBrandBand::SetSite(), CAddressBand::SetSite(), CInternetToolbar::SetSite(), show_frame(), SoftModalMessageBox(), START_TEST(), TAB_SetupScrolling(), taskdialog_add_control(), TbdInitializeDocks(), test_accelerators(), test_acquire(), test_activateapp(), test_button_messages(), test_capture_1(), test_capture_2(), test_change_focus(), test_child_window_from_point(), test_children_zorder(), test_combo_dropdown_size(), test_combo_editselection_focus(), test_combo_listbox_styles(), test_combobox_messages(), test_comboex(), test_comboex_CB_GETLBTEXT(), test_comboex_get_set_item(), test_comboex_subclass(), test_comboex_WM_LBUTTONDOWN(), test_comboex_WM_WINDOWPOSCHANGING(), test_contextmenu(), test_create(), test_create_syslink(), test_create_window(), test_createtoolbarex(), test_CreateUpDownControl(), test_custom_source(), test_customdraw(), test_dc_layout(), test_default_client_accessible_object(), test_default_ime_disabled_cb(), test_default_ime_window_cancel_cb(), test_default_ime_window_cb(), test_defwinproc(), test_DeleteDC(), test_dialog_messages(), test_dialogmode(), Test_Dim(), test_disableowner(), test_DoubleSetCapture(), test_edit_control_5(), test_edit_messages(), test_editbox(), test_editselection_focus(), test_EM_SCROLLCARET(), test_EM_SETOPTIONS(), test_EM_SETTEXTEX(), test_emf_clipping(), test_emf_ExtTextOut_on_path(), test_emf_WorldTransform(), test_emptypopup(), test_EN_LINK(), test_EndDialog(), test_eventMask(), test_Expose(), test_extents(), test_ExtTextOut(), test_ExtTextOutScale(), test_FlashWindowEx(), test_focus(), test_format_rect(), test_fullscreen(), test_get_set_style(), test_get_set_tooltips(), Test_GetClipBox(), Test_GetClipRgn(), Test_GetCurrentObject(), test_GetDlgItem(), test_GetKeyState(), test_GetLastActivePopup(), test_GetListBoxInfo(), test_getmenubarinfo(), test_GetMessagePos(), test_GetRandomRgn(), test_getstring(), test_gettext(), test_GetUpdateRect(), test_header_proc(), test_height(), test_hotkey(), test_hwnd_message(), test_imagelists(), test_ImmGetCompositionString(), test_initialization(), test_Input_blackbox(), test_Input_mouse(), test_interthread_messages(), test_itemfrompoint(), test_keyflags(), test_killfocus(), test_listbox_dlgdir(), test_listbox_LB_DIR(), test_listbox_messages(), test_listbox_size(), test_listbox_styles(), test_LM_GETIDEALHEIGHT(), test_LM_GETIDEALSIZE(), test_MDI_create(), test_mdi_messages(), test_menu_bmp_and_string(), test_menu_cancelmode(), test_menu_locked_by_window(), test_menu_messages(), test_menu_ownerdraw(), test_menu_trackagain(), test_menu_trackpopupmenu(), Test_Messages(), test_messages(), Test_Messages_MDI_Child(), Test_MessagesNonThemed(), Test_MessagesThemed(), test_mf_clipping(), test_missing_lbuttonup(), test_monthcal(), test_mouse_ll_hook(), test_nccalcscroll(), test_noresize(), test_notify(), test_oneclickactivate(), test_ownerdraw(), test_pager(), test_paint_messages(), test_param_check(), Test_Params(), test_parent_owner(), test_redraw(), test_resize(), test_SaveDC(), Test_ScrollDC(), test_scrolldc(), test_scrollvalidate(), Test_ScrollWindowEx(), test_scrollwindowex(), test_set_coop(), test_set_count(), test_set_window_style(), test_SetActiveWindow(), test_SetFocus(), test_SetForegroundWindow(), test_setinfo(), test_SetParent(), test_setpos(), test_setredraw(), test_setrows(), test_SetWindowPos(), test_ShellWindows(), test_showwindow(), test_ShowWindow(), test_SHSetParentHwnd(), test_SHSetWindowBits(), test_sizes(), test_status_control(), test_status_ownerdraw(), test_subpopup_locked_by_menu(), test_system_menu(), test_text_position_style(), test_thick_child_size(), test_title(), test_tooltip(), test_track(), test_TrackMouseEvent(), test_update_region(), test_updown_buddy(), test_updown_create(), test_validatergn(), test_window_from_point(), test_window_tree(), test_window_without_child_style(), test_winregion(), test_wiznavigation(), test_WM_CREATE(), test_WM_LBUTTONDOWN(), test_WM_NEXTDLGCTL(), test_WM_NOTIFY(), test_WM_SETREDRAW(), test_WM_SETTEXT(), test_word_movement(), test_word_wrap(), test_work_area(), TestControlStyleDlgProc(), TestExposedRegion_WndProc(), ThemePaintWindow(), timer_message_dlg_proc(), TreeListInsertColumn(), update_open_dropdown(), SDIMainFrame::update_shell_browser(), MDIShellBrowserChild::update_shell_browser(), UserGetDCEx(), UserPaintCaption(), UserSetActiveWindow(), VfdToolTip(), VIS_ComputeVisibleRegion(), window_from_point_proc(), WindowThreadProc(), wined3d_device_restore_fullscreen_window(), WINHELP_ButtonBoxWndProc(), WINHELP_CreateHelpWindow(), WinMain(), WinPosFindIconPos(), WinPosFixupFlags(), wmain(), WmCreate(), and WndProc().

◆ WS_VSCROLL

#define WS_VSCROLL   0x00200000L

Definition at line 627 of file pedump.c.

Referenced by _tWinMain(), BaseControlWindowImpl_put_WindowStyle(), CalcChildScroll(), ClassTest(), co_IntGetScrollBarInfo(), co_UserCreateWindowEx(), co_UserShowScrollBar(), COMBO_Create(), COMBO_NCCreate(), COMBOEX_Create(), COMBOEX_NCCreate(), CGridView::Create(), create_main_test_wnd(), create_tree_window(), CreateImageEditWindow(), CAutoComplete::CreateListbox(), DefWndNCHitTest(), EDIT_UpdateScrollInfo(), EDIT_WM_NCCreate(), EDIT_WM_Paint(), EDIT_WM_VScroll(), FixedAdjustWindowRectEx(), fnTextSrv_TxGetVScroll(), FrameOnCreate(), FrameWndProc(), GetNCHitEx(), GetNCScrollbarTheme(), Ghost_OnCreate(), GuiConsoleNotifyWndProc(), handle_WM_SIZING(), init_preview(), InitEditWnd(), InitMainWnd(), IntGetScrollBarRect(), IntScrollGetScrollBarRect(), ITextHostImpl_TxGetScrollBars(), LISTBOX_HandleLButtonDownCombo(), LISTBOX_UpdateScroll(), LISTVIEW_StyleChanged(), MAIN_CreateMDIWindow(), MainWnd_OnCreate(), MainWndCreateToolbarClient(), MainWndProc(), MDIChildWndProc(), MDIMainFrame::MDIMainFrame(), ME_HandleMessage(), ME_MakeEditor(), ME_ScrollAbs(), ME_UpdateScrollBar(), ME_WmCreate(), mi_create_window(), MSGTestProcMDI(), MSGTestProcMDI2(), msi_dialog_directory_combo(), msi_dialog_directory_list(), msi_dialog_list_box(), msi_dialog_scrolltext_control(), msi_dialog_selection_tree(), msi_dialog_volumecost_list(), NC_DoNCPaint(), NC_HandleNCCalcSize(), NC_HandleNCRButtonDown(), new_window(), new_windowW(), NEWco_IntGetScrollInfo(), on_listbox_container_create(), CTextEditWindow::OnCreate(), OnCreate(), OnSize(), RealDefWindowProcA(), RealDefWindowProcW(), scroll_init_proc(), scrollbar_test_default(), scrollbar_test_init(), show_frame(), START_TEST(), test_autoscroll(), test_AWR_window_size(), test_combo_WS_VSCROLL(), test_edit_control_1(), test_edit_control_limittext(), test_edit_control_scroll(), test_EM_GETOPTIONS(), test_EM_SCROLLCARET(), test_EM_SETOPTIONS(), test_EM_SETTEXTEX(), test_format_rect(), test_hv_scroll_2(), test_Input_blackbox(), test_mdi(), test_mdi_messages(), test_nccalcscroll(), test_scroll_messages(), test_scrollbar_visibility(), test_WM_SETTEXT(), test_word_movement(), test_word_wrap(), test_WS_VSCROLL(), ThemeDrawScrollBar(), ThemeGetScrollInfo(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), ThemePaintWindow(), TreeListEditLabel(), wine_AdjustWindowRectEx(), WINHELP_CreateHelpWindow(), WinMain(), WndProc(), and wWinMain().

Typedef Documentation

◆ BOOL

typedef int BOOL

Definition at line 63 of file pedump.c.

◆ boolean

static int boolean

Definition at line 70 of file pedump.c.

◆ BYTE

typedef unsigned char BYTE

Definition at line 64 of file pedump.c.

◆ CHAR

typedef char CHAR

Definition at line 57 of file pedump.c.

◆ DWORD

typedef unsigned long DWORD

Definition at line 62 of file pedump.c.

◆ IMAGE_CONTROL_DATA

◆ IMAGE_DATA_DIRECTORY

◆ IMAGE_DEBUG_DIRECTORY

◆ IMAGE_DEBUG_MISC

◆ IMAGE_DIALOG_HEADER

◆ IMAGE_DOS_HEADER

◆ IMAGE_EXPORT_DIRECTORY

◆ IMAGE_FILE_HEADER

◆ IMAGE_IMPORT_BY_NAME

◆ IMAGE_IMPORT_MODULE_DIRECTORY

◆ IMAGE_MENU_HEADER

◆ IMAGE_NORMAL_MENU_ITEM

◆ IMAGE_NT_HEADERS

◆ IMAGE_OPTIONAL_HEADER

◆ IMAGE_POPUP_MENU_ITEM

◆ IMAGE_RESOURCE_DATA_ENTRY

◆ IMAGE_RESOURCE_DIR_STRING_U

◆ IMAGE_RESOURCE_DIRECTORY

◆ IMAGE_RESOURCE_DIRECTORY_ENTRY

◆ IMAGE_RESOURCE_DIRECTORY_STRING

◆ IMAGE_SECTION_HEADER

◆ IMAGE_SEPARATE_DEBUG_HEADER

◆ LONG

typedef LONG

Definition at line 60 of file pedump.c.

◆ LPVOID

static LPVOID

Definition at line 69 of file pedump.c.

◆ NAME_OR_ORDINAL

◆ PBYTE

static PBYTE

Definition at line 66 of file pedump.c.

◆ PDWORD

typedef PVOID PDWORD

Definition at line 68 of file pedump.c.

◆ PIMAGE_CONTROL_DATA

◆ PIMAGE_DATA_DIRECTORY

◆ PIMAGE_DEBUG_DIRECTORY

◆ PIMAGE_DEBUG_MISC

◆ PIMAGE_DIALOG_HEADER

◆ PIMAGE_DOS_HEADER

◆ PIMAGE_EXPORT_DIRECTORY

◆ PIMAGE_FILE_HEADER

◆ PIMAGE_IMPORT_BY_NAME

◆ PIMAGE_IMPORT_MODULE_DIRECTORY

◆ PIMAGE_MENU_HEADER

◆ PIMAGE_NORMAL_MENU_ITEM

◆ PIMAGE_NT_HEADERS

◆ PIMAGE_OPTIONAL_HEADER

◆ PIMAGE_POPUP_MENU_ITEM

◆ PIMAGE_RESOURCE_DATA_ENTRY

◆ PIMAGE_RESOURCE_DIR_STRING_U

◆ PIMAGE_RESOURCE_DIRECTORY

◆ PIMAGE_RESOURCE_DIRECTORY_ENTRY

◆ PIMAGE_RESOURCE_DIRECTORY_STRING

◆ PIMAGE_SECTION_HEADER

◆ PIMAGE_SEPARATE_DEBUG_HEADER

◆ PNAME_OR_ORDINAL

◆ PWORD

typedef WORD* PWORD

Definition at line 67 of file pedump.c.

◆ SHORT

typedef short SHORT

Definition at line 59 of file pedump.c.

◆ Str_P

typedef struct _Str_P Str_P

◆ USHORT

static USHORT
Examples:
/srv/doxygen/reactos/win32ss/gdi/gdi32/objects/utils.c.

Definition at line 61 of file pedump.c.

◆ WCHAR

typedef short WCHAR

Definition at line 58 of file pedump.c.

◆ WORD

typedef unsigned short WORD

Definition at line 65 of file pedump.c.

Function Documentation

◆ dumpMenu()

int WINAPI dumpMenu ( char **  psz,
int  size 
)

Definition at line 3327 of file pedump.c.

Referenced by PrintStrangeMenu().

3330 {
3331 
3332  int i, j, k, n, l, c;
3333  char buff[32];
3334  char *ptr, *pmax;
3335 
3336  ptr = *psz;
3337  pmax = ptr + size;
3338  for (i = 0; i < (size / 16) + 1; i++)
3339  {
3340  n = 0;
3341  for (j = 0; j < 16; j++)
3342  {
3343  c = (int) (*ptr);
3344  if (c < 0)
3345  c += 256;
3346  buff[j] = c;
3347  printf ("%02X", c);
3348  ptr++;
3349  if (ptr >= pmax)
3350  break;
3351  n++;
3352  if (n % 4 == 0)
3353  printf (" ");
3354  }
3355  n++;
3356  if (n % 4 == 0)
3357  printf (" ");
3358  l = j;
3359  j++;
3360  for (; j < 16; j++)
3361  {
3362  n++;
3363  if (n % 4 == 0)
3364  printf (" ");
3365  else
3366  printf (" ");
3367  }
3368  printf (" ");
3369  for (k = 0; k < l; k++)
3370  if (isprint (c = buff[k]))
3371  printf ("%c", c);
3372  else
3373  printf (".");
3374  printf ("\n");
3375  if (ptr >= pmax)
3376  break;
3377  }
3378 
3379  *psz = ptr;
3380  return 0;
3381 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble const GLfloat const GLdouble const GLfloat GLenum GLint GLint GLint GLint GLint GLint j
Definition: glfuncs.h:98
GLuint n
Definition: s_context.h:57
GLenum GLclampf GLint i
Definition: glfuncs.h:14
static PVOID ptr
Definition: dispmode.c:27
r l[0]
Definition: byte_order.h:167
GLsizeiptr size
Definition: glext.h:5919
#define isprint(c)
Definition: acclib.h:73
#define c
Definition: ke_i.h:80
int k
Definition: mpi.c:3369
static unsigned char buff[32768]
Definition: fatten.c:17
#define printf
Definition: config.h:203
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29

◆ GetActualAddress()

LPVOID WINAPI GetActualAddress ( LPVOID  lpFile,
DWORD  dwRVA 
)

Definition at line 1055 of file pedump.c.

Referenced by GetContentsOfDialog(), GetContentsOfMenu(), GetExportFunctionNames(), GetImportFunctionNamesByModule(), and GetImportModuleNames().

1058 {
1059 // PIMAGE_OPTIONAL_HEADER poh = (PIMAGE_OPTIONAL_HEADER)OPTHDROFFSET (lpFile);
1061  int nSections = NumOfSections (lpFile);
1062  int i = 0;
1063 
1064  if (dwRVA == 0)
1065  return NULL;
1066  if (dwRVA & 0x80000000)
1067  {
1068  //return (LPVOID)dwRVA;
1069  printf ("\n$$ what is going on $$");
1070  exit (0);
1071  }
1072 
1073  /* locate section containing image directory */
1074  while (i++ < nSections)
1075  {
1076  if (psh->VirtualAddress <= (DWORD) dwRVA &&
1077  psh->VirtualAddress + psh->SizeOfRawData > (DWORD) dwRVA)
1078  break;
1079  psh++;
1080  }
1081 
1082  if (i > nSections)
1083  return NULL;
1084 
1085  /* return image import directory offset */
1086  return (LPVOID) (((int) lpFile + (int) dwRVA - psh->VirtualAddress) +
1087  (int) psh->PointerToRawData);
1088 }
DWORD PointerToRawData
Definition: pedump.c:290
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define SECHDROFFSET(a)
Definition: pedump.c:821
unsigned long DWORD
Definition: ntddk_ex.h:95
#define NULL
Definition: pedump.c:76
struct _IMAGE_SECTION_HEADER * PIMAGE_SECTION_HEADER
int WINAPI NumOfSections(LPVOID)
Definition: pedump.c:1023
void exit(int exitcode)
Definition: _exit.c:33
#define printf
Definition: config.h:203
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29

◆ GetContentsOfDialog()

int WINAPI GetContentsOfDialog ( LPVOID  lpFile,
char **  pszResTypes 
)

Definition at line 3392 of file pedump.c.

Referenced by main().

3395 {
3396  PIMAGE_RESOURCE_DIRECTORY prdType, prdName, prdLanguage;
3397  PIMAGE_RESOURCE_DIRECTORY_ENTRY prde, prde1;
3398  PIMAGE_RESOURCE_DIR_STRING_U pDialogName;
3400  PIMAGE_DIALOG_HEADER pDialogHeader;
3401  //PIMAGE_CONTROL_DATA pControlData;
3402  char buff[32];
3403  int /*nCnt = 0,*/ i, j;
3404  //int num = 0;
3405  int size;
3406  int sLength, nDialogs;
3407  //WORD flag;
3408  WORD *pwd;
3409  //DWORD prdeName;
3410  char *pMem/*, *pTemp*/;
3411  //BOOL isStrange = FALSE;
3412 
3413 
3414  /* get root directory of resource tree */
3416  (lpFile, IMAGE_DIRECTORY_ENTRY_RESOURCE)) == NULL)
3417  return 0;
3418 
3419  /* set pointer to first resource type entry */
3421  ((DWORD) prdType + sizeof (IMAGE_RESOURCE_DIRECTORY));
3422 
3423  for (i = 0; i < prdType->NumberOfIdEntries; i++)
3424  {
3425  if (prde->Name == RT_DIALOG)
3426  break;
3427  prde++;
3428  }
3429  if (prde->Name != RT_DIALOG)
3430  return 0;
3431 
3432  prdName = (PIMAGE_RESOURCE_DIRECTORY)
3433  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3434  if (prdName == NULL)
3435  return 0;
3436 
3438  ((DWORD) prdName + sizeof (IMAGE_RESOURCE_DIRECTORY));
3439 
3440 
3441  nDialogs = prdName->NumberOfNamedEntries + prdName->NumberOfIdEntries;
3442  sLength = 0;
3443 
3444  for (i = 0; i < prdName->NumberOfNamedEntries; i++)
3445  {
3446  pDialogName = (PIMAGE_RESOURCE_DIR_STRING_U)
3447  ((DWORD) prdType + (prde->Name ^ 0x80000000));
3448  sLength += pDialogName->Length + 1;
3449 
3450  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
3451  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3452  if (prdLanguage == NULL)
3453  continue;
3454 
3456  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
3457 
3458  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
3459  ((DWORD) prdType + prde1->OffsetToData);
3460  if (prData == NULL)
3461  continue;
3462 
3463  size = prData->Size;
3464  sLength += 4 + size;
3465  prde++;
3466  }
3467  for (i = 0; i < prdName->NumberOfIdEntries; i++)
3468  {
3469  sLength += 14;
3470 
3471  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
3472  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3473  if (prdLanguage == NULL)
3474  continue;
3475 
3477  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
3478 
3479  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
3480  ((DWORD) prdType + prde1->OffsetToData);
3481  if (prData == NULL)
3482  continue;
3483 
3484  size = prData->Size;
3485  sLength += 4 + size;
3486  prde++;
3487  }
3488  //
3489  // allocate memory for menu names
3490  //
3491  *pszResTypes = (char *) calloc (sLength, 1);
3492 
3493  pMem = *pszResTypes;
3494  //
3495  // and start all over again
3496  //
3498  ((DWORD) prdName + sizeof (IMAGE_RESOURCE_DIRECTORY));
3499 
3500  for (i = 0; i < prdName->NumberOfNamedEntries; i++)
3501  {
3502  pDialogName = (PIMAGE_RESOURCE_DIR_STRING_U)
3503  ((DWORD) prdType + (prde->Name ^ 0x80000000));
3504 
3505 
3506  for (j = 0; j < pDialogName->Length; j++)
3507  *pMem++ = (char) (pDialogName->NameString[j]);
3508  *pMem = 0;
3509  pMem++;
3510 
3511 
3512  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
3513  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3514  if (prdLanguage == NULL)
3515  continue;
3516 
3518  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
3519 
3520  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
3521  ((DWORD) prdType + prde1->OffsetToData);
3522  if (prData == NULL)
3523  continue;
3524 
3525  pDialogHeader = (PIMAGE_DIALOG_HEADER)
3526  GetActualAddress (lpFile, prData->OffsetToData);
3527 
3528 
3529 
3530  pwd = (WORD *) ((DWORD) pDialogHeader);
3531  size = prData->Size;
3532  *(int *) pMem = size;
3533  pMem += 4;
3534  StrangeMenuFill (&pMem, &pwd, size);
3535 
3536  prde++;
3537  }
3538  for (i = 0; i < prdName->NumberOfIdEntries; i++)
3539  {
3540 
3541  sprintf (buff, "DialogId_%04lX", (prde->Name));
3542  strcpy (pMem, buff);
3543  pMem += strlen (buff) + 1;
3544 
3545  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
3546  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3547  if (prdLanguage == NULL)
3548  {
3549  printf ("\nprdLanguage = NULL");
3550  exit (0);
3551  }
3552 
3554  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
3555 
3556  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
3557  ((DWORD) prdType + prde1->OffsetToData);
3558  if (prData == NULL)
3559  {
3560  printf ("\nprData = NULL");
3561  exit (0);
3562  }
3563 
3564  pDialogHeader = (PIMAGE_DIALOG_HEADER)
3565  GetActualAddress (lpFile, prData->OffsetToData);
3566 
3567 
3568  pwd = (WORD *) ((DWORD) pDialogHeader);
3569  size = prData->Size;
3570  *(int *) pMem = size;
3571  pMem += 4;
3572  StrangeMenuFill (&pMem, &pwd, size);
3573 
3574  prde++;
3575  }
3576 
3577  return nDialogs;
3578 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble const GLfloat const GLdouble const GLfloat GLenum GLint GLint GLint GLint GLint GLint j
Definition: glfuncs.h:98
DWORD OffsetToData
Definition: pedump.c:416
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
struct _IMAGE_RESOURCE_DIRECTORY * PIMAGE_RESOURCE_DIRECTORY
#define sprintf(buf, format,...)
Definition: sprintf.c:55
GLenum GLclampf GLint i
Definition: glfuncs.h:14
void pwd(int argc, const char *argv[])
Definition: cmds.c:1401
struct _IMAGE_RESOURCE_DATA_ENTRY * PIMAGE_RESOURCE_DATA_ENTRY
Definition: pedump.c:457
#define RT_DIALOG
Definition: pedump.c:367
struct _IMAGE_RESOURCE_DIR_STRING_U * PIMAGE_RESOURCE_DIR_STRING_U
DWORD OffsetToData
Definition: pedump.c:459
GLsizeiptr size
Definition: glext.h:5919
struct _IMAGE_RESOURCE_DIRECTORY IMAGE_RESOURCE_DIRECTORY
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
#define NULL
Definition: pedump.c:76
struct _IMAGE_RESOURCE_DIRECTORY_ENTRY * PIMAGE_RESOURCE_DIRECTORY_ENTRY
Definition: pedump.c:413
LPVOID WINAPI ImageDirectoryOffset(LPVOID, DWORD)
Definition: pedump.c:1097
LPVOID WINAPI GetActualAddress(LPVOID lpFile, DWORD dwRVA)
Definition: pedump.c:1055
DWORD Name
Definition: pedump.c:415
#define calloc
Definition: rosglue.h:14
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
void WINAPI StrangeMenuFill(char **, WORD **, int)
Definition: pedump.c:2710
void exit(int exitcode)
Definition: _exit.c:33
#define IMAGE_DIRECTORY_ENTRY_RESOURCE
Definition: pedump.c:261
static unsigned char buff[32768]
Definition: fatten.c:17
struct _IMAGE_DIALOG_BOX_HEADER1 * PIMAGE_DIALOG_HEADER
#define printf
Definition: config.h:203
DWORD Size
Definition: pedump.c:460

◆ GetContentsOfMenu()

int WINAPI GetContentsOfMenu ( LPVOID  lpFile,
char **  pszResTypes 
)

Definition at line 2921 of file pedump.c.

Referenced by main().

2924 {
2925  PIMAGE_RESOURCE_DIRECTORY prdType, prdName, prdLanguage;
2926  PIMAGE_RESOURCE_DIRECTORY_ENTRY prde, prde1;
2927  PIMAGE_RESOURCE_DIR_STRING_U pMenuName;
2929  //PIMAGE_SECTION_HEADER psh = (PIMAGE_SECTION_HEADER)
2930  //ImageDirectorySection (lpFile, IMAGE_DIRECTORY_ENTRY_RESOURCE);
2931  PIMAGE_MENU_HEADER pMenuHeader;
2932  //PIMAGE_POPUP_MENU_ITEM pPopup;
2933  WORD* pPopup;
2934  //PIMAGE_NORMAL_MENU_ITEM pNormal;
2935  char buff[32];
2936  int /*nCnt = 0,*/ i, j;
2937  //int num = 0;
2938  int size;
2939  int sLength, nMenus;
2940  WORD flag;
2941  WORD *pwd;
2942  //DWORD prdeName;
2943  //DWORD dwBase; obsolete
2944  char *pMem/*, *pTemp*/;
2945  //BOOL isStrange = FALSE;
2946 
2947 
2948  /* get root directory of resource tree */
2950  (lpFile, IMAGE_DIRECTORY_ENTRY_RESOURCE)) == NULL)
2951  return 0;
2952 
2953  /* set pointer to first resource type entry */
2955  ((DWORD) prdType + sizeof (IMAGE_RESOURCE_DIRECTORY));
2956 
2957  for (i = 0; i < prdType->NumberOfIdEntries; i++)
2958  {
2959  if (prde->Name == RT_MENU)
2960  break;
2961  prde++;
2962  }
2963  if (prde->Name != RT_MENU)
2964  return 0;
2965 
2966  prdName = (PIMAGE_RESOURCE_DIRECTORY)
2967  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
2968  if (prdName == NULL)
2969  return 0;
2970 
2972  ((DWORD) prdName + sizeof (IMAGE_RESOURCE_DIRECTORY));
2973 
2974  // sometimes previous code tells you lots of things hidden underneath
2975  // I wish I could save all the revisions I made ... but again .... sigh.
2976  // october 12, 1997 sang
2977  //dwBase = (DWORD)((int)lpFile + psh->PointerToRawData - psh->VirtualAddress);
2978 
2979  nMenus = prdName->NumberOfNamedEntries + prdName->NumberOfIdEntries;
2980  sLength = 0;
2981 
2982  for (i = 0; i < prdName->NumberOfNamedEntries; i++)
2983  {
2984  pMenuName = (PIMAGE_RESOURCE_DIR_STRING_U)
2985  ((DWORD) prdType + (prde->Name ^ 0x80000000));
2986  sLength += pMenuName->Length + 1;
2987 
2988  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
2989  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
2990  if (prdLanguage == NULL)
2991  continue;
2992 
2994  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
2995 
2996  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
2997  ((DWORD) prdType + prde1->OffsetToData);
2998  if (prData == NULL)
2999  continue;
3000 
3001  pMenuHeader = (PIMAGE_MENU_HEADER)
3002  GetActualAddress (lpFile, prData->OffsetToData);
3003 
3004  //
3005  // normally wVersion and cbHeaderSize should be zero
3006  // but if it is not then nothing is known to us...
3007  // so let's do our best ... namely guessing .... and trying ....
3008  // ... and suffering ...
3009  // it gave me many sleepless (not exactly but I like to say this) nights.
3010  //
3011 
3012  // strange case
3013  if (pMenuHeader->wVersion | pMenuHeader->cbHeaderSize)
3014  {
3015  //isStrange = TRUE;
3016  pwd = (WORD *) ((DWORD) pMenuHeader + 16);
3017  size = prData->Size;
3018  // expect to return the length needed to report.
3019  // sixteen more bytes to do something
3020  sLength += 16 + size;
3021  //StrangeMenuScan (&sLength, &pwd, size);
3022  }
3023  // normal case
3024  else
3025  {
3026  pPopup = (WORD*)
3027  ((DWORD) pMenuHeader + sizeof (IMAGE_MENU_HEADER));
3028  while (1)
3029  {
3030  flag = (WORD) MenuScan (&sLength, (WORD **) (&pPopup));
3031  if (flag & 0x0080)
3032  break;
3033  }
3034  }
3035  prde++;
3036  }
3037  for (i = 0; i < prdName->NumberOfIdEntries; i++)
3038  {
3039  sLength += 12;
3040 
3041  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
3042  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3043  if (prdLanguage == NULL)
3044  continue;
3045 
3047  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
3048 
3049  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
3050  ((DWORD) prdType + prde1->OffsetToData);
3051  if (prData == NULL)
3052  continue;
3053 
3054  pMenuHeader = (PIMAGE_MENU_HEADER)
3055  GetActualAddress (lpFile, prData->OffsetToData);
3056  // strange case
3057  if (pMenuHeader->wVersion | pMenuHeader->cbHeaderSize)
3058  {
3059  pwd = (WORD *) ((DWORD) pMenuHeader + 16);
3060  size = prData->Size;
3061  // expect to return the length needed to report.
3062  // sixteen more bytes to do something
3063  sLength += 16 + size;
3064  //StrangeMenuScan (&sLength, &pwd, size);
3065  }
3066  // normal case
3067  else
3068  {
3069  pPopup = (WORD*)
3070  ((DWORD) pMenuHeader + sizeof (IMAGE_MENU_HEADER));
3071  while (1)
3072  {
3073  flag = (WORD) MenuScan (&sLength, (WORD **) (&pPopup));
3074  if (flag & 0x0080)
3075  break;
3076  }
3077  }
3078  prde++;
3079  }
3080  //
3081  // allocate memory for menu names
3082  //
3083  *pszResTypes = (char *) calloc (sLength, 1);
3084 
3085  pMem = *pszResTypes;
3086  //
3087  // and start all over again
3088  //
3090  ((DWORD) prdName + sizeof (IMAGE_RESOURCE_DIRECTORY));
3091 
3092  for (i = 0; i < prdName->NumberOfNamedEntries; i++)
3093  {
3094  pMenuName = (PIMAGE_RESOURCE_DIR_STRING_U)
3095  ((DWORD) prdType + (prde->Name ^ 0x80000000));
3096 
3097 
3098  for (j = 0; j < pMenuName->Length; j++)
3099  *pMem++ = (char) (pMenuName->NameString[j]);
3100  *pMem = 0;
3101  pMem++;
3102 
3103 
3104  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
3105  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3106  if (prdLanguage == NULL)
3107  continue;
3108 
3110  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
3111 
3112  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
3113  ((DWORD) prdType + prde1->OffsetToData);
3114  if (prData == NULL)
3115  continue;
3116 
3117  pMenuHeader = (PIMAGE_MENU_HEADER)
3118  GetActualAddress (lpFile, prData->OffsetToData);
3119  // strange case
3120  if (pMenuHeader->wVersion | pMenuHeader->cbHeaderSize)
3121  {
3122  pwd = (WORD *) ((DWORD) pMenuHeader);
3123  size = prData->Size;
3124  strcpy (pMem, ":::::::::::");
3125  pMem += 12;
3126  *(int *) pMem = size;
3127  pMem += 4;
3128  StrangeMenuFill (&pMem, &pwd, size);
3129  }
3130  // normal case
3131  else
3132  {
3133  pPopup = (WORD*)
3134  ((DWORD) pMenuHeader + sizeof (IMAGE_MENU_HEADER));
3135  while (1)
3136  {
3137  flag = (WORD) MenuFill (&pMem, (WORD **) (&pPopup));
3138  if (flag & 0x0080)
3139  break;
3140  }
3141  }
3142  prde++;
3143  }
3144  for (i = 0; i < prdName->NumberOfIdEntries; i++)
3145  {
3146 
3147  sprintf (buff, "MenuId_%04lX", (prde->Name));
3148  strcpy (pMem, buff);
3149  pMem += strlen (buff) + 1;
3150 
3151  prdLanguage = (PIMAGE_RESOURCE_DIRECTORY)
3152  ((DWORD) prdType + (prde->OffsetToData ^ 0x80000000));
3153  if (prdLanguage == NULL)
3154  continue;
3155 
3157  ((DWORD) prdLanguage + sizeof (IMAGE_RESOURCE_DIRECTORY));
3158 
3159  prData = (PIMAGE_RESOURCE_DATA_ENTRY)
3160  ((DWORD) prdType + prde1->OffsetToData);
3161  if (prData == NULL)
3162  continue;
3163 
3164  pMenuHeader = (PIMAGE_MENU_HEADER)
3165  GetActualAddress (lpFile, prData->OffsetToData);
3166  // strange case
3167  if (pMenuHeader->wVersion | pMenuHeader->cbHeaderSize)
3168  {
3169  pwd = (WORD *) ((DWORD) pMenuHeader);
3170  size = prData->Size;
3171  strcpy (pMem, ":::::::::::");
3172  pMem += 12;
3173  *(int *) pMem = size;
3174  pMem += 4;
3175  StrangeMenuFill (&pMem, &pwd, size);
3176  }
3177  // normal case
3178  else
3179  {
3180  pPopup = (WORD*)
3181  ((DWORD) pMenuHeader + sizeof (IMAGE_MENU_HEADER));
3182  while (1)
3183  {
3184  flag = (WORD) MenuFill (&pMem, (WORD **) (&pPopup));
3185  if (flag & 0x0080)
3186  break;
3187  }
3188  }
3189  prde++;
3190  }
3191 
3192  return nMenus;
3193 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble const GLfloat const GLdouble const GLfloat GLenum GLint GLint GLint GLint GLint GLint j
Definition: glfuncs.h:98
DWORD OffsetToData
Definition: pedump.c:416
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
struct _IMAGE_RESOURCE_DIRECTORY * PIMAGE_RESOURCE_DIRECTORY
#define sprintf(buf, format,...)
Definition: sprintf.c:55
unsigned short WORD
Definition: pedump.c:65
GLenum GLclampf GLint i
Definition: glfuncs.h:14
void pwd(int argc, const char *argv[])
Definition: cmds.c:1401
struct _IMAGE_RESOURCE_DATA_ENTRY * PIMAGE_RESOURCE_DATA_ENTRY
Definition: pedump.c:457
struct _IMAGE_RESOURCE_DIR_STRING_U * PIMAGE_RESOURCE_DIR_STRING_U
DWORD OffsetToData
Definition: pedump.c:459
GLsizeiptr size
Definition: glext.h:5919
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean flag
Definition: glfuncs.h:72
struct _IMAGE_RESOURCE_DIRECTORY IMAGE_RESOURCE_DIRECTORY
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
#define NULL
Definition: pedump.c:76
struct _IMAGE_RESOURCE_DIRECTORY_ENTRY * PIMAGE_RESOURCE_DIRECTORY_ENTRY
Definition: pedump.c:413
#define RT_MENU
Definition: pedump.c:366
LPVOID WINAPI ImageDirectoryOffset(LPVOID, DWORD)
Definition: pedump.c:1097
struct _IMAGE_MENU_HEADER IMAGE_MENU_HEADER
LPVOID WINAPI GetActualAddress(LPVOID lpFile, DWORD dwRVA)
Definition: pedump.c:1055
int WINAPI MenuScan(int *, WORD **)
Definition: pedump.c:2738
struct _IMAGE_MENU_HEADER * PIMAGE_MENU_HEADER
DWORD Name
Definition: pedump.c:415
#define calloc
Definition: rosglue.h:14
int WINAPI MenuFill(char **, WORD **)
Definition: pedump.c:2806
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
void WINAPI StrangeMenuFill(char **, WORD **, int)
Definition: pedump.c:2710
#define IMAGE_DIRECTORY_ENTRY_RESOURCE
Definition: pedump.c:261
static unsigned char buff[32768]
Definition: fatten.c:17
DWORD Size
Definition: pedump.c:460

◆ GetDosHeader()

BOOL WINAPI GetDosHeader ( LPVOID  lpFile,
PIMAGE_DOS_HEADER  pHeader 
)

Definition at line 915 of file pedump.c.

Referenced by main().

919 {
920  /*
921  * DOS header represents first structure
922  * of bytes in PE image file.
923  */
924  if ((WORD) IMAGE_DOS_SIGNATURE == *(WORD *) lpFile)
925  {
926  bcopy (
927  lpFile,
928  (LPVOID) pHeader,
929  sizeof (IMAGE_DOS_HEADER)
930  );
931  return TRUE;
932  }
933  return FALSE;
934 }
#define TRUE
Definition: pedump.c:80
#define FALSE
Definition: pedump.c:79
#define IMAGE_DOS_SIGNATURE
Definition: pedump.c:89
unsigned short WORD
Definition: ntddk_ex.h:93
#define bcopy(s, d, z)
Definition: pedump.c:54

◆ GetExportFunctionNames()

int WINAPI GetExportFunctionNames ( LPVOID  lpFile,
char **  pszFunctions 
)

Definition at line 2365 of file pedump.c.

Referenced by main().

2368 {
2369  //PIMAGE_SECTION_HEADER psh;
2371  //DWORD dwBase;
2372  DWORD imageBase; //===========================
2373 
2374  char *pfns[8192] =
2375  {NULL,}; // maximum number of functions
2376  //=============================
2377 
2378  char buff[256]; // enough for any string ??
2379 
2380  char *psz = NULL; //===============================
2381 
2382  DWORD *pdwAddress;
2383  DWORD *pdw1;
2384  DWORD *pdwNames;
2385  WORD *pwOrd;
2386  int i, nCnt = 0, ntmp = 0;
2387  int enid = 0, ordBase = 1; // usally ordBase is 1....
2388 
2389  int enames = 0;
2390 
2391  /* get section header and pointer to data directory for .edata section */
2392  ped = (PIMAGE_EXPORT_DIRECTORY)
2394 
2395  if (ped == NULL)
2396  return 0;
2397 
2398  //
2399  // sometimes there may be no section for idata or edata
2400  // instead rdata or data section may contain these sections ..
2401  // or even module names or function names are in different section.
2402  // so that's why we need to get actual address each time.
2403  // ...................sang cho..................
2404  //
2405  //psh = (PIMAGE_SECTION_HEADER)
2406  //ImageDirectorySection(lpFile, IMAGE_DIRECTORY_ENTRY_EXPORT);
2407 
2408  //if (psh == NULL) return 0;
2409 
2410  //dwBase = (DWORD)((int)lpFile + psh->PointerToRawData - psh->VirtualAddress);
2411 
2412 
2413  /* determine the offset of the export function names */
2414 
2415  pdwAddress = (DWORD *) GetActualAddress (lpFile, (DWORD) ped->AddressOfFunctions);
2416 
2417  imageBase = (DWORD) GetImageBase (lpFile);
2418 
2419  ordBase = ped->Base;
2420 
2421  if (ped->NumberOfNames > 0)
2422  {
2423  pdwNames = (DWORD *)
2424  GetActualAddress (lpFile, (DWORD) ped->AddressOfNames);
2425  pwOrd = (WORD *)
2426  GetActualAddress (lpFile, (DWORD) ped->AddressOfNameOrdinals);
2427  pdw1 = pdwAddress;
2428 
2429  /* figure out how much memory to allocate for all strings */
2430  for (i = 0; i < (int) ped->NumberOfNames; i++)
2431  {
2432  nCnt += strlen ((char *)
2433  GetActualAddress (lpFile, *(DWORD *) pdwNames)) + 1 + 6;
2434  pdwNames++;
2435  }
2436  // get the number of unnamed functions
2437  for (i = 0; i < (int) ped->NumberOfFunctions; i++)
2438  if (*pdw1++)
2439  ntmp++;
2440  // add memory required to show unnamed functions.
2441  if (ntmp > (int) ped->NumberOfNames)
2442  nCnt += 18 * (ntmp - (int) ped->NumberOfNames);
2443 
2444  /* allocate memory for function names */
2445 
2446  *pszFunctions = (char *) calloc (nCnt, 1);
2447  pdwNames = (DWORD *) GetActualAddress (lpFile, (DWORD) ped->AddressOfNames);
2448 
2449  /* copy string pointer to buffer */
2450 
2451  for (i = 0; i < (int) ped->NumberOfNames; i++)
2452  {
2453  pfns[(int) (*pwOrd) + ordBase] =
2454  (char *) GetActualAddress (lpFile, *(DWORD *) pdwNames);
2455  pdwNames++;
2456  pwOrd++;
2457  }
2458 
2459  psz = *pszFunctions;
2460  }
2461 
2462  for (i = ordBase; i < (int) ped->NumberOfFunctions + ordBase; i++)
2463  {
2464  if (*pdwAddress > 0)
2465  {
2466  *(DWORD *) psz = imageBase + *pdwAddress;
2467  psz += 4;
2468  *(WORD *) psz = (WORD) (i);
2469  psz += 2;
2470  if (pfns[i])
2471  {
2472  strcpy (psz, pfns[i]);
2473  psz += strlen (psz) + 1;
2474  }
2475  else
2476  {
2477  sprintf (buff, "ExpFn%04d()", enid++);
2478  strcpy (psz, buff);
2479  psz += 12;
2480  }
2481  enames++;
2482  }
2483  pdwAddress++;
2484  }
2485 
2486  return enames;
2487 
2488 }
#define IMAGE_DIRECTORY_ENTRY_EXPORT
Definition: pedump.c:259
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
unsigned long DWORD
Definition: pedump.c:62
DWORD AddressOfNameOrdinals
Definition: compat.h:155
#define sprintf(buf, format,...)
Definition: sprintf.c:55
GLenum GLclampf GLint i
Definition: glfuncs.h:14
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
#define NULL
Definition: pedump.c:76
struct _IMAGE_EXPORT_DIRECTORY * PIMAGE_EXPORT_DIRECTORY
LPVOID WINAPI ImageDirectoryOffset(LPVOID, DWORD)
Definition: pedump.c:1097
LPVOID WINAPI GetImageBase(LPVOID)
Definition: pedump.c:1035
LPVOID WINAPI GetActualAddress(LPVOID lpFile, DWORD dwRVA)
Definition: pedump.c:1055
#define calloc
Definition: rosglue.h:14
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
static unsigned char buff[32768]
Definition: fatten.c:17
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29

◆ GetImageBase()

LPVOID WINAPI GetImageBase ( LPVOID  lpFile)

Definition at line 1035 of file pedump.c.

Referenced by GetExportFunctionNames().

1037 {
1039 
1040  if (poh != NULL)
1041  return (LPVOID) (poh->ImageBase);
1042  else
1043  return NULL;
1044 }
#define OPTHDROFFSET(a)
Definition: pedump.c:815
struct _IMAGE_OPTIONAL_HEADER * PIMAGE_OPTIONAL_HEADER
#define NULL
Definition: pedump.c:76

◆ GetImportFunctionNamesByModule()

int WINAPI GetImportFunctionNamesByModule ( LPVOID  lpFile,
char pszModule,
char **  pszFunctions 
)

Definition at line 1265 of file pedump.c.

Referenced by main().

1269 {
1272  //
1273  // sometimes there may be no section for idata or edata
1274  // instead rdata or data section may contain these sections ..
1275  // or even module names or function names are in different section.
1276  // so that's why we need to get actual address each time.
1277  // ...................sang cho..................
1278  //
1279  //PIMAGE_SECTION_HEADER psh = (PIMAGE_SECTION_HEADER)
1280  //ImageDirectorySection (lpFile, IMAGE_DIRECTORY_ENTRY_IMPORT);
1281  //DWORD dwBase;
1282  int nCnt = 0, nSize = 0;
1283  int nnid = 0;
1284  int mnlength, i;
1285  DWORD dwFunctionName