Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/srrestoreptapi.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #if !defined(_SRRESTOREPTAPI_H) | |
| 7 #define _SRRESTOREPTAPI_H | |
| 8 | |
| 9 #define MIN_EVENT 100 | |
| 10 #define BEGIN_SYSTEM_CHANGE 100 | |
| 11 #define END_SYSTEM_CHANGE 101 | |
| 12 #define BEGIN_NESTED_SYSTEM_CHANGE 102 | |
| 13 #define END_NESTED_SYSTEM_CHANGE 103 | |
| 14 #define MAX_EVENT 103 | |
| 15 | |
| 16 #define MIN_RPT 0 | |
| 17 #define APPLICATION_INSTALL 0 | |
| 18 #define APPLICATION_UNINSTALL 1 | |
| 19 #define DESKTOP_SETTING 2 | |
| 20 #define ACCESSIBILITY_SETTING 3 | |
| 21 #define OE_SETTING 4 | |
| 22 #define APPLICATION_RUN 5 | |
| 23 #define RESTORE 6 | |
| 24 #define CHECKPOINT 7 | |
| 25 #define WINDOWS_SHUTDOWN 8 | |
| 26 #define WINDOWS_BOOT 9 | |
| 27 #define DEVICE_DRIVER_INSTALL 10 | |
| 28 #define FIRSTRUN 11 | |
| 29 #define MODIFY_SETTINGS 12 | |
| 30 #define CANCELLED_OPERATION 13 | |
| 31 #define BACKUP_RECOVERY 14 | |
| 32 #define MAX_RPT 14 | |
| 33 | |
| 34 #define MAX_DESC 64 | |
| 35 #define MAX_DESC_W 256 | |
| 36 | |
| 37 #pragma pack(push,srrestoreptapi_include) | |
| 38 #pragma pack(1) | |
| 39 | |
| 40 typedef struct _RESTOREPTINFOA { | |
| 41 DWORD dwEventType; | |
| 42 DWORD dwRestorePtType; | |
| 43 INT64 llSequenceNumber; | |
| 44 CHAR szDescription[MAX_DESC]; | |
| 45 } RESTOREPOINTINFOA,*PRESTOREPOINTINFOA; | |
| 46 | |
| 47 typedef struct _RESTOREPTINFOW { | |
| 48 DWORD dwEventType; | |
| 49 DWORD dwRestorePtType; | |
| 50 INT64 llSequenceNumber; | |
| 51 WCHAR szDescription[MAX_DESC_W]; | |
| 52 } RESTOREPOINTINFOW,*PRESTOREPOINTINFOW; | |
| 53 | |
| 54 typedef struct _SMGRSTATUS { | |
| 55 DWORD nStatus; | |
| 56 INT64 llSequenceNumber; | |
| 57 } STATEMGRSTATUS,*PSTATEMGRSTATUS; | |
| 58 | |
| 59 #pragma pack(pop,srrestoreptapi_include) | |
| 60 | |
| 61 #ifdef __cplusplus | |
| 62 extern "C" { | |
| 63 #endif | |
| 64 | |
| 65 WINBOOL __stdcall SRSetRestorePointA(PRESTOREPOINTINFOA pRestorePtSpec,PSTATEMGRSTATUS pSMgrStatus); | |
| 66 WINBOOL __stdcall SRSetRestorePointW(PRESTOREPOINTINFOW pRestorePtSpec,PSTATEMGRSTATUS pSMgrStatus); | |
| 67 DWORD __stdcall SRRemoveRestorePoint(DWORD dwRPNum); | |
| 68 | |
| 69 #ifdef __cplusplus | |
| 70 } | |
| 71 #endif | |
| 72 | |
| 73 #ifdef UNICODE | |
| 74 #define RESTOREPOINTINFO RESTOREPOINTINFOW | |
| 75 #define PRESTOREPOINTINFO PRESTOREPOINTINFOW | |
| 76 #define SRSetRestorePoint SRSetRestorePointW | |
| 77 #else | |
| 78 #define RESTOREPOINTINFO RESTOREPOINTINFOA | |
| 79 #define PRESTOREPOINTINFO PRESTOREPOINTINFOA | |
| 80 #define SRSetRestorePoint SRSetRestorePointA | |
| 81 #endif | |
| 82 #endif |
