ReactOS 0.4.16-dev-106-g10b08aa
sfc.c File Reference
#include "precomp.h"
Include dependency graph for sfc.c:

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 
DWORD WINAPI sfc_8 ()
 
DWORD WINAPI sfc_9 ()
 
BOOL WINAPI SRSetRestorePointA (PRESTOREPOINTINFOA pRestorePtSpec, PSTATEMGRSTATUS pSMgrStatus)
 
BOOL WINAPI SRSetRestorePointW (PRESTOREPOINTINFOW pRestorePtSpec, PSTATEMGRSTATUS pSMgrStatus)
 
BOOL WINAPI SfpVerifyFile (LPCSTR pszFileName, LPSTR pszError, DWORD dwErrSize)
 

Variables

HINSTANCE hLibModule
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

Definition at line 25 of file sfc.c.

26{
27 switch (fdwReason)
28 {
30 {
32 hLibModule = hinstDLL;
33 break;
34 }
36 {
37 break;
38 }
39 }
40
41 return TRUE;
42}
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
HINSTANCE hLibModule
Definition: sfc.c:23

◆ sfc_8()

DWORD WINAPI sfc_8 ( )

Definition at line 44 of file sfc.c.

45{
47}
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102

◆ sfc_9()

DWORD WINAPI sfc_9 ( )

Definition at line 49 of file sfc.c.

50{
52}

◆ SfpVerifyFile()

BOOL WINAPI SfpVerifyFile ( LPCSTR  pszFileName,
LPSTR  pszError,
DWORD  dwErrSize 
)

Definition at line 126 of file sfc.c.

127{
129 return FALSE;
130}
#define FALSE
Definition: types.h:117
#define SetLastError(x)
Definition: compat.h:752

◆ SRSetRestorePointA()

BOOL WINAPI SRSetRestorePointA ( PRESTOREPOINTINFOA  pRestorePtSpec,
PSTATEMGRSTATUS  pSMgrStatus 
)

Definition at line 54 of file sfc.c.

55{
57 PSRSRPA pSRSRPA;
58 BOOL bStatus = FALSE;
59 LPCWSTR lpLibFileName = L"srclient.dll";
60 LPCSTR lpProcName = "SRSetRestorePointA";
61
62 hModule = LoadLibraryW(lpLibFileName);
63 if (hModule)
64 {
65 pSRSRPA = (PSRSRPA)GetProcAddress(hModule, lpProcName);
66 if (pSRSRPA)
67 {
68 bStatus = pSRSRPA(pRestorePtSpec, pSMgrStatus);
69 }
70 else
71 {
72 if (pSMgrStatus)
73 {
75 }
76 }
78 }
79 else
80 {
81 if (pSMgrStatus)
82 {
84 }
85 }
86
87 return bStatus;
88}
HMODULE hModule
Definition: animate.c:44
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
BOOL(WINAPI * PSRSRPA)(PRESTOREPOINTINFOA, PSTATEMGRSTATUS)
Definition: precomp.h:13
unsigned int BOOL
Definition: ntddk_ex.h:94
#define L(x)
Definition: ntvdm.h:50
const char * LPCSTR
Definition: xmlstorage.h:183
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

◆ SRSetRestorePointW()

BOOL WINAPI SRSetRestorePointW ( PRESTOREPOINTINFOW  pRestorePtSpec,
PSTATEMGRSTATUS  pSMgrStatus 
)

Definition at line 90 of file sfc.c.

91{
93 PSRSRPW pSRSRPW;
94 BOOL bStatus = FALSE;
95 LPCWSTR lpLibFileName = L"srclient.dll";
96 LPCSTR lpProcName = "SRSetRestorePointW";
97
98 hModule = LoadLibraryW(lpLibFileName);
99 if (hModule)
100 {
101 pSRSRPW = (PSRSRPW)GetProcAddress(hModule, lpProcName);
102 if (pSRSRPW)
103 {
104 bStatus = pSRSRPW(pRestorePtSpec, pSMgrStatus);
105 }
106 else
107 {
108 if (pSMgrStatus)
109 {
110 pSMgrStatus->nStatus = ERROR_CALL_NOT_IMPLEMENTED;
111 }
112 }
114 }
115 else
116 {
117 if (pSMgrStatus)
118 {
119 pSMgrStatus->nStatus = ERROR_CALL_NOT_IMPLEMENTED;
120 }
121 }
122
123 return bStatus;
124}
BOOL(WINAPI * PSRSRPW)(PRESTOREPOINTINFOW, PSTATEMGRSTATUS)
Definition: precomp.h:14

Variable Documentation

◆ hLibModule