FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MemoryModulePP/main.cpp at master · strivexjun/MemoryModulePP · GitHub
strivexjun
/
MemoryModulePP
Public
Notifications
You must be signed in to change notification settings
Fork
98
Star
225
Code
Issues
4
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MemoryModulePP
/
main.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (36 loc) · 835 Bytes
Breadcrumbs
MemoryModulePP
/
main.cpp
Copy path
File metadata and controls
46 lines (36 loc) · 835 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
include
<
stdio.h
>
#
include
<
windows.h
>
#
include
"
resource.h
"
#
include
"
MemoryModulePP.h
"
BOOL
LoadDllFromRes
(
PVOID
*pDllData,
DWORD
*dwDllSize)
{
HMODULE
hInstance =
GetModuleHandle
(
NULL
);
HRSRC
hRes;
#
if
defined(_WIN64)
hRes =
FindResource
(hInstance,
MAKEINTRESOURCE
(
IDR_DLL_X641
),
TEXT
(
"
DLL_X64
"
));
#
else
hRes =
FindResource
(hInstance,
MAKEINTRESOURCE
(
IDR_DLL_X861
),
TEXT
(
"
DLL_X86
"
));
#
endif
if
(hRes ==
NULL
)
{
return
FALSE
;
}
*pDllData = (
PVOID
)
LoadResource
(hInstance, hRes);
*dwDllSize =
SizeofResource
(hInstance, hRes);
return
TRUE
;
}
int
main
()
{
PVOID
pDllData =
NULL
;
DWORD
dwDllSize =
0
;
PMEMORYMODULE
pMemdll =
NULL
;
if
(
LoadDllFromRes
(&pDllData,&dwDllSize))
{
pMemdll =
MemoryLoadLibrary
(pDllData, dwDllSize);
if
(pMemdll !=
NULL
)
{
MemoryFreeLibrary
(pMemdll);
}
}
getchar
();
}
Back
|
FazBrowse Home
|
New Git URL