From 4bcb8813bd209b00060861326e0b42738797a535 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Mon, 9 Feb 2009 13:47:47 +0000 Subject: [PATCH] add srclient.dll svn path=/trunk/; revision=39513 --- reactos/baseaddress.rbuild | 1 + reactos/boot/bootdata/packages/reactos.dff | 1 + reactos/dll/win32/srclient/srclient.rbuild | 9 +++ reactos/dll/win32/srclient/srclient.spec | 10 +++ reactos/dll/win32/srclient/srclient_main.c | 73 ++++++++++++++++++++++ reactos/dll/win32/win32.rbuild | 3 + 6 files changed, 97 insertions(+) create mode 100644 reactos/dll/win32/srclient/srclient.rbuild create mode 100644 reactos/dll/win32/srclient/srclient.spec create mode 100644 reactos/dll/win32/srclient/srclient_main.c diff --git a/reactos/baseaddress.rbuild b/reactos/baseaddress.rbuild index 641826bc36e..5745f058cb4 100644 --- a/reactos/baseaddress.rbuild +++ b/reactos/baseaddress.rbuild @@ -12,6 +12,7 @@ + diff --git a/reactos/boot/bootdata/packages/reactos.dff b/reactos/boot/bootdata/packages/reactos.dff index 12e9c601a44..1bd234538f7 100644 --- a/reactos/boot/bootdata/packages/reactos.dff +++ b/reactos/boot/bootdata/packages/reactos.dff @@ -366,6 +366,7 @@ dll\win32\shlwapi\shlwapi.dll 1 dll\win32\smdll\smdll.dll 1 dll\win32\snmpapi\snmpapi.dll 1 dll\win32\spoolss\spoolss.dll 1 +dll\win32\srclient\srclient.dll 1 dll\win32\stdole2.tlb\stdole2.tlb 1 dll\win32\stdole32.tlb\stdole32.tlb 1 dll\win32\sxs\sxs.dll 1 diff --git a/reactos/dll/win32/srclient/srclient.rbuild b/reactos/dll/win32/srclient/srclient.rbuild new file mode 100644 index 00000000000..f7be6ca20b6 --- /dev/null +++ b/reactos/dll/win32/srclient/srclient.rbuild @@ -0,0 +1,9 @@ + + + + + . + ntdll + kernel32 + srclient_main.c + diff --git a/reactos/dll/win32/srclient/srclient.spec b/reactos/dll/win32/srclient/srclient.spec new file mode 100644 index 00000000000..3a52e821bd9 --- /dev/null +++ b/reactos/dll/win32/srclient/srclient.spec @@ -0,0 +1,10 @@ +@ stub DisableSR +@ stub DisableSRInternal +@ stub EnableSR +@ stub EnableSREx +@ stub EnableSRInternal +@ stdcall SRRemoveRestorePoint (long) +@ stdcall SRSetRestorePointA (ptr ptr) +@ stub SRSetRestorePointInternal +@ stdcall SRSetRestorePointW (ptr ptr) +@ stub SetSRStateAfterSetup diff --git a/reactos/dll/win32/srclient/srclient_main.c b/reactos/dll/win32/srclient/srclient_main.c new file mode 100644 index 00000000000..2eddc034fa1 --- /dev/null +++ b/reactos/dll/win32/srclient/srclient_main.c @@ -0,0 +1,73 @@ +/* + * Copyright 2009 Christoph von Wittich + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include +#include +#include +#include + +#define NDEBUG +#include + +BOOL +WINAPI +SRSetRestorePointA(PRESTOREPOINTINFOA pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus) +{ + RESTOREPOINTINFOW RPInfoW; + + DPRINT1("SRSetRestorePointA is unimplemented\n"); + + if (!pRestorePtSpec || !pRestorePtSpec->szDescription) + return FALSE; + + RPInfoW.dwEventType = pRestorePtSpec->dwEventType; + RPInfoW.dwRestorePtType = pRestorePtSpec->dwRestorePtType; + RPInfoW.llSequenceNumber = pRestorePtSpec->llSequenceNumber; + + if (!MultiByteToWideChar( CP_ACP, 0, pRestorePtSpec->szDescription, -1, RPInfoW.szDescription, MAX_DESC_W)) + return FALSE; + + return SRSetRestorePointW(&RPInfoW, pStateMgrStatus); +} + + +BOOL +WINAPI +SRSetRestorePointW(PRESTOREPOINTINFOW pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus) +{ + + DPRINT1("SRSetRestorePointW is unimplemented\n"); + + if (!pStateMgrStatus) + return FALSE; + + memset(pStateMgrStatus, 0, sizeof(STATEMGRSTATUS)); + pStateMgrStatus->nStatus = ERROR_SERVICE_DISABLED; + + return FALSE; +} + + +DWORD +WINAPI +SRRemoveRestorePoint(DWORD dwNumber) +{ + DPRINT1("SRRemoveRestorePoint is unimplemented\n"); + return ERROR_SUCCESS; +} + diff --git a/reactos/dll/win32/win32.rbuild b/reactos/dll/win32/win32.rbuild index e2e0517149f..ed7b51e25bb 100644 --- a/reactos/dll/win32/win32.rbuild +++ b/reactos/dll/win32/win32.rbuild @@ -397,6 +397,9 @@ + + +