ReactOS
0.4.16-dev-88-ga65b6ae
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
30
BOOL
31
WINAPI
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
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
71
SRRemoveRestorePoint
(
DWORD
dwNumber)
72
{
73
DPRINT1
(
"SRRemoveRestorePoint is unimplemented\n"
);
74
return
ERROR_SUCCESS
;
75
}
76
DPRINT1
#define DPRINT1
Definition:
precomp.h:8
ERROR_SUCCESS
#define ERROR_SUCCESS
Definition:
deptool.c:10
FALSE
#define FALSE
Definition:
types.h:117
CP_ACP
#define CP_ACP
Definition:
compat.h:109
MultiByteToWideChar
#define MultiByteToWideChar
Definition:
compat.h:110
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
memset
#define memset(x, y, z)
Definition:
compat.h:39
SRSetRestorePointA
BOOL WINAPI SRSetRestorePointA(PRESTOREPOINTINFOA pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
Definition:
srclient_main.c:32
SRRemoveRestorePoint
DWORD WINAPI SRRemoveRestorePoint(DWORD dwNumber)
Definition:
srclient_main.c:71
SRSetRestorePointW
BOOL WINAPI SRSetRestorePointW(PRESTOREPOINTINFOW pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
Definition:
srclient_main.c:54
srrestoreptapi.h
MAX_DESC_W
#define MAX_DESC_W
Definition:
srrestoreptapi.h:38
_RESTOREPTINFOA
Definition:
srrestoreptapi.h:44
_RESTOREPTINFOA::szDescription
CHAR szDescription[MAX_DESC]
Definition:
srrestoreptapi.h:48
_RESTOREPTINFOA::dwEventType
DWORD dwEventType
Definition:
srrestoreptapi.h:45
_RESTOREPTINFOA::dwRestorePtType
DWORD dwRestorePtType
Definition:
srrestoreptapi.h:46
_RESTOREPTINFOA::llSequenceNumber
INT64 llSequenceNumber
Definition:
srrestoreptapi.h:47
_RESTOREPTINFOW
Definition:
srrestoreptapi.h:51
_RESTOREPTINFOW::llSequenceNumber
INT64 llSequenceNumber
Definition:
srrestoreptapi.h:54
_RESTOREPTINFOW::szDescription
WCHAR szDescription[MAX_DESC_W]
Definition:
srrestoreptapi.h:55
_RESTOREPTINFOW::dwEventType
DWORD dwEventType
Definition:
srrestoreptapi.h:52
_RESTOREPTINFOW::dwRestorePtType
DWORD dwRestorePtType
Definition:
srrestoreptapi.h:53
_SMGRSTATUS
Definition:
srrestoreptapi.h:58
_SMGRSTATUS::nStatus
DWORD nStatus
Definition:
srrestoreptapi.h:59
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
ERROR_SERVICE_DISABLED
#define ERROR_SERVICE_DISABLED
Definition:
winerror.h:609
winnls.h
dll
win32
srclient
srclient_main.c
Generated on Thu Oct 3 2024 06:04:57 for ReactOS by
1.9.6