- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
var retriesLeft = 100;
while (true)
{
try
{
return SetRestorePoint(0, pointType, enentType, description);
}
catch (Win32Exception ex)
{
if (ex.NativeErrorCode != ErrorServiceDisabled || retriesLeft < 0)
throw;
Thread.Sleep(500);
retriesLeft--;
}
}