ReactOS 0.4.15-dev-8207-gd73a838
srclient_main.c
Go to the documentation of this file.
1/*
2 * Copyright 2009 Christoph von Wittich
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#define WIN32_NO_STATUS
20
21#include <stdarg.h>
22#include <windef.h>
23#include <winbase.h>
24#include <winnls.h>
25#include <srrestoreptapi.h>
26
27#define NDEBUG
28#include <debug.h>
29
30BOOL
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}
50
51
52BOOL
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}
67
68
72{
73 DPRINT1("SRRemoveRestorePoint is unimplemented\n");
74 return ERROR_SUCCESS;
75}
76
#define DPRINT1
Definition: precomp.h:8
#define ERROR_SUCCESS
Definition: deptool.c:10
#define FALSE
Definition: types.h:117
#define CP_ACP
Definition: compat.h:109
#define MultiByteToWideChar
Definition: compat.h:110
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define memset(x, y, z)
Definition: compat.h:39
BOOL WINAPI SRSetRestorePointA(PRESTOREPOINTINFOA pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
Definition: srclient_main.c:32
DWORD WINAPI SRRemoveRestorePoint(DWORD dwNumber)
Definition: srclient_main.c:71
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]
#define WINAPI
Definition: msvc.h:6
#define ERROR_SERVICE_DISABLED
Definition: winerror.h:609