| 1 | #pragma once |
| 2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 3 | |
| 4 | |
| 5 | #ifdef __cplusplus |
| 6 | extern "C" { |
| 7 | #endif |
| 8 | |
| 9 | |
| 10 | typedef enum SRP_ACTION |
| 11 | { |
| 12 | SRP_ACTION_UNKNOWN, |
| 13 | SRP_ACTION_UNINSTALL, |
| 14 | SRP_ACTION_INSTALL, |
| 15 | SRP_ACTION_MODIFY, |
| 16 | } SRP_ACTION; |
| 17 | |
| 18 | |
| 19 | /******************************************************************** |
| 20 | SrpInitialize - initializes system restore point functionality. |
| 21 | |
| 22 | *******************************************************************/ |
| 23 | DAPI_(HRESULT) SrpInitialize( |
| 24 | __in BOOL fInitializeComSecurity |
| 25 | ); |
| 26 | |
| 27 | /******************************************************************** |
| 28 | SrpUninitialize - uninitializes system restore point functionality. |
| 29 | |
| 30 | *******************************************************************/ |
| 31 | DAPI_(void) SrpUninitialize(); |
| 32 | |
| 33 | /******************************************************************** |
| 34 | SrpCreateRestorePoint - creates a system restore point. |
| 35 | |
| 36 | *******************************************************************/ |
| 37 | DAPI_(HRESULT) SrpCreateRestorePoint( |
| 38 | __in_z LPCWSTR wzApplicationName, |
| 39 | __in SRP_ACTION action |
| 40 | ); |
| 41 | |
| 42 | #ifdef __cplusplus |
| 43 | } |
| 44 | #endif |
| 45 |