mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
add srclient.dll
svn path=/trunk/; revision=39513
This commit is contained in:
parent
03660c7885
commit
4bcb8813bd
|
@ -12,6 +12,7 @@
|
|||
<property name="BASEADDRESS_DWMAPI" value="0x4A3F0000" />
|
||||
<property name="BASEADDRESS_LOADPERF" value="0x4B920000" />
|
||||
<property name="BASEADDRESS_MPRAPI" value="0x4C400000" />
|
||||
<property name="BASEADDRESS_SRCLIENT" value="0x512C0000" />
|
||||
<property name="BASEADDRESS_PSTOREC" value="0x513D0000" />
|
||||
<property name="BASEADDRESS_LPK" value="0x516C0000" />
|
||||
<property name="BASEADDRESS_TELEPHON" value="0x58750000" />
|
||||
|
|
|
@ -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
|
||||
|
|
9
reactos/dll/win32/srclient/srclient.rbuild
Normal file
9
reactos/dll/win32/srclient/srclient.rbuild
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
|
||||
<module name="srclient" type="win32dll" baseaddress="${BASEADDRESS_SRCLIENT}" installbase="system32" entrypoint="0" installname="srclient.dll" allowwarnings="true">
|
||||
<importlibrary definition="srclient.spec" />
|
||||
<include base="srclient">.</include>
|
||||
<library>ntdll</library>
|
||||
<library>kernel32</library>
|
||||
<file>srclient_main.c</file>
|
||||
</module>
|
10
reactos/dll/win32/srclient/srclient.spec
Normal file
10
reactos/dll/win32/srclient/srclient.spec
Normal file
|
@ -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
|
73
reactos/dll/win32/srclient/srclient_main.c
Normal file
73
reactos/dll/win32/srclient/srclient_main.c
Normal file
|
@ -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 <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winnls.h>
|
||||
#include <srrestoreptapi.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
@ -397,6 +397,9 @@
|
|||
<directory name="spoolss">
|
||||
<xi:include href="spoolss/spoolss.rbuild" />
|
||||
</directory>
|
||||
<directory name="srclient">
|
||||
<xi:include href="srclient/srclient.rbuild" />
|
||||
</directory>
|
||||
<directory name="stdole2.tlb">
|
||||
<xi:include href="stdole2.tlb/stdole2.rbuild" />
|
||||
</directory>
|
||||
|
|
Loading…
Reference in a new issue