ReactOS  r73918
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_DIRECTORY
PIMAGE_DATA_DIRECTORY
 
typedef struct
_IMAGE_OPTIONAL_HEADER 
IMAGE_OPTIONAL_HEADER
 
typedef struct
_IMAGE_OPTIONAL_HEADER
PIMAGE_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_HEADER
PIMAGE_SECTION_HEADER
 
typedef struct
_IMAGE_EXPORT_DIRECTORY 
IMAGE_EXPORT_DIRECTORY
 
typedef struct
_IMAGE_EXPORT_DIRECTORY
PIMAGE_EXPORT_DIRECTORY
 
typedef struct
_IMAGE_IMPORT_BY_NAME 
IMAGE_IMPORT_BY_NAME
 
typedef struct
_IMAGE_IMPORT_BY_NAME
PIMAGE_IMPORT_BY_NAME
 
typedef struct
_IMAGE_RESOURCE_DIRECTORY 
IMAGE_RESOURCE_DIRECTORY
 
typedef struct
_IMAGE_RESOURCE_DIRECTORY
PIMAGE_RESOURCE_DIRECTORY
 
typedef struct
_IMAGE_RESOURCE_DIRECTORY_ENTRY 
IMAGE_RESOURCE_DIRECTORY_ENTRY
 
typedef struct
_IMAGE_RESOURCE_DIRECTORY_ENTRY
PIMAGE_RESOURCE_DIRECTORY_ENTRY
 
typedef struct
_IMAGE_RESOURCE_DIRECTORY_STRING 
IMAGE_RESOURCE_DIRECTORY_STRING
 
typedef struct
_IMAGE_RESOURCE_DIRECTORY_STRING
PIMAGE_RESOURCE_DIRECTORY_STRING
 
typedef struct
_IMAGE_RESOURCE_DIR_STRING_U 
IMAGE_RESOURCE_DIR_STRING_U
 
typedef struct
_IMAGE_RESOURCE_DIR_STRING_U
PIMAGE_RESOURCE_DIR_STRING_U
 
typedef struct
_IMAGE_RESOURCE_DATA_ENTRY 
IMAGE_RESOURCE_DATA_ENTRY
 
typedef struct
_IMAGE_RESOURCE_DATA_ENTRY
PIMAGE_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_ITEM
PIMAGE_POPUP_MENU_ITEM
 
typedef struct
_IMAGE_NORMAL_MENU_ITEM 
IMAGE_NORMAL_MENU_ITEM
 
typedef struct
_IMAGE_NORMAL_MENU_ITEM
PIMAGE_NORMAL_MENU_ITEM
 
typedef struct
_IMAGE_DIALOG_BOX_HEADER1 
IMAGE_DIALOG_HEADER
 
typedef struct
_IMAGE_DIALOG_BOX_HEADER1
PIMAGE_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_DATA
PIMAGE_CONTROL_DATA
 
typedef struct
_IMAGE_DEBUG_DIRECTORY 
IMAGE_DEBUG_DIRECTORY
 
typedef struct
_IMAGE_DEBUG_DIRECTORY
PIMAGE_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_HEADER
PIMAGE_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

#define bcopy (   s,
  d,
  z 
)    memcpy((d),(s),(z))
#define BITMAP   0x0004

Definition at line 503 of file pedump.c.

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

#define BS_3STATE   0x00000005L

Definition at line 656 of file pedump.c.

Referenced by test_button_messages(), and WinMain().

#define BS_AUTO3STATE   0x00000006L

Definition at line 657 of file pedump.c.

Referenced by ButtonWndProc_common(), set_check_box(), test_button_messages(), and WinMain().

#define BS_CHECKBOX   0x00000002L
#define BS_LEFTTEXT   0x00000020L

Definition at line 662 of file pedump.c.

Referenced by CB_Paint().

#define BS_RADIOBUTTON   0x00000004L
#define BS_USERBUTTON   0x00000008L

Definition at line 659 of file pedump.c.

Referenced by ButtonWndProc_common(), and test_button_messages().

#define BUTTON   0x80

Definition at line 581 of file pedump.c.

#define CHECKED   0x0008

Definition at line 505 of file pedump.c.

#define COMBOBOX   0x85

Definition at line 586 of file pedump.c.

#define CONST   const

Definition at line 81 of file pedump.c.

#define EDIT   0x81

Definition at line 582 of file pedump.c.

#define ENDMENU   0x0080

Definition at line 509 of file pedump.c.

#define ES_LOWERCASE   0x00000010L
#define ES_MULTILINE   0x00000004L

Definition at line 667 of file pedump.c.

Referenced by CRichEdit::Create(), CreateRichEdit(), 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_WM_Char(), EDIT_WM_HScroll(), EDIT_WM_KeyDown(), EDIT_WM_NCCreate(), EDIT_WM_Paint(), 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_KeyDown(), ME_MakeEditor(), ME_ScrollAbs(), ME_SetText(), ME_UpdateScrollBar(), msi_dialog_scrolltext_control(), new_richedit(), new_richeditW(), CTextEditWindow::OnCreate(), OnCreate(), parent_wnd_proc(), test_autoscroll(), 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_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().

#define ES_OEMCONVERT   0x00000400L

Definition at line 674 of file pedump.c.

Referenced by COMBO_Create().

#define ES_UPPERCASE   0x00000008L
#define GRAYED   0x0001

Definition at line 501 of file pedump.c.

#define IMAGE_DEBUG_TYPE_CODEVIEW   2

Definition at line 725 of file pedump.c.

#define IMAGE_DEBUG_TYPE_COFF   1

Definition at line 724 of file pedump.c.

#define IMAGE_DEBUG_TYPE_EXCEPTION   5

Definition at line 728 of file pedump.c.

#define IMAGE_DEBUG_TYPE_FIXUP   6

Definition at line 729 of file pedump.c.

#define IMAGE_DEBUG_TYPE_FPO   3

Definition at line 726 of file pedump.c.

#define IMAGE_DEBUG_TYPE_MISC   4

Definition at line 727 of file pedump.c.

Referenced by RetrieveModuleName().

#define IMAGE_DEBUG_TYPE_OMAP_FROM_SRC   8

Definition at line 731 of file pedump.c.

#define IMAGE_DEBUG_TYPE_OMAP_TO_SRC   7

Definition at line 730 of file pedump.c.

#define IMAGE_DEBUG_TYPE_UNKNOWN   0

Definition at line 723 of file pedump.c.

#define IMAGE_DIRECTORY_ENTRY_BASERELOC   5
#define IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT   11

Definition at line 270 of file pedump.c.

Referenced by LdrpUpdateLoadCount3(), and LdrpWalkImportDescriptor().

#define IMAGE_DIRECTORY_ENTRY_COPYRIGHT   7

Definition at line 266 of file pedump.c.

#define IMAGE_DIRECTORY_ENTRY_DEBUG   6

Definition at line 265 of file pedump.c.

Referenced by RetrieveModuleName().

#define IMAGE_DIRECTORY_ENTRY_EXCEPTION   3
#define IMAGE_DIRECTORY_ENTRY_EXPORT   0

Definition at line 259 of file pedump.c.

Referenced by GetExportFunctionNames().

#define IMAGE_DIRECTORY_ENTRY_GLOBALPTR   8

Definition at line 267 of file pedump.c.

#define IMAGE_DIRECTORY_ENTRY_IAT   12

Definition at line 271 of file pedump.c.

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

#define IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG   10

Definition at line 269 of file pedump.c.

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

#define IMAGE_DIRECTORY_ENTRY_SECURITY   4

Definition at line 263 of file pedump.c.

Referenced by SOFTPUB_HashPEFile().

#define IMAGE_DIRECTORY_ENTRY_TLS   9

Definition at line 268 of file pedump.c.

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

#define IMAGE_FILE_32BIT_MACHINE   0x0100

Definition at line 164 of file pedump.c.

Referenced by test_import_resolution().

#define IMAGE_FILE_BYTES_REVERSED_HI   0x8000

Definition at line 171 of file pedump.c.

#define IMAGE_FILE_BYTES_REVERSED_LO   0x0080

Definition at line 163 of file pedump.c.

#define IMAGE_FILE_DEBUG_STRIPPED   0x0200

Definition at line 165 of file pedump.c.

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

#define IMAGE_FILE_EXECUTABLE_IMAGE   0x0002
#define IMAGE_FILE_LINE_NUMS_STRIPPED   0x0004

Definition at line 161 of file pedump.c.

Referenced by CreateOutputFile().

#define IMAGE_FILE_LOCAL_SYMS_STRIPPED   0x0008

Definition at line 162 of file pedump.c.

Referenced by CreateOutputFile().

#define IMAGE_FILE_MACHINE_ALPHA   0x184

