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
30 BOOL
31 WINAPI
SRSetRestorePointA(PRESTOREPOINTINFOA pRestorePtSpec,PSTATEMGRSTATUS pStateMgrStatus)32 SRSetRestorePointA(PRESTOREPOINTINFOA pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
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
52 BOOL
53 WINAPI
SRSetRestorePointW(PRESTOREPOINTINFOW pRestorePtSpec,PSTATEMGRSTATUS pStateMgrStatus)54 SRSetRestorePointW(PRESTOREPOINTINFOW pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
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
69 DWORD
70 WINAPI
SRRemoveRestorePoint(DWORD dwNumber)71 SRRemoveRestorePoint(DWORD dwNumber)
72 {
73 DPRINT1("SRRemoveRestorePoint is unimplemented\n");
74 return ERROR_SUCCESS;
75 }
76
77