Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/System/Restore/mod.rs

raw
1 ::windows_targets::link!("srclient.dll" "system" fn SRRemoveRestorePoint(dwrpnum : u32) -> u32);
2 #[cfg(feature = "Win32_Foundation")]
3 ::windows_targets::link!("sfc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SRSetRestorePointA(prestoreptspec : *const RESTOREPOINTINFOA, psmgrstatus : *mut STATEMGRSTATUS) -> super::super::Foundation:: BOOL);
4 #[cfg(feature = "Win32_Foundation")]
5 ::windows_targets::link!("sfc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SRSetRestorePointW(prestoreptspec : *const RESTOREPOINTINFOW, psmgrstatus : *mut STATEMGRSTATUS) -> super::super::Foundation:: BOOL);
6 pub const ACCESSIBILITY_SETTING: u32 = 3u32;
7 pub const APPLICATION_INSTALL: RESTOREPOINTINFO_TYPE = 0u32;
8 pub const APPLICATION_RUN: u32 = 5u32;
9 pub const APPLICATION_UNINSTALL: RESTOREPOINTINFO_TYPE = 1u32;
10 pub const BACKUP: u32 = 15u32;
11 pub const BACKUP_RECOVERY: u32 = 14u32;
12 pub const BEGIN_NESTED_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = 102u32;
13 pub const BEGIN_NESTED_SYSTEM_CHANGE_NORP: u32 = 104u32;
14 pub const BEGIN_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = 100u32;
15 pub const CANCELLED_OPERATION: RESTOREPOINTINFO_TYPE = 13u32;
16 pub const CHECKPOINT: u32 = 7u32;
17 pub const CRITICAL_UPDATE: u32 = 18u32;
18 pub const DESKTOP_SETTING: u32 = 2u32;
19 pub const DEVICE_DRIVER_INSTALL: RESTOREPOINTINFO_TYPE = 10u32;
20 pub const END_NESTED_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = 103u32;
21 pub const END_SYSTEM_CHANGE: RESTOREPOINTINFO_EVENT_TYPE = 101u32;
22 pub const FIRSTRUN: u32 = 11u32;
23 pub const MANUAL_CHECKPOINT: u32 = 16u32;
24 pub const MAX_DESC: u32 = 64u32;
25 pub const MAX_DESC_W: u32 = 256u32;
26 pub const MAX_EVENT: u32 = 104u32;
27 pub const MAX_RPT: u32 = 18u32;
28 pub const MIN_EVENT: u32 = 100u32;
29 pub const MIN_RPT: u32 = 0u32;
30 pub const MODIFY_SETTINGS: RESTOREPOINTINFO_TYPE = 12u32;
31 pub const OE_SETTING: u32 = 4u32;
32 pub const RESTORE: u32 = 6u32;
33 pub const WINDOWS_BOOT: u32 = 9u32;
34 pub const WINDOWS_SHUTDOWN: u32 = 8u32;
35 pub const WINDOWS_UPDATE: u32 = 17u32;
36 pub type RESTOREPOINTINFO_EVENT_TYPE = u32;
37 pub type RESTOREPOINTINFO_TYPE = u32;
38 #[repr(C, packed(1))]
39 pub struct RESTOREPOINTINFOA {
40 pub dwEventType: RESTOREPOINTINFO_EVENT_TYPE,
41 pub dwRestorePtType: RESTOREPOINTINFO_TYPE,
42 pub llSequenceNumber: i64,
43 pub szDescription: [u8; 64],
44 }
45 impl ::core::marker::Copy for RESTOREPOINTINFOA {}
46 impl ::core::clone::Clone for RESTOREPOINTINFOA {
47 fn clone(&self) -> Self {
48 *self
49 }
50 }
51 #[repr(C, packed(1))]
52 #[doc = "Required features: `\"Win32_Foundation\"`"]
53 #[cfg(feature = "Win32_Foundation")]
54 pub struct RESTOREPOINTINFOEX {
55 pub ftCreation: super::super::Foundation::FILETIME,
56 pub dwEventType: u32,
57 pub dwRestorePtType: u32,
58 pub dwRPNum: u32,
59 pub szDescription: [u16; 256],
60 }
61 #[cfg(feature = "Win32_Foundation")]
62 impl ::core::marker::Copy for RESTOREPOINTINFOEX {}
63 #[cfg(feature = "Win32_Foundation")]
64 impl ::core::clone::Clone for RESTOREPOINTINFOEX {
65 fn clone(&self) -> Self {
66 *self
67 }
68 }
69 #[repr(C, packed(1))]
70 pub struct RESTOREPOINTINFOW {
71 pub dwEventType: RESTOREPOINTINFO_EVENT_TYPE,
72 pub dwRestorePtType: RESTOREPOINTINFO_TYPE,
73 pub llSequenceNumber: i64,
74 pub szDescription: [u16; 256],
75 }
76 impl ::core::marker::Copy for RESTOREPOINTINFOW {}
77 impl ::core::clone::Clone for RESTOREPOINTINFOW {
78 fn clone(&self) -> Self {
79 *self
80 }
81 }
82 #[repr(C, packed(1))]
83 #[doc = "Required features: `\"Win32_Foundation\"`"]
84 #[cfg(feature = "Win32_Foundation")]
85 pub struct STATEMGRSTATUS {
86 pub nStatus: super::super::Foundation::WIN32_ERROR,
87 pub llSequenceNumber: i64,
88 }
89 #[cfg(feature = "Win32_Foundation")]
90 impl ::core::marker::Copy for STATEMGRSTATUS {}
91 #[cfg(feature = "Win32_Foundation")]
92 impl ::core::clone::Clone for STATEMGRSTATUS {
93 fn clone(&self) -> Self {
94 *self
95 }
96 }