Definition at line 178 of file pedump.c.

#define IMAGE_FILE_MACHINE_POWERPC   0x1F0

Definition at line 179 of file pedump.c.

#define IMAGE_FILE_MACHINE_R10000   0x168

Definition at line 177 of file pedump.c.

#define IMAGE_FILE_MACHINE_R3000   0x162

Definition at line 175 of file pedump.c.

#define IMAGE_FILE_MACHINE_R4000   0x166

Definition at line 176 of file pedump.c.

#define IMAGE_FILE_MACHINE_UNKNOWN   0

Definition at line 173 of file pedump.c.

Referenced by test_Loader().

#define IMAGE_FILE_NET_RUN_FROM_SWAP   0x0800

Definition at line 167 of file pedump.c.

#define IMAGE_FILE_RELOCS_STRIPPED   0x0001
#define IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP   0x0400

Definition at line 166 of file pedump.c.

#define IMAGE_FILE_SYSTEM   0x1000

Definition at line 168 of file pedump.c.

Referenced by LdrpCreateDllSection().

#define IMAGE_FILE_UP_SYSTEM_ONLY   0x4000

Definition at line 170 of file pedump.c.

Referenced by MmCreatePeb(), and MmVerifyImageIsOkForMpUse().

#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES   16

Definition at line 195 of file pedump.c.

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

Definition at line 336 of file pedump.c.

Referenced by LdrpGetProcedureAddress(), and test_ResolveDelayLoadedAPI().

#define IMAGE_OS2_SIGNATURE_LE   0x454C

Definition at line 91 of file pedump.c.

Referenced by ImageFileType(), and SdbpGetModuleType().

#define IMAGE_RESOURCE_DATA_IS_DIRECTORY   0x80000000

Definition at line 396 of file pedump.c.

#define IMAGE_RESOURCE_NAME_IS_STRING   0x80000000

Definition at line 395 of file pedump.c.

#define IMAGE_SEPARATE_DEBUG_FLAGS_MASK   0x8000

Definition at line 790 of file pedump.c.

#define IMAGE_SEPARATE_DEBUG_MISMATCH   0x8000

Definition at line 791 of file pedump.c.

#define IMAGE_SEPARATE_DEBUG_SIGNATURE   0x4944

Definition at line 788 of file pedump.c.

Referenced by GetSeparateDebugHeader(), and IsDebugFile().

#define IMAGE_SIZEOF_FILE_HEADER   20

Definition at line 157 of file pedump.c.

#define IMAGE_SIZEOF_SECTION_HEADER   40

Definition at line 300 of file pedump.c.

#define IMAGE_SIZEOF_SHORT_NAME   8
#define IMAGE_VXD_SIGNATURE   0x454C

Definition at line 92 of file pedump.c.

#define INACTIVE   0x0002

Definition at line 502 of file pedump.c.

#define LBS_DISABLENOSCROLL   0x1000L
#define LBS_OWNERDRAWFIXED   0x0010L
#define LBS_USETABSTOPS   0x0080L

Definition at line 685 of file pedump.c.

Referenced by LISTBOX_PaintItem(), and LISTBOX_SetTabStops().

#define LBS_WANTKEYBOARDINPUT   0x0400L

Definition at line 688 of file pedump.c.

Referenced by LISTBOX_HandleChar(), and LISTBOX_HandleKeyDown().

#define LISTBOX   0x83

Definition at line 584 of file pedump.c.

