srrestoreptapi.h (5.2.3790.1830-Windows 5.0) | | srrestoreptapi.h (6.0.6000.16386-Windows 6.0) |
| | |
skipping to change at line 20 | | skipping to change at line 20 |
| | |
******************************************************************************/ | | ******************************************************************************/ |
| | |
#if !defined( _SRRESTOREPTAPI_H ) | | #if !defined( _SRRESTOREPTAPI_H ) |
#define _SRRESTOREPTAPI_H | | #define _SRRESTOREPTAPI_H |
| | |
// | | // |
// Type of Event | | // Type of Event |
// | | // |
| | |
|
#define MIN_EVENT 100 | | #define MIN_EVENT 100 |
#define BEGIN_SYSTEM_CHANGE 100 | | #define BEGIN_SYSTEM_CHANGE 100 |
#define END_SYSTEM_CHANGE 101 | | #define END_SYSTEM_CHANGE 101 |
#define BEGIN_NESTED_SYSTEM_CHANGE 102 // for Whistler only - use this t | | #define BEGIN_NESTED_SYSTEM_CHANGE 102 // for Whistler only - use this |
o prevent nested restore pts | | to prevent nested restore pts |
#define END_NESTED_SYSTEM_CHANGE 103 // for Whistler only - use this t | | #define END_NESTED_SYSTEM_CHANGE 103 // for Whistler only - use this |
o prevent nested restore pts | | to prevent nested restore pts |
#define MAX_EVENT 103 | | #define BEGIN_NESTED_SYSTEM_CHANGE_NORP 104 |
| | #define END_NESTED_SYSTEM_CHANGE_NORP END_NESTED_SYSTEM_CHANGE |
| | #define MAX_EVENT 104 |
| | |
// | | // |
// Type of Restore Points | | // Type of Restore Points |
// | | // |
| | |
#define MIN_RPT 0 | | #define MIN_RPT 0 |
#define APPLICATION_INSTALL 0 | | #define APPLICATION_INSTALL 0 |
#define APPLICATION_UNINSTALL 1 | | #define APPLICATION_UNINSTALL 1 |
#define DESKTOP_SETTING 2 /* Not implemented */ | | #define DESKTOP_SETTING 2 /* Not implemented */ |
#define ACCESSIBILITY_SETTING 3 /* Not implemented */ | | #define ACCESSIBILITY_SETTING 3 /* Not implemented */ |
#define OE_SETTING 4 /* Not implemented */ | | #define OE_SETTING 4 /* Not implemented */ |
#define APPLICATION_RUN 5 /* Not implemented */ | | #define APPLICATION_RUN 5 /* Not implemented */ |
#define RESTORE 6 | | #define RESTORE 6 |
#define CHECKPOINT 7 | | #define CHECKPOINT 7 |
#define WINDOWS_SHUTDOWN 8 /* Not implemented */ | | #define WINDOWS_SHUTDOWN 8 /* Not implemented */ |
#define WINDOWS_BOOT 9 /* Not implemented */ | | #define WINDOWS_BOOT 9 /* Not implemented */ |
#define DEVICE_DRIVER_INSTALL 10 | | #define DEVICE_DRIVER_INSTALL 10 |
#define FIRSTRUN 11 | | #define FIRSTRUN 11 |
#define MODIFY_SETTINGS 12 | | #define MODIFY_SETTINGS 12 |
#define CANCELLED_OPERATION 13 /* Only valid for END_SYSTEM_CHANGE */ | | #define CANCELLED_OPERATION 13 /* Only valid for END_SYSTEM_CHANGE */ |
|
#define BACKUP_RECOVERY 14 | | #define BACKUP_RECOVERY 14 |
#define MAX_RPT 14 | | #define MANUAL_CHECKPOINT 16 |
| | #define MAX_RPT 16 |
| | |
#define MAX_DESC 64 | | #define MAX_DESC 64 |
|
#define MAX_DESC_W 256 // longer for Whistler | | #define MAX_DESC_W 256 // longer for Whistler |
| | |
// | | // |
// for Millennium compatibility | | // for Millennium compatibility |
// | | // |
| | |
#pragma pack(push, srrestoreptapi_include) | | #pragma pack(push, srrestoreptapi_include) |
#pragma pack(1) | | #pragma pack(1) |
| | |
// | | // |
// Restore point information | | // Restore point information |
| | |
skipping to change at line 77 | | skipping to change at line 80 |
CHAR szDescription[MAX_DESC]; // Description - Name of Application / O
peration | | CHAR szDescription[MAX_DESC]; // Description - Name of Application / O
peration |
} RESTOREPOINTINFOA, *PRESTOREPOINTINFOA; | | } RESTOREPOINTINFOA, *PRESTOREPOINTINFOA; |
| | |
typedef struct _RESTOREPTINFOW { | | typedef struct _RESTOREPTINFOW { |
DWORD dwEventType; | | DWORD dwEventType; |
DWORD dwRestorePtType; | | DWORD dwRestorePtType; |
INT64 llSequenceNumber; | | INT64 llSequenceNumber; |
WCHAR szDescription[MAX_DESC_W]; | | WCHAR szDescription[MAX_DESC_W]; |
} RESTOREPOINTINFOW, *PRESTOREPOINTINFOW; | | } RESTOREPOINTINFOW, *PRESTOREPOINTINFOW; |
| | |
|
| | typedef struct _RESTOREPTINFOEX { |
| | FILETIME ftCreation; |
| | DWORD dwEventType; |
| | DWORD dwRestorePtType; |
| | DWORD dwRPNum; |
| | WCHAR szDescription[MAX_DESC_W]; |
| | } RESTOREPOINTINFOEX, *PRESTOREPOINTINFOEX; |
| | |
// | | // |
// Status returned by System Restore | | // Status returned by System Restore |
// | | // |
| | |
typedef struct _SMGRSTATUS { | | typedef struct _SMGRSTATUS { |
DWORD nStatus; // Status returned by State Manager Process | | DWORD nStatus; // Status returned by State Manager Process |
INT64 llSequenceNumber; // Sequence Number for the restore point | | INT64 llSequenceNumber; // Sequence Number for the restore point |
} STATEMGRSTATUS, *PSTATEMGRSTATUS; | | } STATEMGRSTATUS, *PSTATEMGRSTATUS; |
| | |
#pragma pack(pop, srrestoreptapi_include) | | #pragma pack(pop, srrestoreptapi_include) |
| | |
skipping to change at line 114 | | skipping to change at line 125 |
// | | // |
// ERROR_INVALID_DATA If the cancel restore point is called with an inva
lid | | // ERROR_INVALID_DATA If the cancel restore point is called with an inva
lid |
// sequence number | | // sequence number |
// | | // |
// ERROR_INTERNAL_ERROR If there are internal failures. | | // ERROR_INTERNAL_ERROR If there are internal failures. |
// | | // |
// ERROR_BAD_ENVIRONMENT If the API is called in SafeMode | | // ERROR_BAD_ENVIRONMENT If the API is called in SafeMode |
// | | // |
// ERROR_SERVICE_DISABLED If SystemRestore is Disabled. | | // ERROR_SERVICE_DISABLED If SystemRestore is Disabled. |
// | | // |
|
// ERROR_DISK_FULL If System Restore is frozen (Windows Wh
istler only) | | // ERROR_DISK_FULL If System Restore is frozen (Windows Whistler only
) |
// | | // |
// ERROR_ALREADY_EXISTS If this is a nested restore point | | // ERROR_ALREADY_EXISTS If this is a nested restore point |
| | |
BOOL __stdcall | | BOOL __stdcall |
SRSetRestorePointA( | | SRSetRestorePointA( |
|
PRESTOREPOINTINFOA pRestorePtSpec, // [in] Restore Point spe | | __in PRESTOREPOINTINFOA pRestorePtSpec,// [in] Restore Point |
cification | | specification |
PSTATEMGRSTATUS pSMgrStatus // [out] Status returned | | __out PSTATEMGRSTATUS pSMgrStatus // [out] Status return |
| | ed |
); | | ); |
| | |
BOOL __stdcall | | BOOL __stdcall |
SRSetRestorePointW( | | SRSetRestorePointW( |
|
PRESTOREPOINTINFOW pRestorePtSpec, | | __in PRESTOREPOINTINFOW pRestorePtSpec, |
PSTATEMGRSTATUS pSMgrStatus | | __out PSTATEMGRSTATUS pSMgrStatus |
| | ); |
| | |
| | BOOL __stdcall |
| | SRSetRestorePointInternal( |
| | __in PRESTOREPOINTINFOW pRestorePtSpec, |
| | __out PSTATEMGRSTATUS pSMgrStatus, |
| | __in BOOL fForceSurrogate |
); | | ); |
| | |
DWORD __stdcall | | DWORD __stdcall |
SRRemoveRestorePoint(DWORD dwRPNum); | | SRRemoveRestorePoint(DWORD dwRPNum); |
| | |
#ifdef __cplusplus | | #ifdef __cplusplus |
} | | } |
#endif | | #endif |
| | |
#ifdef UNICODE | | #ifdef UNICODE |
| | |
End of changes. 7 change blocks. |
17 lines changed or deleted | | 36 lines changed or added |
|