A
Amir Ghezelbash
Hello all
i am making a program for where i work, now in this program i need ot
change bunch of registry keys i wanne create a system restore point
before touching the registry
does any body know how to you can programmatically create a Windows
ME/XP System Restore Point?
i found a VB example but having a hard time translating it to C# any
help would be appreciated
Public Sub CreatePoint(style As Boolean) 'Create a point
Dim obj As Object
Set obj =
GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:System
Restore")
'The date and ID are auto added
Call obj.CreateRestorePoint("Give it a name", 12, 100)
End Sub
i am making a program for where i work, now in this program i need ot
change bunch of registry keys i wanne create a system restore point
before touching the registry
does any body know how to you can programmatically create a Windows
ME/XP System Restore Point?
i found a VB example but having a hard time translating it to C# any
help would be appreciated
Public Sub CreatePoint(style As Boolean) 'Create a point
Dim obj As Object
Set obj =
GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:System
Restore")
'The date and ID are auto added
Call obj.CreateRestorePoint("Give it a name", 12, 100)
End Sub