Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F706899
DisassemblerGui.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
DisassemblerGui.h
View Options
#pragma once
#include
<windows.h>
#include
"resource.h"
// WTL
#include
<atlbase.h> // base ATL classes
#include
<atlapp.h> // base WTL classes
#include
<atlwin.h> // ATL GUI classes
#include
<atlmisc.h> // WTL utility classes like CString
#include
<atlcrack.h> // WTL enhanced msg map macros
#include
<atlctrls.h> // WTL controls
class
DisassemblerGui
:
public
CDialogImpl
<
DisassemblerGui
>
{
public
:
enum
{
IDD
=
IDD_DLG_DISASSEMBLER
};
BEGIN_MSG_MAP
(
DisassemblerGui
)
MSG_WM_INITDIALOG
(
OnInitDialog
)
MSG_WM_CONTEXTMENU
(
OnContextMenu
)
COMMAND_ID_HANDLER_EX
(
IDCANCEL
,
OnCancel
)
END_MSG_MAP
()
DisassemblerGui
(
DWORD_PTR
startAddress
)
:
startAddress
(
startAddress
)
{
}
protected
:
// Variables
static
const
size_t
DISASSEMBLER_GUI_MEMORY_SIZE
=
0x100
;
WCHAR
tempBuffer
[
100
];
DWORD_PTR
startAddress
;
// Controls
CListViewCtrl
ListDisassembler
;
enum
DisassemblerColumns
{
COL_ADDRESS
,
COL_INSTRUCTION_SIZE
,
COL_OPCODES
,
COL_INSTRUCTION
};
protected
:
// Message handlers
BOOL
OnInitDialog
(
CWindow
wndFocus
,
LPARAM
lInitParam
);
void
OnContextMenu
(
CWindow
wnd
,
CPoint
point
);
void
OnCancel
(
UINT
uNotifyCode
,
int
nID
,
CWindow
wndCtl
);
// GUI functions
void
addColumnsToDisassembler
(
CListViewCtrl
&
list
);
void
displayDisassembly
(
CListViewCtrl
&
list
);
// Popup menu functions
CMenuHandle
getCorrectSubMenu
(
int
menuItem
,
int
subMenuItem
);
// Misc
void
copyToClipboard
(
const
WCHAR
*
text
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jun 9, 6:05 PM (1 m, 56 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1b/4d/965c49bd9ab697e218c2dab0f869
Attached To
rSCY Scylla
Event Timeline
Log In to Comment