ReactOS  0.4.14-dev-297-g23e575c
sfc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _PROTECTED_FILE_DATA
 

Typedefs

typedef struct _PROTECTED_FILE_DATA PROTECTED_FILE_DATA
 
typedef struct _PROTECTED_FILE_DATAPPROTECTED_FILE_DATA
 

Functions

BOOL WINAPI SfcGetNextProtectedFile (HANDLE, PPROTECTED_FILE_DATA)
 
BOOL WINAPI SfcIsFileProtected (HANDLE, LPCWSTR)
 
BOOL WINAPI SfcIsKeyProtected (HKEY, LPCWSTR, REGSAM)
 
BOOL WINAPI SfpVerifyFile (LPCSTR, LPSTR, DWORD)
 

Typedef Documentation

◆ PPROTECTED_FILE_DATA

◆ PROTECTED_FILE_DATA

Function Documentation

◆ SfcGetNextProtectedFile()

BOOL WINAPI SfcGetNextProtectedFile ( HANDLE  ,
PPROTECTED_FILE_DATA   
)

Definition at line 142 of file sfc_os.c.

143 {
144  if (!ProtFileData)
145  {
147  return FALSE;
148  }
149 
152  return FALSE;
153 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define ERROR_NO_MORE_FILES
Definition: winerror.h:121
#define SetLastError(x)
Definition: compat.h:409
#define UNIMPLEMENTED
Definition: debug.h:114

Referenced by START_TEST().

◆ SfcIsFileProtected()

BOOL WINAPI SfcIsFileProtected ( HANDLE  ,
LPCWSTR   
)

Definition at line 83 of file sfc_os.c.

84 {
85  static BOOL reported = FALSE;
86 
87  if (reported) {
88  DPRINT("(%p, %S) stub\n", RpcHandle, ProtFileName);
89  }
90  else
91  {
92  DPRINT1("(%p, %S) stub\n", RpcHandle, ProtFileName);
93  reported = TRUE;
94  }
95 
97  return FALSE;
98 }
#define TRUE
Definition: types.h:120
unsigned int BOOL
Definition: ntddk_ex.h:94
void DPRINT(...)
Definition: polytest.cpp:61
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
LPCWSTR ProtFileName
#define SetLastError(x)
Definition: compat.h:409
#define DPRINT1
Definition: precomp.h:8

Referenced by CLayerUIPropPage::InitFile(), START_TEST(), and Test_ProtectedFiles().

◆ SfcIsKeyProtected()

BOOL WINAPI SfcIsKeyProtected ( HKEY  ,
LPCWSTR  ,
REGSAM   
)

Definition at line 117 of file sfc_os.c.

118 {
119  static BOOL reported = FALSE;
120 
121  if (reported) {
122  DPRINT("(%p, %S) stub\n", hKey, lpSubKey);
123  }
124  else
125  {
126  DPRINT1("(%p, %S) stub\n", hKey, lpSubKey);
127  reported = TRUE;
128  }
129 
130  if( !hKey ) {
132  return FALSE;
133  }
134 
136  return FALSE;
137 }
#define TRUE
Definition: types.h:120
#define ERROR_INVALID_HANDLE
Definition: compat.h:88
unsigned int BOOL
Definition: ntddk_ex.h:94
void DPRINT(...)
Definition: polytest.cpp:61
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
#define SetLastError(x)
Definition: compat.h:409
#define DPRINT1
Definition: precomp.h:8

Referenced by START_TEST().

◆ SfpVerifyFile()

BOOL WINAPI SfpVerifyFile ( LPCSTR  ,
LPSTR  ,
DWORD   
)

Definition at line 126 of file sfc.c.

127 {
129  return FALSE;
130 }
#define SetLastError(x)
Definition: compat.h:409
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92