#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(), add_purpose_dlg_proc(), AddGroupToUserDlgProc(), AddPageProc(), addr_to_linear(), QuickLaunchBar::AddShortcuts(), AddUsersToGroupDlgProc(), AdvancedDlgProc(), AdvancedPageProc(), AdvAppearanceDlgProc(), AdvGeneralPageProc(), AdvProcDetailsDlgProc(), AdvProcDriverDlgProc(), AdvPropGeneralDlgProc(), AffinityDialogWndProc(), Ala_InitData(), ANIMATE_GetAviInfo(), ANIMATE_WindowProc(), AppearancePageProc(), ApplicationPageWndProc(), ApplyProc(), AskTagProc(), AttachToConsoleInternal(), ATTDlgWinProc(), AudioDlgProc(), auxMessage(), AVISaveOptionsDlgProc(), BackgroundPageProc(), BaseWindowImpl_OnReceiveMessage(), Bios32Post(), BiosDiskService(), BiosMouseIrq(), BiosTimeService(), BounceKeysDlgProc(), BrightnessProc(), BrowseDlgProc(), ButtonProc(), ButtonWndProc_common(), CalcCheckSum(), calculate_install_state(), CallMouseUserHandlers(), capGetDriverDescriptionW(), CaptureDialogProc(), CardBackDlgProc(), CC_PaintTriangle(), CC_WMCommand(), cert_properties_general_dlg_proc(), CertOpenStore(), CertVerifyCertificateChainPolicy(), CFn_WMCommand(), CFn_WMInitDialog(), ChangeKeySeqDialogProc(), ChangePasswordDialogProc(), ChangePasswordDlgProc(), CMenuToolbarBase::ChangeTrackedItem(), CharLowerA(), CharLowerW(), CharMapDlgProc(), CharUpperA(), CharUpperW(), check_menu_item_info(), CheckCdrwFilter(), checkChainPolicyStatus(), CheckCommentLength(), CheckForFileInfo(), CheckListWndProc(), CheckSumMappedFile(), ChildWndProc(), ChkDskDlg(), CHSIZEDlgWinProc(), CHSourceDlgProc(), ClassNameToVersion(), ClbpStyleDlgProc(), ClickLockProc(), ClipboardCommandHandler(), CLIPFORMAT_UserMarshal(), CLIPFORMAT_UserSize(), ClockWndProc(), cmd_label(), co_IntProcessKeyboardMessage(), co_MsqInsertMouseMessage(), co_WinPosShowWindow(), ColorsProc(), ColumnsDialogWndProc(), COMBO_LButtonDown(), COMBO_MouseMove(), COMBOEX_ComboWndProc(), COMBOEX_WindowProc(), ComboWndProc_common(), COMDLG32_FindReplaceDlgProc(), CommonWndProc(), compare_menu_data(), CDrivesFolder::CompareIDs(), CControlPanelFolder::CompareIDs(), CFSFolder::CompareIDs(), CRecycleBin::CompareIDs(), CompatibilityPageProc(), ConCfgReadUserSettings(), ConfigDlgProc(), ConfigureDevicesDlgProc(), CongratsDlgProc(), ConnectionDialogProc(), ConsoleMainFrameWndProc(), ConSrvReadUserSettings(), content_dlgproc(), CExplorerBand::ContextMenuHack(), ContrastProc(), Control_WndProc(), ConWndProc(), CopyProfileDlgProc(), CPoint::CPoint(), 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(), DeviceInterruptBop(), 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(), CDefaultContextMenu::DoDynamicShellExtensions(), DosAbsoluteRead(), DosAbsoluteWrite(), DosAddDriver(), DosChangeDirectory(), DosCmdInterpreterBop(), DosDeleteDevice(), DosFindDeviceDescriptor(), DosFindFreeDescriptor(), DosFindWin32Descriptor(), DosGetCountryInfo(), DosGetDevice(), DosGetDriverNode(), DosGetFileDescriptor(), DosInt21h(), DosInt2Fh(), DosLoadDriver(), DosLoadExecutableInternal(), DosMouseService(), DosReadFile(), DosRemoveDriver(), DosResizeHandleTable(), CDefaultContextMenu::DoStaticShellExtensions(), 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_WM_KeyDown(), EditCompatibilityModesProc(), EditDialogProc(), EditGlyphDlgProc(), EditVariableDlgProc(), EffAppearanceDlgProc(), EndNowDlgProc(), EnvironmentDlgProc(), ET2_WndProc(), EventDetails(), EventDetailsCtrl(), EventLogPropProc(), export_format_dlg_proc(), ExtendedShortcutProc(), 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(), 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(), GetExecutableVendor(), CListView::GetItemSpacing(), GetLayoutIDByHkl(), getMSW(), GetPropW(), GetServices(), CQueryAssociations::GetString(), GinaLoadFailedWindowProc(), GplDlgProc(), GROUP_GroupWndProc(), GroupGeneralPageProc(), GroupsPageProc(), GuiConsoleHandleKey(), GuiConsoleHandleNcCreate(), GuiConsoleHandleScroll(), GuiConsoleReadUserSettings(), GuiConsoleResize(), GuiConsoleWndProc(), handle_context_menu(), 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(), HandleHorizontalScrollEvents(), CNewMenu::HandleMenuMsg2(), HandleVerticalScrollEvents(), HardProfDlgProc(), HardwareDlgProc(), HardwarePageProc(), 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(), CDefaultContextMenu::InsertMenuItemsOfDynamicContextMenuExtension(), InsertTabCtrlItem(), InstallDlgProc(), Int32Call(), IntClearWindowState(), IntConvertMsgToAnsi(), IntDefWindowProc(), interface_variant_marshal(), interface_variant_size(), IntFlashWindowEx(), IntMapWindowPoints(), IntMsqSetWakeMask(), IntSetMenuItemInfo(), IntSetWindowState(), IntTranslateKbdMessage(), CDefViewBckgrndMenu::InvokeCommand(), COpenWithMenu::InvokeCommand(), CRecycleBin::InvokeCommand(), CNewMenu::InvokeCommand(), CDefaultContextMenu::InvokeCommand(), IOCS_OnWndProc(), IOWriteD(), IPropertyStorage_fnWriteMultiple(), IsAccelerator(), IsDialogMessageW(), ITypeInfo_fnGetDllEntry(), ITypeLib2_Constructor_MSFT(), JoystickWGenericImpl_GetProperty(), JoystickWGenericImpl_SetProperty(), K32LoadStringW(), KbdBiosINT(), KbdBiosIRQ(), KeyboardPageProc(), KeyboardSpeedProc(), KeySettingsDialogProc(), LanguagesPageProc(), CNetConnectionPropertyUi::LANPropertiesUIDlg(), LANStatusDlg(), LANStatusUiAdvancedDlg(), LANStatusUiDetailsDlg(), LANStatusUiDlg(), LayoutList_GetByHkl(), LayoutProc(), LdrProcessRelocationBlockLongLong(), LdrVerifyMappedImageMatchesChecksum(), LegalNoticeDialogProc(), LicenceDlgProc(), ListAllModesDlgProc(), LISTBOX_HandleKeyDown(), ListBoxWndProc_common(), LISTVIEW_Command(), LISTVIEW_SetIconSpacing(), LISTVIEW_TrackMouse(), LISTVIEW_WindowProc(), load_string(), LoadHive_KeyNameInHookProc(), LoadKeyboardLayoutW(), LoadStringA(), LoadStringW(), LocaleDlgProc(), LocaleList_Create(), LocaleList_GetByHkl(), LocalePageDlgProc(), LoggedOnWindowProc(), LoggedOutWindowProc(), LogOffDialogProc(), LogonPageProc(), LrgCellWndProc(), LsapLoadString(), MAIN_MainWndProc(), MainDialogProc(), MainDlgProc(), MainPageProc(), MainProc(), MainWindow_WndProc(), MainWindowProc(), MainWndOnCommand(), MainWndOnSize(), 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(), MousePageProc(), MRDlgWinProc(), MsConfigWndProc(), MSFT_DoFuncs(), MSFT_DoTypeInfo(), MSIDialog_WndProc(), MSISelectionTree_WndProc(), mstsc_mousewheel(), mstsc_WndProc(), multi_edit_dialog_proc(), MultiWndProc(), MyMessageBox(), NetIDPageProc(), NetworkPropDlgProc(), NewDocSelDlgProc(), 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(), CTaskSwitchWnd::OnCommand(), 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(), CTrayClockWnd::OnSetFont(), CMainWindow::OnSize(), OnSize(), CAddressBand::OnSize(), CBaseBar::OnSize(), CInternetToolbar::OnSize(), CDefView::OnSize(), CSysPagerWnd::OnSize(), CTrayClockWnd::OnSize(), CTrayNotifyWnd::OnSize(), CTaskSwitchWnd::OnSize(), CTrayWindow::OnSize(), CScrollboxWindow::OnVScroll(), OptionProc(), OptionsDlgProc(), OptionsProc(), 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(), CLayerUIPropPage::PropDlgProc(), PROPSHEET_DialogProc(), PROPSHEET_InsertPage(), PROPSHEET_SetTitleW(), PropSheetDlgProc(), ps_dlg_proc(), QUERY_REGISTRY_KEYS_ROUTINE(), RealMsgWaitForMultipleObjectsEx(), REBAR_LButtonDown(), REBAR_MouseMove(), REBAR_NCHitTest(), REBAR_SetCursor(), RecoveryPageProc(), 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(), search_res_tlb(), SecurityPageProc(), SerialKeysDlgProc(), serverwnd_proc(), ServicesPageWndProc(), set_focus_on_activate_proc(), SetMaxDate(), SetMinDate(), SetPropW(), SettingsDlgProc(), SettingsPageProc(), ATL::CWindow::SetWindowWord(), CShellLink::SH_ShellLinkDlgProc(), SHDlgProcEx(), shell_embedding_proc(), ShellMessageBoxA(), ShellMessageBoxW(), ShellMessageBoxWrapW(), ShutdownComputerWindowProc(), ShutdownDialogProc(), ShutdownGuiProc(), SizeDetailsDlgProc(), SortPageProc(), SoundPageProc(), SoundPageWndProc(), SoundsDlgProc(), SPY_DumpStructure(), START_TEST(), StartDlgProc(), StartMenuPageProc(), StartRecDlgProc(), StaticWndProc_common(), STATUSBAR_Relay2Tip(), STATUSBAR_SendMouseNotify(), StatusWindowProc(), STGMEDIUM_UserMarshal(), STGMEDIUM_UserSize(), StickyKeysDlgProc(), StopDependsDialogProc(), StoreDriveSettings(), SubclassedWindow::SubclassedWndProc(), SysKeyboardWImpl_GetProperty(), SysLinkWindowProc(), SysMouseWImpl_GetProperty(), SysSettingsDlgProc(), TAB_LButtonDown(), TAB_NCHitTest(), TAB_RecalcHotTrack(), TAB_RelayEvent(), TAB_SetItemSize(), TAB_SetPadding(), TAB_WindowProc(), TabDlgProc(), tabstops_proc(), TaskbarPageProc(), TaskManagerWndProc(), TcpipAddDNSDlg(), TcpipAddIpDlg(), TcpipAddSuffixDlg(), TcpipAdvancedDnsDlg(), TcpipAdvancedIpDlg(), TcpipAdvancedOptDlg(), TcpipAdvGwDlg(), TcpipBasicDlg(), TcpipFilterPortDlg(), TcpipFilterSettingsDlg(), test_capabilities(), test_custom_default_button(), test_DoEnvironmentSubst(), test_edit_control_3(), test_edit_control_4(), test_editselection(), test_editselection_focus(), test_EM_POSFROMCHAR(), 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_wiznavigation(), test_WM_NEXTDLGCTL(), TestDefButtonDlgProc(), testDlgWinProc(), TestInitDialogHandleProc(), TestState(), 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(), 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(), TREEVIEW_Command(), TREEVIEW_HScroll(), TREEVIEW_LButtonDoubleClick(), TREEVIEW_LButtonDown(), TREEVIEW_MouseMove(), TREEVIEW_RButtonDown(), TREEVIEW_Size(), TREEVIEW_TrackMouse(), TREEVIEW_VScroll(), UIINSOBJDLG_OnWMCommand(), RdpClientUI::UIWindowProc(), UnlockWindowProc(), unpack_dde_message(), UnpackDDElParam(), update_checksum(), UpdateDriverVersionInfoDetails(), UpdateResourceA(), UpDownWindowProc(), url_oid_to_str(), User32DefWindowProc(), UserGeneralPageProc(), UserMembershipPageProc(), UserProfileDlgProc(), UserProfilePageProc(), UsersPageProc(), UserUpdateUiState(), ValidateVbeInfo(), VbeService(), version_test(), CFileDefExt::VersionPageProc(), VersionRegisterClass(), VgaTranslateAddress(), VidBiosINT(), VidBiosVideoService(), ViewDlg_OnTreeViewClick(), VirtMemDlgProc(), VolumeDlgProc(), 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(), 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(), WebChildWindow::WndProc(), write_resources(), and XmsBopProcedure().

#define MAXNAMESTRNUMBER   40

Definition at line 3916 of file pedump.c.

#define MAXRESOURCENAME   13

Definition at line 801 of file pedump.c.

Referenced by GetListOfResourceTypes().

#define MAXSECTIONNUMBER   16

Definition at line 3915 of file pedump.c.

Referenced by main().

#define MENUBARBREAK   0x0020

Definition at line 507 of file pedump.c.

#define MENUBREAK   0x0040

Definition at line 508 of file pedump.c.

#define NEWBITMAP   (RT_BITMAP|RT_NEWRESOURCE)

Definition at line 377 of file pedump.c.

#define NEWDIALOG   (RT_DIALOG|RT_NEWRESOURCE)

Definition at line 379 of file pedump.c.

#define NEWMENU   (RT_MENU|RT_NEWRESOURCE)

Definition at line 378 of file pedump.c.

#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().

