ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

srclient_main.c
Go to the documentation of this file.
00001 /*
00002  * Copyright 2009 Christoph von Wittich
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00017  */
00018 
00019 #include <windows.h>
00020 #include <srrestoreptapi.h>
00021 
00022 #define NDEBUG
00023 #include <debug.h>
00024 
00025 BOOL
00026 WINAPI
00027 SRSetRestorePointA(PRESTOREPOINTINFOA pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
00028 {
00029     RESTOREPOINTINFOW RPInfoW;
00030 
00031     DPRINT1("SRSetRestorePointA is unimplemented\n");
00032 
00033     if (!pRestorePtSpec || !pRestorePtSpec->szDescription)
00034         return FALSE;
00035 
00036     RPInfoW.dwEventType = pRestorePtSpec->dwEventType;
00037     RPInfoW.dwRestorePtType = pRestorePtSpec->dwRestorePtType;
00038     RPInfoW.llSequenceNumber = pRestorePtSpec->llSequenceNumber;
00039 
00040     if (!MultiByteToWideChar( CP_ACP, 0, pRestorePtSpec->szDescription, -1, RPInfoW.szDescription, MAX_DESC_W))
00041         return FALSE;
00042 
00043     return SRSetRestorePointW(&RPInfoW, pStateMgrStatus);
00044 }
00045 
00046 
00047 BOOL
00048 WINAPI
00049 SRSetRestorePointW(PRESTOREPOINTINFOW pRestorePtSpec, PSTATEMGRSTATUS pStateMgrStatus)
00050 {
00051 
00052     DPRINT1("SRSetRestorePointW is unimplemented\n");
00053 
00054     if (!pStateMgrStatus)
00055         return FALSE;
00056 
00057     memset(pStateMgrStatus, 0, sizeof(STATEMGRSTATUS));
00058     pStateMgrStatus->nStatus = ERROR_SERVICE_DISABLED;
00059 
00060     return FALSE;
00061 }
00062 
00063 
00064 DWORD
00065 WINAPI
00066 SRRemoveRestorePoint(DWORD dwNumber)
00067 {
00068     DPRINT1("SRRemoveRestorePoint is unimplemented\n");
00069     return ERROR_SUCCESS;
00070 }
00071 

Generated on Sat May 26 2012 04:25:09 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.