ReactOS  0.4.15-dev-4570-g4f8bbd1
sfcfiles.c File Reference
#include <windef.h>
#include <winbase.h>
#include <ndk/umtypes.h>
#include <sfcfiles.h>
Include dependency graph for sfcfiles.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Functions

BOOL WINAPI DllMain (_In_ HINSTANCE hInstDLL, _In_ DWORD fdwReason, _In_ LPVOID lpvReserved)
 
NTSTATUS WINAPI SfcGetFiles (_Out_ PPROTECT_FILE_ENTRY *ProtFileData, _Out_ PULONG FileCount)
 

Variables

static PROTECT_FILE_ENTRY ProtectedFiles []
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 9 of file sfcfiles.c.

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( _In_ HINSTANCE  hInstDLL,
_In_ DWORD  fdwReason,
_In_ LPVOID  lpvReserved 
)

Definition at line 31 of file sfcfiles.c.

35 {
36  switch (fdwReason)
37  {
38  case DLL_PROCESS_ATTACH:
39  DisableThreadLibraryCalls(hInstDLL);
40  break;
41 
42  case DLL_PROCESS_DETACH:
43  break;
44  }
45 
46  return TRUE;
47 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130

◆ SfcGetFiles()

NTSTATUS WINAPI SfcGetFiles ( _Out_ PPROTECT_FILE_ENTRY ProtFileData,
_Out_ PULONG  FileCount 
)

Definition at line 52 of file sfcfiles.c.

55 {
56  *ProtFileData = ProtectedFiles;
58  return STATUS_SUCCESS;
59 }
PULONG FileCount
Definition: SfcGetFiles.c:18
#define ARRAYSIZE(array)
Definition: filtermapper.c:47
static PROTECT_FILE_ENTRY ProtectedFiles[]
Definition: sfcfiles.c:18
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by START_TEST(), and Test_GetFiles().

Variable Documentation

◆ ProtectedFiles

PROTECT_FILE_ENTRY ProtectedFiles[]
static
Initial value:
=
{
{NULL, L"%systemroot%\\system32\\advapi32.dll", NULL},
{NULL, L"%systemroot%\\system32\\comctl32.dll", NULL},
{NULL, L"%systemroot%\\system32\\comdlg32.dll", NULL},
{NULL, L"%systemroot%\\system32\\kernel32.dll", NULL},
{NULL, L"%systemroot%\\system32\\ntdll.dll", NULL},
{NULL, L"%systemroot%\\system32\\ntoskrnl.exe", NULL}
}
#define L(x)
Definition: ntvdm.h:50
#define NULL
Definition: types.h:112

Definition at line 18 of file sfcfiles.c.

Referenced by SfcGetFiles().