ReactOS  0.4.13-dev-100-gc8611ae
srrestoreptapi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _RESTOREPTINFOA
 
struct  _RESTOREPTINFOW
 
struct  _SMGRSTATUS
 

Macros

#define BEGIN_NESTED_SYSTEM_CHANGE   102
 
#define END_NESTED_SYSTEM_CHANGE   103
 
#define APPLICATION_INSTALL   0
 
#define MAX_DESC   64
 
#define MAX_DESC_W   256
 

Typedefs

typedef struct _RESTOREPTINFOA RESTOREPOINTINFOA
 
typedef struct _RESTOREPTINFOAPRESTOREPOINTINFOA
 
typedef struct _RESTOREPTINFOW RESTOREPOINTINFOW
 
typedef struct _RESTOREPTINFOWPRESTOREPOINTINFOW
 
typedef struct _SMGRSTATUS STATEMGRSTATUS
 
typedef struct _SMGRSTATUSPSTATEMGRSTATUS
 

Functions

BOOL WINAPI SRSetRestorePointA (PRESTOREPOINTINFOA, PSTATEMGRSTATUS)
 
BOOL WINAPI SRSetRestorePointW (PRESTOREPOINTINFOW, PSTATEMGRSTATUS)
 
DWORD WINAPI SRRemoveRestorePoint (DWORD)
 

Macro Definition Documentation

◆ APPLICATION_INSTALL

#define APPLICATION_INSTALL   0

Definition at line 35 of file srrestoreptapi.h.

◆ BEGIN_NESTED_SYSTEM_CHANGE

#define BEGIN_NESTED_SYSTEM_CHANGE   102

Definition at line 31 of file srrestoreptapi.h.

◆ END_NESTED_SYSTEM_CHANGE

#define END_NESTED_SYSTEM_CHANGE   103

Definition at line 32 of file srrestoreptapi.h.

◆ MAX_DESC

#define MAX_DESC   64

Definition at line 37 of file srrestoreptapi.h.

◆ MAX_DESC_W

#define MAX_DESC_W   256

Definition at line 38 of file srrestoreptapi.h.

Typedef Documentation

◆ PRESTOREPOINTINFOA

◆ PRESTOREPOINTINFOW

◆ PSTATEMGRSTATUS

◆ RESTOREPOINTINFOA

◆ RESTOREPOINTINFOW

◆ STATEMGRSTATUS

Function Documentation

◆ SRRemoveRestorePoint()

DWORD WINAPI SRRemoveRestorePoint ( DWORD  )

Definition at line 71 of file srclient_main.c.

72 {
73  DPRINT1("SRRemoveRestorePoint is unimplemented\n");
74  return ERROR_SUCCESS;
75 }
#define ERROR_SUCCESS
Definition: deptool.c:10
#define DPRINT1
Definition: precomp.h:8

Referenced by init_functionpointers().

◆ SRSetRestorePointA()

BOOL WINAPI SRSetRestorePointA ( PRESTOREPOINTINFOA  ,
PSTATEMGRSTATUS   
)

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  {
74  pSMgrStatus->nStatus = ERROR_CALL_NOT_IMPLEMENTED;
75  }
76  }
78  }
79  else
80  {
81  if (pSMgrStatus)
82  {
83  pSMgrStatus->nStatus = ERROR_CALL_NOT_IMPLEMENTED;
84  }
85  }
86 
87  return bStatus;
88 }
BOOL(WINAPI * PSRSRPA)(PRESTOREPOINTINFOA, PSTATEMGRSTATUS)
Definition: precomp.h:13
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LoadLibraryW(x)
Definition: compat.h:404
const char * LPCSTR
Definition: xmlstorage.h:183
#define FreeLibrary(x)
Definition: compat.h:405
static const WCHAR L[]
Definition: oid.c:1250
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define GetProcAddress(x, y)
Definition: compat.h:410
HMODULE hModule
Definition: animate.c:44

Referenced by init_functionpointers().

◆ SRSetRestorePointW()

BOOL WINAPI SRSetRestorePointW ( PRESTOREPOINTINFOW  ,
PSTATEMGRSTATUS   
)

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 }
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL(WINAPI * PSRSRPW)(PRESTOREPOINTINFOW, PSTATEMGRSTATUS)
Definition: precomp.h:14
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LoadLibraryW(x)
Definition: compat.h:404
const char * LPCSTR
Definition: xmlstorage.h:183
#define FreeLibrary(x)
Definition: compat.h:405
static const WCHAR L[]
Definition: oid.c:1250
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define GetProcAddress(x, y)
Definition: compat.h:410
HMODULE hModule
Definition: animate.c:44

Referenced by SRSetRestorePointA().