FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Kernel-Bridge/LoadableModule/Main.cpp at master · HoShiMin/Kernel-Bridge · GitHub
HoShiMin
/
Kernel-Bridge
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
401
Star
1.8k
Code
Issues
15
Pull requests
2
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Kernel-Bridge
/
LoadableModule
/
Main.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (24 loc) · 691 Bytes
Breadcrumbs
Kernel-Bridge
/
LoadableModule
/
Main.cpp
Copy path
File metadata and controls
28 lines (24 loc) · 691 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
#
include
<
wdm.h
>
NTSTATUS
NTAPI
OnLoad
(
PVOID
hModule,
LPCWSTR
ModuleName)
{
DbgPrint
(
"
[LOADABLE]: OnLoad %ws 0x%p
\r\n
"
, ModuleName, hModule);
return
STATUS_SUCCESS
;
}
NTSTATUS
NTAPI
OnUnload
()
{
DbgPrint
(
"
[LOADABLE]: OnUnload
\r\n
"
);
return
STATUS_SUCCESS
;
}
NTSTATUS
NTAPI
OnDeviceControl
(
ULONG
CtlCode,
OPTIONAL
PVOID
Argument)
{
DbgPrint
(
"
[LOADABLE]: OnDeviceControl: 0x%X, 0x%p
\r\n
"
, CtlCode, Argument);
return
STATUS_SUCCESS
;
}
extern
"
C
"
NTSTATUS
NTAPI
DriverEntry
(
_In_
PDRIVER_OBJECT
DriverObject,
_In_
PUNICODE_STRING
RegistryPath
) {
UNREFERENCED_PARAMETER
(DriverObject);
UNREFERENCED_PARAMETER
(RegistryPath);
return
STATUS_SUCCESS
;
}
Back
|
FazBrowse Home
|
New Git URL