Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F1011792
PickDllGui.cpp
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
PickDllGui.cpp
View Options
#include
"PickDllGui.h"
BOOL
PickDllGui
::
OnInitDialog
(
CWindow
wndFocus
,
LPARAM
lInitParam
)
{
ListDLLSelect
.
Attach
(
GetDlgItem
(
IDC_LIST_DLLSELECT
));
addColumnsToModuleList
(
ListDLLSelect
);
displayModuleList
(
ListDLLSelect
);
return
TRUE
;
}
void
PickDllGui
::
OnOK
(
UINT
uNotifyCode
,
int
nID
,
CWindow
wndCtl
)
{
int
index
=
ListDLLSelect
.
GetSelectionMark
();
if
(
index
!=
-
1
)
{
selectedModule
=
&
moduleList
[
index
];
EndDialog
(
1
);
}
}
void
PickDllGui
::
OnCancel
(
UINT
uNotifyCode
,
int
nID
,
CWindow
wndCtl
)
{
EndDialog
(
0
);
}
void
PickDllGui
::
addColumnsToModuleList
(
CListViewCtrl
&
list
)
{
list
.
SetExtendedListViewStyle
(
LVS_EX_FULLROWSELECT
,
LVS_EX_FULLROWSELECT
);
list
.
InsertColumn
(
COL_PATH
,
L
"Path"
,
LVCFMT_LEFT
,
210
);
list
.
InsertColumn
(
COL_NAME
,
L
"Name"
,
LVCFMT_CENTER
,
130
);
list
.
InsertColumn
(
COL_IMAGEBASE
,
L
"ImageBase"
,
LVCFMT_CENTER
,
70
);
list
.
InsertColumn
(
COL_IMAGESIZE
,
L
"ImageSize"
,
LVCFMT_CENTER
,
70
);
}
void
PickDllGui
::
displayModuleList
(
CListViewCtrl
&
list
)
{
WCHAR
temp
[
20
];
list
.
DeleteAllItems
();
std
::
vector
<
ModuleInfo
>::
const_iterator
iter
;
int
count
=
0
;
for
(
iter
=
moduleList
.
begin
();
iter
!=
moduleList
.
end
();
iter
++
,
count
++
)
{
list
.
InsertItem
(
count
,
iter
->
fullPath
);
list
.
SetItemText
(
count
,
COL_NAME
,
iter
->
getFilename
());
swprintf_s
(
temp
,
_countof
(
temp
),
L
"%08X"
,
iter
->
modBaseAddr
);
list
.
SetItemText
(
count
,
COL_IMAGEBASE
,
temp
);
swprintf_s
(
temp
,
_countof
(
temp
),
L
"%08X"
,
iter
->
modBaseSize
);
list
.
SetItemText
(
count
,
COL_IMAGESIZE
,
temp
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Nov 10, 2:06 PM (14 h, 51 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
af/ae/bec2fc02020f3821150aaed814a0
Attached To
rSCY Scylla
Event Timeline
Log In to Comment