#define OPTHDROFFSET (   a)
Value:
((LPVOID)((BYTE *)a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew + \
#define SIZE_OF_NT_SIGNATURE
Definition: pedump.c:800
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
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().

#define OWNERDRAW   0x0100

Definition at line 504 of file pedump.c.

#define PEFHDROFFSET (   a)
Value:
((LPVOID)((BYTE *)a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew + \
#define SIZE_OF_NT_SIGNATURE
Definition: pedump.c:800
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().

#define POPUP   0x0010

Definition at line 506 of file pedump.c.

#define RT_ACCELERATORS   9

Definition at line 371 of file pedump.c.

#define RT_ERROR   0x7fff

Definition at line 362 of file pedump.c.

#define RT_FONT   8

Definition at line 370 of file pedump.c.

#define RT_FONTDIR   7

Definition at line 369 of file pedump.c.

#define RT_GROUP_CURSOR   12

Definition at line 374 of file pedump.c.

Referenced by CURSORICON_LoadImageW(), and START_TEST().

#define RT_GROUP_ICON   14
#define RT_MENU   4

Definition at line 366 of file pedump.c.

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

#define RT_MESSAGETABLE   11

Definition at line 373 of file pedump.c.

Referenced by load_message(), and UserpFormatMessages().

#define RT_NEWRESOURCE   0x2000

Definition at line 361 of file pedump.c.

#define RT_VERSION   16

Definition at line 376 of file pedump.c.

Referenced by create_file_with_version(), and get_module_version().

#define SCROLLBAR   0x84

Definition at line 585 of file pedump.c.

#define SECHDROFFSET (   a)
Value:
((LPVOID)((BYTE *)a + \
((PIMAGE_DOS_HEADER)a)->e_lfanew + \
#define SIZE_OF_NT_SIGNATURE
Definition: pedump.c:800
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
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().

#define SIZE_OF_NT_SIGNATURE   sizeof (DWORD)

Definition at line 800 of file pedump.c.

#define SS_BITMAP   0x0000000EL
#define SS_BLACKFRAME   0x00000007L

Definition at line 699 of file pedump.c.

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

#define SS_BLACKRECT   0x00000004L

Definition at line 696 of file pedump.c.

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

#define SS_CENTER   0x00000001L

Definition at line 693 of file pedump.c.

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

#define SS_GRAYFRAME   0x00000008L

Definition at line 700 of file pedump.c.

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

#define SS_GRAYRECT   0x00000005L

Definition at line 697 of file pedump.c.

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

#define SS_LEFTNOWORDWRAP   0x0000000CL

Definition at line 703 of file pedump.c.

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

#define SS_RIGHT   0x00000002L
#define SS_SIMPLE   0x0000000BL

Definition at line 702 of file pedump.c.

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

#define SS_WHITEFRAME   0x00000009L

Definition at line 701 of file pedump.c.

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

#define SS_WHITERECT   0x00000006L

Definition at line 698 of file pedump.c.

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

#define STATIC   0x82

Definition at line 583 of file pedump.c.

#define VOID   void

Definition at line 72 of file pedump.c.

#define WINAPI   __stdcall

Definition at line 83 of file pedump.c.

#define WS_BORDER   0x00800000L

Definition at line 625 of file pedump.c.

Referenced by CMenuDeskBar::_AdjustForTheme(), 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(), CreateListView(), CreateMemoryDialog(), CreateSwitcherWindow(), DATETIME_Create(), DATETIME_StyleChanged(), DIALOG_CreateControls32(), DrawClassicFrame(), EDIT_SetRectNP(), EDIT_WM_NCCreate(), EDIT_WM_Paint(), FrameOnCreate(), FrameWndProc(), ICONTITLE_Create(), CAutoComplete::Init(), CDeviceView::Initialize(), IntFlashWindowEx(), IntGetScrollBarRect(), IntScrollGetScrollBarRect(), IPADDRESS_Create(), CTrayWindow::Lock(), 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_CB_GETLBTEXT(), test_comboboxex(), test_comboboxex_subclass(), test_contextmenu(), test_create_tooltip(), test_dialog_messages(), test_dialog_styles(), test_edit_control_2(), test_edit_control_5(), test_EM_GETHANDLE(), test_get_set_item(), 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_create(), test_WM_WINDOWPOSCHANGING(), theme_changed(), TOOLBAR_AutoSize(), TOOLBAR_NCPaint(), TOOLTIPS_NCCreate(), CTrayWindow::TrayPropertiesThread(), TREEVIEW_EditLabel(), UpDownWindowProc(), wine_AdjustWindowRectEx(), WINHELP_GetPopupWindowInfo(), WinMain(), and WinPosGetMinMaxInfo().

#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(), CreateApplicationWindow(), CreateMemoryDialog(), createParentWindow(), CreateWindowExA(), CreateWindowExW(), CreateWnd(), DefWndNCHitTest(), DefWndSetIcon(), DIALOG_CreateIndirect(), fullscreen_style(), ICONTITLE_Create(), ImageView_CreateWindow(), init_procs(), InitInstance(), IntCreateWindow(), IntDefWindowProc(), intGetTitleBarInfo(), MCIWND_Create(), MCIWndCreateW(), mdi_child_wnd_proc_1(), mdi_child_wnd_proc_2(), MessageBoxTimeoutIndirectW(), mi_create_window(), NC_DoNCPaint(), NC_HandleNCCalcSize(), NC_HandleNCLButtonDblClk(), OnPostWinPosChanged(), PROPSHEET_CreatePage(), PropSheetCallback(), RealAdjustWindowRectEx(), RealDefWindowProcA(), RealDefWindowProcW(), 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(), ThemeHandleButton(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), ThemePaintWindow(), UserAdjustWindowRectEx(), UserDrawCaptionBar(), UserGetWindowBorders(), UserHasWindowEdge(), UserPaintCaption(), wine_AdjustWindowRectEx(), WinMain(), WinPosGetMinMaxInfo(), WinPosInitInternalPos(), StartMenu::WndProc(), and wWinMain().

#define WS_CHILD   0x40000000L

Definition at line 617 of file pedump.c.

Referenced by CSysPagerWnd::_Init(), CTrayClockWnd::_Init(), CTaskSwitchWnd::_Init(), _tWinMain(), activate_window(), StartMenu::AddButton(), AddContentTab(), AddIndexPopup(), AddIndexTab(), AddSearchTab(), AddTextButton(), BaseControlWindowImpl_put_Owner(), basic_test(), build_combo(), build_static(), build_toolbar(), 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_IntSetWindowLong(), 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(), CRichEdit::Create(), QuickLaunchBar::Create(), TaskBar::Create(), CMainToolbar::Create(), NotifyArea::Create(), CToolbar<>::Create(), ClockWindow::Create(), CAppsListView::Create(), CStartButton::Create(), CStatusBar::Create(), CTreeView::Create(), CUiSplitPanel::Create(), ATL::CWindowImplBaseT< CWindow, CControlWinTraits >::Create(), create_animate(), create_button(), create_child_editcontrol(), create_child_thread(), 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_test_windows(), create_tree_window(), create_treeview_control(), create_updown_control(), create_window_tree(), CreateCheckButton(), SEALED_::CreateControlWindow(), CreateFontBoxesWindow(), CAddressBand::CreateGoButton(), CreateHSplitBar(), CreateListView(), CreateMemoryDialog(), CreatePushButton(), CreateRichEdit(), CreateScreenSaveWnd(), CreateSearchBar(), CMainWindow::CreateSearchBar(), CreateStatic(), CCharMapWindow::CreateStatusBar(), CDeviceManager::CreateStatusBar(), CreateStatusBar(), CreateTemplateDialog(), CMenuToolbarBase::CreateToolbar(), CreateToolBar(), CreateToolbarEx(), CreateTreeView(), CDefView::CreateViewWindow3(), CreateVSplitBar(), CreateWindowExA(), CreateWindowExW(), 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(), GROUP_GroupWndProc(), handle_internal_message(), HH_CreateHelpWindow(), ICONTITLE_Create(), ICONTITLE_Paint(), IconTitleWndProc(), IDirectInputDevice2WImpl_SetCooperativeLevel(), iewnd_OnCreate(), IFileDialogCustomize_fnAddControlItem(), ImageView_CreateToolBar(), ImageView_InitControls(), CAutoComplete::Init(), TaskBar::Init(), init(), DesktopBar::Init(), init_nscontainer(), init_preview(), init_toolbar(), InitControls(), InitEditWnd(), CDeviceView::Initialize(), CToolbarProxy::Initialize(), CTaskToolbar::Initialize(), CShellBrowser::Initialize(), CNotifyToolbar::Initialize(), InitInstance(), InitInstance_wave(), InitMainWnd(), IntCreateWindow(), IntDefWindowProc(), IntFixWindowCoordinates(), IntGetNonChildAncestor(), IntGetParent(), intGetTitleBarInfo(), IntGetWindowPlacement(), IntIsChildWindow(), 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(), MessageBoxTimeoutIndirectW(), minmax_wnd_proc(), MONTHCAL_EditYear(), MsgCheckProc(), 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(), NtUserCallHwndLock(), NtUserCreateWindowEx(), NtUserGetMenuBarInfo(), on_listbox_container_create(), CTextEditWindow::OnCreate(), CToolBox::OnCreate(), CToolSettingsWindow::OnCreate(), OnCreate(), OnMainWindowCreate(), 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(), START_TEST(), TAB_SetupScrolling(), TbdInitializeDocks(), test_button_messages(), test_CB_GETLBTEXT(), test_children_zorder(), test_combobox_messages(), test_comboboxex(), test_comboboxex_subclass(), test_contextmenu(), test_create(), test_create_tooltip(), test_CreateWindow(), test_csparentdc(), 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_item(), test_get_set_style(), test_GetDlgItem(), test_GetListBoxInfo(), test_getstring(), test_gettext(), test_GetUpdateRect(), test_height(), test_initialization(), test_Input_mouse(), test_LB_SETCURSEL(), test_listbox_messages(), test_listbox_styles(), test_mdi(), test_MDI_create(), test_mdi_messages(), test_menu_cancelmode(), test_messages(), test_missing_lbuttonup(), test_nccalcscroll(), test_nonclient_area(), test_noresize(), test_notify(), test_oneclickactivate(), test_ownerdraw(), test_pager(), test_paint_messages(), test_parent_owner(), 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_thick_child_size(), test_tooltip(), test_TrackMouseEvent(), test_update_region(), test_updown_create(), test_validatergn(), test_window_from_point(), test_window_styles(), test_window_without_child_style(), test_WM_LBUTTONDOWN(), test_WM_NEXTDLGCTL(), test_WM_WINDOWPOSCHANGING(), TestControlStyleDlgProc(), tool_window_procA(), TOOLTIPS_NCCreate(), 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().

#define WS_CLIPCHILDREN   0x02000000L

Definition at line 619 of file pedump.c.

Referenced by CMenuDeskBar::_AdjustForTheme(), CTaskSwitchWnd::_Init(), _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(), CTaskToolbar::Initialize(), CNotifyToolbar::Initialize(), InitInstance(), InitMainWnd(), IntGetPaintMessage(), IntInvalidateWindows(), IntScrollWindowEx(), IntSendSyncPaint(), IntValidateParent(), IntValidateParents(), LaunchScreenSaver(), MAIN_CreateMDIWindow(), MainFrameBase::MainFrameBase(), MCIWndCreateW(), MDIMainFrame::MDIMainFrame(), NtUserCreateDesktop(), 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_paint_messages(), test_scrollvalidate(), test_setrows(), test_TCM_SETITEMEXTRA(), test_TCS_OWNERDRAWFIXED(), test_update_region(), UpdateTheadChildren(), UserGetDCEx(), UserSyncAndPaintWindows(), WinMain(), WndProc(), and wWinMain().

#define WS_CLIPSIBLINGS   0x04000000L

Definition at line 618 of file pedump.c.

Referenced by CSysPagerWnd::_Init(), CTrayClockWnd::_Init(), CTaskSwitchWnd::_Init(), _tWinMain(), activate_window(), AddIndexPopup(), cctrl_create_new(), check_dialog_style(), check_window_style(), co_IntSetParent(), co_IntSetWindowLong(), 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(), CShellBrowser::Initialize(), InitInstance(), InitMainWnd(), IntCreateWindow(), LaunchScreenSaver(), MainFrameBase::MainFrameBase(), MainWindowProc(), MainWndCreateToolbarClient(), MCIWndCreateW(), mdi_child_wnd_proc_1(), MessageBoxTimeoutIndirectW(), OnCreate(), CTrayWindow::Open(), CTrayWindow::RunFileDlgThread(), CBaseBar::SetClient(), CBandSiteBase::SetDeskBarSite(), CBaseBarSite::SetDeskBarSite(), CToolsBand::SetSite(), CBrandBand::SetSite(), CExplorerBand::SetSite(), CInternetToolbar::SetSite(), SwitchFullScreen(), TAB_Create(), TbdCreateToolbarWnd(), TbdInitializeDocks(), test_children_zorder(), test_create(), test_create_tooltip(), test_CreateWindow(), test_dialog_styles(), Test_Dim(), test_getset_item(), test_ImmDefaultHwnd(), test_initialization(), test_listbox_styles(), 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(), WinMain(), and wWinMain().

#define WS_EX_ACCEPTFILES   0x00000010L
#define WS_HSCROLL   0x00100000L

Definition at line 628 of file pedump.c.

Referenced by _tWinMain(), BaseControlWindowImpl_put_WindowStyle(), CalcChildScroll(), ClassTest(), 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(), 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(), msi_dialog_volumecost_list(), NC_DoNCPaint(), NC_HandleNCCalcSize(), new_window(), new_windowW(), 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().

#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_IntSetWindowLong(), co_UserCreateWindowEx(), co_WinPosArrangeIconicWindows(), co_WinPosDoWinPosChanging(), co_WinPosMinMaximize(), co_WinPosSearchChildren(), co_WinPosSendSizeMove(), co_WinPosShowWindow(), DefMDIChildProcW(), DefWndDoSizeMove(), DefWndHandleSysCommand(), DefWndHandleWindowPosChanged(), DefWndHandleWindowPosChanging(), DefWndNCHitTest(), DrawClassicFrame(), 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(), NtUserSetMenu(), OpenIcon(), PAGER_NCPaint(), REBAR_NCPaint(), test_messages(), test_minimized(), test_parent_owner(), test_set_window_style(), test_ShowWindow(), ThemeHandleButton(), ThemePaintWindow(), TOOLBAR_NCPaint(), User32DefWindowProc(), UserDrawCaptionBar(), UserDrawCaptionButton(), UserGetDCEx(), UserGetWindowBorders(), UserHasWindowEdge(), VIS_ComputeVisibleRegion(), WinPosFindIconPos(), and WinPosInitInternalPos().

Definition at line 637 of file pedump.c.

Referenced by _tWinMain(), AddIndexPopup(), check_dialog_style(), check_window_style(), ClassTest(), Control_DoInterface(), MDIMainFrame::Create(), SDIMainFrame::Create(), CMainWindow::Create(), create_a_window(), 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(), 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_combobox_messages(), test_comctl32_class(), test_contextmenu(), test_create_device_from_clipper1(), test_create_device_from_clipper2(), test_create_device_from_clipper3(), test_create_device_from_d3d1(), test_create_device_from_d3d2(), test_create_device_from_d3d3(), test_create_device_from_surface1(), test_create_device_from_surface2(), test_create_device_from_surface3(), 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_Device(), test_device_qi(), 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_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_mouse_ll_hook(), test_notify(), test_notify_message(), test_nullCallback(), test_paint_messages(), test_paintingloop(), test_parent_owner(), test_PeekMessage(), test_PeekMessage2(), test_PeekMessage3(), 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_Viewport(), test_viewport_clear1(), test_viewport_clear2(), test_window_dc(), test_window_styles(), test_winevents(), test_wmime_keydown_message(), test_wndproc(), test_work_area(), thread_proc(), User32CreateWindowEx(), wined3d_caps_gl_ctx_create(), WINHELP_CreateHelpWindow(), WINHELP_GetWindowInfo(), WinMain(), and wWinMain().

#define WS_POPUP   0x80000000L

Definition at line 616 of file pedump.c.

Referenced by 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_IntSetWindowLong(), 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_thread_hwnd(), create_tooltip(), create_tooltips_window(), create_window(), create_window_thread(), CreateBasicWindow(), CreateMemoryDialog(), CreatePerfWindows(), CreateScreenSaveWnd(), CreateSwitcherWindow(), 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(), ImmGetDefaultIMEWnd(), ImmSetOpenStatus(), init_procs(), CDesktopBrowser::Initialize(), InitializeSAS(), InitInstance(), IntCreateWindow(), IntDefWindowProc(), IntFindChildWindowToOwner(), IntFixWindowCoordinates(), IntGetNonChildAncestor(), IntGetParent(), IntGetWindowPlacement(), IntIsChildWindow(), IntSendDestroyMsg(), IntSendParentNotify(), IntSetMenu(), IntUserSetActiveWindow(), IsChild(), IsChildVisible(), LaunchScreenSaver(), LoadWinTypeFromCHM(), main_window_procA(), MCIAVI_CreateWindow(), mdi_child_wnd_proc_1(), MENU_InitPopup(), MENU_TrackKbdMenuBar(), MessageBoxTimeoutIndirectW(), mi_create_window(), mouse_ll_global_thread_proc(), MsgCheckProc(), NC_HandleNCLButtonDown(), new_window(), new_windowW(), NtUserCallHwndLock(), NtUserCreateDesktop(), NtUserCreateWindowEx(), CTrayWindow::Open(), open_and_empty_clipboard_win_thread(), PROPSHEET_CreatePage(), PropSheetCallback(), root_dialog(), scrollbar_test_default(), SHSetParentHwnd(), 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_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_mf_clipping(), test_minimized(), test_monthcal(), test_mouse_input(), test_OpenThemeData(), test_OpenThemeDataEx(), test_paint_messages(), 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_sys_menu(), test_TabbedText(), test_text_position_style(), test_title(), 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(), VideoWindow_put_FullScreenMode(), wait_idle_thread(), WDML_Initialize(), win_event_global_thread_proc(), WINHELP_CreateHelpWindow(), WINHELP_GetPopupWindowInfo(), WINHELP_HandleTextMouse(), WinPosFixupFlags(), WinPosGetMinMaxInfo(), WinPosInitInternalPos(), and wmain().

#define WS_SYSMENU   0x00080000L

Definition at line 629 of file pedump.c.

Referenced by _tWinMain(), CHSourceDlgProc(), StartMenu::Create(), create_frame_hwnd(), create_parent_window(), CreateApplicationWindow(), CreateMemoryDialog(), createParentWindow(), CreateWindowExA(), CreateWindowExW(), DefWndDoSizeMove(), DefWndNCHitTest(), DefWndStartSizeMove(), DIALOG_CreateIndirect(), fullscreen_style(), GetNCHitEx(), init_procs(), InitInstance(), InstallDrvDlgProc(), IntGetSystemMenu(), intGetTitleBarInfo(), IntSetSystemMenu(), MCIWndCreateW(), mdi_child_wnd_proc_1(), MENU_DoNextMenu(), MENU_TrackKbdMenuBar(), MessageBoxTimeoutIndirectW(), mi_create_window(), NC_DoButton(), NC_DoNCPaint(), NC_HandleNCLButtonDown(), NtUserGetMenuBarInfo(), CTrayWindow::OnSysChar(), PROPSHEET_CreatePage(), PropSheetCallback(), SearchDrvDlgProc(), 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(), ThemeDrawCaption(), ThemeHandleButton(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), UserDrawCaption(), UserDrawCaptionBar(), UserDrawCaptionButton(), UserDrawCaptionText(), WelcomeDlgProc(), WinMain(), wmain(), and wWinMain().

#define WS_TILED   WS_OVERLAPPED

Definition at line 640 of file pedump.c.

#define WS_TILEDWINDOW   WS_OVERLAPPEDWINDOW
#define WS_VISIBLE   0x10000000L

Definition at line 620 of file pedump.c.

Referenced by CSysPagerWnd::_Init(), CTrayClockWnd::_Init(), CTaskSwitchWnd::_Init(), _tWinMain(), ActivateOtherWindowMin(), StartMenu::AddButton(), AddIndexPopup(), AddSearchTab(), AddTextButton(), basic_test(), build_combo(), build_static(), build_toolbar(), ButtonWndProc_common(), CalcChildScroll(), can_activate_window(), cbt_hook_proc(), cctrl_create_new(), CenterWindow(), ChildWndProc(), Client_get_accState(), co_IntFindChildWindowToOwner(), co_IntPaintWindows(), co_IntSendActivateMessages(), co_IntSetWindowLong(), 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(), CRichEdit::Create(), QuickLaunchBar::Create(), TaskBar::Create(), DesktopBar::Create(), CMainToolbar::Create(), NotifyArea::Create(), StartMenu::Create(), CToolbar<>::Create(), ClockWindow::Create(), CAppsListView::Create(), CStartButton::Create(), CStatusBar::Create(), CTreeView::Create(), CUiSplitPanel::Create(), create_animate(), create_child_thread(), 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_win(), create_tree_window(), create_treeview_control(), create_updown_control(), create_window_thread(), create_window_tree(), CreateApplicationWindow(), CreateCheckButton(), CreateEditLabelT(), CreateFontBoxesWindow(), CreateHSplitBar(), CreateLargeCell(), CDefView::CreateList(), CreateListView(), CreateMemoryDialog(), createParentWindow(), CreatePerfWindows(), CreateRichEdit(), CreateScreenSaveWnd(), CreateSearchBar(), CMainWindow::CreateSearchBar(), CreateStatic(), CCharMapWindow::CreateStatusBar(), CDeviceManager::CreateStatusBar(), CreateStatusBar(), CreateTemplateDialog(), CreateTestWindow(), CMenuToolbarBase::CreateToolbar(), CreateToolBar(), CreateTreeView(), CreateVSplitBar(), CreateWindowExA(), CreateWindowExW(), 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(), GROUP_GroupWndProc(), HH_AddHTMLPane(), HH_AddNavigationPane(), HH_AddSizeBar(), HH_CreateHelpWindow(), iewnd_OnCreate(), IFileDialogCustomize_fnAddControlItem(), IFileDialogCustomize_fnSetControlState(), ImageView_CreateToolBar(), ImageView_CreateWindow(), ImageView_InitControls(), TaskBar::Init(), init(), DesktopBar::Init(), init_preview(), init_toolbar(), InitControls(), InitEditWnd(), CDeviceView::Initialize(), CTaskToolbar::Initialize(), CShellBrowser::Initialize(), CNotifyToolbar::Initialize(), InitInstance(), InitInstance_wave(), InitMainWnd(), IntChildWindowFromPointEx(), IntCreateWindow(), IntDefWindowProc(), IntFindChildWindowToOwner(), IntHideDesktop(), IntIntersectWithParents(), IntInvalidateWindows(), IntIsWindowDirty(), IntIsWindowDrawable(), IntIsWindowVisible(), IntRealChildWindowFromPoint(), IntSendSyncPaint(), IntSetStyle(), IntShowOwnedPopups(), IntTopLevelWindowFromPoint(), invisible_parent_tests(), IPADDRESS_Create(), IsChildVisible(), IsWindowVisible(), keyboard_tests(), LaunchScreenSaver(), LISTVIEW_Create(), LISTVIEW_InsertColumnT(), LISTVIEW_StyleChanged(), 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(), MessageBoxTimeoutIndirectW(), 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(), 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(), CAddressBand::SetSite(), CBrandBand::SetSite(), CInternetToolbar::SetSite(), show_frame(), START_TEST(), TAB_SetupScrolling(), TbdInitializeDocks(), test_accelerators(), test_acquire(), test_activateapp(), test_button_messages(), test_capture_1(), test_capture_2(), test_CB_GETLBTEXT(), test_child_window_from_point(), test_children_zorder(), test_combobox_messages(), test_comboboxex(), test_comboboxex_subclass(), test_contextmenu(), test_create(), test_create_device_from_clipper1(), test_create_device_from_clipper2(), test_create_device_from_clipper3(), test_createtoolbarex(), 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_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_item(), 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_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_styles(), 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_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_parent_owner(), 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_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_WM_WINDOWPOSCHANGING(), test_word_movement(), test_word_wrap(), test_work_area(), TestControlStyleDlgProc(), TestExposedRegion_WndProc(), ThemePaintWindow(), timer_message_dlg_proc(), update_open_dropdown(), SDIMainFrame::update_shell_browser(), MDIShellBrowserChild::update_shell_browser(), UserGetDCEx(), UserPaintCaption(), UserSetActiveWindow(), VIS_ComputeVisibleRegion(), window_from_point_proc(), WindowThreadProc(), wined3d_device_restore_fullscreen_window(), WINHELP_ButtonBoxWndProc(), WINHELP_CreateHelpWindow(), WinMain(), WinPosFindIconPos(), WinPosFixupFlags(), wmain(), WmCreate(), and WndProc().

#define WS_VSCROLL   0x00200000L

Definition at line 627 of file pedump.c.

Referenced by _tWinMain(), BaseControlWindowImpl_put_WindowStyle(), CalcChildScroll(), ClassTest(), co_UserCreateWindowEx(), co_UserShowScrollBar(), COMBO_Create(), COMBO_NCCreate(), COMBOEX_Create(), COMBOEX_NCCreate(), CGridView::Create(), create_main_test_wnd(), create_tree_window(), CreateImageEditWindow(), DefWndNCHitTest(), EDIT_UpdateScrollInfo(), EDIT_WM_NCCreate(), EDIT_WM_Paint(), EDIT_WM_VScroll(), FixedAdjustWindowRectEx(), fnTextSrv_TxGetVScroll(), FrameOnCreate(), FrameWndProc(), GuiConsoleNotifyWndProc(), handle_WM_SIZING(), CAutoComplete::Init(), 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(), 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(), new_window(), new_windowW(), 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_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(), ThemeDrawScrollBar(), ThemeGetScrollInfo(), ThemeHandleNcMouseLeave(), ThemeHandleNcMouseMove(), ThemePaintWindow(), wine_AdjustWindowRectEx(), WINHELP_CreateHelpWindow(), WinMain(), WndProc(), and wWinMain().

Typedef Documentation

typedef int BOOL

Definition at line 63 of file pedump.c.

static int boolean

Definition at line 70 of file pedump.c.

typedef unsigned char BYTE

Definition at line 64 of file pedump.c.

typedef char CHAR

Definition at line 57 of file pedump.c.

typedef unsigned long DWORD

Definition at line 62 of file pedump.c.

typedef LONG

Definition at line 60 of file pedump.c.

static LPVOID

Definition at line 69 of file pedump.c.

static PBYTE

Definition at line 66 of file pedump.c.

typedef PVOID PDWORD

Definition at line 68 of file pedump.c.

typedef WORD* PWORD

Definition at line 67 of file pedump.c.

typedef short SHORT

Definition at line 59 of file pedump.c.

typedef struct _Str_P Str_P
static USHORT

Definition at line 61 of file pedump.c.

typedef short WCHAR

Definition at line 58 of file pedump.c.

typedef unsigned short WORD

Definition at line 65 of file pedump.c.

Function Documentation

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:40
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:213
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29
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
DWORD DWORD
Definition: winlogon.h:75
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define SECHDROFFSET(a)
Definition: pedump.c:821
#define NULL
Definition: pedump.c:76
#define exit(n)
Definition: config.h:212
struct _IMAGE_SECTION_HEADER * PIMAGE_SECTION_HEADER
int WINAPI NumOfSections(LPVOID)
Definition: pedump.c:1023
#define printf
Definition: config.h:213
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29
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
unsigned short WORD
Definition: ntddk_ex.h:93
DWORD OffsetToData
Definition: pedump.c:416
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
DWORD DWORD
Definition: winlogon.h:75
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
struct _IMAGE_RESOURCE_DIRECTORY IMAGE_RESOURCE_DIRECTORY
#define NULL
Definition: pedump.c:76
#define exit(n)
Definition: config.h:212
struct _IMAGE_RESOURCE_DIRECTORY_ENTRY * PIMAGE_RESOURCE_DIRECTORY_ENTRY
Definition: pedump.c:413
LPVOID WINAPI ImageDirectoryOffset(LPVOID, DWORD)
Definition: pedump.c:1097
GLsizeiptr size
Definition: glext.h:5919
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
#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:213
DWORD Size
Definition: pedump.c:460
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
unsigned short WORD
Definition: ntddk_ex.h:93
DWORD OffsetToData
Definition: pedump.c:416
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
DWORD DWORD
Definition: winlogon.h:75
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
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
#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
GLsizeiptr size
Definition: glext.h:5919
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
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
unsigned short WORD
Definition: ntddk_ex.h:93
#define FALSE
Definition: pedump.c:79
#define IMAGE_DOS_SIGNATURE
Definition: pedump.c:89
#define bcopy(s, d, z)
Definition: pedump.c:54
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 }
unsigned short WORD
Definition: ntddk_ex.h:93
#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 DWORD
Definition: winlogon.h:75
DWORD AddressOfNameOrdinals
Definition: compat.h:155
#define sprintf(buf, format,...)
Definition: sprintf.c:55
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#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
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
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;
1286  DWORD dwFunctionAddress;
1287  char name[128];
1288  char buff[256]; // enough for any string ??
1289 
1290  char *psz;
1291  DWORD *pdw;
1292 
1293  //dwBase = (DWORD)((int)lpFile + psh->PointerToRawData - psh->VirtualAddress);
1294 
1295  /* find module's pid */
1296  while (pid->dwRVAModuleName &&
1297  strcmp (pszModule, (char *) GetActualAddress (lpFile, pid->dwRVAModuleName)))
1298  pid++;
1299 
1300  /* exit if the module is not found */
1301  if (!pid->dwRVAModuleName)
1302  return 0;
1303 
1304  // I am doing this to get rid of .dll from module name
1305  strcpy (name, pszModule);
1306  mnlength = strlen (pszModule);
1307  for (i = 0; i < mnlength; i++)
1308  if (name[i] == '.')
1309  break;
1310  name[i] = 0;
1311  mnlength = i;
1312 
1313  /* count number of function names and length of strings */
1314  dwFunctionName = pid->dwRVAFunctionNameList;
1315 
1316  // IMAGE_IMPORT_BY_NAME OR IMAGE_THUNK_DATA
1317  // modified by Sang Cho
1318  while (dwFunctionName &&
1319  *(pdw = (DWORD *) GetActualAddress (lpFile, dwFunctionName)))
1320  {
1321  if ((*pdw) & 0x80000000)
1322  nSize += mnlength + 10 + 1 + 6;
1323  else
1324  nSize += strlen ((char *) GetActualAddress (lpFile, *pdw + 2)) + 1 + 6;
1325  dwFunctionName += 4;
1326  nCnt++;
1327  }
1328 
1329  /* allocate memory for function names */
1330  *pszFunctions = (char *) calloc (nSize, 1);
1331  psz = *pszFunctions;
1332 
1333  //
1334  // I modified this part to store function address (4 bytes),
1335  // ord number (2 bytes),
1336  // and name strings (which was there originally)
1337  // so that's why there are 6 more bytes...... +6, or +4 and +2 etc.
1338  // these informations are used where they are needed.
1339  // ...........sang cho..................
1340  //
1341  /* copy function names to mempry pointer */
1342  dwFunctionName = pid->dwRVAFunctionNameList;
1343  dwFunctionAddress = pid->dwRVAFunctionAddressList;
1344  while (dwFunctionName &&
1345  *(pdw = (DWORD *) GetActualAddress (lpFile, dwFunctionName)))
1346  {
1347  if ((*pdw) & 0x80000000)
1348  {
1349  *(int *) psz = (int) (*(DWORD *) GetActualAddress (lpFile, dwFunctionAddress));
1350  psz += 4;
1351  *(short *) psz = *(short *) pdw;
1352  psz += 2;
1353  sprintf (buff, "%s:NoName%04d", name, nnid++);
1354  strcpy (psz, buff);
1355  psz += strlen (buff) + 1;
1356  }
1357  else
1358  {
1359  *(int *) psz = (int) (*(DWORD *) GetActualAddress (lpFile, dwFunctionAddress));
1360  psz += 4;
1361  *(short *) psz = (*(short *) GetActualAddress (lpFile, *pdw));
1362  psz += 2;
1363  strcpy (psz, (char *) GetActualAddress (lpFile, *pdw + 2));
1364  psz += strlen ((char *) GetActualAddress (lpFile, *pdw + 2)) + 1;
1365  }
1366  dwFunctionName += 4;
1367  dwFunctionAddress += 4;
1368  }
1369 
1370  return nCnt;
1371 }
DWORD dwRVAModuleName
Definition: pedump.c:833
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3835
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
DWORD dwRVAFunctionNameList
Definition: pedump.c:830
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:1945
DWORD DWORD
Definition: winlogon.h:75
#define sprintf(buf, format,...)
Definition: sprintf.c:55
GLenum GLclampf GLint i
Definition: glfuncs.h:14
struct tagImportDirectory * PIMAGE_IMPORT_MODULE_DIRECTORY
LPVOID WINAPI ImageDirectoryOffset(LPVOID, DWORD)
Definition: pedump.c:1097
DWORD dwRVAFunctionAddressList
Definition: pedump.c:834
LPVOID WINAPI GetActualAddress(LPVOID lpFile, DWORD dwRVA)
Definition: pedump.c:1055
#define IMAGE_DIRECTORY_ENTRY_IMPORT
Definition: pedump.c:260
Definition: name.c:23
#define calloc
Definition: rosglue.h:14
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
static unsigned char buff[32768]
Definition: fatten.c:17
int WINAPI GetImportModuleNames ( LPVOID  lpFile,
char **  pszModules 
)

Definition at line 1208 of file pedump.c.

Referenced by main().

1211 {
1214  //
1215  // sometimes there may be no section for idata or edata
1216  // instead rdata or data section may contain these sections ..
1217  // or even module names or function names are in different section.
1218  // so that's why we need to get actual address of RVAs each time.
1219  // ...................sang cho..................
1220  //
1221  // PIMAGE_SECTION_HEADER psh = (PIMAGE_SECTION_HEADER)
1222  // ImageDirectorySection (lpFile, IMAGE_DIRECTORY_ENTRY_IMPORT);
1223  // BYTE *pData = (BYTE *)pid;
1224  // DWORD *pdw = (DWORD *)pid;
1225  int nCnt = 0, nSize = 0, i;
1226  char *pModule[1024]; /* hardcoded maximum number of modules?? */
1227  char *psz;
1228 
1229  if (pid == NULL)
1230  return 0;
1231 
1232  // pData = (BYTE *)((int)lpFile + psh->PointerToRawData - psh->VirtualAddress);
1233 
1234  /* extract all import modules */
1235  while (pid->dwRVAModuleName)
1236  {
1237  /* allocate temporary buffer for absolute string offsets */
1238  //pModule[nCnt] = (char *)(pData + pid->dwRVAModuleName);
1239  pModule[nCnt] = (char *) GetActualAddress (lpFile, pid->dwRVAModuleName);
1240  nSize += strlen (pModule[nCnt]) + 1;
1241 
1242  /* increment to the next import directory entry */
1243  pid++;
1244  nCnt++;
1245  }
1246 
1247  /* copy all strings to one chunk of memory */
1248  *pszModules = (char *) calloc (nSize, 1);
1249  psz = *pszModules;
1250  for (i = 0; i < nCnt; i++)
1251  {
1252  strcpy (psz, pModule[i]);
1253  psz += strlen (psz) + 1;
1254  }
1255  return nCnt;
1256 }
DWORD dwRVAModuleName
Definition: pedump.c:833
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3835
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:1945
GLenum GLclampf GLint i
Definition: glfuncs.h:14
struct tagImportDirectory * PIMAGE_IMPORT_MODULE_DIRECTORY
#define NULL
Definition: pedump.c:76
LPVOID WINAPI ImageDirectoryOffset(LPVOID, DWORD)
Definition: pedump.c:1097
LPVOID WINAPI GetActualAddress(LPVOID lpFile, DWORD dwRVA)
Definition: pedump.c:1055
#define IMAGE_DIRECTORY_ENTRY_IMPORT
Definition: pedump.c:260
#define calloc
Definition: rosglue.h:14
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
int WINAPI GetListOfResourceTypes ( LPVOID  lpFile,
char **  pszResTypes 
)

Definition at line 2536 of file pedump.c.

Referenced by main().

2539 {
2540  PIMAGE_RESOURCE_DIRECTORY prdRoot;
2542  char *pMem;
2543  char buff[32];
2544  int nCnt, i;
2545  DWORD prdeName;
2546 
2547 
2548  /* get root directory of resource tree */
2550  (lpFile, IMAGE_DIRECTORY_ENTRY_RESOURCE)) == NULL)
2551  return 0;
2552 
2553  /* allocate enuff space to cover all types */
2554  nCnt = prdRoot->NumberOfIdEntries * (MAXRESOURCENAME + 1);
2555  *pszResTypes = (char *) calloc (nCnt, 1);
2556  if ((pMem = *pszResTypes) == NULL)
2557  return 0;
2558 
2559  /* set pointer to first resource type entry */
2560  prde = (PIMAGE_RESOURCE_DIRECTORY_ENTRY) ((DWORD) prdRoot + sizeof (IMAGE_RESOURCE_DIRECTORY));
2561 
2562  /* loop through all resource directory entry types */
2563  for (i = 0; i < prdRoot->NumberOfIdEntries; i++)
2564  {
2565  prdeName = prde->Name;
2566 
2567  //if (LoadString (hDll, prde->Name, pMem, MAXRESOURCENAME))
2568  // pMem += strlen (pMem) + 1;
2569  //
2570  // modified by ...................................Sang Cho..
2571  // I can't user M/S provied funcitons here so I have to figure out
2572  // how to do above functions. But I can settle down with the following
2573  // code, which works pretty good for me.
2574  //
2575  if (prdeName == 1)
2576  {
2577  strcpy (pMem, "RT_CURSOR");
2578  pMem += 10;
2579  }
2580  else if (prdeName == 2)
2581  {
2582  strcpy (pMem, "RT_BITMAP");
2583  pMem += 10;
2584  }
2585  else if (prdeName == 3)
2586  {
2587  strcpy (pMem, "RT_ICON ");
2588  pMem += 10;
2589  }
2590  else if (prdeName == 4)
2591  {
2592  strcpy (pMem, "RT_MENU ");
2593  pMem += 10;
2594  }
2595  else if (prdeName == 5)
2596  {
2597  strcpy (pMem, "RT_DIALOG");
2598  pMem += 10;
2599  }
2600  else if (prdeName == 6)
2601  {
2602  strcpy (pMem, "RT_STRING");
2603  pMem += 10;
2604  }
2605  else if (prdeName == 7)
2606  {
2607  strcpy (pMem, "RT_FONTDIR");
2608  pMem += 11;
2609  }
2610  else if (prdeName == 8)
2611  {
2612  strcpy (pMem, "RT_FONT ");
2613  pMem += 10;
2614  }
2615  else if (prdeName == 9)
2616  {
2617  strcpy (pMem, "RT_ACCELERATORS");
2618  pMem += 16;
2619  }
2620  else if (prdeName == 10)
2621  {
2622  strcpy (pMem, "RT_RCDATA");
2623  pMem += 10;
2624  }
2625  else if (prdeName == 11)
2626  {
2627  strcpy (pMem, "RT_MESSAGETABLE");
2628  pMem += 16;
2629  }
2630  else if (prdeName == 12)
2631  {
2632  strcpy (pMem, "RT_GROUP_CURSOR");
2633  pMem += 16;
2634  }
2635  else if (prdeName == 14)
2636  {
2637  strcpy (pMem, "RT_GROUP_ICON ");
2638  pMem += 16;
2639  }
2640  else if (prdeName == 16)
2641  {
2642  strcpy (pMem, "RT_VERSION");
2643  pMem += 11;
2644  }
2645  else if (prdeName == 17)
2646  {
2647  strcpy (pMem, "RT_DLGINCLUDE ");
2648  pMem += 16;
2649  }
2650  else if (prdeName == 19)
2651  {
2652  strcpy (pMem, "RT_PLUGPLAY ");
2653  pMem += 16;
2654  }
2655  else if (prdeName == 20)
2656  {
2657  strcpy (pMem, "RT_VXD ");
2658  pMem += 10;
2659  }
2660  else if (prdeName == 21)
2661  {
2662  strcpy (pMem, "RT_ANICURSOR ");
2663  pMem += 16;
2664  }
2665  else if (prdeName == 22)
2666  {
2667  strcpy (pMem, "RT_ANIICON");
2668  pMem += 11;
2669  }
2670  else if (prdeName == 0x2002)
2671  {
2672  strcpy (pMem, "RT_NEWBITMAP");
2673  pMem += 13;
2674  }
2675  else if (prdeName == 0x2004)
2676  {
2677  strcpy (pMem, "RT_NEWMENU");
2678  pMem += 11;
2679  }
2680  else if (prdeName == 0x2005)
2681  {
2682  strcpy (pMem, "RT_NEWDIALOG");
2683  pMem += 13;
2684  }
2685  else if (prdeName == 0x7fff)
2686  {
2687  strcpy (pMem, "RT_ERROR ");
2688  pMem += 10;
2689  }
2690  else
2691  {
2692  sprintf (buff, "RT_UNKNOWN:%08lX", prdeName);
2693  strcpy (pMem, buff);
2694  pMem += 20;
2695  }
2696  prde++;
2697  }
2698 
2699  return prdRoot->NumberOfIdEntries;
2700 }
DWORD DWORD
Definition: winlogon.h:75
#define sprintf(buf, format,...)
Definition: sprintf.c:55
GLenum GLclampf GLint i
Definition: glfuncs.h:14
struct _IMAGE_RESOURCE_DIRECTORY IMAGE_RESOURCE_DIRECTORY
#define NULL
Definition: pedump.c:76
#define MAXRESOURCENAME
Definition: pedump.c:801
struct _IMAGE_RESOURCE_DIRECTORY_ENTRY * PIMAGE_RESOURCE_DIRECTORY_ENTRY
Definition: pedump.c:413
LPVOID WINAPI ImageDirectoryOffset(LPVOID, DWORD)
Definition: pedump.c:1097
DWORD Name
Definition: pedump.c:415
#define calloc
Definition: rosglue.h:14
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
#define IMAGE_DIRECTORY_ENTRY_RESOURCE
Definition: pedump.c:261
static unsigned char buff[32768]
Definition: fatten.c:17
LPVOID WINAPI GetModuleEntryPoint ( LPVOID  lpFile)

Definition at line 1007 of file pedump.c.

1009 {
1011 
1012  if (poh != NULL)
1013  return (LPVOID) (poh->AddressOfEntryPoint);
1014  else
1015  return NULL;
1016 }