title: Create System Restore Point in Windows 10
body: <p>I want to use Window API to create System Restore Point (SRP). However, creating SRP is limited in 24 hours.</p>
  <p>Here're my steps</p>
  <ul>
  <li>Add SystemRestorePointCreationFrequency under the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore and set to Zero.</li>
  </ul>
  <p>In source code</p>
  <ul>
  <li>Call LoadLibraryW(L&quot;srclient.dll&quot;)</li>
  <li>Get GetProcAddress of SRSetRestorePointW</li>
  <li>Call SRSetRestorePointW method.</li>
  </ul>
  <p>this method only create SRP in the first calling. In the second calling, it always return previous sequenceNumber(STATEMGRSTATUS.llSequenceNumber).
  it seem that SRSetRestorePointW does not refer SystemRestorePointCreationFrequency.</p>
  <p>I tried using powershell to create 2 SRPs, it works well (without reboot system )</p>
  <pre><code>Checkpoint-Computer -Description 'Install_TEST' -RestorePointType 'APPLICATION_INSTALL'
  </code></pre>
  <p>This source code is referred from MSD. But it has this issue. (docs.microsoft.com/en-us/windows/win32/sr/using-system-restore)</p>