A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » The Basics
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

About system restore



 
 
Thread Tools Display Modes
  #1  
Old July 29th 04, 07:14 PM
George
external usenet poster
 
Posts: n/a
Default About system restore

In Windows XP there is system restore function. I check the system restore
in MSDN, there are two functions about the system restore. One is
SRRemoveRestorePoint() and the other is SRSetRestorePoint().
I see the SRSetRestorePoint() function, it says "Specifies the beginning and
the ending of a set of changes so that System Restore can create a restore
point".
1. In the code sample of the MSDN, it says the beginning of the restore
point should be marked. What does the beginning restore point do when it
marked. I see it already create the restore point, and I use the file
monitor, it also save the files in the _restore folder.
2. In the code sample of the MSDN, at the end it marked the ending of the
restore point. What does the end do?I see nothing in the File monitor
function. And if I not end the restore point it seems also no effect about
the system restore.
3. If I use the system restore in the Windows XP, not use code, what does it
really do in the OS? Does it alse have the begin and end system restore
point?

I guess in the system restore, if I set the beginning of the restore point,
it then create the restore point, and save the protected file. If I set the
ending of the restore point, it then to check the saved file when at the
beginning poing setted, if changed it will save the unchanged and changed
file, this situation just like install the drivers and so on. If no ending
of the restore poing set, it just save the file in the XML list, this
situation just like to use the Windows XP UI to set the system restore. Am I
right?

Where I can find the resource about the syetem restore, I find it in the
MSDN, but i still have some puzzles.


Ads
  #2  
Old July 29th 04, 07:14 PM
Ramesh [MVP]
external usenet poster
 
Posts: n/a
Default About system restore

Hi George,

I'm not a SDK guy, but the MSDN article titled "Calling =
SRSetRestorePoint" explains mo

An application can create an install point before it causes a =
significant system change, such as an install, uninstall, or feature =
update.=20

To create a restore point just prior to installation, call the =
SRSetRestorePoint function with the dwEventType member of the =
RESTOREPOINTINFO structure set to BEGIN_SYSTEM_CHANGE. To notify System =
Restore that the installation has been completed, call SRSetRestorePoint =
with dwEventType set to END_SYSTEM_CHANGE.

After the END_SYSTEM_CHANGE, the control is passed on to the installer =
afaik.

You might get more accurate responses to this question if you try the =
SDK newsgroup. Or, wait for someone like David Candy to explain this =
further.

microsoft.public.platformsdk.shell


--=20
Ramesh, Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

Windows 2000 Group Policy Registry Table:=20
http://www.microsoft.com/windows2000...s/gp/gpref.asp

"George" wrote in message =
...
In Windows XP there is system restore function. I check the system =
restore
in MSDN, there are two functions about the system restore. One is
SRRemoveRestorePoint() and the other is SRSetRestorePoint().
I see the SRSetRestorePoint() function, it says "Specifies the beginning =
and
the ending of a set of changes so that System Restore can create a =
restore
point".
1. In the code sample of the MSDN, it says the beginning of the restore
point should be marked. What does the beginning restore point do when it
marked. I see it already create the restore point, and I use the file
monitor, it also save the files in the _restore folder.
2. In the code sample of the MSDN, at the end it marked the ending of =
the
restore point. What does the end do?I see nothing in the File monitor
function. And if I not end the restore point it seems also no effect =
about
the system restore.
3. If I use the system restore in the Windows XP, not use code, what =
does it
really do in the OS? Does it alse have the begin and end system restore
point?

I guess in the system restore, if I set the beginning of the restore =
point,
it then create the restore point, and save the protected file. If I set =
the
ending of the restore point, it then to check the saved file when at the
beginning poing setted, if changed it will save the unchanged and =
changed
file, this situation just like install the drivers and so on. If no =
ending
of the restore poing set, it just save the file in the XML list, this
situation just like to use the Windows XP UI to set the system restore. =
Am I
right?

Where I can find the resource about the syetem restore, I find it in the
MSDN, but i still have some puzzles.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 11:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.