Skip to content

Commit 66ea9de

Browse files
committed
Add Flag Back
1 parent 2888ba4 commit 66ea9de

13 files changed

Lines changed: 8 additions & 2 deletions

File tree

Binary file not shown.
Binary file not shown.

MonikaDLL/.vs/MonikaDLL/v17/.suo

-1 KB
Binary file not shown.
0 Bytes
Binary file not shown.

MonikaDLL/KernelWrapper.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ typedef struct
2727
#define RING3_REQUIRE_START_BEEP 0x90
2828
#define RING3_REQUIRE_STOP_BEEP 0x91
2929

30-
__declspec(dllexport) void get_my_driver_handle()
30+
__declspec(dllexport) UINT8 get_my_driver_handle()
3131
{
3232
device = CreateFile(L"\\\\.\\Monika_Link", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM, 0);
3333
if (device == INVALID_HANDLE_VALUE) {
3434
printf("CreateFile failed!\n");
3535
device = NULL;
36+
return -1;
3637
}
38+
return 0;
3739
}
3840

3941
__declspec(dllexport) uint32_t MonikaBeepStart(uint16_t freq)
38 Bytes
Binary file not shown.
25 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)