ReactOS 0.4.15-dev-8393-g61b7fb9
srclient_main.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winnls.h>
#include <srrestoreptapi.h>
#include <debug.h>
Include dependency graph for srclient_main.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define NDEBUG
 

Functions

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

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 27 of file srclient_main.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 19 of file srclient_main.c.

Function Documentation

◆ SRRemoveRestorePoint()

DWORD WINAPI SRRemoveRestorePoint ( DWORD  dwNumber)

Definition at line 71 of file srclient_main.c.

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

Referenced by init_functionpointers().

◆ SRSetRestorePointA()

BOOL WINAPI SRSetRestorePointA ( PRESTOREPOINTINFOA  pRestorePtSpec,
PSTATEMGRSTATUS  pStateMgrStatus 
)

Definition at line 32 of file srclient_main.c.

33{
34 RESTOREPOINTINFOW RPInfoW;
35
36 DPRINT1("SRSetRestorePointA is unimplemented\n");
37
38 if (!pRestorePtSpec)
39 return FALSE;
40
41 RPInfoW.dwEventType = pRestorePtSpec->dwEventType;
42 RPInfoW.dwRestorePtType = pRestorePtSpec->dwRestorePtType;
43 RPInfoW.llSequenceNumber = pRestorePtSpec->llSequenceNumber;
44
45 if (!MultiByteToWideChar( CP_ACP, 0, pRestorePtSpec->szDescription, -1, RPInfoW.szDescription, MAX_DESC_W))
46 return FALSE;
47
48 return SRSetRestorePointW(&RPInfoW, pStateMgrStatus);
49}
#define FALSE
Definition: types.h:117
#define CP_ACP
Definition: compat.h:109
#define MultiByteToWideChar
Definition: compat.h:110
BOOL WINAPI SRSetRestorePointW(PRESTOREPOINTINFOW pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
Definition: srclient_main.c:54
#define MAX_DESC_W
CHAR szDescription[MAX_DESC]
WCHAR szDescription[MAX_DESC_W]

◆ SRSetRestorePointW()

BOOL WINAPI SRSetRestorePointW ( PRESTOREPOINTINFOW  pRestorePtSpec,
PSTATEMGRSTATUS  pStateMgrStatus 
)

Definition at line 54 of file srclient_main.c.

55{
56
57 DPRINT1("SRSetRestorePointW is unimplemented\n");
58
59 if (!pStateMgrStatus)
60 return FALSE;
61
62 memset(pStateMgrStatus, 0, sizeof(STATEMGRSTATUS));
63 pStateMgrStatus->nStatus = ERROR_SERVICE_DISABLED;
64
65 return FALSE;
66}
#define memset(x, y, z)
Definition: compat.h:39
#define ERROR_SERVICE_DISABLED
Definition: winerror.h:609

Referenced by SRSetRestorePointA().