-
Notifications
You must be signed in to change notification settings - Fork 0
/
FkDrcom.cpp
54 lines (48 loc) · 906 Bytes
/
FkDrcom.cpp
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
47
48
49
50
51
52
53
54
// FkDrcom.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "FkDrcom.h"
int FuckDrcom(void)
{
return 0;
}
int WSAAPI RevisedWSAStartup(
_In_ WORD wVersionRequested,
_Out_ LPWSADATA lpWSAData
)
{
return NULL;
}
BOOL WINAPI RevisedShellExecuteExW(
__inout SHELLEXECUTEINFOW *pExecInfo
)
{
return TRUE;
}
LSTATUS APIENTRY RevisedRegOpenKeyExA(
__in HKEY hKey,
__in_opt LPCSTR lpSubKey,
__in_opt DWORD ulOptions,
__in REGSAM samDesired,
__out PHKEY phkResult
)
{
if (HKEY_LOCAL_MACHINE == hKey)
{
if (strstr(lpSubKey, "4D36E972-E325-11CE-BFC1-08002bE10318"))//MAC
{
phkResult = NULL;
::ExitThread(0);
return ERROR_ACCESS_DENIED;
}
}
return TrueRegOpenKeyExA(hKey, lpSubKey, ulOptions, samDesired, phkResult);
}
BOOL WINAPI RevisedProcess32Next(
HANDLE hSnapshot,
LPPROCESSENTRY32 lppe
)
{
::ExitThread(0);
return FALSE;
}