text stringlengths 8 4.13M |
|---|
// Helper function to help derive the year month interval for a iso-8601
// compliant string.
pub fn get_year_month_interval(years: i32, months: i32, days: i32) -> String {
if years != 0 && months != 0 && days != 0 {
format!("P{:#?}Y{:#?}M{:#?}D", years, months, days)
} else if years != 0 && months != 0 && days == 0 {
format!("P{:#?}Y{:#?}M", years, months)
} else if years != 0 && months == 0 && days == 0 {
format!("P{:#?}Y", years)
} else if years == 0 && months != 0 && days != 0 {
format!("P{:#?}M{:#?}D", months, days)
} else if years == 0 && months != 0 && days == 0 {
format!("P{:#?}M", months)
} else if years == 0 && months == 0 && days != 0 {
format!("P{:#?}D", days)
} else if years != 0 && months == 0 && days != 0 {
format!("P{:#?}Y{:#?}D", years, days)
} else {
format!("P")
}
}
// Helper function to help derive the day-time interval for a iso-8601
// compliant string.
pub fn get_day_time_interval(hours: i64, minutes: i64, seconds: f64) -> String {
let has_frac = seconds.fract() == 0.0;
if hours != 0 && minutes != 0 && seconds != 0.0 {
if !has_frac {
format!("T{:#?}H{:#?}M{:#?}S", hours, minutes, seconds)
} else {
format!("T{:#?}H{:#?}M{:#?}S", hours, minutes, seconds as i64)
}
} else if hours != 0 && minutes != 0 && seconds == 0.0 {
format!("T{:#?}H{:#?}M", hours, minutes)
} else if hours != 0 && minutes == 0 && seconds == 0.0 {
format!("T{:#?}H", hours)
} else if hours == 0 && minutes != 0 && seconds != 0.0 {
if !has_frac {
format!("T{:#?}M{:#?}S", minutes, seconds)
} else {
format!("T{:#?}M{:#?}S", minutes, seconds as i64)
}
} else if hours == 0 && minutes != 0 && seconds == 0.0 {
format!("T{:#?}M", minutes)
} else if hours == 0 && minutes == 0 && seconds != 0.0 {
if !has_frac {
format!("T{:#?}S", seconds)
} else {
format!("T{:#?}S", seconds as i64)
}
} else if hours != 0 && minutes == 0 && seconds != 0.0 {
if !has_frac {
format!("T{:#?}H{:#?}S", hours, seconds)
} else {
format!("T{:#?}H{:#?}S", hours, seconds as i64)
}
} else {
format!("T0S")
}
}
#[cfg(test)]
mod tests {
#[test]
fn test_get_year_month_interval_1() {
let year: i32 =1;
let months: i32 = 2;
let days: i32 = 21;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P1Y2M21D"), interval);
}
#[test]
fn test_get_year_month_interval_2() {
let year: i32 =0;
let months: i32 = 2;
let days: i32 = 21;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P2M21D"), interval);
}
#[test]
fn test_get_year_month_interval_3() {
let year: i32 =0;
let months: i32 = 0;
let days: i32 = 21;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P21D"), interval);
}
#[test]
fn test_get_year_month_interval_4() {
let year: i32 =0;
let months: i32 = 0;
let days: i32 = 0;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P"), interval);
}
#[test]
fn test_get_year_month_interval_5() {
let year: i32 =1;
let months: i32 = 12;
let days: i32 = 0;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P1Y12M"), interval);
}
#[test]
fn test_get_year_month_interval_6() {
let year: i32 =1;
let months: i32 = 0;
let days: i32 = 21;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P1Y21D"), interval);
}
#[test]
fn test_get_year_month_interval_7() {
let year: i32 =1;
let months: i32 = 0;
let days: i32 = 0;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P1Y"), interval);
}
#[test]
fn test_get_year_month_interval_8() {
let year: i32 =0;
let months: i32 = 1;
let days: i32 = 0;
let interval = super::get_year_month_interval(year, months, days);
assert_eq!(String::from("P1M"), interval);
}
#[test]
fn test_get_day_time_interval_1() {
let hour: i64 = 1;
let minutes: i64 = 1;
let seconds: f64 = 1.25;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1H1M1.25S"), interval);
}
#[test]
fn test_get_day_time_interval_2() {
let hour: i64 = 1;
let minutes: i64 = 1;
let seconds: f64 = 1.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1H1M1S"), interval);
}
#[test]
fn test_get_day_time_interval_3() {
let hour: i64 = 1;
let minutes: i64 = 1;
let seconds: f64 = 0.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1H1M"), interval);
}
#[test]
fn test_get_day_time_interval_4() {
let hour: i64 = 1;
let minutes: i64 = 0;
let seconds: f64 = 1.24;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1H1.24S"), interval);
}
#[test]
fn test_get_day_time_interval_5() {
let hour: i64 = 0;
let minutes: i64 = 1;
let seconds: f64 = 1.24;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1M1.24S"), interval);
}
#[test]
fn test_get_day_time_interval_6() {
let hour: i64 = 1;
let minutes: i64 = 0;
let seconds: f64 = 0.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1H"), interval);
}
#[test]
fn test_get_day_time_interval_7() {
let hour: i64 = 0;
let minutes: i64 = 1;
let seconds: f64 = 0.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1M"), interval);
}
#[test]
fn test_get_day_time_interval_8() {
let hour: i64 = 0;
let minutes: i64 = 0;
let seconds: f64 = 1.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1S"), interval);
}
#[test]
fn test_get_day_time_interval_9() {
let hour: i64 = 0;
let minutes: i64 = 0;
let seconds: f64 = 1.25;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1.25S"), interval);
}
#[test]
fn test_get_day_time_interval_10() {
let hour: i64 = 0;
let minutes: i64 = 0;
let seconds: f64 = 0.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T0S"), interval);
}
#[test]
fn test_get_day_time_interval_11() {
let hour: i64 = 0;
let minutes: i64 = 1;
let seconds: f64 = 1.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1M1S"), interval);
}
#[test]
fn test_get_day_time_interval_12() {
let hour: i64 = 1;
let minutes: i64 = 0;
let seconds: f64 = 1.0;
let interval = super::get_day_time_interval(hour,minutes,seconds);
assert_eq!(String::from("T1H1S"), interval);
}
}
|
use std::collections::HashMap;
use std::fs::File;
use std::io::BufRead;
use std::io::BufReader;
fn main() {
let f = File::open("input").unwrap();
let f = BufReader::new(&f);
let lines = f.lines();
let mut m: Vec<Vec<char>> = lines.map(|l| l.unwrap().chars().collect()).collect();
let mut carts = vec![];
for (y, v) in m.iter_mut().enumerate() {
for (x, c) in v.iter_mut().enumerate() {
let cart = *c;
let (nc, add) = match cart {
'^' => ('|', true),
'v' => ('|', true),
'>' => ('-', true),
'<' => ('-', true),
c => (c, false),
};
*c = nc;
let cs = ['^', 'v', '>', '<'];
if add {
let cart = cs.iter().position(|&c| c == cart).unwrap();
carts.push((y as i32, x as i32, cart, 0));
}
}
}
while carts.len() > 1 {
let mut dead = vec![false; carts.len()];
let mut pos: HashMap<_, _> = carts
.iter()
.enumerate()
.map(|(i, (y, x, _, _))| ((*y, *x), i))
.collect();
for (i, cart) in carts.iter_mut().enumerate() {
let (y, x, c, t) = *cart;
let offsets = [(-1, 0), (1, 0), (0, 1), (0, -1)];
let (oy, ox) = offsets[c];
let (ny, nx) = (y + oy, x + ox);
let turns = [[2, 3, 0, 1], [3, 2, 1, 0]];
let cross = [[3, 2, 0, 1], [0, 1, 2, 3], [2, 3, 1, 0]];
let mut nt = t;
let nc = match m[ny as usize][nx as usize] {
'|' => c,
'-' => c,
'/' => turns[0][c],
'\\' => turns[1][c],
'+' => {
nt = (t + 1) % 3;
cross[t][c]
}
_ => unreachable!(),
};
pos.remove(&(y, x));
if pos.contains_key(&(ny, nx)) {
println!("crash {},{}", nx, ny);
dead[pos[&(ny, nx)]] = true;
dead[i] = true;
} else {
pos.insert((ny, nx), i);
}
*cart = (ny, nx, nc, nt);
}
carts = carts
.into_iter()
.enumerate()
.filter(|&(i, _)| !dead[i])
.map(|(_, c)| c)
.collect();
carts.sort();
}
println!("remaining {},{}", carts[0].1, carts[0].0);
}
|
pub fn check(word: &str) -> bool {
if word.is_empty() {
return true;
}
let filtered: String = word.to_lowercase().chars().filter(|c| c.is_alphabetic()).collect();
let unique = |x: char, word: &str| word.find(x).unwrap() == word.rfind(x).unwrap();
let filteredcount = filtered.chars().filter(|&x| unique(x,filtered.as_str())).count();
if filtered.len() == filteredcount {
return true;
} else {
return false;
}
}
|
use std::fmt;
use chrono::offset::Utc;
use chrono::DateTime;
use json::json;
use reqwest::Client;
use serde::{Deserialize, Serialize};
use crate::error::AuthError;
#[allow(unused)]
pub(crate) const TLS_CERTS: &[u8] = include_bytes!("../../roots.pem");
const AUTH_ENDPOINT: &str = "https://oauth2.googleapis.com/token";
/// Represents application credentials for accessing Google Cloud Platform services.
#[allow(missing_docs)]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ApplicationCredentials {
#[serde(rename = "type")]
pub cred_type: String,
pub project_id: String,
pub private_key_id: String,
pub private_key: String,
pub client_email: String,
pub client_id: String,
pub auth_uri: String,
pub token_uri: String,
pub auth_provider_x509_cert_url: String,
pub client_x509_cert_url: String,
}
#[derive(Debug, Clone, PartialEq)]
pub(crate) enum TokenValue {
Bearer(String),
}
impl fmt::Display for TokenValue {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
TokenValue::Bearer(token) => write!(f, "Bearer {}", token.as_str()),
}
}
}
#[derive(Debug, Clone, PartialEq)]
pub(crate) struct Token {
value: TokenValue,
expiry: DateTime<Utc>,
}
#[derive(Debug, Clone)]
pub(crate) struct TokenManager {
client: Client,
scopes: String,
creds: ApplicationCredentials,
current_token: Option<Token>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
struct AuthResponse {
access_token: String,
}
impl TokenManager {
pub(crate) fn new(creds: ApplicationCredentials, scopes: &[&str]) -> TokenManager {
TokenManager {
creds,
client: Client::new(),
scopes: scopes.join(" "),
current_token: None,
}
}
pub(crate) async fn token(&mut self) -> Result<String, AuthError> {
let hour = chrono::Duration::minutes(45);
let current_time = chrono::Utc::now();
match self.current_token {
Some(ref token) if token.expiry >= current_time => Ok(token.value.to_string()),
_ => {
let expiry = current_time + hour;
let header = json!({
"alg": "RS256",
"typ": "JWT",
});
let payload = json!({
"iss": self.creds.client_email.as_str(),
"scope": self.scopes.as_str(),
"aud": AUTH_ENDPOINT,
"exp": expiry.timestamp(),
"iat": current_time.timestamp(),
});
let token = jwt::encode(
header,
&self.creds.private_key.as_str(),
&payload,
jwt::Algorithm::RS256,
)?;
let body = [
("grant_type", "urn:ietf:params:oauth:grant-type:jwt-bearer"),
("assertion", token.as_str()),
];
let response: AuthResponse = self
.client
.post(AUTH_ENDPOINT)
.form(&body)
.send()
.await?
.json()
.await?;
let value = TokenValue::Bearer(response.access_token);
let token = value.to_string();
self.current_token = Some(Token { expiry, value });
Ok(token)
}
}
}
}
|
/// Functionality having to do with receiving "InputSignals" from peripherals.
use arduino_uno::adc::Adc;
use super::JoyStickSignal;
/// An enumeration of the possible "InputSignals".
pub enum InputSignal {
JoyStick(JoyStickSignal)
}
/// This trait signifies that the peripheral device can read "InputSignals".
pub trait InputDevice {
/// Read input data.
///
/// # Arguments
/// * adc - The Analog-Digital convertor required to read analog data.
fn read(&mut self, adc: &mut Adc) -> Option<InputSignal>;
}
/// This PollArray is used to record a sequence of InputSignals over a period of time.
pub type PollArray = arraydeque::ArrayDeque<[InputSignal; 100], arraydeque::Wrapping>;
/// This struct wraps an InputDevice, providing functionality for reading streams
/// of "InputSignals".
pub struct InputPeripheral<D: InputDevice> {
device: D,
deque: PollArray,
}
impl<D> InputPeripheral<D>
where D: InputDevice
{
const POLL_DELAY_US: u16 = 950;
/// Construct a new InputPeripheral.
pub fn new(device: D) -> Self {
Self { device, deque: arraydeque::ArrayDeque::new() }
}
/// Poll the InputDevice, collecting data a period of time.
///
/// # Arguments
/// * adc - The Analog-Digital convertor required to read analog data.
/// * duration_ms - The duration of time, in milliseconds, over which
/// to poll the InputDevice.
///
/// # Returns
/// Reference to the PollArray object that recorded all "InputSignals"
/// from the InputDevice.
pub fn poll(&mut self, adc: &mut Adc, duration_ms: usize) -> &PollArray {
self.deque.clear();
(0..duration_ms).for_each(|_| {
if let Some(signal) = self.device.read(adc) {
self.deque.push_back(signal);
};
arduino_uno::delay_us(Self::POLL_DELAY_US);
});
&self.deque
}
/// Poll the InputDevice continuously until any "InputSignal" is received.
///
/// # Arguments
/// * adc - The Analog-Digital convertor required to read analog data.
///
/// # Returns
/// The first "InputSignal" received from the device.
pub fn poll_until_any(&mut self, adc: &mut Adc) -> InputSignal {
loop {
if let Some(signal) = self.device.read(adc) {
return signal
}
arduino_uno::delay_us(Self::POLL_DELAY_US);
}
}
} |
use core::marker::Sync;
use core::ops::{Drop, Deref, DerefMut};
use core::fmt;
use core::option::Option::{self, None, Some};
use core::default::Default;
use core::mem::ManuallyDrop;
use spin::{Mutex, MutexGuard};
use held_interrupts::{HeldInterrupts, hold_interrupts};
use stable_deref_trait::StableDeref;
use owning_ref::{OwningRef, OwningRefMut};
/// This type provides interrupt-safe MUTual EXclusion based on [spin::Mutex].
///
/// # Description
///
/// This structure behaves a lot like a normal MutexIrqSafe. There are some differences:
///
/// - It may be used outside the runtime.
/// - A normal MutexIrqSafe will fail when used without the runtime, this will just lock
/// - When the runtime is present, it will call the deschedule function when appropriate
/// - No lock poisoning. When a fail occurs when the lock is held, no guarantees are made
///
/// When calling rust functions from bare threads, such as C `pthread`s, this lock will be very
/// helpful. In other cases however, you are encouraged to use the locks from the standard
/// library.
///
/// # Simple examples
///
/// ```
/// use spin;
/// let spin_mutex = spin::MutexIrqSafe::new(0);
///
/// // Modify the data
/// {
/// let mut data = spin_mutex.lock();
/// *data = 2;
/// }
///
/// // Read the data
/// let answer =
/// {
/// let data = spin_mutex.lock();
/// *data
/// };
///
/// assert_eq!(answer, 2);
/// ```
///
/// # Thread-safety example
///
/// ```
/// use spin;
/// use std::sync::{Arc, Barrier};
///
/// let numthreads = 1000;
/// let spin_mutex = Arc::new(spin::MutexIrqSafe::new(0));
///
/// // We use a barrier to ensure the readout happens after all writing
/// let barrier = Arc::new(Barrier::new(numthreads + 1));
///
/// for _ in (0..numthreads)
/// {
/// let my_barrier = barrier.clone();
/// let my_lock = spin_mutex.clone();
/// std::thread::spawn(move||
/// {
/// let mut guard = my_lock.lock();
/// *guard += 1;
///
/// // Release the lock to prevent a deadlock
/// drop(guard);
/// my_barrier.wait();
/// });
/// }
///
/// barrier.wait();
///
/// let answer = { *spin_mutex.lock() };
/// assert_eq!(answer, numthreads);
/// ```
pub struct MutexIrqSafe<T: ?Sized>
{
lock: Mutex<T>,
}
/// A guard to which the protected data can be accessed
///
/// When the guard falls out of scope it will release the lock.
pub struct MutexIrqSafeGuard<'a, T: ?Sized + 'a>
{
held_irq: ManuallyDrop<HeldInterrupts>,
guard: ManuallyDrop<MutexGuard<'a, T>>,
}
// Same unsafe impls as `std::sync::MutexIrqSafe`
unsafe impl<T: ?Sized + Send> Sync for MutexIrqSafe<T> {}
unsafe impl<T: ?Sized + Send> Send for MutexIrqSafe<T> {}
impl<T> MutexIrqSafe<T>
{
/// Creates a new spinlock wrapping the supplied data.
///
/// May be used statically:
///
/// ```
/// #![feature(const_fn)]
/// use spin;
///
/// static MutexIrqSafe: spin::MutexIrqSafe<()> = spin::MutexIrqSafe::new(());
///
/// fn demo() {
/// let lock = MutexIrqSafe.lock();
/// // do something with lock
/// drop(lock);
/// }
/// ```
#[cfg(feature = "const_fn")]
pub const fn new(user_data: T) -> MutexIrqSafe<T>
{
MutexIrqSafe
{
lock: Mutex::new(user_data),
}
}
/// Creates a new spinlock wrapping the supplied data.
///
/// If you want to use it statically, you can use the `const_fn` feature.
///
/// ```
/// use spin;
///
/// fn demo() {
/// let MutexIrqSafe = spin::MutexIrqSafe::new(());
/// let lock = MutexIrqSafe.lock();
/// // do something with lock
/// drop(lock);
/// }
/// ```
#[cfg(not(feature = "const_fn"))]
pub fn new(user_data: T) -> MutexIrqSafe<T>
{
MutexIrqSafe
{
lock: Mutex::new(user_data),
}
}
/// Consumes this MutexIrqSafe, returning the underlying data.
pub fn into_inner(self) -> T {
self.lock.into_inner()
}
}
impl<T: ?Sized> MutexIrqSafe<T>
{
// fn obtain_lock(&self)
// {
// while self.lock.compare_and_swap(false, true, Ordering::Acquire) != false
// {
// // Wait until the lock looks unlocked before retrying
// while self.lock.load(Ordering::Relaxed)
// {
// cpu_relax();
// }
// }
// }
/// Locks the spinlock and returns a guard.
///
/// The returned value may be dereferenced for data access
/// and the lock will be dropped when the guard falls out of scope.
///
/// ```
/// let mylock = spin::MutexIrqSafe::new(0);
/// {
/// let mut data = mylock.lock();
/// // The lock is now locked and the data can be accessed
/// *data += 1;
/// // The lock is implicitly dropped
/// }
///
/// ```
pub fn lock(&self) -> MutexIrqSafeGuard<T>
{
MutexIrqSafeGuard
{
held_irq: ManuallyDrop::new(hold_interrupts()),
guard: ManuallyDrop::new(self.lock.lock())
}
}
/// Force unlock the spinlock.
///
/// This is *extremely* unsafe if the lock is not held by the current
/// thread. However, this can be useful in some instances for exposing the
/// lock to FFI that doesn't know how to deal with RAII.
///
/// If the lock isn't held, this is a no-op.
pub unsafe fn force_unlock(&self) {
self.lock.force_unlock()
}
/// Tries to lock the MutexIrqSafe. If it is already locked, it will return None. Otherwise it returns
/// a guard within Some.
pub fn try_lock(&self) -> Option<MutexIrqSafeGuard<T>>
{
match self.lock.try_lock() {
None => None,
success => {
Some(
MutexIrqSafeGuard {
held_irq: ManuallyDrop::new(hold_interrupts()),
guard: ManuallyDrop::new(success.unwrap()),
}
)
}
}
}
}
impl<T: ?Sized + fmt::Debug> fmt::Debug for MutexIrqSafe<T>
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result
{
match self.lock.try_lock()
{
Some(guard) => write!(f, "MutexIrqSafe {{ data: {:?} }}", &*guard),
None => write!(f, "MutexIrqSafe {{ <locked> }}"),
}
}
}
impl<T: ?Sized + Default> Default for MutexIrqSafe<T> {
fn default() -> MutexIrqSafe<T> {
MutexIrqSafe::new(Default::default())
}
}
impl<'a, T: ?Sized> Deref for MutexIrqSafeGuard<'a, T>
{
type Target = T;
fn deref<'b>(&'b self) -> &'b T {
& *(self.guard)
}
}
impl<'a, T: ?Sized> DerefMut for MutexIrqSafeGuard<'a, T>
{
fn deref_mut<'b>(&'b mut self) -> &'b mut T {
&mut *(self.guard)
}
}
// NOTE: we need explicit calls to .drop() to ensure that HeldInterrupts are not released
// until the inner lock is also released.
impl<'a, T: ?Sized> Drop for MutexIrqSafeGuard<'a, T>
{
/// The dropping of the MutexIrqSafeGuard will release the lock it was created from.
fn drop(&mut self) {
unsafe {
ManuallyDrop::drop(&mut self.guard);
ManuallyDrop::drop(&mut self.held_irq);
}
}
}
// Implement the StableDeref trait for MutexIrqSafe guards, just like it's implemented for Mutex guards
unsafe impl<'a, T: ?Sized> StableDeref for MutexIrqSafeGuard<'a, T> {}
/// Typedef of a owning reference that uses a `MutexIrqSafeGuard` as the owner.
pub type MutexIrqSafeGuardRef<'a, T, U = T> = OwningRef<MutexIrqSafeGuard<'a, T>, U>;
/// Typedef of a mutable owning reference that uses a `MutexIrqSafeGuard` as the owner.
pub type MutexIrqSafeGuardRefMut<'a, T, U = T> = OwningRefMut<MutexIrqSafeGuard<'a, T>, U>;
|
use crate::attribute::Attribute;
use crate::handler::{Handler, HandlerResult};
/// Implements the Handler trait that forward each function call to each
/// handler in its list of handlers
#[derive(Default)]
pub struct TeeHandler<'t> {
/// the Handlers to forward function calls to
pub handlers: Vec<&'t mut dyn Handler>,
}
impl Handler for TeeHandler<'_> {
fn attribute(
&mut self,
attribute: &Attribute,
position: usize,
data_offset: usize,
) -> HandlerResult {
if self
.handlers
.iter_mut()
.map(|handler| handler.attribute(attribute, position, data_offset))
.filter(|handler_result| handler_result == &HandlerResult::Cancel)
.count()
> 0
{
HandlerResult::Cancel
} else {
HandlerResult::Continue
}
}
fn data(&mut self, attribute: &Attribute, data: &[u8], complete: bool) {
self.handlers
.iter_mut()
.for_each(|handler| handler.data(attribute, data, complete))
}
fn start_sequence(&mut self, attribute: &Attribute) {
self.handlers
.iter_mut()
.for_each(|handler| handler.start_sequence(attribute))
}
fn start_sequence_item(&mut self, attribute: &Attribute) {
self.handlers
.iter_mut()
.for_each(|handler| handler.start_sequence_item(attribute))
}
fn end_sequence_item(&mut self, attribute: &Attribute) {
self.handlers
.iter_mut()
.for_each(|handler| handler.end_sequence_item(attribute))
}
fn end_sequence(&mut self, attribute: &Attribute) {
self.handlers
.iter_mut()
.for_each(|handler| handler.end_sequence(attribute))
}
fn basic_offset_table(
&mut self,
attribute: &Attribute,
data: &[u8],
complete: bool,
) -> HandlerResult {
if self
.handlers
.iter_mut()
.map(|handler| handler.basic_offset_table(attribute, data, complete))
.filter(|handler_result| handler_result == &HandlerResult::Cancel)
.count()
> 0
{
HandlerResult::Cancel
} else {
HandlerResult::Continue
}
}
fn pixel_data_fragment(
&mut self,
attribute: &Attribute,
fragment_number: usize,
data: &[u8],
complete: bool,
) -> HandlerResult {
if self
.handlers
.iter_mut()
.map(|handler| handler.pixel_data_fragment(attribute, fragment_number, data, complete))
.filter(|handler_result| handler_result == &HandlerResult::Cancel)
.count()
> 0
{
HandlerResult::Cancel
} else {
HandlerResult::Continue
}
}
}
|
struct Solution {}
#[derive(PartialEq, Eq, Clone, Debug)]
pub struct ListNode {
pub val: i32,
pub next: Option<Box<ListNode>>,
}
impl ListNode {
#[inline]
fn new(val: i32) -> Self {
ListNode { next: None, val }
}
}
impl Solution {
pub fn add_two_numbers(
l1: Option<Box<ListNode>>,
l2: Option<Box<ListNode>>,
) -> Option<Box<ListNode>> {
let mut h1 = l1;
let mut h2 = l2;
let mut carry = 0;
let mut head = ListNode::new(0);
let mut tail: Option<Box<ListNode>> = None;
// While both list heads are not none, add to a third list
let x = h1.is_some();
while h1.is_some() || h2.is_some() || carry != 0 {
let mut add = h1.as_ref().unwrap().val + h2.as_ref().unwrap().val + carry;
carry = 0;
if add >= 10 {
carry = 1;
add = add % 10;
}
// Append node TODO
let tail = Some(Box::new(add));
let next = tail;
}
return head.next;
}
}
fn main() {
let n3 = ListNode::new(3);
let n2 = ListNode {
val: 4,
next: Some(Box::new(n3)),
};
let h1 = ListNode {
val: 2,
next: Some(Box::new(n2)),
};
match &n2.next {
Some(val) => print!("{}", val.val),
None => (),
}
let mut h2 = ListNode { val: 5, next: None };
let mut n4 = ListNode::new(6);
let mut n5 = ListNode::new(4);
n4.next = Some(Box::new(n5));
h2.next = Some(Box::new(n4));
let res = Solution::add_two_numbers(Some(Box::new(h1)), Some(Box::new(h2)));
// let nums = vec![2, 7, 11, 15];
// let target = 9;
// let res = Solution::two_sum(nums, target);
// print!("{:?}", res);
}
|
use crate::error;
use crate::plan::expr_type_evaluator::TypeEvaluator;
use crate::plan::field::{field_by_name, field_name};
use crate::plan::field_mapper::{field_and_dimensions, FieldTypeMap};
use crate::plan::ir::{DataSource, Field, Interval, Select, SelectQuery, TagSet};
use crate::plan::var_ref::{influx_type_to_var_ref_data_type, var_ref_data_type_to_influx_type};
use crate::plan::{util, SchemaProvider};
use datafusion::common::{DataFusionError, Result};
use influxdb_influxql_parser::common::{MeasurementName, QualifiedMeasurementName, WhereClause};
use influxdb_influxql_parser::expression::walk::{
walk_expr, walk_expr_mut, walk_expression_mut, ExpressionMut,
};
use influxdb_influxql_parser::expression::{
AsVarRefExpr, Call, Expr, VarRef, VarRefDataType, WildcardType,
};
use influxdb_influxql_parser::functions::is_scalar_math_function;
use influxdb_influxql_parser::identifier::Identifier;
use influxdb_influxql_parser::literal::Literal;
use influxdb_influxql_parser::select::{
Dimension, FillClause, FromMeasurementClause, GroupByClause, MeasurementSelection,
SelectStatement,
};
use influxdb_influxql_parser::time_range::{
duration_expr_to_nanoseconds, split_cond, ReduceContext, TimeRange,
};
use influxdb_influxql_parser::timestamp::Timestamp;
use itertools::Itertools;
use schema::InfluxColumnType;
use std::collections::{BTreeSet, HashMap, HashSet};
use std::fmt::Debug;
use std::ops::{ControlFlow, Deref, DerefMut};
/// Recursively rewrite the specified [`SelectStatement`] by performing a series of passes
/// to validate and normalize the statement.
pub(super) fn rewrite_statement(
s: &dyn SchemaProvider,
q: &SelectStatement,
) -> Result<SelectQuery> {
let mut select = rewrite_select(s, q)?;
from_drop_empty(s, &mut select);
field_list_normalize_time(&mut select);
Ok(SelectQuery { select })
}
/// Find the unique list of tables used by `s`, recursively following all `FROM` clauses and
/// return the results in lexicographically in ascending order.
pub(super) fn find_table_names(s: &Select) -> BTreeSet<&str> {
let mut data_sources = vec![s.from.as_slice()];
let mut tables = BTreeSet::new();
while let Some(from) = data_sources.pop() {
for ds in from {
match ds {
DataSource::Table(name) => {
tables.insert(name.as_str());
}
DataSource::Subquery(q) => data_sources.push(q.from.as_slice()),
}
}
}
tables
}
/// Transform a `SelectStatement` to a `Select`, which is an intermediate representation used by
/// the InfluxQL planner. Transformations include expanding wildcards.
fn rewrite_select(s: &dyn SchemaProvider, stmt: &SelectStatement) -> Result<Select> {
let rw = RewriteSelect::default();
rw.rewrite(s, stmt)
}
/// Asserts that the `SELECT` statement does not use any unimplemented features.
///
/// The list of unimplemented or unsupported features are listed below.
///
/// # `SLIMIT` and `SOFFSET`
///
/// * `SLIMIT` and `SOFFSET` don't work as expected per issue [#7571]
/// * This issue [is noted](https://docs.influxdata.com/influxdb/v1.8/query_language/explore-data/#the-slimit-clause) in our official documentation
///
/// [#7571]: https://github.com/influxdata/influxdb/issues/7571
fn check_features(stmt: &SelectStatement) -> Result<()> {
if stmt.series_limit.is_some() || stmt.series_offset.is_some() {
return error::not_implemented("SLIMIT or SOFFSET");
}
Ok(())
}
#[derive(Default)]
struct RewriteSelect {
/// The depth of the `SELECT` statement currently processed by the rewriter.
depth: u32,
}
impl RewriteSelect {
/// Transform a `SelectStatement` to a `Select`, which is an intermediate representation used by
/// the InfluxQL planner. Transformations include expanding wildcards.
fn rewrite(&self, s: &dyn SchemaProvider, stmt: &SelectStatement) -> Result<Select> {
check_features(stmt)?;
let from = self.expand_from(s, stmt)?;
let tag_set = from_tag_set(s, &from);
let (fields, group_by) = self.expand_projection(s, stmt, &from, &tag_set)?;
let condition = self.condition_resolve_types(s, stmt, &from)?;
let now = Timestamp::from(s.execution_props().query_execution_start_time);
let rc = ReduceContext {
now: Some(now),
tz: stmt.timezone.map(|tz| *tz),
};
let interval = self.find_interval_offset(&rc, group_by.as_ref())?;
let (condition, time_range) = match condition {
Some(where_clause) => split_cond(&rc, &where_clause).map_err(error::map::expr_error)?,
None => (None, TimeRange::default()),
};
// If the interval is non-zero and there is no upper bound, default to `now`
// for compatibility with InfluxQL OG.
//
// See: https://github.com/influxdata/influxdb/blob/f365bb7e3a9c5e227dbf66d84adf674d3d127176/query/compile.go#L172-L179
let time_range = match (interval, time_range.upper) {
(Some(interval), None) if interval.duration > 0 => TimeRange {
lower: time_range.lower,
upper: Some(now.timestamp_nanos()),
},
_ => time_range,
};
let SelectStatementInfo {
projection_type,
extra_intervals,
} = select_statement_info(&fields, &group_by, stmt.fill)?;
// Following InfluxQL OG behaviour, if this is a subquery, and the fill strategy equates
// to `FILL(null)`, switch to `FILL(none)`.
//
// See: https://github.com/influxdata/influxdb/blob/f365bb7e3a9c5e227dbf66d84adf674d3d127176/query/iterator.go#L757-L765
let fill = if projection_type != ProjectionType::Raw
&& self.is_subquery()
&& matches!(stmt.fill, Some(FillClause::Null) | None)
{
Some(FillClause::None)
} else {
stmt.fill
};
Ok(Select {
projection_type,
interval,
extra_intervals,
fields,
from,
condition,
time_range,
group_by,
tag_set,
fill,
order_by: stmt.order_by,
limit: stmt.limit,
offset: stmt.offset,
timezone: stmt.timezone.map(|v| *v),
})
}
/// Returns true if the receiver is processing a subquery.
#[inline]
fn is_subquery(&self) -> bool {
self.depth > 0
}
/// Rewrite the `SELECT` statement by applying specific rules for subqueries.
fn rewrite_subquery(&self, s: &dyn SchemaProvider, stmt: &SelectStatement) -> Result<Select> {
let rw = Self {
depth: self.depth + 1,
};
rw.rewrite(s, stmt)
}
/// Rewrite the projection list and GROUP BY of the specified `SELECT` statement.
///
/// The following transformations are performed:
///
/// * Wildcards and regular expressions in the `SELECT` projection list and `GROUP BY` are expanded.
/// * Any fields with no type specifier are rewritten with the appropriate type, if they exist in the
/// underlying schema.
///
/// Derived from [Go implementation](https://github.com/influxdata/influxql/blob/1ba470371ec093d57a726b143fe6ccbacf1b452b/ast.go#L1185).
fn expand_projection(
&self,
s: &dyn SchemaProvider,
stmt: &SelectStatement,
from: &[DataSource],
from_tag_set: &TagSet,
) -> Result<(Vec<Field>, Option<GroupByClause>)> {
let tv = TypeEvaluator::new(s, from);
let fields = stmt
.fields
.iter()
.map(|f| (f.expr.clone(), f.alias.clone()))
.map(|(mut expr, alias)| {
match walk_expr_mut::<_>(&mut expr, &mut |e| match e {
// Rewrite all `DISTINCT <identifier>` expressions to `DISTINCT(VarRef)`
Expr::Distinct(ident) => {
let mut v = VarRef {
name: ident.take().into(),
data_type: None,
};
v.data_type = match tv.eval_var_ref(&v) {
Ok(v) => v,
Err(e) => ControlFlow::Break(e)?,
};
*e = Expr::Call(Call {
name: "distinct".to_owned(),
args: vec![Expr::VarRef(v)],
});
ControlFlow::Continue(())
}
// Attempt to rewrite all variable (column) references with their concrete types,
// if one hasn't been specified.
Expr::VarRef(ref mut v) => {
v.data_type = match tv.eval_var_ref(v) {
Ok(v) => v,
Err(e) => ControlFlow::Break(e)?,
};
ControlFlow::Continue(())
}
_ => ControlFlow::Continue(()),
}) {
ControlFlow::Break(err) => Err(err),
ControlFlow::Continue(()) => {
Ok(influxdb_influxql_parser::select::Field { expr, alias })
}
}
})
.collect::<Result<Vec<_>>>()?;
let (has_field_wildcard, has_group_by_wildcard) = has_wildcards(stmt);
let (fields, mut group_by) = if has_field_wildcard || has_group_by_wildcard {
let (field_set, mut tag_set) = from_field_and_dimensions(s, from)?;
if !has_group_by_wildcard {
if let Some(group_by) = &stmt.group_by {
// Remove any explicitly listed tags in the GROUP BY clause, so they are not
// expanded by any wildcards specified in the SELECT projection list
group_by.tag_names().for_each(|ident| {
tag_set.remove(ident.as_str());
});
}
}
let fields = if has_field_wildcard {
let var_refs = if field_set.is_empty() {
vec![]
} else {
let fields_iter = field_set.iter().map(|(k, v)| VarRef {
name: k.clone().into(),
data_type: Some(*v),
});
if !has_group_by_wildcard {
fields_iter
.chain(tag_set.iter().map(|tag| VarRef {
name: tag.clone().into(),
data_type: Some(VarRefDataType::Tag),
}))
.sorted()
.collect::<Vec<_>>()
} else {
fields_iter.sorted().collect::<Vec<_>>()
}
};
fields_expand_wildcards(fields, var_refs)?
} else {
fields
};
let group_by = match (&stmt.group_by, has_group_by_wildcard) {
// GROUP BY with a wildcard
(Some(group_by), true) => {
let group_by_tags = tag_set.into_iter().sorted().collect::<Vec<_>>();
let mut new_dimensions = Vec::new();
for dim in group_by.iter() {
let add_dim = |dim: &String| {
new_dimensions.push(Dimension::VarRef(VarRef {
name: Identifier::new(dim.clone()),
data_type: Some(VarRefDataType::Tag),
}))
};
match dim {
Dimension::Wildcard => {
group_by_tags.iter().for_each(add_dim);
}
Dimension::Regex(re) => {
let re = util::parse_regex(re)?;
group_by_tags
.iter()
.filter(|dim| re.is_match(dim.as_str()))
.for_each(add_dim);
}
_ => new_dimensions.push(dim.clone()),
}
}
Some(GroupByClause::new(new_dimensions))
}
// GROUP BY no wildcard
(Some(group_by), false) => Some(group_by.clone()),
// No GROUP BY
(None, _) => None,
};
(fields, group_by)
} else {
(fields, stmt.group_by.clone())
};
// resolve possible tag references in group_by
if let Some(group_by) = group_by.as_mut() {
for dim in group_by.iter_mut() {
let Dimension::VarRef(var_ref) = dim else { continue };
if from_tag_set.contains(var_ref.name.as_str()) {
var_ref.data_type = Some(VarRefDataType::Tag);
}
}
}
Ok((fields_resolve_aliases_and_types(s, fields, from)?, group_by))
}
/// Recursively expand the `from` clause of `stmt` and any subqueries.
fn expand_from(
&self,
s: &dyn SchemaProvider,
stmt: &SelectStatement,
) -> Result<Vec<DataSource>> {
let mut new_from = Vec::new();
for ms in stmt.from.iter() {
match ms {
MeasurementSelection::Name(qmn) => match qmn {
QualifiedMeasurementName {
name: MeasurementName::Name(name),
..
} => {
if s.table_exists(name) {
new_from.push(DataSource::Table(name.deref().to_owned()))
}
}
QualifiedMeasurementName {
name: MeasurementName::Regex(re),
..
} => {
let re = util::parse_regex(re)?;
s.table_names()
.into_iter()
.filter(|table| re.is_match(table))
.for_each(|table| new_from.push(DataSource::Table(table.to_owned())));
}
},
MeasurementSelection::Subquery(q) => {
new_from.push(DataSource::Subquery(Box::new(self.rewrite_subquery(s, q)?)))
}
}
}
Ok(new_from)
}
/// Resolve the data types of any [`VarRef`] expressions in the `WHERE` condition.
fn condition_resolve_types(
&self,
s: &dyn SchemaProvider,
stmt: &SelectStatement,
from: &[DataSource],
) -> Result<Option<WhereClause>> {
let Some(mut where_clause) = stmt.condition.clone() else { return Ok(None) };
let tv = TypeEvaluator::new(s, from);
if let ControlFlow::Break(err) = walk_expression_mut(where_clause.deref_mut(), &mut |e| {
match e {
ExpressionMut::Arithmetic(e) => walk_expr_mut(e, &mut |e| match e {
// Attempt to rewrite all variable (column) references with their concrete types,
// if one hasn't been specified.
Expr::VarRef(ref mut v) => {
v.data_type = match tv.eval_var_ref(v) {
Ok(v) => v,
Err(e) => ControlFlow::Break(e)?,
};
ControlFlow::Continue(())
}
_ => ControlFlow::Continue(()),
}),
ExpressionMut::Conditional(_) => ControlFlow::<DataFusionError>::Continue(()),
}
}) {
Err(err)
} else {
Ok(Some(where_clause))
}
}
/// Return the interval value of the `GROUP BY` clause if it specifies a `TIME`.
fn find_interval_offset(
&self,
ctx: &ReduceContext,
group_by: Option<&GroupByClause>,
) -> Result<Option<Interval>> {
Ok(
if let Some(td) = group_by.and_then(|v| v.time_dimension()) {
let duration = duration_expr_to_nanoseconds(ctx, &td.interval)
.map_err(error::map::expr_error)?;
let offset = td
.offset
.as_ref()
.map(|o| duration_expr_to_nanoseconds(ctx, o))
.transpose()
.map_err(error::map::expr_error)?;
Some(Interval { duration, offset })
} else {
None
},
)
}
}
/// Ensures the `time` column is presented consistently across all `SELECT` queries.
///
/// The following transformations may occur
///
/// * Ensure the `time` field is added to all projections;
/// * move the `time` field to the first position; and
/// * remove column alias for `time` in subqueries.
fn field_list_normalize_time(stmt: &mut Select) {
fn normalize_time(stmt: &mut Select, is_subquery: bool) {
if let Some(f) = match stmt
.fields
.iter()
.find_position(
|c| matches!(&c.expr, Expr::VarRef(VarRef { name, .. }) if name.deref() == "time"),
)
.map(|(i, _)| i)
{
Some(0) => None,
Some(idx) => Some(stmt.fields.remove(idx)),
None => Some(Field {
expr: "time".to_var_ref_expr(),
name: "time".to_owned(),
data_type: None,
}),
} {
stmt.fields.insert(0, f)
}
let c = &mut stmt.fields[0];
c.data_type = Some(InfluxColumnType::Timestamp);
// time aliases in subqueries is ignored
if is_subquery {
c.name = "time".to_owned()
}
if let Expr::VarRef(VarRef {
ref mut data_type, ..
}) = c.expr
{
*data_type = Some(VarRefDataType::Timestamp);
}
}
normalize_time(stmt, false);
// traverse all the subqueries
let mut data_sources = vec![stmt.from.as_mut_slice()];
while let Some(from) = data_sources.pop() {
for sel in from.iter_mut().filter_map(|ds| match ds {
DataSource::Subquery(q) => Some(q),
_ => None,
}) {
normalize_time(sel, true);
data_sources.push(&mut sel.from);
}
}
}
/// Recursively drop any measurements of the `from` clause of `stmt` that do not project
/// any fields.
fn from_drop_empty(s: &dyn SchemaProvider, stmt: &mut Select) {
stmt.from.retain_mut(|tr| {
match tr {
DataSource::Table(name) => {
// drop any measurements that have no matching fields in the
// projection
if let Some(table) = s.table_schema(name.as_str()) {
stmt.fields.iter().any(|f| {
walk_expr(&f.expr, &mut |e| {
if matches!(e, Expr::VarRef(VarRef { name, ..}) if matches!(table.field_type_by_name(name.deref()), Some(InfluxColumnType::Field(_)))) {
ControlFlow::Break(())
} else {
ControlFlow::Continue(())
}
}).is_break()
})
} else {
false
}
}
DataSource::Subquery(q) => {
from_drop_empty(s, q);
if q.from.is_empty() {
return false;
}
stmt.fields.iter().any(|f| {
walk_expr(&f.expr, &mut |e| {
if matches!(e, Expr::VarRef(VarRef{ name, ..}) if matches!(field_by_name(&q.fields, name.as_str()), Some(_))) {
ControlFlow::Break(())
} else {
ControlFlow::Continue(())
}
}).is_break()
})
}
}
});
}
/// Determine the combined tag set for the specified `from`.
fn from_tag_set(s: &dyn SchemaProvider, from: &[DataSource]) -> TagSet {
let mut tag_set = TagSet::new();
for ds in from {
match ds {
DataSource::Table(table_name) => {
if let Some(table) = s.table_schema(table_name) {
tag_set.extend(table.tags_iter().map(|f| f.name().to_owned()))
}
}
DataSource::Subquery(q) => tag_set.extend(q.tag_set.clone()),
}
}
tag_set
}
/// Determine the merged fields and tags of the `FROM` clause.
fn from_field_and_dimensions(
s: &dyn SchemaProvider,
from: &[DataSource],
) -> Result<(FieldTypeMap, TagSet)> {
let mut fs = FieldTypeMap::new();
let mut ts = TagSet::new();
for tr in from {
match tr {
DataSource::Table(name) => {
let Some((field_set, tag_set)) = field_and_dimensions(s, name.as_str()) else { continue };
// Merge field_set with existing
for (name, ft) in &field_set {
match fs.get(name) {
Some(existing_type) => {
if ft < existing_type {
fs.insert(name.to_string(), *ft);
}
}
None => {
fs.insert(name.to_string(), *ft);
}
};
}
ts.extend(tag_set);
}
DataSource::Subquery(select) => {
for f in &select.fields {
let Field {
name, data_type, ..
} = f;
let Some(dt) = influx_type_to_var_ref_data_type(*data_type) else { continue };
match fs.get(name.as_str()) {
Some(existing_type) => {
if dt < *existing_type {
fs.insert(name.to_owned(), dt);
}
}
None => {
fs.insert(name.to_owned(), dt);
}
}
}
if let Some(group_by) = &select.group_by {
// Merge the dimensions from the subquery
ts.extend(group_by.tag_names().map(|i| i.deref().to_string()));
}
}
}
}
Ok((fs, ts))
}
/// Returns a tuple indicating whether the specifies `SELECT` statement
/// has any wildcards or regular expressions in the projection list
/// and `GROUP BY` clause respectively.
fn has_wildcards(stmt: &SelectStatement) -> (bool, bool) {
use influxdb_influxql_parser::visit::{Recursion, Visitable, Visitor};
struct HasWildcardsVisitor(bool, bool);
impl Visitor for HasWildcardsVisitor {
type Error = DataFusionError;
fn pre_visit_expr(self, n: &Expr) -> Result<Recursion<Self>> {
Ok(
if matches!(n, Expr::Wildcard(_) | Expr::Literal(Literal::Regex(_))) {
Recursion::Stop(Self(true, self.1))
} else {
Recursion::Continue(self)
},
)
}
fn pre_visit_select_from_clause(
self,
_n: &FromMeasurementClause,
) -> Result<Recursion<Self>> {
// Don't traverse FROM and potential subqueries
Ok(Recursion::Stop(self))
}
fn pre_visit_select_dimension(self, n: &Dimension) -> Result<Recursion<Self>> {
Ok(if matches!(n, Dimension::Wildcard | Dimension::Regex(_)) {
Recursion::Stop(Self(self.0, true))
} else {
Recursion::Continue(self)
})
}
}
let res = Visitable::accept(stmt, HasWildcardsVisitor(false, false)).unwrap();
(res.0, res.1)
}
/// Traverse expressions of all `fields` and expand wildcard or regular expressions
/// either at the top-level or as the first argument of function calls, such as `SUM(*)`.
///
/// `var_refs` contains the list of field and tags that should be expanded by wildcards.
fn fields_expand_wildcards(
fields: Vec<influxdb_influxql_parser::select::Field>,
var_refs: Vec<VarRef>,
) -> Result<Vec<influxdb_influxql_parser::select::Field>> {
let mut new_fields = Vec::new();
for f in fields {
let add_field = |f: &VarRef| {
new_fields.push(influxdb_influxql_parser::select::Field {
expr: Expr::VarRef(f.clone()),
alias: None,
})
};
match &f.expr {
Expr::Wildcard(wct) => {
let filter: fn(&&VarRef) -> bool = match wct {
None => |_| true,
Some(WildcardType::Tag) => |v| v.data_type.map_or(false, |dt| dt.is_tag_type()),
Some(WildcardType::Field) => {
|v| v.data_type.map_or(false, |dt| dt.is_field_type())
}
};
var_refs.iter().filter(filter).for_each(add_field);
}
Expr::Literal(Literal::Regex(re)) => {
let re = util::parse_regex(re)?;
var_refs
.iter()
.filter(|v| re.is_match(v.name.as_str()))
.for_each(add_field);
}
Expr::Call(Call { name, args }) => {
let mut name = name;
let mut args = args;
// Search for the call with a wildcard by continuously descending until
// we no longer have a call.
while let Some(Expr::Call(Call {
name: inner_name,
args: inner_args,
})) = args.first()
{
name = inner_name;
args = inner_args;
}
// a list of supported types that may be selected from the var_refs
// vector when expanding wildcards in functions.
let mut supported_types = HashSet::from([
Some(VarRefDataType::Float),
Some(VarRefDataType::Integer),
Some(VarRefDataType::Unsigned),
]);
// Modify the supported types for certain functions.
match name.as_str() {
"count" | "first" | "last" | "distinct" | "elapsed" | "mode" | "sample" => {
supported_types
.extend([Some(VarRefDataType::String), Some(VarRefDataType::Boolean)]);
}
"min" | "max" => {
supported_types.insert(Some(VarRefDataType::Boolean));
}
"holt_winters" | "holt_winters_with_fit" => {
supported_types.remove(&Some(VarRefDataType::Unsigned));
}
_ => {}
}
let add_field = |v: &VarRef| {
let mut args = args.clone();
args[0] = Expr::VarRef(v.clone());
new_fields.push(influxdb_influxql_parser::select::Field {
expr: Expr::Call(Call {
name: name.clone(),
args,
}),
alias: Some(format!("{}_{}", field_name(&f), v.name).into()),
})
};
match args.first() {
Some(Expr::Wildcard(Some(WildcardType::Tag))) => {
return error::query(format!("unable to use tag as wildcard in {name}()"));
}
Some(Expr::Wildcard(_)) => {
var_refs
.iter()
.filter(|v| supported_types.contains(&v.data_type))
.for_each(add_field);
}
Some(Expr::Literal(Literal::Regex(re))) => {
let re = util::parse_regex(re)?;
var_refs
.iter()
.filter(|v| {
supported_types.contains(&v.data_type)
&& re.is_match(v.name.as_str())
})
.for_each(add_field);
}
_ => {
new_fields.push(f);
continue;
}
}
}
Expr::Binary { .. } => {
let has_wildcard = walk_expr(&f.expr, &mut |e| {
if matches!(e, Expr::Wildcard(_) | Expr::Literal(Literal::Regex(_))) {
ControlFlow::Break(())
} else {
ControlFlow::Continue(())
}
})
.is_break();
if has_wildcard {
return error::query(
"unsupported binary expression: contains a wildcard or regular expression",
);
}
new_fields.push(f);
}
_ => new_fields.push(f),
}
}
Ok(new_fields)
}
/// Resolve the projection list column names and data types.
/// Column names are resolved in accordance with the [original implementation].
///
/// [original implementation]: https://github.com/influxdata/influxql/blob/1ba470371ec093d57a726b143fe6ccbacf1b452b/ast.go#L1651
fn fields_resolve_aliases_and_types(
s: &dyn SchemaProvider,
fields: Vec<influxdb_influxql_parser::select::Field>,
from: &[DataSource],
) -> Result<Vec<Field>> {
let names = fields.iter().map(field_name).collect::<Vec<_>>();
let mut column_aliases = HashMap::<&str, _>::from_iter(names.iter().map(|f| (f.as_str(), 0)));
let tv = TypeEvaluator::new(s, from);
names
.iter()
.zip(fields.into_iter())
.map(|(name, field)| {
let expr = field.expr;
let data_type = tv.eval_type(&expr)?;
let name = match column_aliases.get(name.as_str()) {
Some(0) => {
column_aliases.insert(name, 1);
name.to_owned()
}
Some(count) => {
let mut count = *count;
let mut resolved_name = name.to_owned();
resolved_name.push('_');
let orig_len = resolved_name.len();
loop {
resolved_name.push_str(count.to_string().as_str());
if column_aliases.contains_key(resolved_name.as_str()) {
count += 1;
resolved_name.truncate(orig_len)
} else {
column_aliases.insert(name, count + 1);
break resolved_name;
}
}
}
None => unreachable!(),
};
Ok(Field {
expr,
name,
data_type: var_ref_data_type_to_influx_type(data_type),
})
})
.collect::<Result<Vec<_>>>()
}
/// Check the length of the arguments slice is within
/// the expected bounds.
macro_rules! check_exp_args {
($NAME:expr, $EXP:expr, $ARGS:expr) => {
let args_len = $ARGS.len();
if args_len != $EXP {
return error::query(format!(
"invalid number of arguments for {}, expected {}, got {args_len}",
$NAME, $EXP
));
}
};
($NAME:expr, $LO:literal, $HI:literal, $ARGS:expr) => {
let args_len = $ARGS.len();
if !($LO..=$HI).contains(&args_len) {
return error::query(format!(
"invalid number of arguments for {}, expected at least {} but no more than {}, got {args_len}",
$NAME, $LO, $HI
));
}
};
}
/// Verify the argument at a specific position is a [`Literal::Integer`].
macro_rules! lit_integer {
($NAME:expr, $ARGS:expr, $POS:literal) => {
match &$ARGS[$POS] {
Expr::Literal(Literal::Integer(v)) => *v,
_ => return error::query(format!("expected integer argument in {}()", $NAME)),
}
};
($NAME:expr, $ARGS:expr, $POS:literal?) => {
if $POS < $ARGS.len() {
Some(lit_integer!($NAME, $ARGS, $POS))
} else {
None
}
};
}
/// Verify the argument at a specific position is a [`Literal::String`].
macro_rules! lit_string {
($NAME:expr, $ARGS:expr, $POS:literal) => {
match &$ARGS[$POS] {
Expr::Literal(Literal::String(s)) => s.as_str(),
_ => return error::query(format!("expected string argument in {}()", $NAME)),
}
};
($NAME:expr, $ARGS:expr, $POS:literal?) => {
if $POS < $ARGS.len() {
Some(lit_string!($NAME, $ARGS, $POS))
} else {
None
}
};
}
/// Set the `extra_intervals` field of [`FieldChecker`] if it is
/// less than then proposed new value.
macro_rules! set_extra_intervals {
($SELF:expr, $NEW:expr) => {
if $SELF.extra_intervals < $NEW as usize {
$SELF.extra_intervals = $NEW as usize
}
};
}
/// Checks a number of expectations for the fields of a [`SelectStatement`].
#[derive(Default)]
struct FieldChecker {
/// `true` if the statement contains a `GROUP BY TIME` clause.
has_group_by_time: bool,
/// The number of additional intervals that must be read
/// for queries that group by time and use window functions such as
/// `DIFFERENCE` or `DERIVATIVE`. This ensures data for the first
/// window is available.
///
/// See: <https://github.com/influxdata/influxdb/blob/f365bb7e3a9c5e227dbf66d84adf674d3d127176/query/compile.go#L50>
extra_intervals: usize,
/// `true` if the interval was inherited by a parent.
/// If this is set, then an interval that was inherited will not cause
/// a query that shouldn't have an interval to fail.
inherited_group_by_time: bool,
/// `true` if the projection contains an invocation of the `TOP` or `BOTTOM` function.
has_top_bottom: bool,
/// `true` when one or more projections do not contain an aggregate expression.
has_non_aggregate_fields: bool,
/// `true` when the projection contains a `DISTINCT` function or unary `DISTINCT` operator.
has_distinct: bool,
/// Accumulator for the number of aggregate or window expressions for the statement.
aggregate_count: usize,
/// Accumulator for the number of window expressions for the statement.
window_count: usize,
/// Accumulator for the number of selector expressions for the statement.
selector_count: usize,
// Set to `true` if any window or aggregate functions are expected to
// only produce non-null results.
//
// This replicates the
// filter_null_rows: bool,
}
impl FieldChecker {
fn check_fields(
&mut self,
fields: &[Field],
fill: Option<FillClause>,
) -> Result<SelectStatementInfo> {
fields.iter().try_for_each(|f| self.check_expr(&f.expr))?;
match self.function_count() {
0 => {
// FILL(PREVIOUS) and FILL(<value>) are both supported for non-aggregate queries
//
// See: https://github.com/influxdata/influxdb/blob/98361e207349a3643bcc332d54b009818fe7585f/query/compile.go#L1002-L1012
match fill {
Some(FillClause::None) => {
return error::query(
"FILL(none) must be used with an aggregate or selector function",
)
}
Some(FillClause::Linear) => {
return error::query(
"FILL(linear) must be used with an aggregate or selector function",
)
}
_ => {}
}
if self.has_group_by_time && !self.inherited_group_by_time {
return error::query("GROUP BY requires at least one aggregate function");
}
}
2.. if self.has_top_bottom => {
return error::query(
"selector functions top and bottom cannot be combined with other functions",
)
}
_ => {}
}
// If a distinct() call is present, ensure there is exactly one aggregate function.
//
// See: https://github.com/influxdata/influxdb/blob/98361e207349a3643bcc332d54b009818fe7585f/query/compile.go#L1013-L1016
if self.has_distinct && (self.function_count() != 1 || self.has_non_aggregate_fields) {
return error::query(
"aggregate function distinct() cannot be combined with other functions or fields",
);
}
// Validate we are using a selector or raw query if non-aggregate fields are projected.
if self.has_non_aggregate_fields {
if self.window_aggregate_count() > 0 {
return error::query("mixing aggregate and non-aggregate columns is not supported");
} else if self.selector_count > 1 {
return error::query(
"mixing multiple selector functions with tags or fields is not supported",
);
}
}
// At this point the statement is valid, and numerous preconditions
// have been met. The final state of the `FieldChecker` is inspected
// to determine the type of projection. The ProjectionType dictates
// how the query will be planned and other cases, such as how NULL
// values are handled, to ensure compatibility with InfluxQL OG.
let projection_type = if self.has_top_bottom {
ProjectionType::TopBottomSelector
} else if self.has_group_by_time {
if self.window_count > 0 {
if self.window_count == self.aggregate_count + self.selector_count {
ProjectionType::WindowAggregate
} else {
ProjectionType::WindowAggregateMixed
}
} else {
ProjectionType::Aggregate
}
} else if self.has_distinct {
ProjectionType::RawDistinct
} else if self.selector_count == 1 && self.aggregate_count == 0 {
ProjectionType::Selector {
has_fields: self.has_non_aggregate_fields,
}
} else if self.selector_count > 1 || self.aggregate_count > 0 {
ProjectionType::Aggregate
} else if self.window_count > 0 {
ProjectionType::Window
} else {
ProjectionType::Raw
};
Ok(SelectStatementInfo {
projection_type,
extra_intervals: self.extra_intervals,
})
}
/// The total number of functions observed.
fn function_count(&self) -> usize {
self.window_aggregate_count() + self.selector_count
}
/// The total number of window and aggregate functions observed.
fn window_aggregate_count(&self) -> usize {
self.aggregate_count + self.window_count
}
}
impl FieldChecker {
fn check_expr(&mut self, e: &Expr) -> Result<()> {
match e {
// The `time` column is ignored
Expr::VarRef(VarRef { name, .. }) if name.deref() == "time" => Ok(()),
Expr::VarRef(_) => {
self.has_non_aggregate_fields = true;
Ok(())
}
Expr::Call(c) if is_scalar_math_function(&c.name) => self.check_math_function(c),
Expr::Call(c) => self.check_aggregate_function(c),
Expr::Binary(b) => match (&*b.lhs, &*b.rhs) {
(Expr::Literal(_), Expr::Literal(_)) => {
error::query("cannot perform a binary expression on two literals")
}
(Expr::Literal(_), other) | (other, Expr::Literal(_)) => self.check_expr(other),
(lhs, rhs) => {
self.check_expr(lhs)?;
self.check_expr(rhs)
}
},
Expr::Nested(e) => self.check_expr(e),
// BindParameter should be substituted prior to validating fields.
Expr::BindParameter(_) => error::internal("unexpected bind parameter"),
Expr::Wildcard(_) => error::internal("unexpected wildcard"),
Expr::Literal(Literal::Regex(_)) => error::internal("unexpected regex"),
Expr::Distinct(_) => error::internal("unexpected distinct clause"),
// See: https://github.com/influxdata/influxdb/blob/98361e207349a3643bcc332d54b009818fe7585f/query/compile.go#L347
Expr::Literal(_) => error::query("field must contain at least one variable"),
}
}
fn check_math_function(&mut self, c: &Call) -> Result<()> {
let name = c.name.as_str();
check_exp_args!(
name,
match name {
"atan2" | "pow" | "log" => 2,
_ => 1,
},
c.args
);
// Check each argument that is not a literal number.
//
// NOTE
// This is a slight deviation from OSS, where we only skip
// numeric literals, which are the only literal argument types supported by the mathematical
// functions in InfluxQL.
//
// See: https://github.com/influxdata/influxdb/blob/98361e207349a3643bcc332d54b009818fe7585f/query/compile.go#L910-L911
c.args.iter().try_for_each(|e| {
if matches!(e, Expr::Literal(Literal::Integer(_) | Literal::Float(_))) {
Ok(())
} else {
self.check_expr(e)
}
})
}
/// Validate `c` is an aggregate, window aggregate or selector function.
fn check_aggregate_function(&mut self, c: &Call) -> Result<()> {
let name = c.name.as_str();
match name {
"percentile" => self.check_percentile(&c.args),
"sample" => self.check_sample(&c.args),
"distinct" => self.check_distinct(&c.args, false),
"top" | "bottom" if self.has_top_bottom => error::query(format!(
"selector function {name}() cannot be combined with other functions"
)),
"top" | "bottom" => self.check_top_bottom(name, &c.args),
"derivative" | "non_negative_derivative" => self.check_derivative(name, &c.args),
"difference" | "non_negative_difference" => self.check_difference(name, &c.args),
"cumulative_sum" => self.check_cumulative_sum(&c.args),
"moving_average" => self.check_moving_average(&c.args),
"exponential_moving_average"
| "double_exponential_moving_average"
| "triple_exponential_moving_average"
| "relative_strength_index"
| "triple_exponential_derivative" => {
self.check_exponential_moving_average(name, &c.args)
}
"kaufmans_efficiency_ratio" | "kaufmans_adaptive_moving_average" => {
self.check_kaufmans(name, &c.args)
}
"chande_momentum_oscillator" => self.check_chande_momentum_oscillator(name, &c.args),
"elapsed" => self.check_elapsed(name, &c.args),
"integral" => self.check_integral(name, &c.args),
"count_hll" => self.check_count_hll(&c.args),
"holt_winters" | "holt_winters_with_fit" => self.check_holt_winters(name, &c.args),
"max" | "min" | "first" | "last" => {
self.inc_selector_count();
check_exp_args!(name, 1, c.args);
self.check_symbol(name, &c.args[0])
}
"count" | "sum" | "mean" | "median" | "mode" | "stddev" | "spread" | "sum_hll" => {
self.inc_aggregate_count();
check_exp_args!(name, 1, c.args);
// If this is a call to count(), allow distinct() to be used as the function argument.
if name == "count" {
match &c.args[0] {
Expr::Call(c) if c.name == "distinct" => {
return self.check_distinct(&c.args, true);
}
Expr::Distinct(_) => {
return error::internal("unexpected distinct clause in count");
}
_ => {}
}
}
self.check_symbol(name, &c.args[0])
}
_ => error::query(format!("unsupported function {name}()")),
}
}
fn check_percentile(&mut self, args: &[Expr]) -> Result<()> {
self.inc_selector_count();
check_exp_args!("percentile", 2, args);
if !matches!(
&args[1],
Expr::Literal(Literal::Integer(_)) | Expr::Literal(Literal::Float(_))
) {
return error::query(format!(
"expected number for percentile(), got {:?}",
&args[1]
));
}
self.check_symbol("percentile", &args[0])
}
fn check_sample(&mut self, args: &[Expr]) -> Result<()> {
self.inc_selector_count();
check_exp_args!("sample", 2, args);
let v = lit_integer!("sample", args, 1);
// NOTE: this is a deviation from InfluxQL, which incorrectly performs the check for <= 0
//
// See: https://github.com/influxdata/influxdb/blob/98361e207349a3643bcc332d54b009818fe7585f/query/compile.go#L441-L443
if v <= 1 {
return error::query(format!("sample window must be greater than 1, got {v}"));
}
self.check_symbol("sample", &args[0])
}
/// Validate the arguments for the `distinct` function call.
fn check_distinct(&mut self, args: &[Expr], nested: bool) -> Result<()> {
self.inc_aggregate_count();
check_exp_args!("distinct", 1, args);
if !matches!(&args[0], Expr::VarRef(_)) {
return error::query("expected field argument in distinct()");
}
if !nested {
self.has_distinct = true;
}
Ok(())
}
fn check_top_bottom(&mut self, name: &str, args: &[Expr]) -> Result<()> {
assert!(!self.has_top_bottom, "should not be called if true");
self.inc_selector_count();
self.has_top_bottom = true;
if args.len() < 2 {
return error::query(format!(
"invalid number of arguments for {name}, expected at least 2, got {}",
args.len()
));
}
let (last, args) = args.split_last().expect("length >= 2");
match last {
Expr::Literal(Literal::Integer(limit)) => {
if *limit <= 0 {
return error::query(format!(
"limit ({limit}) for {name} must be greater than 0"
));
}
}
got => {
return error::query(format!(
"expected integer as last argument for {name}, got {got:?}"
))
}
}
let (first, rest) = args.split_first().expect("length >= 1");
if !matches!(first, Expr::VarRef(_)) {
return error::query(format!("expected first argument to be a field for {name}"));
}
for expr in rest {
if !matches!(expr, Expr::VarRef(_)) {
return error::query(format!(
"only fields or tags are allow for {name}(), got {expr:?}"
));
}
}
if !rest.is_empty() {
// projecting additional fields and tags, such as <tag> or <field> in `TOP(usage_idle, <tag>, <field>, 5)`
self.has_non_aggregate_fields = true
}
Ok(())
}
fn check_derivative(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!(name, 1, 2, args);
set_extra_intervals!(self, 1);
match args.get(1) {
Some(Expr::Literal(Literal::Duration(d))) if **d <= 0 => {
return error::query(format!("duration argument must be positive, got {d}"))
}
None | Some(Expr::Literal(Literal::Duration(_))) => {}
Some(got) => {
return error::query(format!(
"second argument to {name} must be a duration, got {got:?}"
))
}
}
self.check_nested_symbol(name, &args[0])
}
fn check_elapsed(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!(name, 1, 2, args);
set_extra_intervals!(self, 1);
match args.get(1) {
Some(Expr::Literal(Literal::Duration(d))) if **d <= 0 => {
return error::query(format!("duration argument must be positive, got {d}"))
}
None | Some(Expr::Literal(Literal::Duration(_))) => {}
Some(got) => {
return error::query(format!(
"second argument to {name} must be a duration, got {got:?}"
))
}
}
self.check_nested_symbol(name, &args[0])
}
fn check_difference(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!(name, 1, args);
set_extra_intervals!(self, 1);
self.check_nested_symbol(name, &args[0])
}
fn check_cumulative_sum(&mut self, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!("cumulative_sum", 1, args);
self.check_nested_symbol("cumulative_sum", &args[0])
}
fn check_moving_average(&mut self, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!("moving_average", 2, args);
let v = lit_integer!("moving_average", args, 1);
if v <= 1 {
return error::query(format!(
"moving_average window must be greater than 1, got {v}"
));
}
set_extra_intervals!(self, v);
self.check_nested_symbol("moving_average", &args[0])
}
fn check_exponential_moving_average(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!(name, 2, 4, args);
let v = lit_integer!(name, args, 1);
if v < 1 {
return error::query(format!("{name} period must be greater than 1, got {v}"));
}
set_extra_intervals!(self, v);
if let Some(v) = lit_integer!(name, args, 2?) {
match (v, name) {
(v, "triple_exponential_derivative") if v < 1 && v != -1 => {
return error::query(format!(
"{name} hold period must be greater than or equal to 1"
))
}
(v, _) if v < 0 && v != -1 => {
return error::query(format!(
"{name} hold period must be greater than or equal to 0"
))
}
_ => {}
}
}
match lit_string!(name, args, 3?) {
Some("exponential" | "simple") => {}
Some(warmup) => {
return error::query(format!(
"{name} warmup type must be one of: 'exponential', 'simple', got {warmup}"
))
}
None => {}
}
self.check_nested_symbol(name, &args[0])
}
fn check_kaufmans(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!(name, 2, 3, args);
let v = lit_integer!(name, args, 1);
if v < 1 {
return error::query(format!("{name} period must be greater than 1, got {v}"));
}
set_extra_intervals!(self, v);
if let Some(v) = lit_integer!(name, args, 2?) {
if v < 0 && v != -1 {
return error::query(format!(
"{name} hold period must be greater than or equal to 0"
));
}
}
self.check_nested_symbol(name, &args[0])
}
fn check_chande_momentum_oscillator(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_window_count();
check_exp_args!(name, 2, 4, args);
let v = lit_integer!(name, args, 1);
if v < 1 {
return error::query(format!("{name} period must be greater than 1, got {v}"));
}
set_extra_intervals!(self, v);
if let Some(v) = lit_integer!(name, args, 2?) {
if v < 0 && v != -1 {
return error::query(format!(
"{name} hold period must be greater than or equal to 0"
));
}
}
match lit_string!(name, args, 3?) {
Some("none" | "exponential" | "simple") => {}
Some(warmup) => {
return error::query(format!(
"{name} warmup type must be one of: 'none', 'exponential' or 'simple', got {warmup}"
))
}
None => {}
}
self.check_nested_symbol(name, &args[0])
}
fn check_integral(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_aggregate_count();
check_exp_args!(name, 1, 2, args);
match args.get(1) {
Some(Expr::Literal(Literal::Duration(d))) if **d <= 0 => {
return error::query(format!("duration argument must be positive, got {d}"))
}
None | Some(Expr::Literal(Literal::Duration(_))) => {}
Some(got) => {
return error::query(format!(
"second argument to {name} must be a duration, got {got:?}"
))
}
}
self.check_symbol(name, &args[0])
}
fn check_count_hll(&mut self, _args: &[Expr]) -> Result<()> {
self.inc_aggregate_count();
// The count hyperloglog function is not documented for versions 1.8 or the latest 2.7.
// If anyone is using it, we'd like to know, so we'll explicitly return a not implemented
// message.
//
// See: https://docs.influxdata.com/influxdb/v2.7/query-data/influxql/functions/
// See: https://docs.influxdata.com/influxdb/v1.8/query_language/functions
error::not_implemented("count_hll")
}
fn check_holt_winters(&mut self, name: &str, args: &[Expr]) -> Result<()> {
self.inc_aggregate_count();
check_exp_args!(name, 3, args);
let v = lit_integer!(name, args, 1);
if v < 1 {
return error::query(format!("{name} N argument must be greater than 0, got {v}"));
}
let v = lit_integer!(name, args, 2);
if v < 0 {
return error::query(format!("{name} S argument cannot be negative, got {v}"));
}
match &args[0] {
Expr::Call(_) if !self.has_group_by_time => {
error::query(format!("{name} aggregate requires a GROUP BY interval"))
}
expr @ Expr::Call(_) => self.check_nested_expr(expr),
_ => error::query(format!("must use aggregate function with {name}")),
}
}
/// Increments the aggregate function call count
fn inc_aggregate_count(&mut self) {
self.aggregate_count += 1
}
/// Increments the window function call count
fn inc_window_count(&mut self) {
self.window_count += 1
}
fn inc_selector_count(&mut self) {
self.selector_count += 1
}
fn check_nested_expr(&mut self, expr: &Expr) -> Result<()> {
match expr {
Expr::Call(c) if c.name == "distinct" => self.check_distinct(&c.args, true),
_ => self.check_expr(expr),
}
}
fn check_nested_symbol(&mut self, name: &str, expr: &Expr) -> Result<()> {
match expr {
Expr::Call(_) if !self.has_group_by_time => {
error::query(format!("{name} aggregate requires a GROUP BY interval"))
}
Expr::Call(_) => self.check_nested_expr(expr),
_ if self.has_group_by_time && !self.inherited_group_by_time => error::query(format!(
"aggregate function required inside the call to {name}"
)),
_ => self.check_symbol(name, expr),
}
}
/// Validate that `expr` is either a [`Expr::VarRef`] or a [`Expr::Wildcard`] or
/// [`Literal::Regex`] under specific conditions.
fn check_symbol(&mut self, name: &str, expr: &Expr) -> Result<()> {
match expr {
Expr::VarRef(_) => Ok(()),
Expr::Wildcard(_) | Expr::Literal(Literal::Regex(_)) => {
error::internal("unexpected wildcard or regex")
}
expr => error::query(format!("expected field argument in {name}(), got {expr:?}")),
}
}
}
#[derive(Default, Debug, Copy, Clone, Eq, PartialEq)]
pub(crate) enum ProjectionType {
/// A query that projects no aggregate or selector functions.
#[default]
Raw,
/// A query that projects a single DISTINCT(field)
RawDistinct,
/// A query that projects one or more aggregate functions or
/// two or more selector functions.
Aggregate,
/// A query that projects one or more window functions.
Window,
/// A query that projects a combination of window and nested aggregate functions.
WindowAggregate,
/// A query that projects a combination of window and nested aggregate functions, including
/// separate projections that are just aggregates. This requires special handling of
/// windows that produce `NULL` results.
WindowAggregateMixed,
/// A query that projects a single selector function,
/// such as `last` or `first`.
Selector {
/// When `true`, the projection contains additional tags or fields.
has_fields: bool,
},
/// A query that projects the `top` or `bottom` selector function.
TopBottomSelector,
}
/// Holds high-level information as the result of analysing
/// a `SELECT` query.
#[derive(Default, Debug, Copy, Clone)]
struct SelectStatementInfo {
/// Identifies the projection type for the `SELECT` query.
projection_type: ProjectionType,
/// Copied from [extra_intervals](FieldChecker::extra_intervals)
///
/// [See also](Select::extra_intervals).
extra_intervals: usize,
}
/// Gather information about the semantics of a [`SelectStatement`] and verify
/// the `SELECT` projection clause is semantically correct.
///
/// Upon success the fields list is guaranteed to adhere to a number of conditions.
///
/// Generally:
///
/// * All aggregate, selector and window-like functions, such as `sum`, `last` or `difference`,
/// specify a field expression as their first argument
/// * All projected columns must refer to a field or tag ensuring there are no literal
/// projections such as `SELECT 1`
/// * Argument types and values are valid
///
/// When `GROUP BY TIME` is present, the `SelectStatement` is an aggregate query and the
/// following additional rules apply:
///
/// * All projected fields are aggregate or selector expressions
/// * All window-like functions, such as `difference` or `integral` specify an aggregate
/// expression, such as `SUM(foo)`, as their first argument
///
/// For selector queries, which are those that use selector functions like `last` or `max`:
///
/// * Projecting **multiple** selector functions, such as `last` or `first` will not be
/// combined with non-aggregate columns
/// * Projecting a **single** selector function, such as `last` or `first` may be combined
/// with non-aggregate columns
///
/// Finally, the `top` and `bottom` function have the following additional restrictions:
///
/// * Are not combined with other aggregate, selector or window-like functions and may
/// only project additional fields
fn select_statement_info(
fields: &[Field],
group_by: &Option<GroupByClause>,
fill: Option<FillClause>,
) -> Result<SelectStatementInfo> {
let has_group_by_time = group_by
.as_ref()
.and_then(|gb| gb.time_dimension())
.is_some();
let mut fc = FieldChecker {
has_group_by_time,
..Default::default()
};
fc.check_fields(fields, fill)
}
#[cfg(test)]
mod test {
use super::Result;
use crate::plan::ir::{Field, Select};
use crate::plan::rewriter::{
find_table_names, has_wildcards, rewrite_select, rewrite_statement, ProjectionType,
SelectStatementInfo,
};
use crate::plan::test_utils::{parse_select, MockSchemaProvider};
use assert_matches::assert_matches;
use datafusion::error::DataFusionError;
use influxdb_influxql_parser::select::SelectStatement;
use test_helpers::{assert_contains, assert_error};
#[test]
fn test_find_table_names() {
let namespace = MockSchemaProvider::default();
let parse_select = |s: &str| -> Select {
let select = parse_select(s);
rewrite_select(&namespace, &select).unwrap()
};
/// Return `find_table_names` as a `Vec` for tests.
fn find_table_names_vec(s: &Select) -> Vec<&str> {
find_table_names(s).into_iter().collect()
}
let s = parse_select("SELECT usage_idle FROM cpu");
assert_eq!(find_table_names_vec(&s), &["cpu"]);
let s = parse_select("SELECT usage_idle FROM cpu, disk");
assert_eq!(find_table_names_vec(&s), &["cpu", "disk"]);
let s = parse_select("SELECT usage_idle FROM disk, cpu, disk");
assert_eq!(find_table_names_vec(&s), &["cpu", "disk"]);
// subqueries
let s = parse_select("SELECT usage_idle FROM (select * from cpu, disk)");
assert_eq!(find_table_names_vec(&s), &["cpu", "disk"]);
let s = parse_select("SELECT usage_idle FROM cpu, (select * from cpu, disk)");
assert_eq!(find_table_names_vec(&s), &["cpu", "disk"]);
}
#[test]
fn test_select_statement_info() {
let namespace = MockSchemaProvider::default();
let parse_select = |s: &str| -> Select {
let select = parse_select(s);
rewrite_select(&namespace, &select).unwrap()
};
fn select_statement_info(q: &Select) -> Result<SelectStatementInfo> {
super::select_statement_info(&q.fields, &q.group_by, q.fill)
}
let info = select_statement_info(&parse_select("SELECT foo, bar FROM cpu")).unwrap();
assert_matches!(info.projection_type, ProjectionType::Raw);
let info = select_statement_info(&parse_select("SELECT distinct(foo) FROM cpu")).unwrap();
assert_matches!(info.projection_type, ProjectionType::RawDistinct);
let info = select_statement_info(&parse_select("SELECT last(foo) FROM cpu")).unwrap();
assert_matches!(
info.projection_type,
ProjectionType::Selector { has_fields: false }
);
// updates extra_intervals
let info = select_statement_info(&parse_select("SELECT difference(foo) FROM cpu")).unwrap();
assert_matches!(info.projection_type, ProjectionType::Window);
assert_matches!(info.extra_intervals, 1);
// derives extra intervals from the window function
let info =
select_statement_info(&parse_select("SELECT moving_average(foo, 5) FROM cpu")).unwrap();
assert_matches!(info.projection_type, ProjectionType::Window);
assert_matches!(info.extra_intervals, 5);
// uses the maximum extra intervals
let info = select_statement_info(&parse_select(
"SELECT difference(foo), moving_average(foo, 4) FROM cpu",
))
.unwrap();
assert_matches!(info.extra_intervals, 4);
let info = select_statement_info(&parse_select("SELECT last(foo), bar FROM cpu")).unwrap();
assert_matches!(
info.projection_type,
ProjectionType::Selector { has_fields: true }
);
let info = select_statement_info(&parse_select(
"SELECT last(foo) FROM cpu GROUP BY TIME(10s)",
))
.unwrap();
assert_matches!(info.projection_type, ProjectionType::Aggregate);
let info =
select_statement_info(&parse_select("SELECT last(foo), first(foo) FROM cpu")).unwrap();
assert_matches!(info.projection_type, ProjectionType::Aggregate);
let info = select_statement_info(&parse_select("SELECT count(foo) FROM cpu")).unwrap();
assert_matches!(info.projection_type, ProjectionType::Aggregate);
let info = select_statement_info(&parse_select(
"SELECT difference(count(foo)) FROM cpu GROUP BY TIME(10s)",
))
.unwrap();
assert_matches!(info.projection_type, ProjectionType::WindowAggregate);
let info = select_statement_info(&parse_select(
"SELECT difference(count(foo)), mean(foo) FROM cpu GROUP BY TIME(10s)",
))
.unwrap();
assert_matches!(info.projection_type, ProjectionType::WindowAggregateMixed);
let info = select_statement_info(&parse_select("SELECT top(foo, 3) FROM cpu")).unwrap();
assert_matches!(info.projection_type, ProjectionType::TopBottomSelector);
}
/// Verify all the aggregate, window-like and selector functions are handled
/// by `select_statement_info`.
#[test]
fn test_select_statement_info_functions() {
fn select_statement_info(q: &SelectStatement) -> Result<SelectStatementInfo> {
let columns = q
.fields
.iter()
.map(|f| Field {
expr: f.expr.clone(),
name: "".to_owned(),
data_type: None,
})
.collect::<Vec<_>>();
super::select_statement_info(&columns, &q.group_by, q.fill)
}
// percentile
let sel = parse_select("SELECT percentile(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT percentile(foo) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for percentile, expected 2, got 1");
let sel = parse_select("SELECT percentile('foo', /a/) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "expected number for percentile(), got Literal(Regex(Regex(\"a\")))");
// sample
let sel = parse_select("SELECT sample(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT sample(foo) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for sample, expected 2, got 1");
let sel = parse_select("SELECT sample(foo, -2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "sample window must be greater than 1, got -2");
// distinct
let sel = parse_select("SELECT distinct(foo) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT distinct(foo, 1) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for distinct, expected 1, got 2");
let sel = parse_select("SELECT distinct(sum(foo)) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "expected field argument in distinct()");
let sel = parse_select("SELECT distinct(foo), distinct(bar) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "aggregate function distinct() cannot be combined with other functions or fields");
// top / bottom
let sel = parse_select("SELECT top(foo, 3) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT bottom(foo, 3) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT top(foo, 3), bar FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT top(foo, bar, 3) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT top(foo) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for top, expected at least 2, got 1");
let sel = parse_select("SELECT bottom(foo) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for bottom, expected at least 2, got 1");
let sel = parse_select("SELECT top(foo, -2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "limit (-2) for top must be greater than 0");
let sel = parse_select("SELECT top(foo, bar) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "expected integer as last argument for top, got VarRef(VarRef { name: Identifier(\"bar\"), data_type: None })");
let sel = parse_select("SELECT top('foo', 3) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "expected first argument to be a field for top");
let sel = parse_select("SELECT top(foo, 2, 3) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "only fields or tags are allow for top(), got Literal(Integer(2))");
let sel = parse_select("SELECT top(foo, 2), mean(bar) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "selector functions top and bottom cannot be combined with other functions");
// derivative
let sel = parse_select("SELECT derivative(foo) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT derivative(foo, 2s) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT derivative(mean(foo)) FROM cpu GROUP BY TIME(30s)");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT derivative(foo, 2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "second argument to derivative must be a duration, got Literal(Integer(2))");
let sel = parse_select("SELECT derivative(foo, -2s) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "duration argument must be positive, got -2s");
let sel = parse_select("SELECT derivative(foo, 2s, 1) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for derivative, expected at least 1 but no more than 2, got 3");
let sel = parse_select("SELECT derivative(foo) FROM cpu GROUP BY TIME(30s)");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "aggregate function required inside the call to derivative");
// elapsed
let sel = parse_select("SELECT elapsed(foo) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT elapsed(foo, 5s) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT elapsed(foo, 2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "second argument to elapsed must be a duration, got Literal(Integer(2))");
let sel = parse_select("SELECT elapsed(foo, -2s) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "duration argument must be positive, got -2s");
// difference / non_negative_difference
let sel = parse_select("SELECT difference(foo) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT non_negative_difference(foo) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT difference(foo, 2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for difference, expected 1, got 2");
// cumulative_sum
let sel = parse_select("SELECT cumulative_sum(foo) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT cumulative_sum(foo, 2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for cumulative_sum, expected 1, got 2");
// moving_average
let sel = parse_select("SELECT moving_average(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT moving_average(foo, bar, 3) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for moving_average, expected 2, got 3");
let sel = parse_select("SELECT moving_average(foo, 1) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "moving_average window must be greater than 1, got 1");
// exponential_moving_average, double_exponential_moving_average
// triple_exponential_moving_average, relative_strength_index and triple_exponential_derivative
let sel = parse_select("SELECT exponential_moving_average(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT exponential_moving_average(foo, 2, 3) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT exponential_moving_average(foo, 2, -1) FROM cpu");
select_statement_info(&sel).unwrap();
let sel =
parse_select("SELECT exponential_moving_average(foo, 2, 3, 'exponential') FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT exponential_moving_average(foo, 2, 3, 'simple') FROM cpu");
select_statement_info(&sel).unwrap();
// check variants
let sel = parse_select("SELECT double_exponential_moving_average(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT triple_exponential_moving_average(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT relative_strength_index(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT triple_exponential_derivative(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT exponential_moving_average(foo) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for exponential_moving_average, expected at least 2 but no more than 4, got 1");
let sel = parse_select("SELECT exponential_moving_average(foo, 2, 3, 'bad') FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "exponential_moving_average warmup type must be one of: 'exponential', 'simple', got bad");
let sel = parse_select("SELECT exponential_moving_average(foo, 2, 3, 4) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "expected string argument in exponential_moving_average()");
let sel = parse_select("SELECT exponential_moving_average(foo, 2, -2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "exponential_moving_average hold period must be greater than or equal to 0");
let sel = parse_select("SELECT triple_exponential_derivative(foo, 2, 0) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "triple_exponential_derivative hold period must be greater than or equal to 1");
// kaufmans_efficiency_ratio, kaufmans_adaptive_moving_average
let sel = parse_select("SELECT kaufmans_efficiency_ratio(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT kaufmans_adaptive_moving_average(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT kaufmans_efficiency_ratio(foo) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for kaufmans_efficiency_ratio, expected at least 2 but no more than 3, got 1");
let sel = parse_select("SELECT kaufmans_efficiency_ratio(foo, 2, -2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "kaufmans_efficiency_ratio hold period must be greater than or equal to 0");
// chande_momentum_oscillator
let sel = parse_select("SELECT chande_momentum_oscillator(foo, 2) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT chande_momentum_oscillator(foo, 2, 3) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT chande_momentum_oscillator(foo, 2, 3, 'none') FROM cpu");
select_statement_info(&sel).unwrap();
let sel =
parse_select("SELECT chande_momentum_oscillator(foo, 2, 3, 'exponential') FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT chande_momentum_oscillator(foo, 2, 3, 'simple') FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT chande_momentum_oscillator(foo) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for chande_momentum_oscillator, expected at least 2 but no more than 4, got 1");
let sel = parse_select("SELECT chande_momentum_oscillator(foo, 2, 3, 'bad') FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "chande_momentum_oscillator warmup type must be one of: 'none', 'exponential' or 'simple', got bad");
// integral
let sel = parse_select("SELECT integral(foo) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT integral(foo, 2s) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT integral(foo, -2s) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "duration argument must be positive, got -2s");
let sel = parse_select("SELECT integral(foo, 2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "second argument to integral must be a duration, got Literal(Integer(2))");
// count_hll
let sel = parse_select("SELECT count_hll(foo) FROM cpu");
assert_error!(
select_statement_info(&sel),
DataFusionError::NotImplemented(_)
);
// holt_winters, holt_winters_with_fit
let sel = parse_select("SELECT holt_winters(mean(foo), 2, 3) FROM cpu GROUP BY time(30s)");
select_statement_info(&sel).unwrap();
let sel = parse_select(
"SELECT holt_winters_with_fit(sum(foo), 2, 3) FROM cpu GROUP BY time(30s)",
);
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT holt_winters(sum(foo), 2, 3) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "holt_winters aggregate requires a GROUP BY interval");
let sel = parse_select("SELECT holt_winters(foo, 2, 3) FROM cpu GROUP BY time(30s)");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "must use aggregate function with holt_winters");
let sel = parse_select("SELECT holt_winters(sum(foo), 2) FROM cpu GROUP BY time(30s)");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for holt_winters, expected 3, got 2");
let sel = parse_select("SELECT holt_winters(foo, 0, 3) FROM cpu GROUP BY time(30s)");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "holt_winters N argument must be greater than 0, got 0");
let sel = parse_select("SELECT holt_winters(foo, 1, -3) FROM cpu GROUP BY time(30s)");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "holt_winters S argument cannot be negative, got -3");
// max, min, first, last
for name in [
"max", "min", "first", "last", "count", "sum", "mean", "median", "mode", "stddev",
"spread", "sum_hll",
] {
let sel = parse_select(&format!("SELECT {name}(foo) FROM cpu"));
select_statement_info(&sel).unwrap();
let sel = parse_select(&format!("SELECT {name}(foo, 2) FROM cpu"));
let exp = format!("invalid number of arguments for {name}, expected 1, got 2");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == &exp);
}
// count(distinct)
let sel = parse_select("SELECT count(distinct(foo)) FROM cpu");
select_statement_info(&sel).unwrap();
let sel = parse_select("SELECT count(distinct('foo')) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "expected field argument in distinct()");
// Test rules for math functions
let sel = parse_select("SELECT abs(usage_idle) FROM cpu");
select_statement_info(&sel).unwrap();
// Fallible
// abs expects 1 argument
let sel = parse_select("SELECT abs(foo, 2) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for abs, expected 1, got 2");
// pow expects 2 arguments
let sel = parse_select("SELECT pow(foo, 2, 3) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "invalid number of arguments for pow, expected 2, got 3");
// Cannot perform binary operations on literals
// See: https://github.com/influxdata/influxdb/blob/98361e207349a3643bcc332d54b009818fe7585f/query/compile.go#L329
let sel = parse_select("SELECT 1 + 1 FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "cannot perform a binary expression on two literals");
// can't project literals
let sel = parse_select("SELECT foo, 1 FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "field must contain at least one variable");
// aggregate functions require a field reference
let sel = parse_select("SELECT sum(1) FROM cpu");
assert_error!(select_statement_info(&sel), DataFusionError::Plan(ref s) if s == "expected field argument in sum(), got Literal(Integer(1))");
}
mod rewrite_statement {
use super::*;
use crate::plan::ir::TagSet;
use datafusion::common::Result;
use influxdb_influxql_parser::select::SelectStatement;
use schema::{InfluxColumnType, InfluxFieldType, SchemaBuilder};
/// Test implementation that converts `Select` to `SelectStatement` so that it can be
/// converted back to a string.
fn rewrite_select_statement(
s: &MockSchemaProvider,
q: &SelectStatement,
) -> Result<SelectStatement> {
let stmt = rewrite_statement(s, q)?;
Ok(stmt.select.into())
}
/// Validate the data types of the fields of a [`Select`].
#[test]
fn projection_schema() {
let namespace = MockSchemaProvider::default();
let stmt = parse_select("SELECT usage_idle, usage_idle + usage_system, cpu FROM cpu");
let q = rewrite_statement(&namespace, &stmt).unwrap();
// first field is always the time column and thus a Timestamp
assert_matches!(
q.select.fields[0].data_type,
Some(InfluxColumnType::Timestamp)
);
// usage_idle is a Float
assert_matches!(
q.select.fields[1].data_type,
Some(InfluxColumnType::Field(InfluxFieldType::Float))
);
// The expression usage_idle + usage_system is a Float
assert_matches!(
q.select.fields[2].data_type,
Some(InfluxColumnType::Field(InfluxFieldType::Float))
);
// cpu is a Tag
assert_matches!(q.select.fields[3].data_type, Some(InfluxColumnType::Tag));
let stmt = parse_select("SELECT field_i64 + field_f64, field_i64 / field_i64, field_u64 / field_i64 FROM all_types");
let q = rewrite_statement(&namespace, &stmt).unwrap();
// first field is always the time column and thus a Timestamp
assert_matches!(
q.select.fields[0].data_type,
Some(InfluxColumnType::Timestamp)
);
// Expression is promoted to a Float
assert_matches!(
q.select.fields[1].data_type,
Some(InfluxColumnType::Field(InfluxFieldType::Float))
);
// Integer division is promoted to a Float
assert_matches!(
q.select.fields[2].data_type,
Some(InfluxColumnType::Field(InfluxFieldType::Float))
);
// Unsigned division is still Unsigned
assert_matches!(
q.select.fields[3].data_type,
Some(InfluxColumnType::Field(InfluxFieldType::UInteger))
);
}
/// Validate the tag_set field of a [`Select]`
#[test]
fn tag_set_schema() {
let namespace = MockSchemaProvider::default();
macro_rules! assert_tag_set {
($Q:ident, $($TAG:literal),*) => {
assert_eq!($Q.select.tag_set, TagSet::from([$($TAG.to_owned(),)*]))
};
}
let stmt = parse_select("SELECT usage_system FROM cpu");
let q = rewrite_statement(&namespace, &stmt).unwrap();
assert_tag_set!(q, "cpu", "host", "region");
let stmt = parse_select("SELECT usage_system FROM cpu, disk");
let q = rewrite_statement(&namespace, &stmt).unwrap();
assert_tag_set!(q, "cpu", "host", "region", "device");
let stmt =
parse_select("SELECT usage_system FROM (select * from cpu), (select * from disk)");
let q = rewrite_statement(&namespace, &stmt).unwrap();
assert_tag_set!(q, "cpu", "host", "region", "device");
}
/// Validating types for simple projections
#[test]
fn projection_simple() {
let namespace = MockSchemaProvider::default();
// Exact, match
let stmt = parse_select("SELECT usage_user FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_user::float AS usage_user FROM cpu"
);
// Duplicate columns do not have conflicting aliases
let stmt = parse_select("SELECT usage_user, usage_user FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_user::float AS usage_user, usage_user::float AS usage_user_1 FROM cpu"
);
// Multiple aliases with no conflicts
let stmt = parse_select("SELECT usage_user as usage_user_1, usage_user FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_user::float AS usage_user_1, usage_user::float AS usage_user FROM cpu"
);
// Multiple aliases with conflicts
let stmt =
parse_select("SELECT usage_user as usage_user_1, usage_user, usage_user, usage_user as usage_user_2, usage_user, usage_user_2 FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(stmt.to_string(), "SELECT time::timestamp AS time, usage_user::float AS usage_user_1, usage_user::float AS usage_user, usage_user::float AS usage_user_3, usage_user::float AS usage_user_2, usage_user::float AS usage_user_4, usage_user_2 AS usage_user_2_1 FROM cpu");
// Only include measurements with at least one field projection
let stmt = parse_select("SELECT usage_idle FROM cpu, disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu"
);
// Field does not exist in single measurement
let stmt = parse_select("SELECT usage_idle, bytes_free FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle, bytes_free AS bytes_free FROM cpu"
);
// Field exists in each measurement
let stmt = parse_select("SELECT usage_idle, bytes_free FROM cpu, disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle, bytes_free::integer AS bytes_free FROM cpu, disk"
);
}
/// Validate the expansion of the `FROM` clause using regular expressions
#[test]
fn from_expand_wildcards() {
let namespace = MockSchemaProvider::default();
// Regex, match, fields from multiple measurements
let stmt = parse_select("SELECT bytes_free, bytes_read FROM /d/");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes_free::integer AS bytes_free, bytes_read::integer AS bytes_read FROM disk, diskio"
);
// Regex matches multiple measurement, but only one has a matching field
let stmt = parse_select("SELECT bytes_free FROM /d/");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes_free::integer AS bytes_free FROM disk"
);
// Exact, no match
let stmt = parse_select("SELECT usage_idle FROM foo");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert!(stmt.from.is_empty());
// Regex, no match
let stmt = parse_select("SELECT bytes_free FROM /^d$/");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert!(stmt.from.is_empty());
}
/// Expanding the projection using wildcards
#[test]
fn projection_expand_wildcards() {
let namespace = MockSchemaProvider::default();
// Single wildcard, single measurement
let stmt = parse_select("SELECT * FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, cpu::tag AS cpu, host::tag AS host, region::tag AS region, usage_idle::float AS usage_idle, usage_system::float AS usage_system, usage_user::float AS usage_user FROM cpu"
);
let stmt = parse_select("SELECT * FROM cpu, disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes_free::integer AS bytes_free, bytes_used::integer AS bytes_used, cpu::tag AS cpu, device::tag AS device, host::tag AS host, region::tag AS region, usage_idle::float AS usage_idle, usage_system::float AS usage_system, usage_user::float AS usage_user FROM cpu, disk"
);
// Regular expression selects fields from multiple measurements
let stmt = parse_select("SELECT /usage|bytes/ FROM cpu, disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes_free::integer AS bytes_free, bytes_used::integer AS bytes_used, usage_idle::float AS usage_idle, usage_system::float AS usage_system, usage_user::float AS usage_user FROM cpu, disk"
);
// Selective wildcard for tags
let stmt = parse_select("SELECT *::tag, usage_idle FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, cpu::tag AS cpu, host::tag AS host, region::tag AS region, usage_idle::float AS usage_idle FROM cpu"
);
// Selective wildcard for tags only should not select any measurements
let stmt = parse_select("SELECT *::tag FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert!(stmt.from.is_empty());
// Selective wildcard for fields
let stmt = parse_select("SELECT *::field FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle, usage_system::float AS usage_system, usage_user::float AS usage_user FROM cpu"
);
// Mixed fields and wildcards
let stmt = parse_select("SELECT usage_idle, *::tag FROM cpu");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle, cpu::tag AS cpu, host::tag AS host, region::tag AS region FROM cpu"
);
let stmt = parse_select("SELECT * FROM merge_00, merge_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, col0::float AS col0, col0::tag AS col0_1, col1::float AS col1, col1::tag AS col1_1, col2::string AS col2, col3::string AS col3 FROM merge_00, merge_01"
);
// This should only select merge_01, as col0 is a tag in merge_00
let stmt = parse_select("SELECT /col0/ FROM merge_00, merge_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, col0::float AS col0, col0::tag AS col0_1 FROM merge_01"
);
}
/// Validate type resolution of [`VarRef`] nodes in the `WHERE` clause.
#[test]
fn condition() {
let namespace = MockSchemaProvider::default();
// resolves float field
let stmt = parse_select("SELECT usage_idle FROM cpu WHERE usage_user > 0");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu WHERE usage_user::float > 0"
);
// resolves tag field
let stmt = parse_select("SELECT usage_idle FROM cpu WHERE cpu =~ /foo/");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu WHERE cpu::tag =~ /foo/"
);
// Does not resolve an unknown field
let stmt = parse_select("SELECT usage_idle FROM cpu WHERE non_existent = 'bar'");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu WHERE non_existent = 'bar'"
);
// Handles multiple measurements; `bytes_free` is from the `disk` measurement
let stmt =
parse_select("SELECT usage_idle, bytes_free FROM cpu, disk WHERE bytes_free = 3");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle, bytes_free::integer AS bytes_free FROM cpu, disk WHERE bytes_free::integer = 3"
);
// Resolves recursively through subqueries and aliases
let stmt = parse_select("SELECT bytes FROM (SELECT bytes_free AS bytes FROM disk WHERE bytes_free = 3) WHERE bytes > 0");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes::integer AS bytes FROM (SELECT time::timestamp AS time, bytes_free::integer AS bytes FROM disk WHERE bytes_free::integer = 3) WHERE bytes::integer > 0"
);
}
#[test]
fn group_by() {
let namespace = MockSchemaProvider::default();
let stmt = parse_select("SELECT usage_idle FROM cpu GROUP BY host");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu GROUP BY host::tag"
);
// resolves tag types from multiple measurements
let stmt =
parse_select("SELECT usage_idle, bytes_free FROM cpu, disk GROUP BY host, device");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle, bytes_free::integer AS bytes_free FROM cpu, disk GROUP BY host::tag, device::tag"
);
// does not resolve non-existent tag
let stmt = parse_select("SELECT usage_idle FROM cpu GROUP BY host, non_existent");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu GROUP BY host::tag, non_existent"
);
let stmt = parse_select("SELECT usage_idle FROM cpu GROUP BY *");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu GROUP BY cpu::tag, host::tag, region::tag"
);
// Does not include tags in projection when expanded in GROUP BY
let stmt = parse_select("SELECT * FROM cpu GROUP BY *");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle, usage_system::float AS usage_system, usage_user::float AS usage_user FROM cpu GROUP BY cpu::tag, host::tag, region::tag"
);
// Does include explicitly listed tags in projection
let stmt = parse_select("SELECT host, * FROM cpu GROUP BY *");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, host::tag AS host, usage_idle::float AS usage_idle, usage_system::float AS usage_system, usage_user::float AS usage_user FROM cpu GROUP BY cpu::tag, host::tag, region::tag"
);
//
// TIME
//
// Explicitly adds an upper bound for the time-range for aggregate queries
let stmt = parse_select("SELECT mean(usage_idle) FROM cpu WHERE time >= '2022-04-09T12:13:14Z' GROUP BY TIME(30s)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, mean(usage_idle::float) AS mean FROM cpu WHERE time >= 1649506394000000000 AND time <= 1672531200000000000 GROUP BY TIME(30s)"
);
// Does not add an upper bound time range if already specified
let stmt = parse_select("SELECT mean(usage_idle) FROM cpu WHERE time >= '2022-04-09T12:13:14Z' AND time < '2022-04-10T12:00:00Z' GROUP BY TIME(30s)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, mean(usage_idle::float) AS mean FROM cpu WHERE time >= 1649506394000000000 AND time <= 1649591999999999999 GROUP BY TIME(30s)"
);
}
/// Uncategorized fallible cases
#[test]
fn fallible() {
let namespace = MockSchemaProvider::default();
// invalid expression, combining float and string fields
let stmt = parse_select("SELECT field_f64 + field_str FROM all_types");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_contains!(
err.to_string(),
"Error during planning: incompatible operands for operator +: float and string"
);
// invalid expression, combining string and string fields, which is compatible with InfluxQL
let stmt = parse_select("SELECT field_str + field_str FROM all_types");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_contains!(
err.to_string(),
"Error during planning: incompatible operands for operator +: string and string"
);
// Invalid regex
let stmt = parse_select("SELECT usage_idle FROM /(not/");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_contains!(err.to_string(), "invalid regular expression");
let stmt = parse_select("SELECT *::field + *::tag FROM cpu");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_eq!(
err.to_string(),
"Error during planning: unsupported binary expression: contains a wildcard or regular expression"
);
let stmt = parse_select("SELECT COUNT(*) + SUM(usage_idle) FROM cpu");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_eq!(
err.to_string(),
"Error during planning: unsupported binary expression: contains a wildcard or regular expression"
);
let stmt = parse_select("SELECT COUNT(*::tag) FROM cpu");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_eq!(
err.to_string(),
"Error during planning: unable to use tag as wildcard in count()"
);
let stmt = parse_select("SELECT usage_idle FROM cpu SLIMIT 1");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_eq!(
err.to_string(),
"This feature is not implemented: SLIMIT or SOFFSET"
);
let stmt = parse_select("SELECT usage_idle FROM cpu SOFFSET 1");
let err = rewrite_select_statement(&namespace, &stmt).unwrap_err();
assert_eq!(
err.to_string(),
"This feature is not implemented: SLIMIT or SOFFSET"
);
}
/// Verify subqueries
#[test]
fn subqueries() {
let namespace = MockSchemaProvider::default();
// Subquery, exact, match
let stmt = parse_select("SELECT usage_idle FROM (SELECT usage_idle FROM cpu)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM (SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu)"
);
// Subquery, regex, match
let stmt =
parse_select("SELECT bytes_free FROM (SELECT bytes_free, bytes_read FROM /d/)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes_free::integer AS bytes_free FROM (SELECT time::timestamp AS time, bytes_free::integer AS bytes_free, bytes_read::integer AS bytes_read FROM disk, diskio)"
);
// Subquery, exact, no match
let stmt = parse_select("SELECT usage_idle FROM (SELECT usage_idle FROM foo)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert!(stmt.from.is_empty());
// Subquery, regex, no match
let stmt = parse_select("SELECT bytes_free FROM (SELECT bytes_free FROM /^d$/)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert!(stmt.from.is_empty());
// Correct data type is resolved from subquery
let stmt =
parse_select("SELECT *::field FROM (SELECT usage_system + usage_idle FROM cpu)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_system_usage_idle::float AS usage_system_usage_idle FROM (SELECT time::timestamp AS time, usage_system::float + usage_idle::float AS usage_system_usage_idle FROM cpu)"
);
// Subquery, no fields projected should be dropped
let stmt = parse_select("SELECT usage_idle FROM cpu, (SELECT usage_system FROM cpu)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu"
);
// Outer query are permitted to project tags only, as long as there are other fields
// in the subquery
let stmt = parse_select("SELECT cpu FROM (SELECT cpu, usage_system FROM cpu)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, cpu::tag AS cpu FROM (SELECT time::timestamp AS time, cpu::tag AS cpu, usage_system::float AS usage_system FROM cpu)"
);
// Outer FROM should be empty, as the subquery does not project any fields
let stmt = parse_select("SELECT cpu FROM (SELECT cpu FROM cpu)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert!(stmt.from.is_empty());
// GROUP BY clauses
// Projects cpu tag in outer query, as it was specified in the GROUP BY of the subquery
let stmt = parse_select("SELECT * FROM (SELECT usage_system FROM cpu GROUP BY cpu)");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, cpu::tag AS cpu, usage_system::float AS usage_system FROM (SELECT time::timestamp AS time, usage_system::float AS usage_system FROM cpu GROUP BY cpu::tag)"
);
// Specifically project cpu tag from GROUP BY
let stmt = parse_select(
"SELECT cpu, usage_system FROM (SELECT usage_system FROM cpu GROUP BY cpu)",
);
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, cpu::tag AS cpu, usage_system::float AS usage_system FROM (SELECT time::timestamp AS time, usage_system::float AS usage_system FROM cpu GROUP BY cpu::tag)"
);
// Projects cpu tag in outer query separately from aliased cpu tag "foo"
let stmt = parse_select(
"SELECT * FROM (SELECT cpu as foo, usage_system FROM cpu GROUP BY cpu)",
);
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, cpu::tag AS cpu, foo::tag AS foo, usage_system::float AS usage_system FROM (SELECT time::timestamp AS time, cpu::tag AS foo, usage_system::float AS usage_system FROM cpu GROUP BY cpu::tag)"
);
// Projects non-existent foo as a tag in the outer query
let stmt = parse_select(
"SELECT * FROM (SELECT usage_idle FROM cpu GROUP BY foo) GROUP BY cpu",
);
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, foo::tag AS foo, usage_idle::float AS usage_idle FROM (SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu GROUP BY foo) GROUP BY cpu::tag"
);
// Normalises time to all leaf subqueries
let stmt = parse_select(
"SELECT * FROM (SELECT MAX(value) FROM (SELECT DISTINCT(usage_idle) AS value FROM cpu)) GROUP BY cpu",
);
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, max::float AS max FROM (SELECT time::timestamp AS time, max(value::float) AS max FROM (SELECT time::timestamp AS time, distinct(usage_idle::float) AS value FROM cpu FILL(NONE)) FILL(NONE)) GROUP BY cpu::tag"
);
// Projects non-existent tag, "bytes_free" from cpu and also bytes_free field from disk
// NOTE: InfluxQL OG does something really strange and arguably incorrect
//
// ```
// SELECT * FROM (SELECT usage_idle FROM cpu GROUP BY bytes_free), (SELECT bytes_free FROM disk) GROUP BY cpu
// ```
//
// The output shows that InfluxQL expanded the non-existent bytes_free tag (bytes_free1)
// from the cpu measurement, and the bytes_free field from the disk measurement as two
// separate columns but when producing the results, read the data from the `bytes_free`
// field for the disk table.
//
// ```
// name: cpu
// tags: cpu=cpu-total
// time bytes_free bytes_free_1 usage_idle
// ---- ---------- ------------ ----------
// 1667181600000000000 2.98
// 1667181610000000000 2.99
// ... trimmed for brevity
//
// name: disk
// tags: cpu=
// time bytes_free bytes_free_1 usage_idle
// ---- ---------- ------------ ----------
// 1667181600000000000 1234 1234
// 1667181600000000000 3234 3234
// ... trimmed for brevity
// ```
let stmt = parse_select(
"SELECT * FROM (SELECT usage_idle FROM cpu GROUP BY bytes_free), (SELECT bytes_free FROM disk) GROUP BY cpu",
);
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes_free::integer AS bytes_free, bytes_free::tag AS bytes_free_1, usage_idle::float AS usage_idle FROM (SELECT time::timestamp AS time, usage_idle::float AS usage_idle FROM cpu GROUP BY bytes_free), (SELECT time::timestamp AS time, bytes_free::integer AS bytes_free FROM disk) GROUP BY cpu::tag"
);
}
/// `DISTINCT` clause and `distinct` function
#[test]
fn projection_distinct() {
let namespace = MockSchemaProvider::default();
// COUNT(DISTINCT)
let stmt = parse_select("SELECT COUNT(DISTINCT bytes_free) FROM disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, count(distinct(bytes_free::integer)) AS count FROM disk"
);
let stmt = parse_select("SELECT DISTINCT bytes_free FROM disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, distinct(bytes_free::integer) AS \"distinct\" FROM disk"
);
}
/// Projections with unary and binary expressions
#[test]
fn projection_unary_binary_expr() {
let namespace = MockSchemaProvider::default();
// Binary expression
let stmt = parse_select("SELECT bytes_free+bytes_used FROM disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, bytes_free::integer + bytes_used::integer AS bytes_free_bytes_used FROM disk"
);
// Unary expressions
let stmt = parse_select("SELECT -bytes_free FROM disk");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, -1 * bytes_free::integer AS bytes_free FROM disk"
);
}
/// Projections which contain function calls
#[test]
fn projection_call_expr() {
let mut namespace = MockSchemaProvider::default();
// Add a schema with tags that could conflict with aliasing against an
// existing call expression, in this case "last"
namespace.add_schema(
SchemaBuilder::new()
.measurement("conflicts")
.timestamp()
.tag("last")
.influx_field("field_f64", InfluxFieldType::Float)
.build()
.unwrap(),
);
let stmt = parse_select("SELECT COUNT(field_i64) FROM temp_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, count(field_i64::integer) AS count FROM temp_01"
);
// Duplicate aggregate columns
let stmt = parse_select("SELECT COUNT(field_i64), COUNT(field_i64) FROM temp_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, count(field_i64::integer) AS count, count(field_i64::integer) AS count_1 FROM temp_01"
);
let stmt = parse_select("SELECT COUNT(field_f64) FROM temp_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, count(field_f64::float) AS count FROM temp_01"
);
// Expands all fields
let stmt = parse_select("SELECT COUNT(*) FROM temp_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, count(field_f64::float) AS count_field_f64, count(field_i64::integer) AS count_field_i64, count(field_str::string) AS count_field_str, count(field_u64::unsigned) AS count_field_u64, count(shared_field0::float) AS count_shared_field0 FROM temp_01"
);
// Expands matching fields
let stmt = parse_select("SELECT COUNT(/64$/) FROM temp_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, count(field_f64::float) AS count_field_f64, count(field_i64::integer) AS count_field_i64, count(field_u64::unsigned) AS count_field_u64 FROM temp_01"
);
// Expands only numeric fields
let stmt = parse_select("SELECT SUM(*) FROM temp_01");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, sum(field_f64::float) AS sum_field_f64, sum(field_i64::integer) AS sum_field_i64, sum(field_u64::unsigned) AS sum_field_u64, sum(shared_field0::float) AS sum_shared_field0 FROM temp_01"
);
// Handles conflicts when call expression is renamed to match an existing tag
let stmt = parse_select("SELECT LAST(field_f64), last FROM conflicts");
let stmt = rewrite_select_statement(&namespace, &stmt).unwrap();
assert_eq!(
stmt.to_string(),
"SELECT time::timestamp AS time, last(field_f64::float) AS last, last::tag AS last_1 FROM conflicts"
);
}
}
#[test]
fn test_has_wildcards() {
// no GROUP BY
let sel = parse_select("select a from b");
let res = has_wildcards(&sel);
assert!(!res.0);
assert!(!res.1);
let sel = parse_select("select a from b group by c");
let res = has_wildcards(&sel);
assert!(!res.0);
assert!(!res.1);
let sel = parse_select("select * from b group by c");
let res = has_wildcards(&sel);
assert!(res.0);
assert!(!res.1);
let sel = parse_select("select /a/ from b group by c");
let res = has_wildcards(&sel);
assert!(res.0);
assert!(!res.1);
let sel = parse_select("select a from b group by *");
let res = has_wildcards(&sel);
assert!(!res.0);
assert!(res.1);
let sel = parse_select("select a from b group by /a/");
let res = has_wildcards(&sel);
assert!(!res.0);
assert!(res.1);
let sel = parse_select("select * from b group by *");
let res = has_wildcards(&sel);
assert!(res.0);
assert!(res.1);
let sel = parse_select("select /a/ from b group by /b/");
let res = has_wildcards(&sel);
assert!(res.0);
assert!(res.1);
// finds wildcard in nested expressions
let sel = parse_select("select COUNT(*) from b group by *");
let res = has_wildcards(&sel);
assert!(res.0);
assert!(res.1);
// does not traverse subqueries
let sel = parse_select("select a from (select * from c group by *) group by c");
let res = has_wildcards(&sel);
assert!(!res.0);
assert!(!res.1);
}
}
|
use super::{Image, Color};
use std::io::{self, Read, Write, Seek};
const FULL_HEADER_SIZE: usize = 54;
const IMAGE_OFFSET: usize = FULL_HEADER_SIZE;
const DATA_HEADER_SIZE: usize = 40;
const BPP: i16 = 24;
const PIXELS_PER_METER: usize = 2835;
pub fn write_bmp<W: Write>(image: &Image<Color>, writer: &mut W)
-> io::Result<usize>
{
let row_size = (image.width * 3 + 3) & !3;
let row_padding = row_size - image.width * 3;
let image_size = FULL_HEADER_SIZE + row_size * image.height;
try!(writer.write(b"BM"));
try!(writer.write(&le32(image_size as i32)));
try!(writer.write(&[0, 0, 0, 0])); // Reserved
try!(writer.write(&le32(IMAGE_OFFSET as i32)));
try!(writer.write(&le32(DATA_HEADER_SIZE as i32)));
try!(writer.write(&le32(image.width as i32)));
try!(writer.write(&le32(image.height as i32)));
try!(writer.write(&le16(1)));
try!(writer.write(&le16(BPP)));
try!(writer.write(&le32(0)));
try!(writer.write(&le32((row_size * image.height) as i32)));
try!(writer.write(&le32(PIXELS_PER_METER as i32)));
try!(writer.write(&le32(PIXELS_PER_METER as i32)));
try!(writer.write(&le32(0))); // Indexed colors in image
try!(writer.write(&le32(0))); // Important colors in image
for chunk in image.bytes().chunks(image.width * 3).rev() {
try!(writer.write(chunk));
try!(writer.write(&[0, 0, 0, 0][..row_padding]));
}
Ok(image_size)
}
pub fn read_bmp<R: Read + Seek>(reader: &mut R) -> io::Result<Image<Color>> {
let mut header = [0; FULL_HEADER_SIZE];
try!(reader.read_exact(&mut header));
if &header[..2] != b"BM" {
return Err(io::Error::new(io::ErrorKind::Other,
"The magic number should be BM"));
}
let bpp = read_le16(&header[28..30]);
if bpp != BPP {
return Err(io::Error::new(io::ErrorKind::Other,
"Only 24 BPP is supported"));
}
let width = read_le32(&header[18..22]) as usize;
let (height, inverted) = {
let height = read_le32(&header[22..26]);
(height.abs() as usize, height < 0)
};
let image_offset = read_le32(&header[10..14]) as usize;
try!(reader.seek(io::SeekFrom::Start(image_offset as u64)));
let row_width = (width * 3 + 3) & !3;
let mut image_buf = vec![0; row_width * height];
try!(reader.read_exact(&mut image_buf[..]));
let mut image = Image::with_dimensions(width, height);
if inverted {
for (source, mut dest) in image_buf.chunks(row_width)
.zip(image.bytes_mut().chunks_mut(width * 3)) {
dest.copy_from_slice(&source[..width * 3]);
}
} else {
for (source, mut dest) in image_buf.chunks(row_width).rev()
.zip(image.bytes_mut().chunks_mut(width * 3)) {
dest.copy_from_slice(&source[..width * 3]);
}
}
Ok(image)
}
fn le16(value: i16) -> [u8; 2] {
[(value >> 0) as u8,
(value >> 8) as u8]
}
fn le32(value: i32) -> [u8; 4] {
[(value >> 0) as u8,
(value >> 8) as u8,
(value >> 16) as u8,
(value >> 24) as u8]
}
fn read_le16(value: &[u8]) -> i16 {
(value[0] as i16) << 0 |
(value[1] as i16) << 8
}
fn read_le32(value: &[u8]) -> i32 {
(value[0] as i32) << 0 |
(value[1] as i32) << 8 |
(value[2] as i32) << 16 |
(value[3] as i32) << 24
}
|
use std::collections::BTreeMap;
use crossterm::style::{style, Attribute, Color};
use pueue::state::State;
use pueue::task::Task;
/// This is a simple small helper function with the purpose of easily styling text,
/// while also prevent styling if we're printing to a non-tty output.
/// If there's any kind of styling in the code, it should be done with the help of this function.
pub fn style_text(
text: &str,
is_tty: bool,
color: Option<Color>,
attribute: Option<Attribute>,
) -> String {
// No tty, we aren't allowed to do any styling
if !is_tty {
return text.to_string();
}
let mut styled = style(text);
if let Some(color) = color {
styled = styled.with(color);
}
if let Some(attribute) = attribute {
styled = styled.attribute(attribute);
}
styled.to_string()
}
pub fn has_special_columns(tasks: &BTreeMap<usize, Task>) -> (bool, bool) {
// Check whether there are any delayed tasks.
// In case there are, we need to add another column to the table.
let has_delayed_tasks = tasks.iter().any(|(_id, task)| task.enqueue_at.is_some());
// Check whether there are any tasks with dependencies.
// In case there are, we need to add another column to the table.
let has_dependencies = tasks
.iter()
.any(|(_id, task)| !task.dependencies.is_empty());
(has_delayed_tasks, has_dependencies)
}
/// Return a nicely formatted headline that's displayed at the start of `pueue status`
pub fn get_default_headline(state: &State, is_tty: bool) -> String {
// Print the current daemon state.
let daemon_status_text = if state.running {
style_text("running", is_tty, Some(Color::Green), None)
} else {
style_text("paused", is_tty, Some(Color::Yellow), None)
};
let parallel = state.settings.daemon.default_parallel_tasks;
format!(
"{} ({} parallel): {}",
style_text("Default queue", is_tty, None, Some(Attribute::Bold)),
parallel,
daemon_status_text
)
}
/// Return a nicely formatted headline that's displayed above group tables
pub fn get_group_headline(group: &str, state: &State, is_tty: bool) -> String {
// Group name
let group_text = style(format!("Group \"{}\"", group)).attribute(Attribute::Bold);
let parallel = state.settings.daemon.groups.get(group).unwrap();
// Print the current state of the group.
if *state.groups.get(group).unwrap() {
format!(
"{} ({} parallel): {}",
group_text,
parallel,
style_text("running", is_tty, Some(Color::Green), None),
)
} else {
format!(
"{} ({} parallel): {}",
group_text,
parallel,
style_text("paused", is_tty, Some(Color::Yellow), None),
)
}
}
/// Get all tasks that aren't assigned to a group
/// Those tasks are displayed first.
pub fn get_default_tasks(tasks: &BTreeMap<usize, Task>) -> BTreeMap<usize, Task> {
let mut default_tasks = BTreeMap::new();
for (id, task) in tasks.iter() {
if task.group.is_none() {
default_tasks.insert(*id, task.clone());
}
}
default_tasks
}
/// Sort given tasks by their groups
/// This is needed to print a table for each group
pub fn sort_tasks_by_group(
tasks: &BTreeMap<usize, Task>,
) -> BTreeMap<String, BTreeMap<usize, Task>> {
// We use a BTreeMap, since groups should be ordered alphabetically by their name
let mut sorted_task_groups = BTreeMap::new();
for (id, task) in tasks.iter() {
if let Some(group) = &task.group {
if !sorted_task_groups.contains_key(group) {
sorted_task_groups.insert(group.clone(), BTreeMap::new());
}
sorted_task_groups
.get_mut(group)
.unwrap()
.insert(*id, task.clone());
}
}
sorted_task_groups
}
|
// Copyright (c) 2021 Quark Container Authors / 2018 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use core::sync::atomic::AtomicU64;
use core::sync::atomic::Ordering;
use spin::Mutex;
use alloc::sync::Arc;
use alloc::string::String;
use alloc::string::ToString;
use alloc::collections::btree_map::BTreeMap;
use lazy_static::lazy_static;
lazy_static! {
pub static ref ALL_METRICS: Mutex<MetricSet> = Mutex::new(MetricSet::New());
}
pub fn NewU64Metric(name: &str, sync: bool, description: &str) -> Arc<U64Metric> {
return ALL_METRICS.lock().RegisterU64Metric(name.to_string(), sync, description.to_string())
}
pub trait Metric: Send + Sync {
fn Value(&self) -> u64;
}
pub struct U64Metric {
val: AtomicU64,
}
impl Metric for U64Metric {
fn Value(&self) -> u64 {
return self.val.load(Ordering::SeqCst)
}
}
impl U64Metric {
pub fn New() -> Self {
return Self {
val: AtomicU64::new(0),
}
}
pub fn Incr(&self) {
self.val.fetch_add(1, Ordering::SeqCst);
}
pub fn IncrBy(&self, v: u64) {
self.val.fetch_add(v, Ordering::SeqCst);
}
}
pub struct MetricData {
pub description: String,
pub sync: bool,
pub metric: Arc<Metric>,
}
pub struct MetricSet {
pub m: BTreeMap<String, MetricData>
}
impl MetricSet {
pub fn New() -> Self {
return Self {
m: BTreeMap::new(),
}
}
pub fn RegisterU64Metric(&mut self, name: String, sync: bool, description: String) -> Arc<U64Metric> {
if self.m.contains_key(&name) {
panic!("Unable to create metric: {}", name);
}
let metric = Arc::new(U64Metric::New());
let data = MetricData {
description: description,
sync: sync,
metric: metric.clone(),
};
self.m.insert(name, data);
return metric;
}
}
|
use std::default::Default;
use crate::components::input::text_input_modal::TextInputModal;
use crate::core::model::MainWindow;
use yew::prelude::*;
use yew::services::ConsoleService;
pub enum Msg {
Exit,
ShowNewPrefab,
ShowNewProject,
}
#[allow(dead_code)]
pub struct NavBar {
import_prefab_modal: TextInputModal,
projects: Vec<String>,
onsignal: Option<Callback<MainWindow>>,
console: ConsoleService,
ws_connected: bool,
}
#[derive(Clone, PartialEq)]
pub struct Props {
pub import_prefab_modal: TextInputModal,
pub projects: Vec<String>,
pub onsignal: Option<Callback<MainWindow>>,
pub ws_connected: bool,
}
impl Default for Props {
fn default() -> Self {
Props {
import_prefab_modal: TextInputModal::new("Import Prefab"),
projects: vec![],
onsignal: None,
ws_connected: false,
}
}
}
impl NavBar {
pub fn get_view(&self) -> Html<Self> {
self.view()
}
}
impl Component for NavBar {
type Message = Msg;
type Properties = Props;
fn create(props: Self::Properties, _: ComponentLink<Self>) -> Self {
NavBar {
import_prefab_modal: props.import_prefab_modal,
projects: props.projects,
onsignal: props.onsignal,
console: ConsoleService::new(),
ws_connected: props.ws_connected,
}
}
fn update(&mut self, msg: Self::Message) -> ShouldRender {
match msg {
Msg::Exit => true,
Msg::ShowNewPrefab => match self.onsignal {
Some(ref _cb) => true,
None => {
self.console.log("No CB arranged");
false
}
},
Msg::ShowNewProject => true,
};
true
}
fn change(&mut self, props: Self::Properties) -> ShouldRender {
self.import_prefab_modal = props.import_prefab_modal;
self.onsignal = props.onsignal;
self.ws_connected = props.ws_connected;
true
}
}
impl Renderable<NavBar> for NavBar {
fn view(&self) -> Html<Self> {
html! {
<div style=" display: block; white-space: nowrap; backgorund-color: #000; width: 40px; height: 100%; ",></div>
<nav uk-navbar="", class="uk-navbar-container noselect", >
<div class="uk-navbar-left", >
<ul class="uk-navbar-nav", >
<p href={ "#" }, class="editor-title uk-navbar-item", >{"Amethyst Editor"}</p>
<li class="",>
<a uk-icon="icon: file",>{ "Projects" }</a>
<div class="uk-navbar-dropdown", >
<ul class="uk-nav uk-navbar-dropdown-nav", >
<li>
<a href="#new-project-modal", uk-toggle="", >{ "New Project" }</a>
</li>
<li>
<a href="#oc-project-browser", uk-toggle="", >{ "Open Project" }</a>
</li>
<li><a href="#not-implemented", uk-toggle="", >{ "Preferences" }</a></li>
</ul>
</div>
</li>
<li>
<a>{ "Prefabs" }</a>
<div class="uk-navbar-dropdown", >
<ul class="uk-nav uk-navbar-dropdown-nav", >
<li>
<a href="#new-prefab-modal", uk-toggle="", >{ "New" }</a>
</li>
<li>
<a href="#import-prefab-freeform", uk-toggle="", >{ "Load from RON or Rust" }</a>
</li>
</ul>
</div>
</li>
<li><a href="#not-implemented", uk-toggle="", >{ "Help" }</a></li>
<li>
<a href="#",>
<span class="uk-icon uk-margin-small-right", uk-icon=if self.ws_connected {"icon: check"} else {"icon: close"},></span>
{"Server Connection"}
</a>
</li>
</ul>
</div>
</nav>
}
}
}
|
fn main() {
windows::core::build_legacy! {
Windows::Win32::Foundation::{CloseHandle, GetLastError, BSTR, RECT, WIN32_ERROR},
Windows::Win32::Gaming::HasExpandedResources,
Windows::Win32::Graphics::Direct2D::CLSID_D2D1Shadow,
Windows::Win32::Graphics::Direct3D11::D3DDisassemble11Trace,
Windows::Win32::Graphics::Direct3D12::D3D12_DEFAULT_BLEND_FACTOR_ALPHA,
Windows::Win32::Graphics::Dxgi::Common::{DXGI_FORMAT, DXGI_MODE_DESC},
Windows::Win32::Graphics::Dxgi::{CreateDXGIFactory1, IDXGIFactory7, DXGI_ADAPTER_FLAG, DXGI_ERROR_INVALID_CALL},
Windows::Win32::Graphics::Hlsl::D3DCOMPILER_DLL,
Windows::Win32::Networking::Ldap::ldapsearch,
Windows::Win32::Security::Authorization::ACCESS_MODE,
Windows::Win32::System::Com::StructuredStorage::CreateStreamOnHGlobal,
Windows::Win32::System::Com::{CreateUri, IStream, IUri, STREAM_SEEK},
Windows::Win32::System::Diagnostics::Debug::{MiniDumpWriteDump, MINIDUMP_TYPE},
Windows::Win32::System::Threading::{CreateEventW, SetEvent, WaitForSingleObject, WAIT_OBJECT_0},
Windows::Win32::System::UpdateAgent::IAutomaticUpdates,
Windows::Win32::UI::Accessibility::UIA_ScrollPatternNoScroll,
Windows::Win32::UI::Animation::{UIAnimationManager, UIAnimationTransitionLibrary},
Windows::Win32::UI::Controls::Dialogs::CHOOSECOLORW,
Windows::Win32::UI::WindowsAndMessaging::{PROPENUMPROCA, PROPENUMPROCW, WM_KEYUP},
};
}
|
//! Windows Common Item Dialog
//! Win32 Vista
mod utils;
mod file_dialog;
mod message_dialog;
mod thread_future;
|
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
fn main() {
println!("{:?}", mystruct{ _bitfield_1: mystruct::new_bitfield_1(0, // a
0, // b
0, // c
0, // d
0), // e
f: 0,
g: 0, });
}
|
use crate::image_searcher::{GoogleImageSeacher, ImageSearcher, RapidApiImageSeacher};
use serde::Deserialize;
use serenity::{
async_trait,
model::{channel::Message, gateway::Ready},
prelude::*,
};
use std::path::Path;
use thiserror::Error;
mod image_searcher;
#[derive(Error, Debug)]
pub enum ImageBotError {
#[error("The api returned an unexpected value")]
Api(String),
#[error("Error sending the request")]
NetworkIo(#[from] reqwest::Error),
#[error("Error loading the config file")]
DiskIo(#[from] std::io::Error),
#[error("Error parsing the config file")]
ConfigParse(#[from] toml::de::Error),
}
#[derive(Deserialize)]
struct Config {
discord_api_key: String,
image_search_api_key: String,
google_cx_id: Option<String>,
use_google_search: bool,
}
impl Config {
fn try_from_path<P: AsRef<Path>>(path: P) -> Result<Self, ImageBotError> {
let file = std::fs::read(path)?;
Ok(toml::from_slice::<Self>(&file)?)
}
}
struct Handler {
searcher: Box<dyn ImageSearcher + Send + Sync>,
}
impl Handler {
fn new<S: ImageSearcher + Send + Sync + 'static>(searcher: S) -> Self {
Self {
searcher: Box::new(searcher),
}
}
}
#[async_trait]
impl EventHandler for Handler {
// Set a handler for the `message` event - so that whenever a new message
// is received - the closure (or function) passed will be called.
//
// Event handlers are dispatched through a threadpool, and so multiple
// events can be dispatched simultaneously.
async fn message(&self, ctx: Context, msg: Message) {
let split_it = msg.content.split("!image");
// we skip the first element, because it is always BEFORE the first token found
// a. if not token is found, its equal to the whole string (the split has size 1)
// b. if ont token is found, we know the first part is not searched anyway
let query = split_it.skip(1).find(|word| !word.is_empty());
match query {
None => {}
Some(query) => {
let url = match self.searcher.search(query).await {
Err(e) => {
println!("Error getting the image URL: {}", e);
println!("Query: {}", query);
return;
}
Ok(url) => url,
};
if let Err(why) = msg.channel_id.say(&ctx.http, format!("{}", url)).await {
println!("Error sending message: {:?}", why);
}
}
}
}
// Set a handler to be called on the `ready` event. This is called when a
// shard is booted, and a READY payload is sent by Discord. This payload
// contains data like the current user's guild Ids, current user data,
// private channels, and more.
//
// In this case, just print what the current user's username is.
async fn ready(&self, _: Context, _ready: Ready) {}
}
#[tokio::main]
async fn main() {
// Configure the client with your Discord bot token in the environment.
let config = Config::try_from_path("./ImageBot.toml").unwrap();
let handler = match (config.use_google_search, config.google_cx_id) {
(false, _) => Handler::new(RapidApiImageSeacher::new(config.image_search_api_key)),
(true, Some(cx_id)) => {
Handler::new(GoogleImageSeacher::new(config.image_search_api_key, cx_id))
}
(true, None) => {
panic!("You need to specify the google_cx_id if you want to use the google search API!")
}
};
// Create a new instance of the Client, logging in as a bot. This will
// automatically prepend your bot token with "Bot ", which is a requirement
// by Discord for bot users.
let mut client = Client::new(&config.discord_api_key)
.event_handler(handler)
.await
.expect("Err creating client");
// Finally, start a single shard, and start listening to events.
//
// Shards will automatically attempt to reconnect, and will perform
// exponential backoff until it reconnects.
if let Err(why) = client.start().await {
println!("Client error: {:?}", why);
}
}
|
#[doc = "Reader of register SRCR2"]
pub type R = crate::R<u32, super::SRCR2>;
#[doc = "Reader of field `GPIOA`"]
pub type GPIOA_R = crate::R<bool, bool>;
#[doc = "Reader of field `GPIOB`"]
pub type GPIOB_R = crate::R<bool, bool>;
#[doc = "Reader of field `GPIOC`"]
pub type GPIOC_R = crate::R<bool, bool>;
#[doc = "Reader of field `GPIOD`"]
pub type GPIOD_R = crate::R<bool, bool>;
#[doc = "Reader of field `GPIOE`"]
pub type GPIOE_R = crate::R<bool, bool>;
#[doc = "Reader of field `GPIOF`"]
pub type GPIOF_R = crate::R<bool, bool>;
#[doc = "Reader of field `UDMA`"]
pub type UDMA_R = crate::R<bool, bool>;
#[doc = "Reader of field `USB0`"]
pub type USB0_R = crate::R<bool, bool>;
impl R {
#[doc = "Bit 0 - Port A Reset Control"]
#[inline(always)]
pub fn gpioa(&self) -> GPIOA_R {
GPIOA_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Port B Reset Control"]
#[inline(always)]
pub fn gpiob(&self) -> GPIOB_R {
GPIOB_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Port C Reset Control"]
#[inline(always)]
pub fn gpioc(&self) -> GPIOC_R {
GPIOC_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Port D Reset Control"]
#[inline(always)]
pub fn gpiod(&self) -> GPIOD_R {
GPIOD_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Port E Reset Control"]
#[inline(always)]
pub fn gpioe(&self) -> GPIOE_R {
GPIOE_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Port F Reset Control"]
#[inline(always)]
pub fn gpiof(&self) -> GPIOF_R {
GPIOF_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 13 - Micro-DMA Reset Control"]
#[inline(always)]
pub fn udma(&self) -> UDMA_R {
UDMA_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 16 - USB0 Reset Control"]
#[inline(always)]
pub fn usb0(&self) -> USB0_R {
USB0_R::new(((self.bits >> 16) & 0x01) != 0)
}
}
|
use diesel::{self, prelude::*};
use rocket_contrib::json::Json;
use crate::aulas_model::{AulasCC, AulasFull, InsertableAula};
use crate::schema;
use crate::DbConn;
#[post("/aulas/<id_professor>", data = "<aulas>")]
pub fn create_aulas(
conn: DbConn,
aulas: Json<Vec<InsertableAula>>,
id_professor: i32,
) -> Result<String, String> {
match delete_aulas(id_professor, &conn) {
Ok(_) => println!("OK"),
Err(_) => println!("Error"),
};
let inserted_rows = diesel::insert_into(schema::aulas::table)
.values(&aulas.0)
.execute(&conn.0)
.map_err(|err| -> String {
println!("Error inserting row: {:?}", err);
"Error inserting row into database".into()
})?;
Ok(format!("Inserted {} row(s).", inserted_rows))
}
#[get("/aulas/<id_professor>/cc")]
pub fn read_aulas_cc(id_professor: i32, conn: DbConn) -> Result<Json<Vec<AulasCC>>, String> {
schema::aulas::table
.filter(schema::aulas::id_professor.eq(id_professor))
.select((
schema::aulas::curso_id,
schema::aulas::componente_curricular_id,
))
.load(&conn.0)
.map_err(|err| -> String {
println!("Error querying aulas: {:?}", err);
"Error querying aulas from the database".into()
})
.map(Json)
}
#[get("/aulas/<id_professor>/full")]
pub fn read_aulas_full(id_professor: i32, conn: DbConn) -> Result<Json<Vec<AulasFull>>, String> {
schema::aulas::table
.inner_join(schema::componentes_curriculares::table)
.inner_join(schema::cursos::table)
.filter(schema::aulas::id_professor.eq(id_professor))
.select((
schema::aulas::id,
schema::aulas::id_professor,
schema::aulas::curso_id,
schema::aulas::componente_curricular_id,
schema::cursos::nome,
schema::cursos::nivel_ensino_id,
schema::componentes_curriculares::nome,
schema::componentes_curriculares::ch_semanal,
))
.load(&conn.0)
.map_err(|err| -> String {
println!("Error querying aulas: {:?}", err);
"Error querying aulas from the database".into()
})
.map(Json)
}
pub fn delete_aulas(id_professor: i32, conn: &DbConn) -> Result<String, String> {
let deleted_rows =
diesel::delete(schema::aulas::table.filter(schema::aulas::id_professor.eq(id_professor)))
.execute(&conn.0)
.map_err(|err| -> String {
println!("Error deleting row: {:?}", err);
"Error deleting row into database".into()
})?;
Ok(format!("Deleted {} row(s).", deleted_rows))
}
|
//! Test command for verifying the unwind emitted for each function.
//!
//! The `unwind` test command runs each function through the full code generator pipeline.
#![cfg_attr(feature = "cargo-clippy", allow(clippy::cast_ptr_alignment))]
use crate::subtest::{run_filecheck, Context, SubTest, SubtestResult};
use cranelift_codegen;
use cranelift_codegen::binemit::{FrameUnwindKind, FrameUnwindOffset, FrameUnwindSink, Reloc};
use cranelift_codegen::ir;
use cranelift_reader::TestCommand;
use std::borrow::Cow;
use std::fmt::Write;
struct TestUnwind;
pub fn subtest(parsed: &TestCommand) -> SubtestResult<Box<dyn SubTest>> {
assert_eq!(parsed.command, "fde");
if !parsed.options.is_empty() {
Err(format!("No options allowed on {}", parsed))
} else {
Ok(Box::new(TestUnwind))
}
}
impl SubTest for TestUnwind {
fn name(&self) -> &'static str {
"fde"
}
fn is_mutating(&self) -> bool {
false
}
fn needs_isa(&self) -> bool {
true
}
fn run(&self, func: Cow<ir::Function>, context: &Context) -> SubtestResult<()> {
let isa = context.isa.expect("unwind needs an ISA");
if func.signature.call_conv != cranelift_codegen::isa::CallConv::SystemV {
return run_filecheck(&"No unwind information.", context);
}
let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned());
comp_ctx.func.collect_frame_layout_info();
comp_ctx.compile(isa).expect("failed to compile function");
struct SimpleUnwindSink(pub Vec<u8>, pub usize, pub Vec<(Reloc, usize)>);
impl FrameUnwindSink for SimpleUnwindSink {
fn len(&self) -> FrameUnwindOffset {
self.0.len()
}
fn bytes(&mut self, b: &[u8]) {
self.0.extend_from_slice(b);
}
fn reloc(&mut self, r: Reloc, off: FrameUnwindOffset) {
self.2.push((r, off));
}
fn set_entry_offset(&mut self, off: FrameUnwindOffset) {
self.1 = off;
}
}
let mut sink = SimpleUnwindSink(Vec::new(), 0, Vec::new());
comp_ctx.emit_unwind_info(isa, FrameUnwindKind::Libunwind, &mut sink);
let mut text = String::new();
if sink.0.is_empty() {
writeln!(text, "No unwind information.").unwrap();
} else {
print_unwind_info(&mut text, &sink.0, isa.pointer_bytes());
writeln!(text, "Entry: {}", sink.1).unwrap();
writeln!(text, "Relocs: {:?}", sink.2).unwrap();
}
run_filecheck(&text, context)
}
}
fn register_name<'a>(register: gimli::Register) -> std::borrow::Cow<'a, str> {
Cow::Owned(format!("r{}", register.0))
}
fn print_unwind_info(text: &mut String, mem: &[u8], address_size: u8) {
let mut eh_frame = gimli::EhFrame::new(mem, gimli::LittleEndian);
eh_frame.set_address_size(address_size);
let bases = gimli::BaseAddresses::default();
dwarfdump::dump_eh_frame(text, &eh_frame, &bases, ®ister_name).unwrap();
}
mod dwarfdump {
// Copied from https://github.com/gimli-rs/gimli/blob/1e49ffc9af4ec64a1b7316924d73c933dd7157c5/examples/dwarfdump.rs
use gimli::UnwindSection;
use std::borrow::Cow;
use std::collections::HashMap;
use std::fmt::{self, Debug, Write};
use std::result;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(super) enum Error {
GimliError(gimli::Error),
IoError,
}
impl fmt::Display for Error {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> ::std::result::Result<(), fmt::Error> {
Debug::fmt(self, f)
}
}
impl From<gimli::Error> for Error {
fn from(err: gimli::Error) -> Self {
Self::GimliError(err)
}
}
impl From<fmt::Error> for Error {
fn from(_: fmt::Error) -> Self {
Self::IoError
}
}
pub(super) type Result<T> = result::Result<T, Error>;
pub(super) trait Reader: gimli::Reader<Offset = usize> + Send + Sync {}
impl<'input, Endian> Reader for gimli::EndianSlice<'input, Endian> where
Endian: gimli::Endianity + Send + Sync
{
}
pub(super) fn dump_eh_frame<R: Reader, W: Write>(
w: &mut W,
eh_frame: &gimli::EhFrame<R>,
bases: &gimli::BaseAddresses,
register_name: &dyn Fn(gimli::Register) -> Cow<'static, str>,
) -> Result<()> {
let mut cies = HashMap::new();
let mut entries = eh_frame.entries(bases);
loop {
match entries.next()? {
None => return Ok(()),
Some(gimli::CieOrFde::Cie(cie)) => {
writeln!(w, "{:#010x}: CIE", cie.offset())?;
writeln!(w, " length: {:#010x}", cie.entry_len())?;
// TODO: CIE_id
writeln!(w, " version: {:#04x}", cie.version())?;
// TODO: augmentation
writeln!(w, " code_align: {}", cie.code_alignment_factor())?;
writeln!(w, " data_align: {}", cie.data_alignment_factor())?;
writeln!(w, " ra_register: {:#x}", cie.return_address_register().0)?;
if let Some(encoding) = cie.lsda_encoding() {
writeln!(w, " lsda_encoding: {:#02x}", encoding.0)?;
}
if let Some((encoding, personality)) = cie.personality_with_encoding() {
write!(w, " personality: {:#02x} ", encoding.0)?;
dump_pointer(w, personality)?;
writeln!(w)?;
}
if let Some(encoding) = cie.fde_address_encoding() {
writeln!(w, " fde_encoding: {:#02x}", encoding.0)?;
}
dump_cfi_instructions(
w,
cie.instructions(eh_frame, bases),
true,
register_name,
)?;
writeln!(w)?;
}
Some(gimli::CieOrFde::Fde(partial)) => {
let mut offset = None;
let fde = partial.parse(|_, bases, o| {
offset = Some(o);
cies.entry(o)
.or_insert_with(|| eh_frame.cie_from_offset(bases, o))
.clone()
})?;
writeln!(w)?;
writeln!(w, "{:#010x}: FDE", fde.offset())?;
writeln!(w, " length: {:#010x}", fde.entry_len())?;
writeln!(w, " CIE_pointer: {:#010x}", offset.unwrap().0)?;
// TODO: symbolicate the start address like the canonical dwarfdump does.
writeln!(w, " start_addr: {:#018x}", fde.initial_address())?;
writeln!(
w,
" range_size: {:#018x} (end_addr = {:#018x})",
fde.len(),
fde.initial_address() + fde.len()
)?;
if let Some(lsda) = fde.lsda() {
write!(w, " lsda: ")?;
dump_pointer(w, lsda)?;
writeln!(w)?;
}
dump_cfi_instructions(
w,
fde.instructions(eh_frame, bases),
false,
register_name,
)?;
writeln!(w)?;
}
}
}
}
fn dump_pointer<W: Write>(w: &mut W, p: gimli::Pointer) -> Result<()> {
match p {
gimli::Pointer::Direct(p) => {
write!(w, "{:#018x}", p)?;
}
gimli::Pointer::Indirect(p) => {
write!(w, "({:#018x})", p)?;
}
}
Ok(())
}
#[allow(clippy::unneeded_field_pattern)]
fn dump_cfi_instructions<R: Reader, W: Write>(
w: &mut W,
mut insns: gimli::CallFrameInstructionIter<R>,
is_initial: bool,
register_name: &dyn Fn(gimli::Register) -> Cow<'static, str>,
) -> Result<()> {
use gimli::CallFrameInstruction::*;
// TODO: we need to actually evaluate these instructions as we iterate them
// so we can print the initialized state for CIEs, and each unwind row's
// registers for FDEs.
//
// TODO: We should print DWARF expressions for the CFI instructions that
// embed DWARF expressions within themselves.
if !is_initial {
writeln!(w, " Instructions:")?;
}
loop {
match insns.next() {
Err(e) => {
writeln!(w, "Failed to decode CFI instruction: {}", e)?;
return Ok(());
}
Ok(None) => {
if is_initial {
writeln!(w, " Instructions: Init State:")?;
}
return Ok(());
}
Ok(Some(op)) => match op {
SetLoc { address } => {
writeln!(w, " DW_CFA_set_loc ({:#x})", address)?;
}
AdvanceLoc { delta } => {
writeln!(w, " DW_CFA_advance_loc ({})", delta)?;
}
DefCfa { register, offset } => {
writeln!(
w,
" DW_CFA_def_cfa ({}, {})",
register_name(register),
offset
)?;
}
DefCfaSf {
register,
factored_offset,
} => {
writeln!(
w,
" DW_CFA_def_cfa_sf ({}, {})",
register_name(register),
factored_offset
)?;
}
DefCfaRegister { register } => {
writeln!(
w,
" DW_CFA_def_cfa_register ({})",
register_name(register)
)?;
}
DefCfaOffset { offset } => {
writeln!(w, " DW_CFA_def_cfa_offset ({})", offset)?;
}
DefCfaOffsetSf { factored_offset } => {
writeln!(
w,
" DW_CFA_def_cfa_offset_sf ({})",
factored_offset
)?;
}
DefCfaExpression { expression: _ } => {
writeln!(w, " DW_CFA_def_cfa_expression (...)")?;
}
Undefined { register } => {
writeln!(
w,
" DW_CFA_undefined ({})",
register_name(register)
)?;
}
SameValue { register } => {
writeln!(
w,
" DW_CFA_same_value ({})",
register_name(register)
)?;
}
Offset {
register,
factored_offset,
} => {
writeln!(
w,
" DW_CFA_offset ({}, {})",
register_name(register),
factored_offset
)?;
}
OffsetExtendedSf {
register,
factored_offset,
} => {
writeln!(
w,
" DW_CFA_offset_extended_sf ({}, {})",
register_name(register),
factored_offset
)?;
}
ValOffset {
register,
factored_offset,
} => {
writeln!(
w,
" DW_CFA_val_offset ({}, {})",
register_name(register),
factored_offset
)?;
}
ValOffsetSf {
register,
factored_offset,
} => {
writeln!(
w,
" DW_CFA_val_offset_sf ({}, {})",
register_name(register),
factored_offset
)?;
}
Register {
dest_register,
src_register,
} => {
writeln!(
w,
" DW_CFA_register ({}, {})",
register_name(dest_register),
register_name(src_register)
)?;
}
Expression {
register,
expression: _,
} => {
writeln!(
w,
" DW_CFA_expression ({}, ...)",
register_name(register)
)?;
}
ValExpression {
register,
expression: _,
} => {
writeln!(
w,
" DW_CFA_val_expression ({}, ...)",
register_name(register)
)?;
}
Restore { register } => {
writeln!(
w,
" DW_CFA_restore ({})",
register_name(register)
)?;
}
RememberState => {
writeln!(w, " DW_CFA_remember_state")?;
}
RestoreState => {
writeln!(w, " DW_CFA_restore_state")?;
}
ArgsSize { size } => {
writeln!(w, " DW_CFA_GNU_args_size ({})", size)?;
}
Nop => {
writeln!(w, " DW_CFA_nop")?;
}
},
}
}
}
}
|
pub mod core;
pub mod manager;
#[macro_export]
macro_rules! export_plugin {
($register:expr) => {
#[doc(hidden)]
#[no_mangle]
pub static plugin_declaration: $crate::core::PluginDeclaration =
$crate::core::PluginDeclaration {
register: $register,
};
};
}
|
pub mod ppm;
pub mod png;
use crate::vec3::Vec3;
use core::ops::{Index, IndexMut};
pub struct Image {
width : usize,
height : usize,
pixels : Vec<Vec3>
}
impl Index<(usize,usize)> for Image {
type Output = Vec3;
fn index(&self, idx: (usize,usize)) -> &Vec3 {
&self.pixels[idx.1 * self.width + idx.0]
}
}
impl IndexMut<(usize,usize)> for Image {
fn index_mut(&mut self, idx: (usize,usize)) -> &mut Vec3 {
&mut self.pixels[idx.1 * self.width + idx.0]
}
}
impl Image {
pub fn new(width: usize, height: usize, color: Vec3) -> Image {
Image {width, height, pixels: vec![color; height*width]}
}
pub fn width(&self) -> usize {
self.width
}
pub fn height(&self) -> usize {
self.height
}
pub fn pixels(&self) -> &[Vec3] {
&self.pixels[..]
}
pub fn pixels_mut(&mut self) -> &mut [Vec3] {
&mut self.pixels[..]
}
}
|
use std::path::{ Path, PathBuf };
use std::io;
use super::{ CacheDirImpl, CacheDirOperations };
impl CacheDirOperations for CacheDirImpl {
fn create_app_cache_dir(_: &Path, _: &Path) -> io::Result<PathBuf> {
Err(io::Error::new(io::ErrorKind::NotFound,
"[Application Cache]: This OS is not supported"))
}
fn create_user_cache_dir(_: &Path) -> io::Result<PathBuf> {
Err(io::Error::new(io::ErrorKind::NotFound,
"[User Cache]: This OS is not supported"))
}
fn create_system_cache_dir(_: &Path) -> io::Result<PathBuf> {
Err(io::Error::new(io::ErrorKind::NotFound,
"[System Cache]: This OS is not supported"))
}
fn create_tmp_cache_dir(_: &Path) -> io::Result<PathBuf> {
Err(io::Error::new(io::ErrorKind::NotFound,
"[Tmp Cache]: This OS is not supported"))
}
fn create_memory_cache_dir(_: &Path) -> io::Result<PathBuf> {
Err(io::Error::new(io::ErrorKind::NotFound,
"[Memory Cache]: This OS is not supported"))
}
}
|
mod extend;
mod parse;
pub use extend::*;
pub use parse::*;
|
use diesel::result::Error;
use crate::HttpResponse;
use actix_web::http::StatusCode;
use serde::Serialize;
pub enum ServiceError {
Client {
message: String
},
Server {
message: Option<String>
},
NotFound,
Unauthorized
}
#[derive(Serialize)]
pub struct ErrorBody {
pub message: String
}
impl ServiceError {
pub fn from_diesel_result_error(err: Error) -> Self {
return match err {
Error::NotFound => {
ServiceError::NotFound
}
_ => ServiceError::Server {
message: Some(String::from(err.to_string()))
}
};
}
pub fn response(&self) -> HttpResponse {
return match self {
ServiceError::Client { message: msg } => {
HttpResponse::build(StatusCode::BAD_REQUEST).json(ErrorBody{
message: msg.to_string()
})
},
Server => {
HttpResponse::build(StatusCode::INTERNAL_SERVER_ERROR).json(
ErrorBody{
message: "INTERNAL SERVER ERROR".to_string()
}
)
},
NotFound => {
HttpResponse::build(StatusCode::NOT_FOUND).json(
ErrorBody {
message: "NOT FOUND".to_string()
}
)
},
Unauthorized => {
HttpResponse::build(StatusCode::UNAUTHORIZED).json(
ErrorBody {
message: "UNAUTHORIZED".to_string()
}
)
}
};
}
} |
use crate::{FunctionData, Instruction, Location, Label, Value, Map, FlowGraph};
pub struct MemoryToSsaPass;
fn rewrite_memory_to_ssa(function: &mut FunctionData, pointer: Value, start_label: Label,
flow_incoming: &FlowGraph, undef: Value) {
let mut load_aliases = Vec::new();
let mut dead_stores = Vec::new();
let mut phi_updates = Vec::new();
let mut block_values = Map::default();
// Go through every reachable label from `start_label` (including itself).
for label in function.traverse_bfs(start_label, true) {
let body = &function.blocks[&label];
// Try to get our inserted PHI output value. Maybe it will be used
// as an initial value in the current block.
let phi_value = match &body[0] {
Instruction::Phi { dst, .. } => Some(*dst),
_ => None,
};
let mut used_phi = false;
// Current value that is present in `pointer`.
let mut value = None;
// Go through every instruction to rewrite all load and stores related
// to `stackalloc`.
for (inst_id, instruction) in body.iter().enumerate() {
let location = Location::new(label, inst_id);
match instruction {
Instruction::Load { dst, ptr } => {
if *ptr == pointer {
if value.is_none() && phi_value.is_some() {
// `pointer` wasn't written to in this block. We will need to
// take `value` from PHI instruction.
value = phi_value;
used_phi = true;
}
// This load will use currently known value or undef.
load_aliases.push((location, *dst, value.unwrap_or(undef)));
}
}
Instruction::Store { ptr, value: stored_value } => {
if *ptr == pointer {
// This store can be removed and current value at `pointer` is
// now equal to `stored_value`.
value = Some(*stored_value);
dead_stores.push(location);
}
}
_ => {}
}
}
// Make sure that PHI actually exists if we have used its value.
assert!(!(phi_value.is_none() && used_phi), "Used value of non-existent PHI.");
// If there is a PHI available and value wasn't used then assume that
// we need this PHI instruction for the successors.
if value.is_none() && phi_value.is_some() {
value = phi_value;
used_phi = true;
}
// Insert value which is stored in `pointer` at the and of block `label`.
if let Some(value) = value {
assert!(block_values.insert(label, value).is_none(),
"Multple exit values for the same block.");
}
// If PHI was used then queue update of PHI incoming values.
if used_phi {
phi_updates.push((label, phi_value.unwrap()));
}
}
// Go through all queued PHI updates and update their incoming values.
for (label, phi_value) in phi_updates {
let mut incoming = Vec::new();
// Get incoming value for every predecessor.
for &predecessor in &flow_incoming[&label] {
let value = block_values.get(&predecessor).copied()
.unwrap_or(undef);
incoming.push((predecessor, value));
}
// Replace PHI with new incoming values.
*function.instruction_mut(Location::new(label, 0)) = Instruction::Phi {
dst: phi_value,
incoming,
};
}
// Remove all stores to `stackalloc` output pointer.
for location in dead_stores {
*function.instruction_mut(location) = Instruction::Nop;
}
// Alias all `stackalloc` pointer loads to calculated value.
for (location, dst, value) in load_aliases {
*function.instruction_mut(location) = Instruction::Alias {
dst,
value,
};
}
}
impl super::Pass for MemoryToSsaPass {
fn name(&self) -> &str {
"memory to SSA"
}
fn time(&self) -> crate::timing::TimedBlock {
crate::timing::memory_to_ssa()
}
fn run_on_function(&self, function: &mut FunctionData) -> bool {
let mut did_something = false;
// Rewrite stackallocs to use SSA values.
// entry:
// v1 = stackalloc u32 1
// bcond u1 v0, block_0, block_1
//
// block_0:
// v2 = u32 1
// store u32* v1, u32 v2
// branch exit
//
// block_1:
// v3 = u32 3
// store u32* v1, u32 v3
// branch exit
//
// exit:
// v4 = load u32* v1
// ret u32 v4
//
// Will get rewritten to:
// entry:
// bcond u1 v0, block_0, block_1
//
// block_0:
// v2 = u32 1
// branch exit
//
// block_1:
// v3 = u32 3
// branch exit
//
// exit:
// v4 = phi u32 [block_0: v2, block_1: v3]
// ret u32 v4
let labels = function.reachable_labels();
let flow_incoming = function.flow_graph_incoming();
'main_loop: loop {
// Go through every `stackalloc` and try to find candidate to rewrite
// it to use SSA values.
'skip: for (pointer, location) in function.find_stackallocs(Some(1)) {
// Make sure that this is actually stackallocs (locations may have shifted).
assert!(matches!(function.instruction(location),
Instruction::StackAlloc { .. }));
// We can only rewrite `stackallocs` which are just loaded and stored to.
let uses = function.find_uses(pointer);
if uses.is_empty() {
continue;
}
for location in uses {
match function.instruction(location) {
Instruction::Store { ptr, value } => {
// Make sure that we are actually storing TO `pointer`, not
// storing `pointer`.
if *ptr != pointer || *value == pointer {
continue 'skip;
}
}
Instruction::Load { .. } => {}
_ => continue 'skip,
}
}
// Remove `stackalloc` instruction.
*function.instruction_mut(location) = Instruction::Nop;
// Get type of value which we are rewriting.
let ty = function.value_type(pointer).strip_ptr().unwrap();
// Write empty PHI instruction at the beginning of every block except entry one.
for &label in &labels {
// We cannot put PHI instructions in the entry block.
if label == function.entry() {
continue;
}
// Allocate PHI output value with proper type.
let output = function.allocate_typed_value(ty);
// Insert new empty PHI instruction at the beginning of the block.
function.blocks.get_mut(&label).unwrap().insert(0, Instruction::Phi {
dst: output,
incoming: Vec::new(),
});
}
// Because we have inserted PHIs, `location.index()`, won't be correct anymore.
// But label will be still right.
let stackalloc_label = location.label();
let undef = function.undefined_value(ty);
// Perform the rewrite.
rewrite_memory_to_ssa(function, pointer, stackalloc_label, &flow_incoming, undef);
// We are done, clean up all the mess that we have done.
for &label in &labels {
// We cannot put PHI instructions in entry block.
if label == function.entry() {
continue;
}
let body = function.blocks.get_mut(&label).unwrap();
let first = &mut body[0];
// Get the first instruction which must be our inserted PHI.
if let Instruction::Phi { incoming, .. } = first {
// If this PHI isn't used then just remove it.
if incoming.is_empty() {
*first = Instruction::Nop;
}
} else {
panic!("First instruction must be our inserted PHI.");
}
}
did_something = true;
// Reenter loop because we have modified stackalloc locations.
continue 'main_loop;
}
// Nothing is left to be done.
break 'main_loop;
}
did_something
}
}
|
use std::collections::HashSet;
use crate::{Push, TypeHash};
/// Filter is applied to each pixel of rendered picture.
pub trait Filter: Push + TypeHash + 'static {
fn inst_name() -> String;
fn source(cache: &mut HashSet<u64>) -> String;
}
|
fn main() {
assert_eq!(1, (1..10).step_by(1).filter(|i| i < &5).take(1).count());
}
|
#[allow(unused_imports)]
#[macro_use]
extern crate maplit; // for hashmap macro for writing hashmap literals in tests
#[macro_use]
extern crate itertools;
extern crate strsim;
extern crate array_tool;
use std::fs;
use std::io;
use std::io::Read;
use std::collections::HashMap;
use strsim::hamming;
use itertools::Itertools;
#[allow(unused_imports)]
use array_tool::vec::Intersect;
#[derive(Debug)]
enum CliError {
IoError(io::Error)
}
impl From<io::Error> for CliError {
fn from(error: io::Error) -> Self {
CliError::IoError(error)
}
}
fn main() -> Result<(), CliError> {
let contents = import_file_string("input.txt")?;
let checksum = compute_checksum(&contents)?;
println!("Checksum: {}", checksum);
let (id_one, id_two) = get_similar_ids(&contents)?;
println!("Similar IDs:");
println!("{}", id_one);
println!("{}", id_two);
println!();
let common_characters = get_common_character_string(id_one, id_two);
println!("Common characters between the two IDs:");
println!("{}", common_characters);
Ok(())
}
fn import_file_string(filename: &str) -> Result<String, CliError> {
let mut contents = String::new();
fs::File::open(filename)?.read_to_string(&mut contents)?;
Ok(contents)
}
fn letter_count(string: &str) -> Result<HashMap<char, u32>, CliError> {
let mut letter_to_count = HashMap::new();
for c in string.chars() {
if !letter_to_count.contains_key(&c) {
letter_to_count.insert(c,0);
}
letter_to_count.insert(c, letter_to_count[&c] + 1);
}
Ok(letter_to_count)
}
fn compute_checksum(string: &str) -> Result<u32, CliError> {
let mut two_count: u32 = 0;
let mut three_count = 0;
for line in string.lines() {
let letter_to_count = letter_count(line)?;
if letter_to_count.values().filter(|&&x| x == 2).count() > 0 {
two_count = two_count + 1;
}
if letter_to_count.values().filter(|&&x| x == 3).count() > 0 {
three_count = three_count + 1;
}
}
Ok(two_count * three_count)
}
fn get_similar_ids(string: &str) -> Result<(String, String), CliError> {
let lines = string.lines().collect_vec();
for (a, b) in iproduct!(&lines, &lines) {
if hamming(a, b).unwrap() == 1 {
return Ok((a.to_string(), b.to_string()))
}
}
Ok(("a".to_string(), "b".to_string()))
}
fn get_common_character_string(a: String, b: String) -> String {
let mut s = String::new();
let other_characters = b.chars().collect_vec();
for (i, char) in a.chars().enumerate() {
if char == other_characters[i] {
s.push(char);
}
}
s
}
#[cfg(test)]
mod tests {
use super::{letter_count, compute_checksum, get_similar_ids, get_common_character_string};
#[test]
fn test_letter_count() {
assert_eq!(
hashmap!{'a' => 1, 'b' => 2, 'c' => 3},
letter_count("abbccc").unwrap()
);
assert_eq!(
hashmap!{'a' => 1, 'b' => 1, 'c' => 1, 'd' => 1, 'e' => 1, 'f' => 1},
letter_count("abcdef").unwrap()
);
assert_eq!(
hashmap!{'a' => 2, 'b' => 3, 'c' => 1},
letter_count("bababc").unwrap()
);
assert_eq!(
hashmap!{'a' => 1, 'b' => 2, 'c' => 1, 'd' => 1, 'e' => 1},
letter_count("abbcde").unwrap()
);
}
#[test]
fn test_compute_checksum() {
assert_eq!(
12,
compute_checksum("abcdef\nbababc\nabbcde\nabcccd\naabcdd\nabcdee\nababab").unwrap()
);
}
#[test]
fn test_get_similar_ids() {
assert_eq!(
("fghij".to_string(), "fguij".to_string()),
get_similar_ids("abcde\nfghij\nklmno\npqrst\nfguij\naxcye\nwvxyz").unwrap()
)
}
#[test]
fn test_get_common_character_string() {
assert_eq!(
"fgij".to_string(),
get_common_character_string("fghij".to_string(), "fguij".to_string())
)
}
} |
pub mod decrypt {
use crate::pgr::pgr::pgr_function;
pub fn decrypt (cypher_text : &[u8], key_string : &[u8]) -> Vec<u8> {
let mut xor: Vec<u8> = Vec::new();
for n in 0..cypher_text.len() {
xor.push(cypher_text[n] ^ key_string[n]);
}
xor.to_vec()
}
} |
use tuber_core::asset::Store;
use tuber_core::input::State;
use tuber_graphics::Graphics;
pub struct EngineContext {
pub graphics: Option<Graphics>,
pub asset_store: Store,
pub input_state: State,
}
|
use input_i_scanner::InputIScanner;
use std::cmp::Reverse;
use std::collections::BinaryHeap;
fn main() {
let stdin = std::io::stdin();
let mut _i_i = InputIScanner::from(stdin.lock());
macro_rules! scan {
(($($t: ty),+)) => {
($(scan!($t)),+)
};
($t: ty) => {
_i_i.scan::<$t>() as $t
};
(($($t: ty),+); $n: expr) => {
std::iter::repeat_with(|| scan!(($($t),+))).take($n).collect::<Vec<_>>()
};
($t: ty; $n: expr) => {
std::iter::repeat_with(|| scan!($t)).take($n).collect::<Vec<_>>()
};
}
let (n, k) = scan!((usize, usize));
let a = scan!(u32; n);
let mut ans = Vec::new();
let mut heap = BinaryHeap::new();
for i in 0..k {
heap.push(Reverse(a[i]));
}
ans.push(heap.peek().copied().unwrap());
for i in k..n {
heap.push(Reverse(a[i]));
heap.pop();
ans.push(heap.peek().copied().unwrap());
}
for Reverse(ans) in ans {
println!("{}", ans);
}
}
|
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// A quick test of 'unsafe const fn' functionality
#![feature(min_const_fn)]
const unsafe fn dummy(v: u32) -> u32 {
!v
}
struct Type;
impl Type {
const unsafe fn new() -> Type {
Type
}
}
const VAL: u32 = unsafe { dummy(0xFFFF) };
const TYPE_INST: Type = unsafe { Type::new() };
fn main() {
assert_eq!(VAL, 0xFFFF0000);
}
|
use crate::fetchSpotStage::BlobFetchStage;
use crate::blockBufferPool::Blocktree;
#[cfg(feature = "chacha")]
use crate::chacha::{chacha_cbc_encrypt_ledger, CHACHA_BLOCK_SIZE};
use crate::clusterMessage::{ClusterInfo, Node};
use crate::connectionInfo::ContactInfo;
use crate::gossipService::GossipService;
use crate::packet::to_shared_blob;
use crate::fixMissingSpotService::{RepairSlotRange, RepairStrategy};
use crate::result::Result;
use crate::service::Service;
use crate::streamer::{receiver, responder};
use crate::spotTransmitService::WindowService;
use bincode::deserialize;
use rand::thread_rng;
use rand::Rng;
use morgan_client::rpc_client::RpcClient;
use morgan_client::rpc_request::RpcRequest;
use morgan_client::thin_client::ThinClient;
use solana_ed25519_dalek as ed25519_dalek;
use morgan_runtime::bank::Bank;
use morgan_interface::client::{AsyncClient, SyncClient};
use morgan_interface::genesis_block::GenesisBlock;
use morgan_interface::hash::{Hash, Hasher};
use morgan_interface::message::Message;
use morgan_interface::signature::{Keypair, KeypairUtil, Signature};
use morgan_interface::timing::timestamp;
use morgan_interface::transaction::Transaction;
use morgan_interface::transport::TransportError;
use morgan_storage_api::{get_segment_from_slot, storage_instruction, SLOTS_PER_SEGMENT};
use std::fs::File;
use std::io::{self, BufReader, Error, ErrorKind, Read, Seek, SeekFrom};
use std::mem::size_of;
use std::net::{SocketAddr, UdpSocket};
use std::path::{Path, PathBuf};
use std::result;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc::channel;
use std::sync::{Arc, RwLock};
use std::thread::{sleep, spawn, JoinHandle};
use std::time::Duration;
use morgan_helper::logHelper::*;
#[derive(Serialize, Deserialize)]
pub enum ReplicatorRequest {
GetSlotHeight(SocketAddr),
}
pub struct Replicator {
gossip_service: GossipService,
fetch_stage: BlobFetchStage,
window_service: WindowService,
thread_handles: Vec<JoinHandle<()>>,
exit: Arc<AtomicBool>,
slot: u64,
ledger_path: String,
keypair: Arc<Keypair>,
storage_keypair: Arc<Keypair>,
signature: ed25519_dalek::Signature,
cluster_info: Arc<RwLock<ClusterInfo>>,
ledger_data_file_encrypted: PathBuf,
sampling_offsets: Vec<u64>,
hash: Hash,
#[cfg(feature = "chacha")]
num_chacha_blocks: usize,
#[cfg(feature = "chacha")]
blocktree: Arc<Blocktree>,
}
pub(crate) fn sample_file(in_path: &Path, sample_offsets: &[u64]) -> io::Result<Hash> {
let in_file = File::open(in_path)?;
let metadata = in_file.metadata()?;
let mut buffer_file = BufReader::new(in_file);
let mut hasher = Hasher::default();
let sample_size = size_of::<Hash>();
let sample_size64 = sample_size as u64;
let mut buf = vec![0; sample_size];
let file_len = metadata.len();
if file_len < sample_size64 {
return Err(Error::new(ErrorKind::Other, "file too short!"));
}
for offset in sample_offsets {
if *offset > (file_len - sample_size64) / sample_size64 {
return Err(Error::new(ErrorKind::Other, "offset too large"));
}
buffer_file.seek(SeekFrom::Start(*offset * sample_size64))?;
trace!("sampling @ {} ", *offset);
match buffer_file.read(&mut buf) {
Ok(size) => {
assert_eq!(size, buf.len());
hasher.hash(&buf);
}
Err(e) => {
// warn!("Error sampling file");
println!(
"{}",
Warn(
format!("Error sampling file").to_string(),
module_path!().to_string()
)
);
return Err(e);
}
}
}
Ok(hasher.result())
}
fn get_slot_from_blockhash(signature: &ed25519_dalek::Signature, storage_slot: u64) -> u64 {
let signature_vec = signature.to_bytes();
let mut segment_index = u64::from(signature_vec[0])
| (u64::from(signature_vec[1]) << 8)
| (u64::from(signature_vec[1]) << 16)
| (u64::from(signature_vec[2]) << 24);
let max_segment_index = get_segment_from_slot(storage_slot);
segment_index %= max_segment_index as u64;
segment_index * SLOTS_PER_SEGMENT
}
fn create_request_processor(
socket: UdpSocket,
exit: &Arc<AtomicBool>,
slot: u64,
) -> Vec<JoinHandle<()>> {
let mut thread_handles = vec![];
let (s_reader, r_reader) = channel();
let (s_responder, r_responder) = channel();
let storage_socket = Arc::new(socket);
let t_receiver = receiver(storage_socket.clone(), exit, s_reader);
thread_handles.push(t_receiver);
let t_responder = responder("replicator-responder", storage_socket.clone(), r_responder);
thread_handles.push(t_responder);
let exit = exit.clone();
let t_processor = spawn(move || loop {
let packets = r_reader.recv_timeout(Duration::from_secs(1));
if let Ok(packets) = packets {
for packet in &packets.packets {
let req: result::Result<ReplicatorRequest, Box<bincode::ErrorKind>> =
deserialize(&packet.data[..packet.meta.size]);
match req {
Ok(ReplicatorRequest::GetSlotHeight(from)) => {
if let Ok(blob) = to_shared_blob(slot, from) {
let _ = s_responder.send(vec![blob]);
}
}
Err(e) => {
// info!("{}", Info(format!("invalid request: {:?}", e).to_string()));
println!("{}",
printLn(
format!("invalid request: {:?}", e).to_string(),
module_path!().to_string()
)
);
}
}
}
}
if exit.load(Ordering::Relaxed) {
break;
}
});
thread_handles.push(t_processor);
thread_handles
}
impl Replicator {
/// Returns a Result that contains a replicator on success
///
/// # Arguments
/// * `ledger_path` - path to where the ledger will be stored.
/// Causes panic if none
/// * `node` - The replicator node
/// * `cluster_entrypoint` - ContactInfo representing an entry into the network
/// * `keypair` - Keypair for this replicator
#[allow(clippy::new_ret_no_self)]
pub fn new(
ledger_path: &str,
node: Node,
cluster_entrypoint: ContactInfo,
keypair: Arc<Keypair>,
storage_keypair: Arc<Keypair>,
) -> Result<Self> {
let exit = Arc::new(AtomicBool::new(false));
// info!("{}", Info(format!("Replicator: id: {}", keypair.pubkey()).to_string()));
// info!("{}", Info(format!("Creating cluster info....").to_string()));
println!("{}",
printLn(
format!("Replicator: id: {}", keypair.pubkey()).to_string(),
module_path!().to_string()
)
);
println!("{}",
printLn(
format!("Creating cluster info....").to_string(),
module_path!().to_string()
)
);
let mut cluster_info = ClusterInfo::new(node.info.clone(), keypair.clone());
cluster_info.set_entrypoint(cluster_entrypoint.clone());
let cluster_info = Arc::new(RwLock::new(cluster_info));
// Note for now, this ledger will not contain any of the existing entries
// in the ledger located at ledger_path, and will only append on newly received
// entries after being passed to window_service
let genesis_block =
GenesisBlock::load(ledger_path).expect("Expected to successfully open genesis block");
let bank = Bank::new_with_paths(&genesis_block, None);
let genesis_blockhash = bank.last_blockhash();
let blocktree = Arc::new(
Blocktree::open(ledger_path).expect("Expected to be able to open database ledger"),
);
let gossip_service = GossipService::new(
&cluster_info,
Some(blocktree.clone()),
None,
node.sockets.gossip,
&exit,
);
// info!("{}", Info(format!("Connecting to the cluster via {:?}", cluster_entrypoint).to_string()));
println!("{}",
printLn(
format!("Connecting to the cluster via {:?}", cluster_entrypoint).to_string(),
module_path!().to_string()
)
);
let (nodes, _) = crate::gossipService::discover_cluster(&cluster_entrypoint.gossip, 1)?;
let client = crate::gossipService::get_client(&nodes);
let (storage_blockhash, storage_slot) = Self::poll_for_blockhash_and_slot(&cluster_info)?;
let signature = storage_keypair.sign(storage_blockhash.as_ref());
let slot = get_slot_from_blockhash(&signature, storage_slot);
// info!("{}", Info(format!("replicating slot: {}", slot).to_string()));
println!("{}",
printLn(
format!("replicating slot: {}", slot).to_string(),
module_path!().to_string()
)
);
let mut repair_slot_range = RepairSlotRange::default();
repair_slot_range.end = slot + SLOTS_PER_SEGMENT;
repair_slot_range.start = slot;
let repair_socket = Arc::new(node.sockets.repair);
let mut blob_sockets: Vec<Arc<UdpSocket>> =
node.sockets.tvu.into_iter().map(Arc::new).collect();
blob_sockets.push(repair_socket.clone());
let (blob_fetch_sender, blob_fetch_receiver) = channel();
let fetch_stage = BlobFetchStage::new_multi_socket(blob_sockets, &blob_fetch_sender, &exit);
let (retransmit_sender, retransmit_receiver) = channel();
let window_service = WindowService::new(
blocktree.clone(),
cluster_info.clone(),
blob_fetch_receiver,
retransmit_sender,
repair_socket,
&exit,
RepairStrategy::RepairRange(repair_slot_range),
&genesis_blockhash,
|_, _, _| true,
);
Self::setup_mining_account(&client, &keypair, &storage_keypair)?;
let mut thread_handles =
create_request_processor(node.sockets.storage.unwrap(), &exit, slot);
// receive blobs from retransmit and drop them.
let t_retransmit = {
let exit = exit.clone();
spawn(move || loop {
let _ = retransmit_receiver.recv_timeout(Duration::from_secs(1));
if exit.load(Ordering::Relaxed) {
break;
}
})
};
thread_handles.push(t_retransmit);
let t_replicate = {
let exit = exit.clone();
let blocktree = blocktree.clone();
let cluster_info = cluster_info.clone();
let node_info = node.info.clone();
spawn(move || {
Self::wait_for_ledger_download(slot, &blocktree, &exit, &node_info, cluster_info)
})
};
//always push this last
thread_handles.push(t_replicate);
Ok(Self {
gossip_service,
fetch_stage,
window_service,
thread_handles,
exit,
slot,
ledger_path: ledger_path.to_string(),
keypair,
storage_keypair,
signature,
cluster_info,
ledger_data_file_encrypted: PathBuf::default(),
sampling_offsets: vec![],
hash: Hash::default(),
#[cfg(feature = "chacha")]
num_chacha_blocks: 0,
#[cfg(feature = "chacha")]
blocktree,
})
}
pub fn run(&mut self) {
// info!("{}", Info(format!("waiting for ledger download").to_string()));
println!("{}",
printLn(
format!("waiting for ledger download").to_string(),
module_path!().to_string()
)
);
self.thread_handles.pop().unwrap().join().unwrap();
self.encrypt_ledger()
.expect("ledger encrypt not successful");
loop {
self.create_sampling_offsets();
if let Err(err) = self.sample_file_to_create_mining_hash() {
// warn!("Error sampling file, exiting: {:?}", err);
println!(
"{}",
Warn(
format!("Error sampling file, exiting: {:?}", err).to_string(),
module_path!().to_string()
)
);
break;
}
self.submit_mining_proof();
// TODO: Replicators should be submitting proofs as fast as possible
sleep(Duration::from_secs(2));
}
}
fn wait_for_ledger_download(
start_slot: u64,
blocktree: &Arc<Blocktree>,
exit: &Arc<AtomicBool>,
node_info: &ContactInfo,
cluster_info: Arc<RwLock<ClusterInfo>>,
) {
// info!(
// "{}",
// Info(format!("window created, waiting for ledger download starting at slot {:?}",
// start_slot).to_string())
// );
println!("{}",
printLn(
format!("window created, waiting for ledger download starting at slot {:?}",
start_slot
).to_string(),
module_path!().to_string()
)
);
let mut current_slot = start_slot;
'outer: loop {
while let Ok(meta) = blocktree.meta(current_slot) {
if let Some(meta) = meta {
if meta.is_full() {
current_slot += 1;
// info!("{}", Info(format!("current slot: {}", current_slot).to_string()));
println!("{}",
printLn(
format!("current slot: {}", current_slot).to_string(),
module_path!().to_string()
)
);
if current_slot >= start_slot + SLOTS_PER_SEGMENT {
break 'outer;
}
} else {
break;
}
} else {
break;
}
}
if exit.load(Ordering::Relaxed) {
break;
}
sleep(Duration::from_secs(1));
}
// info!("{}", Info(format!("Done receiving entries from window_service").to_string()));
println!("{}",
printLn(
format!("Done receiving entries from window_service").to_string(),
module_path!().to_string()
)
);
// Remove replicator from the data plane
let mut contact_info = node_info.clone();
contact_info.tvu = "0.0.0.0:0".parse().unwrap();
contact_info.wallclock = timestamp();
{
let mut cluster_info_w = cluster_info.write().unwrap();
cluster_info_w.insert_self(contact_info);
}
}
fn encrypt_ledger(&mut self) -> Result<()> {
let ledger_path = Path::new(&self.ledger_path);
self.ledger_data_file_encrypted = ledger_path.join("ledger.enc");
#[cfg(feature = "chacha")]
{
let mut ivec = [0u8; 64];
ivec.copy_from_slice(&self.signature.to_bytes());
let num_encrypted_bytes = chacha_cbc_encrypt_ledger(
&self.blocktree,
self.slot,
&self.ledger_data_file_encrypted,
&mut ivec,
)?;
self.num_chacha_blocks = num_encrypted_bytes / CHACHA_BLOCK_SIZE;
}
// info!(
// "{}", Info(format!("Done encrypting the ledger: {:?}",
// self.ledger_data_file_encrypted).to_string())
// );
println!("{}",
printLn(
format!("Done encrypting the ledger: {:?}",
self.ledger_data_file_encrypted
).to_string(),
module_path!().to_string()
)
);
Ok(())
}
fn create_sampling_offsets(&mut self) {
self.sampling_offsets.clear();
#[cfg(not(feature = "chacha"))]
self.sampling_offsets.push(0);
#[cfg(feature = "chacha")]
{
use crate::storageStage::NUM_STORAGE_SAMPLES;
use rand::SeedableRng;
use rand_chacha::ChaChaRng;
let mut rng_seed = [0u8; 32];
rng_seed.copy_from_slice(&self.signature.to_bytes()[0..32]);
let mut rng = ChaChaRng::from_seed(rng_seed);
for _ in 0..NUM_STORAGE_SAMPLES {
self.sampling_offsets
.push(rng.gen_range(0, self.num_chacha_blocks) as u64);
}
}
}
fn sample_file_to_create_mining_hash(&mut self) -> Result<()> {
self.hash = sample_file(&self.ledger_data_file_encrypted, &self.sampling_offsets)?;
// info!("{}", Info(format!("sampled hash: {}", self.hash).to_string()));
println!("{}",
printLn(
format!("sampled hash: {}", self.hash).to_string(),
module_path!().to_string()
)
);
Ok(())
}
fn setup_mining_account(
client: &ThinClient,
keypair: &Keypair,
storage_keypair: &Keypair,
) -> Result<()> {
// make sure replicator has some balance
if client.poll_get_balance(&keypair.pubkey())? == 0 {
Err(io::Error::new(
io::ErrorKind::Other,
"keypair account has no balance",
))?
}
// check if the storage account exists
let balance = client.poll_get_balance(&storage_keypair.pubkey());
if balance.is_err() || balance.unwrap() == 0 {
let (blockhash, _fee_calculator) = client.get_recent_blockhash().expect("blockhash");
let ix = storage_instruction::create_replicator_storage_account(
&keypair.pubkey(),
&storage_keypair.pubkey(),
1,
);
let tx = Transaction::new_signed_instructions(&[keypair], ix, blockhash);
let signature = client.async_send_transaction(tx)?;
client
.poll_for_signature(&signature)
.map_err(|err| match err {
TransportError::IoError(e) => e,
TransportError::TransactionError(_) => io::Error::new(
ErrorKind::Other,
"setup_mining_account: signature not found",
),
})?;
}
Ok(())
}
fn submit_mining_proof(&self) {
// No point if we've got no storage account...
let nodes = self.cluster_info.read().unwrap().tvu_peers();
let client = crate::gossipService::get_client(&nodes);
assert!(
client
.poll_get_balance(&self.storage_keypair.pubkey())
.unwrap()
> 0
);
// ...or no difs for fees
assert!(client.poll_get_balance(&self.keypair.pubkey()).unwrap() > 0);
let (blockhash, _) = client.get_recent_blockhash().expect("No recent blockhash");
let instruction = storage_instruction::mining_proof(
&self.storage_keypair.pubkey(),
self.hash,
self.slot,
Signature::new(&self.signature.to_bytes()),
);
let message = Message::new_with_payer(vec![instruction], Some(&self.keypair.pubkey()));
let mut transaction = Transaction::new(
&[self.keypair.as_ref(), self.storage_keypair.as_ref()],
message,
blockhash,
);
client
.send_and_confirm_transaction(
&[&self.keypair, &self.storage_keypair],
&mut transaction,
10,
0,
)
.expect("transfer didn't work!");
}
pub fn close(self) {
self.exit.store(true, Ordering::Relaxed);
self.join()
}
pub fn join(self) {
self.gossip_service.join().unwrap();
self.fetch_stage.join().unwrap();
self.window_service.join().unwrap();
for handle in self.thread_handles {
handle.join().unwrap();
}
}
fn poll_for_blockhash_and_slot(
cluster_info: &Arc<RwLock<ClusterInfo>>,
) -> Result<(String, u64)> {
for _ in 0..10 {
let rpc_client = {
let cluster_info = cluster_info.read().unwrap();
let rpc_peers = cluster_info.rpc_peers();
debug!("rpc peers: {:?}", rpc_peers);
let node_index = thread_rng().gen_range(0, rpc_peers.len());
RpcClient::new_socket(rpc_peers[node_index].rpc)
};
let storage_blockhash = rpc_client
.retry_make_rpc_request(&RpcRequest::GetStorageBlockhash, None, 0)
.expect("rpc request")
.to_string();
let storage_slot = rpc_client
.retry_make_rpc_request(&RpcRequest::GetStorageSlot, None, 0)
.expect("rpc request")
.as_u64()
.unwrap();
// info!("{}", Info(format!("storage slot: {}", storage_slot).to_string()));
println!("{}",
printLn(
format!("storage slot: {}", storage_slot).to_string(),
module_path!().to_string()
)
);
if get_segment_from_slot(storage_slot) != 0 {
return Ok((storage_blockhash, storage_slot));
}
// info!("{}", Info(format!("waiting for segment...").to_string()));
println!("{}",
printLn(
format!("waiting for segment...").to_string(),
module_path!().to_string()
)
);
sleep(Duration::from_secs(5));
}
Err(Error::new(
ErrorKind::Other,
"Couldn't get blockhash or slot",
))?
}
}
#[cfg(test)]
mod tests {
use super::*;
use std::fs::{create_dir_all, remove_file};
use std::io::Write;
fn tmp_file_path(name: &str) -> PathBuf {
use std::env;
let out_dir = env::var("OUT_DIR").unwrap_or_else(|_| "target".to_string());
let keypair = Keypair::new();
let mut path = PathBuf::new();
path.push(out_dir);
path.push("tmp");
create_dir_all(&path).unwrap();
path.push(format!("{}-{}", name, keypair.pubkey()));
path
}
#[test]
fn test_sample_file() {
morgan_logger::setup();
let in_path = tmp_file_path("test_sample_file_input.txt");
let num_strings = 4096;
let string = "12foobar";
{
let mut in_file = File::create(&in_path).unwrap();
for _ in 0..num_strings {
in_file.write(string.as_bytes()).unwrap();
}
}
let num_samples = (string.len() * num_strings / size_of::<Hash>()) as u64;
let samples: Vec<_> = (0..num_samples).collect();
let res = sample_file(&in_path, samples.as_slice());
let ref_hash: Hash = Hash::new(&[
173, 251, 182, 165, 10, 54, 33, 150, 133, 226, 106, 150, 99, 192, 179, 1, 230, 144,
151, 126, 18, 191, 54, 67, 249, 140, 230, 160, 56, 30, 170, 52,
]);
let res = res.unwrap();
assert_eq!(res, ref_hash);
// Sample just past the end
assert!(sample_file(&in_path, &[num_samples]).is_err());
remove_file(&in_path).unwrap();
}
#[test]
fn test_sample_file_invalid_offset() {
let in_path = tmp_file_path("test_sample_file_invalid_offset_input.txt");
{
let mut in_file = File::create(&in_path).unwrap();
for _ in 0..4096 {
in_file.write("123456foobar".as_bytes()).unwrap();
}
}
let samples = [0, 200000];
let res = sample_file(&in_path, &samples);
assert!(res.is_err());
remove_file(in_path).unwrap();
}
#[test]
fn test_sample_file_missing_file() {
let in_path = tmp_file_path("test_sample_file_that_doesnt_exist.txt");
let samples = [0, 5];
let res = sample_file(&in_path, &samples);
assert!(res.is_err());
}
}
|
use std::{fs::File, io::BufWriter};
use crate::read::{self, MafWriter, RecordCounter};
pub struct Counts {
pub n_samples: u32,
pub n_records: u32,
}
pub fn count_samples_and_records(input: &str) -> crate::Result<Counts> {
let mut vcf_reader = read::get_vcf_reader(input)?;
let n_samples = vcf_reader.header().samples().len() as u32;
let mut record_counter = RecordCounter::new();
let n_records = read::apply_record_inspector(&mut vcf_reader, &mut record_counter)?;
Ok(Counts {
n_samples,
n_records,
})
}
pub fn write_maf(input: &str, output: &str) -> crate::Result<()> {
let mut vcf_reader = read::get_vcf_reader(input)?;
let out_writer = BufWriter::new(File::create(output)?);
let mut maf_writer = MafWriter::new(out_writer);
read::apply_record_inspector(&mut vcf_reader, &mut maf_writer)
}
|
use ggez::{GameResult, Context};
use ggez::graphics::{Drawable, Point2, Vector2};
use vector;
pub fn draw_centered<D: Drawable>(
ctx: &mut Context,
drawable: &D,
size: Vector2,
dest: Point2,
rotation: f32,
) -> GameResult<()> {
drawable.draw(ctx, dest - vector::rotate(size, rotation) / 2.0, rotation)
}
|
use super::*;
mod with_timer;
#[test]
fn without_timer_returns_false() {
crate::test::without_timer_returns_false(result);
}
|
//! The `rpc_service` module implements the Solana JSON RPC service.
use crate::{
cluster_info::ClusterInfo, commitment::BlockCommitmentCache, rpc::*,
storage_stage::StorageState, validator::ValidatorExit,
};
use jsonrpc_core::MetaIoHandler;
use jsonrpc_http_server::{
hyper, AccessControlAllowOrigin, CloseHandle, DomainsValidation, RequestMiddleware,
RequestMiddlewareAction, ServerBuilder,
};
use regex::Regex;
use solana_ledger::{
bank_forks::{BankForks, SnapshotConfig},
blockstore::Blockstore,
snapshot_utils,
};
use solana_sdk::{hash::Hash, pubkey::Pubkey};
use std::{
collections::HashSet,
net::SocketAddr,
path::{Path, PathBuf},
sync::{mpsc::channel, Arc, RwLock},
thread::{self, Builder, JoinHandle},
};
use tokio::prelude::Future;
// If trusted validators are specified, consider this validator healthy if its latest account hash
// is no further behind than this distance from the latest trusted validator account hash
const HEALTH_CHECK_SLOT_DISTANCE: u64 = 150;
pub struct JsonRpcService {
thread_hdl: JoinHandle<()>,
#[cfg(test)]
pub request_processor: Arc<RwLock<JsonRpcRequestProcessor>>, // Used only by test_rpc_new()...
close_handle: Option<CloseHandle>,
}
struct RpcRequestMiddleware {
ledger_path: PathBuf,
snapshot_archive_path_regex: Regex,
snapshot_config: Option<SnapshotConfig>,
cluster_info: Arc<ClusterInfo>,
trusted_validators: Option<HashSet<Pubkey>>,
}
impl RpcRequestMiddleware {
pub fn new(
ledger_path: PathBuf,
snapshot_config: Option<SnapshotConfig>,
cluster_info: Arc<ClusterInfo>,
trusted_validators: Option<HashSet<Pubkey>>,
) -> Self {
Self {
ledger_path,
snapshot_archive_path_regex: Regex::new(
r"/snapshot-\d+-[[:alnum:]]+\.tar\.(bz2|zst|gz)$",
)
.unwrap(),
snapshot_config,
cluster_info,
trusted_validators,
}
}
fn redirect(location: &str) -> hyper::Response<hyper::Body> {
hyper::Response::builder()
.status(hyper::StatusCode::SEE_OTHER)
.header(hyper::header::LOCATION, location)
.body(hyper::Body::from(String::from(location)))
.unwrap()
}
fn not_found() -> hyper::Response<hyper::Body> {
hyper::Response::builder()
.status(hyper::StatusCode::NOT_FOUND)
.body(hyper::Body::empty())
.unwrap()
}
fn internal_server_error() -> hyper::Response<hyper::Body> {
hyper::Response::builder()
.status(hyper::StatusCode::INTERNAL_SERVER_ERROR)
.body(hyper::Body::empty())
.unwrap()
}
fn is_get_path(&self, path: &str) -> bool {
match path {
"/genesis.tar.bz2" => true,
_ => {
if self.snapshot_config.is_some() {
self.snapshot_archive_path_regex.is_match(path)
} else {
false
}
}
}
}
fn get(&self, path: &str) -> RequestMiddlewareAction {
let stem = path.split_at(1).1; // Drop leading '/' from path
let filename = {
match path {
"/genesis.tar.bz2" => self.ledger_path.join(stem),
_ => self
.snapshot_config
.as_ref()
.unwrap()
.snapshot_package_output_path
.join(stem),
}
};
info!("get {} -> {:?}", path, filename);
RequestMiddlewareAction::Respond {
should_validate_hosts: true,
response: Box::new(
tokio_fs::file::File::open(filename)
.and_then(|file| {
let buf: Vec<u8> = Vec::new();
tokio_io::io::read_to_end(file, buf)
.and_then(|item| Ok(hyper::Response::new(item.1.into())))
.or_else(|_| Ok(RpcRequestMiddleware::internal_server_error()))
})
.or_else(|_| Ok(RpcRequestMiddleware::not_found())),
),
}
}
fn health_check(&self) -> &'static str {
let response = if let Some(trusted_validators) = &self.trusted_validators {
let (latest_account_hash_slot, latest_trusted_validator_account_hash_slot) = {
(
self.cluster_info
.get_accounts_hash_for_node(&self.cluster_info.id(), |hashes| {
hashes
.iter()
.max_by(|a, b| a.0.cmp(&b.0))
.map(|slot_hash| slot_hash.0)
})
.flatten()
.unwrap_or(0),
trusted_validators
.iter()
.map(|trusted_validator| {
self.cluster_info
.get_accounts_hash_for_node(&trusted_validator, |hashes| {
hashes
.iter()
.max_by(|a, b| a.0.cmp(&b.0))
.map(|slot_hash| slot_hash.0)
})
.flatten()
.unwrap_or(0)
})
.max()
.unwrap_or(0),
)
};
// This validator is considered healthy if its latest account hash slot is within
// `HEALTH_CHECK_SLOT_DISTANCE` of the latest trusted validator's account hash slot
if latest_account_hash_slot > 0
&& latest_trusted_validator_account_hash_slot > 0
&& latest_account_hash_slot
> latest_trusted_validator_account_hash_slot
.saturating_sub(HEALTH_CHECK_SLOT_DISTANCE)
{
"ok"
} else {
warn!(
"health check: me={}, latest trusted_validator={}",
latest_account_hash_slot, latest_trusted_validator_account_hash_slot
);
"behind"
}
} else {
// No trusted validator point of reference available, so this validator is healthy
// because it's running
"ok"
};
info!("health check: {}", response);
response
}
}
impl RequestMiddleware for RpcRequestMiddleware {
fn on_request(&self, request: hyper::Request<hyper::Body>) -> RequestMiddlewareAction {
trace!("request uri: {}", request.uri());
if let Some(ref snapshot_config) = self.snapshot_config {
if request.uri().path() == "/snapshot.tar.bz2" {
// Convenience redirect to the latest snapshot
return RequestMiddlewareAction::Respond {
should_validate_hosts: true,
response: Box::new(jsonrpc_core::futures::future::ok(
if let Some((snapshot_archive, _)) =
snapshot_utils::get_highest_snapshot_archive_path(
&snapshot_config.snapshot_package_output_path,
)
{
RpcRequestMiddleware::redirect(&format!(
"/{}",
snapshot_archive
.file_name()
.unwrap_or_else(|| std::ffi::OsStr::new(""))
.to_str()
.unwrap_or(&"")
))
} else {
RpcRequestMiddleware::not_found()
},
)),
};
}
}
if self.is_get_path(request.uri().path()) {
self.get(request.uri().path())
} else if request.uri().path() == "/health" {
RequestMiddlewareAction::Respond {
should_validate_hosts: true,
response: Box::new(jsonrpc_core::futures::future::ok(
hyper::Response::builder()
.status(hyper::StatusCode::OK)
.body(hyper::Body::from(self.health_check()))
.unwrap(),
)),
}
} else {
RequestMiddlewareAction::Proceed {
should_continue_on_invalid_cors: false,
request,
}
}
}
}
impl JsonRpcService {
#[allow(clippy::too_many_arguments)]
pub fn new(
rpc_addr: SocketAddr,
config: JsonRpcConfig,
snapshot_config: Option<SnapshotConfig>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
blockstore: Arc<Blockstore>,
cluster_info: Arc<ClusterInfo>,
genesis_hash: Hash,
ledger_path: &Path,
storage_state: StorageState,
validator_exit: Arc<RwLock<Option<ValidatorExit>>>,
trusted_validators: Option<HashSet<Pubkey>>,
) -> Self {
info!("rpc bound to {:?}", rpc_addr);
info!("rpc configuration: {:?}", config);
let request_processor = Arc::new(RwLock::new(JsonRpcRequestProcessor::new(
config,
bank_forks,
block_commitment_cache,
blockstore,
storage_state,
validator_exit.clone(),
)));
#[cfg(test)]
let test_request_processor = request_processor.clone();
let ledger_path = ledger_path.to_path_buf();
let (close_handle_sender, close_handle_receiver) = channel();
let thread_hdl = Builder::new()
.name("solana-jsonrpc".to_string())
.spawn(move || {
let mut io = MetaIoHandler::default();
let rpc = RpcSolImpl;
io.extend_with(rpc.to_delegate());
let request_middleware = RpcRequestMiddleware::new(
ledger_path,
snapshot_config,
cluster_info.clone(),
trusted_validators,
);
let server = ServerBuilder::with_meta_extractor(
io,
move |_req: &hyper::Request<hyper::Body>| Meta {
request_processor: request_processor.clone(),
cluster_info: cluster_info.clone(),
genesis_hash,
},
)
.threads(num_cpus::get())
.cors(DomainsValidation::AllowOnly(vec![
AccessControlAllowOrigin::Any,
]))
.cors_max_age(86400)
.request_middleware(request_middleware)
.start_http(&rpc_addr);
if let Err(e) = server {
warn!(
"JSON RPC service unavailable error: {:?}. \n\
Also, check that port {} is not already in use by another application",
e,
rpc_addr.port()
);
return;
}
let server = server.unwrap();
close_handle_sender.send(server.close_handle()).unwrap();
server.wait();
})
.unwrap();
let close_handle = close_handle_receiver.recv().unwrap();
let close_handle_ = close_handle.clone();
let mut validator_exit_write = validator_exit.write().unwrap();
validator_exit_write
.as_mut()
.unwrap()
.register_exit(Box::new(move || close_handle_.close()));
Self {
thread_hdl,
#[cfg(test)]
request_processor: test_request_processor,
close_handle: Some(close_handle),
}
}
pub fn exit(&mut self) {
if let Some(c) = self.close_handle.take() {
c.close()
}
}
pub fn join(self) -> thread::Result<()> {
self.thread_hdl.join()
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::{
contact_info::ContactInfo,
crds_value::{CrdsData, CrdsValue, SnapshotHash},
rpc::tests::create_validator_exit,
};
use solana_ledger::{
bank_forks::CompressionType,
genesis_utils::{create_genesis_config, GenesisConfigInfo},
get_tmp_ledger_path,
};
use solana_runtime::bank::Bank;
use solana_sdk::signature::Signer;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::atomic::AtomicBool;
#[test]
fn test_rpc_new() {
let GenesisConfigInfo {
genesis_config,
mint_keypair,
..
} = create_genesis_config(10_000);
let exit = Arc::new(AtomicBool::new(false));
let validator_exit = create_validator_exit(&exit);
let bank = Bank::new(&genesis_config);
let cluster_info = Arc::new(ClusterInfo::new_with_invalid_keypair(ContactInfo::default()));
let ip_addr = IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0));
let rpc_addr = SocketAddr::new(
ip_addr,
solana_net_utils::find_available_port_in_range(ip_addr, (10000, 65535)).unwrap(),
);
let bank_forks = Arc::new(RwLock::new(BankForks::new(bank.slot(), bank)));
let ledger_path = get_tmp_ledger_path!();
let blockstore = Arc::new(Blockstore::open(&ledger_path).unwrap());
let block_commitment_cache = Arc::new(RwLock::new(
BlockCommitmentCache::default_with_blockstore(blockstore.clone()),
));
let mut rpc_service = JsonRpcService::new(
rpc_addr,
JsonRpcConfig::default(),
None,
bank_forks,
block_commitment_cache,
blockstore,
cluster_info,
Hash::default(),
&PathBuf::from("farf"),
StorageState::default(),
validator_exit,
None,
);
let thread = rpc_service.thread_hdl.thread();
assert_eq!(thread.name().unwrap(), "solana-jsonrpc");
assert_eq!(
10_000,
rpc_service
.request_processor
.read()
.unwrap()
.get_balance(Ok(mint_keypair.pubkey()), None)
.unwrap()
.value
);
rpc_service.exit();
rpc_service.join().unwrap();
}
#[test]
fn test_is_get_path() {
let cluster_info = Arc::new(ClusterInfo::new_with_invalid_keypair(ContactInfo::default()));
let rrm = RpcRequestMiddleware::new(PathBuf::from("/"), None, cluster_info.clone(), None);
let rrm_with_snapshot_config = RpcRequestMiddleware::new(
PathBuf::from("/"),
Some(SnapshotConfig {
snapshot_interval_slots: 0,
snapshot_package_output_path: PathBuf::from("/"),
snapshot_path: PathBuf::from("/"),
compression: CompressionType::Bzip2,
}),
cluster_info,
None,
);
assert!(rrm.is_get_path("/genesis.tar.bz2"));
assert!(!rrm.is_get_path("genesis.tar.bz2"));
assert!(!rrm.is_get_path("/snapshot.tar.bz2")); // This is a redirect
assert!(
!rrm.is_get_path("/snapshot-100-AvFf9oS8A8U78HdjT9YG2sTTThLHJZmhaMn2g8vkWYnr.tar.bz2")
);
assert!(rrm_with_snapshot_config
.is_get_path("/snapshot-100-AvFf9oS8A8U78HdjT9YG2sTTThLHJZmhaMn2g8vkWYnr.tar.bz2"));
assert!(!rrm.is_get_path(
"/snapshot-notaslotnumber-AvFf9oS8A8U78HdjT9YG2sTTThLHJZmhaMn2g8vkWYnr.tar.bz2"
));
assert!(!rrm.is_get_path("/"));
assert!(!rrm.is_get_path(".."));
assert!(!rrm.is_get_path("🎣"));
}
#[test]
fn test_health_check_with_no_trusted_validators() {
let cluster_info = Arc::new(ClusterInfo::new_with_invalid_keypair(ContactInfo::default()));
let rm = RpcRequestMiddleware::new(PathBuf::from("/"), None, cluster_info.clone(), None);
assert_eq!(rm.health_check(), "ok");
}
#[test]
fn test_health_check_with_trusted_validators() {
let cluster_info = Arc::new(ClusterInfo::new_with_invalid_keypair(ContactInfo::default()));
let trusted_validators = vec![Pubkey::new_rand(), Pubkey::new_rand(), Pubkey::new_rand()];
let rm = RpcRequestMiddleware::new(
PathBuf::from("/"),
None,
cluster_info.clone(),
Some(trusted_validators.clone().into_iter().collect()),
);
// No account hashes for this node or any trusted validators == "behind"
assert_eq!(rm.health_check(), "behind");
// No account hashes for any trusted validators == "behind"
cluster_info.push_accounts_hashes(vec![(1000, Hash::default()), (900, Hash::default())]);
assert_eq!(rm.health_check(), "behind");
// This node is ahead of the trusted validators == "ok"
cluster_info
.gossip
.write()
.unwrap()
.crds
.insert(
CrdsValue::new_unsigned(CrdsData::AccountsHashes(SnapshotHash::new(
trusted_validators[0].clone(),
vec![
(1, Hash::default()),
(1001, Hash::default()),
(2, Hash::default()),
],
))),
1,
)
.unwrap();
assert_eq!(rm.health_check(), "ok");
// Node is slightly behind the trusted validators == "ok"
cluster_info
.gossip
.write()
.unwrap()
.crds
.insert(
CrdsValue::new_unsigned(CrdsData::AccountsHashes(SnapshotHash::new(
trusted_validators[1].clone(),
vec![(1000 + HEALTH_CHECK_SLOT_DISTANCE - 1, Hash::default())],
))),
1,
)
.unwrap();
assert_eq!(rm.health_check(), "ok");
// Node is far behind the trusted validators == "behind"
cluster_info
.gossip
.write()
.unwrap()
.crds
.insert(
CrdsValue::new_unsigned(CrdsData::AccountsHashes(SnapshotHash::new(
trusted_validators[2].clone(),
vec![(1000 + HEALTH_CHECK_SLOT_DISTANCE, Hash::default())],
))),
1,
)
.unwrap();
assert_eq!(rm.health_check(), "behind");
}
}
|
extern crate aoc;
use std::cmp::Ordering;
use std::collections::hash_map::Entry;
use std::collections::{BinaryHeap, HashMap, HashSet};
use std::fmt;
use std::fs::File;
use std::io::prelude::*;
use std::io::{self, BufReader};
#[derive(Debug, PartialEq, Eq, Hash)]
struct Step(char);
impl Step {
fn work_time(&self) -> usize {
60 + self.0 as usize - 65 + 1
}
}
impl fmt::Display for Step {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.0)
}
}
impl PartialOrd for Step {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
}
}
impl Ord for Step {
fn cmp(&self, other: &Step) -> Ordering {
other.0.cmp(&self.0)
}
}
fn main() -> Result<(), io::Error> {
let arg = aoc::get_cmdline_arg()?;
let steps = BufReader::new(File::open(arg)?)
.lines()
.map(|line| line.unwrap())
.map(|line| {
let must_be_finished = line[5..6].parse::<char>().unwrap();
let before = line[36..37].parse::<char>().unwrap();
(Step(must_be_finished), Step(before))
})
.collect::<Vec<_>>();
let mut map: HashMap<&Step, Vec<&Step>> = HashMap::new();
let mut map_inv: HashMap<&Step, HashSet<&Step>> = HashMap::new();
for (m, b) in &steps {
match map.entry(m) {
Entry::Occupied(ref mut o) => {
o.get_mut().push(b);
}
Entry::Vacant(v) => {
v.insert(vec![b]);
}
}
match map_inv.entry(b) {
Entry::Occupied(ref mut o) => {
o.get_mut().insert(m);
}
Entry::Vacant(v) => {
let mut set = HashSet::new();
set.insert(m);
v.insert(set);
}
}
}
part1(&map, &map_inv);
part2(&map, &map_inv, 5);
Ok(())
}
fn part1(map: &HashMap<&Step, Vec<&Step>>, map_inv: &HashMap<&Step, HashSet<&Step>>) {
let mut available = BinaryHeap::new();
for (k, _) in map.iter() {
if !map_inv.contains_key(k) {
available.push(k);
}
}
let mut output = String::new();
let mut completed = HashSet::new();
let mut tmp = HashSet::new();
while !available.is_empty() {
let mut a = available.pop().unwrap();
tmp.clear();
loop {
let mut completed_previous = true;
if let Some(prev_steps) = map_inv.get(a) {
for i in prev_steps {
if !completed.contains(i) {
completed_previous = false;
break;
}
}
}
if completed_previous {
break;
} else {
if available.is_empty() {
break;
} else {
tmp.insert(a);
a = available.pop().unwrap();
}
}
}
for i in &tmp {
available.push(i);
}
if !completed.contains(a) {
output.push(a.0.to_owned());
}
completed.insert(a);
if let Some(steps) = map.get(a) {
for s in steps {
available.push(s);
}
}
}
println!("part 1: {}", output);
}
fn part2(
map: &HashMap<&Step, Vec<&Step>>,
map_inv: &HashMap<&Step, HashSet<&Step>>,
worker_count: usize,
) {
let mut finished: HashSet<&Step> = HashSet::new();
let mut workers: HashMap<&Step, usize> = HashMap::new();
let mut available = BinaryHeap::new();
for (k, _) in map.iter() {
if !map_inv.contains_key(k) {
available.push(k);
if workers.len() < worker_count {
workers.insert(k, 0);
}
}
}
let mut count = 0;
while !workers.is_empty() {
workers.retain(|k, v| {
if *v == k.work_time() {
finished.insert(k);
false
} else {
*v += 1;
true
}
});
while workers.len() < worker_count {
let mut tmp = vec![];
let mut found = false;
while let Some(a) = available.pop() {
let mut finished_previous = true;
if let Some(prev_steps) = map_inv.get(a) {
for i in prev_steps {
if !finished.contains(i) {
finished_previous = false;
break;
}
}
}
if finished_previous {
workers.insert(a, 1);
found = true;
if let Some(steps) = map.get(a) {
for s in steps {
available.push(s);
}
}
break;
} else {
tmp.push(a);
}
}
for a in tmp {
available.push(a);
}
if !found {
break;
}
}
if !workers.is_empty() {
count += 1;
}
}
println!("part 2: {}", count);
}
|
use std::io;
mod game;
mod dice;
fn select_index(table: &Vec<i16>, current_player: &char) -> usize{
let ok;
game::print_table(&table);
print!("Introduceti piesa de mutat: ");
io::Write::flush(&mut io::stdout()).expect("flush failed!");
let mut input = String::new();
io::stdin().read_line(&mut input).expect("Eroare la citire!");
let numar: usize = input.trim().parse().expect("Inputul trebuie sa fie un numar!");
ok = game::validate_choice(numar, &table, ¤t_player);//verifica daca piesa e buna
if ok == true{
return numar;
}
return 30;
}
fn switch_player(current_player: char) -> char{
if current_player == 'n'{
return 'a';
}
return 'n';
}
fn main() {
let mut table = game::create_table();
println!("Decidem cine incepe.");
let mut current_player = dice::start_player();//char = 'a' sau 'n'
let mut dice;
loop{
dice = dice::roll_dice();
for _i in 0..dice.2 / 2{//dice.2 e numarul de mutari, impartit la 2 deoarece in loop mutam pentru ambele zaruri
let mut poz;
let mut selected_piece;
loop{
println!("\nJucator curent: {}.", current_player);
println!("Mutam cu valoarea: {}.", dice.0);
selected_piece = select_index(&table, ¤t_player);
if current_player == 'a'{
if game::validate_move(selected_piece + dice.0, &table, ¤t_player, selected_piece){
poz = selected_piece + dice.0;
break;
}
}
if current_player == 'n'{
if game::validate_move(selected_piece - dice.0, &table, ¤t_player, selected_piece){
poz = selected_piece - dice.0;
break;
}
}
}
//efectueaza mutare
table = game::make_move(selected_piece, poz, table, ¤t_player);
loop{
println!("\nJucator curent: {}.", current_player);
println!("Mutam cu {}.", dice.1);
selected_piece = select_index(&table, ¤t_player);
if selected_piece == 30{
continue;
}
if current_player == 'a'{
if game::validate_move(selected_piece + dice.1, &table, ¤t_player, selected_piece){
poz = selected_piece + dice.1;
break;
}
}
if current_player == 'n'{
if game::validate_move(selected_piece - dice.1, &table, ¤t_player, selected_piece){
poz = selected_piece - dice.1;
break;
}
}
}
//efectueaza mutare
table = game::make_move(selected_piece, poz, table, ¤t_player);
}
if game::check_final(&table, current_player) == current_player{
break;
}
current_player = switch_player(current_player);
}
} |
//! Convert the source item stream to a parallel iterator and run the filtering in parallel.
use crate::{to_clap_item, FilterContext};
use anyhow::Result;
use parking_lot::Mutex;
use printer::{println_json_with_length, DisplayLines, Printer};
use rayon::iter::{Empty, IntoParallelIterator, ParallelBridge, ParallelIterator};
use std::cmp::Ordering as CmpOrdering;
use std::io::{BufRead, Read};
use std::path::PathBuf;
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::Arc;
use std::time::{Duration, Instant};
use subprocess::Exec;
use types::ProgressUpdate;
use types::{ClapItem, MatchedItem, Query};
/// Parallelable source.
#[derive(Debug)]
pub enum ParallelSource {
File(PathBuf),
Exec(Box<Exec>),
}
/// Returns the ranked results after applying fuzzy filter given the query string and a list of candidates.
///
/// Suitable for invoking the maple CLI command from shell, which will stop everything once the
/// parent is canceled.
pub fn par_dyn_run(
query: &str,
filter_context: FilterContext,
par_source: ParallelSource,
) -> Result<()> {
let query: Query = query.into();
match par_source {
ParallelSource::File(file) => {
par_dyn_run_inner::<Empty<_>, _>(
query,
filter_context,
ParSourceInner::Lines(std::fs::File::open(file)?),
)?;
}
ParallelSource::Exec(exec) => {
par_dyn_run_inner::<Empty<_>, _>(
query,
filter_context,
ParSourceInner::Lines(exec.stream_stdout()?),
)?;
}
}
Ok(())
}
/// Generate an iterator of [`MatchedItem`] from a parallelable iterator.
pub fn par_dyn_run_list<'a, 'b: 'a>(
query: &'a str,
filter_context: FilterContext,
items: impl IntoParallelIterator<Item = Arc<dyn ClapItem>> + 'b,
) {
let query: Query = query.into();
par_dyn_run_inner::<_, std::io::Empty>(query, filter_context, ParSourceInner::Items(items))
.expect("Matching items in parallel can not fail");
}
#[derive(Debug)]
pub struct BestItems<P: ProgressUpdate<DisplayLines>> {
/// Time of last notification.
pub past: Instant,
/// Top N items.
pub items: Vec<MatchedItem>,
pub last_lines: Vec<String>,
pub last_visible_highlights: Vec<Vec<usize>>,
pub max_capacity: usize,
pub progressor: P,
pub update_interval: Duration,
pub printer: Printer,
}
impl<P: ProgressUpdate<DisplayLines>> BestItems<P> {
pub fn new(
printer: Printer,
max_capacity: usize,
progressor: P,
update_interval: Duration,
) -> Self {
Self {
printer,
past: Instant::now(),
items: Vec::with_capacity(max_capacity),
last_lines: Vec::with_capacity(max_capacity),
last_visible_highlights: Vec::with_capacity(max_capacity),
max_capacity,
progressor,
update_interval,
}
}
fn sort(&mut self) {
self.items.sort_unstable_by(|a, b| b.cmp(a));
}
pub fn on_new_match(
&mut self,
matched_item: MatchedItem,
total_matched: usize,
total_processed: usize,
) {
if self.items.len() < self.max_capacity {
self.items.push(matched_item);
self.sort();
let now = Instant::now();
if now > self.past + self.update_interval {
let display_lines = self.printer.to_display_lines(self.items.clone());
self.progressor
.update_all(&display_lines, total_matched, total_processed);
self.last_lines = display_lines.lines;
self.past = now;
}
} else {
let last = self
.items
.last_mut()
.expect("Max capacity is non-zero; qed");
let new = matched_item;
if let CmpOrdering::Greater = new.cmp(last) {
*last = new;
self.sort();
}
if total_matched % 16 == 0 || total_processed % 16 == 0 {
let now = Instant::now();
if now > self.past + self.update_interval {
let display_lines = self.printer.to_display_lines(self.items.clone());
let visible_highlights = display_lines
.indices
.iter()
.map(|line_highlights| {
line_highlights
.iter()
.copied()
.filter(|&x| x <= self.printer.line_width)
.collect::<Vec<_>>()
})
.collect::<Vec<_>>();
if self.last_lines != display_lines.lines.as_slice()
|| self.last_visible_highlights != visible_highlights
{
self.progressor
.update_all(&display_lines, total_matched, total_processed);
self.last_lines = display_lines.lines;
self.last_visible_highlights = visible_highlights;
} else {
self.progressor.update_brief(total_matched, total_processed)
}
self.past = now;
}
}
}
}
}
#[derive(Debug)]
pub struct StdioProgressor;
impl ProgressUpdate<DisplayLines> for StdioProgressor {
fn update_brief(&self, matched: usize, processed: usize) {
#[allow(non_upper_case_globals)]
const deprecated_method: &str = "clap#state#process_filter_message";
println_json_with_length!(matched, processed, deprecated_method);
}
fn update_all(&self, display_lines: &DisplayLines, matched: usize, processed: usize) {
#[allow(non_upper_case_globals)]
const deprecated_method: &str = "clap#state#process_filter_message";
let DisplayLines {
lines,
indices,
truncated_map,
icon_added,
} = display_lines;
if truncated_map.is_empty() {
println_json_with_length!(
deprecated_method,
lines,
indices,
icon_added,
matched,
processed
);
} else {
println_json_with_length!(
deprecated_method,
lines,
indices,
icon_added,
matched,
processed,
truncated_map
);
}
}
fn on_finished(
&self,
display_lines: DisplayLines,
total_matched: usize,
total_processed: usize,
) {
let DisplayLines {
lines,
indices,
truncated_map,
icon_added,
} = display_lines;
#[allow(non_upper_case_globals)]
const deprecated_method: &str = "clap#state#process_filter_message";
println_json_with_length!(
deprecated_method,
lines,
indices,
icon_added,
truncated_map,
total_matched,
total_processed
);
}
}
enum ParSourceInner<I: IntoParallelIterator<Item = Arc<dyn ClapItem>>, R: Read + Send> {
Items(I),
Lines(R),
}
/// Perform the matching on a stream of [`Source::File`] and `[Source::Exec]` in parallel.
fn par_dyn_run_inner<I, R>(
query: Query,
filter_context: FilterContext,
parallel_source: ParSourceInner<I, R>,
) -> Result<()>
where
I: IntoParallelIterator<Item = Arc<dyn ClapItem>>,
R: Read + Send,
{
let FilterContext {
icon,
number,
winwidth,
matcher_builder,
} = filter_context;
let matcher = matcher_builder.build(query);
let winwidth = winwidth.unwrap_or(100);
let number = number.unwrap_or(100);
let matched_count = AtomicUsize::new(0);
let processed_count = AtomicUsize::new(0);
let printer = Printer::new(winwidth, icon);
let best_items = Mutex::new(BestItems::new(
printer,
number,
StdioProgressor,
Duration::from_millis(200),
));
let process_item = |item: Arc<dyn ClapItem>, processed: usize| {
if let Some(matched_item) = matcher.match_item(item) {
let matched = matched_count.fetch_add(1, Ordering::SeqCst);
// TODO: not use mutex?
let mut best_items = best_items.lock();
best_items.on_new_match(matched_item, matched, processed);
drop(best_items);
}
};
match parallel_source {
ParSourceInner::Items(items) => items.into_par_iter().for_each(|item| {
let processed = processed_count.fetch_add(1, Ordering::SeqCst);
process_item(item, processed);
}),
ParSourceInner::Lines(reader) => {
// To avoid Err(Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" })
// The line stream can contain invalid UTF-8 data.
std::io::BufReader::new(reader)
.lines()
.map_while(Result::ok)
.par_bridge()
.for_each(|line: String| {
let processed = processed_count.fetch_add(1, Ordering::SeqCst);
if let Some(item) = to_clap_item(matcher.match_scope(), line) {
process_item(item, processed);
}
});
}
}
let total_matched = matched_count.into_inner();
let total_processed = processed_count.into_inner();
let BestItems {
items,
progressor,
printer,
..
} = best_items.into_inner();
let matched_items = items;
let display_lines = printer.to_display_lines(matched_items);
progressor.on_finished(display_lines, total_matched, total_processed);
Ok(())
}
/// Similar to `[par_dyn_run]`, but used in the process which means we need to cancel the command
/// creating the items manually in order to cancel the task ASAP.
pub fn par_dyn_run_inprocess<P>(
query: &str,
filter_context: FilterContext,
par_source: ParallelSource,
progressor: P,
stop_signal: Arc<AtomicBool>,
) -> Result<()>
where
P: ProgressUpdate<DisplayLines> + Send,
{
let query: Query = query.into();
let FilterContext {
icon,
number,
winwidth,
matcher_builder,
} = filter_context;
let matcher = matcher_builder.build(query);
let winwidth = winwidth.unwrap_or(100);
let number = number.unwrap_or(100);
let matched_count = AtomicUsize::new(0);
let processed_count = AtomicUsize::new(0);
let printer = Printer::new(winwidth, icon);
let best_items = Mutex::new(BestItems::new(
printer,
number,
progressor,
Duration::from_millis(200),
));
let process_item = |item: Arc<dyn ClapItem>, processed: usize| {
if let Some(matched_item) = matcher.match_item(item) {
let matched = matched_count.fetch_add(1, Ordering::SeqCst);
// TODO: not use mutex?
let mut best_items = best_items.lock();
best_items.on_new_match(matched_item, matched, processed);
drop(best_items);
}
};
let read: Box<dyn std::io::Read + Send> = match par_source {
ParallelSource::File(file) => Box::new(std::fs::File::open(file)?),
ParallelSource::Exec(exec) => Box::new(exec.detached().stream_stdout()?), // TODO: kill the exec command ASAP/ Run the exec command in another blocking task.
};
// To avoid Err(Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" })
// The line stream can contain invalid UTF-8 data.
let res = std::io::BufReader::new(read)
.lines()
.map_while(Result::ok)
.par_bridge()
.try_for_each(|line: String| {
if stop_signal.load(Ordering::SeqCst) {
tracing::debug!(?matcher, "[par_dyn_run_inprocess] stop signal received");
// Note that even the stop signal has been received, the thread created by
// rayon does not exit actually, it just tries to stop the work ASAP.
Err(())
} else {
let processed = processed_count.fetch_add(1, Ordering::SeqCst);
if let Some(item) = to_clap_item(matcher.match_scope(), line) {
process_item(item, processed);
}
Ok(())
}
});
let total_matched = matched_count.into_inner();
let total_processed = processed_count.into_inner();
if res.is_err() {
tracing::debug!(
?total_matched,
?total_processed,
"[par_dyn_run_inprocess] return early due to the stop signal arrived."
);
return Ok(());
}
let BestItems {
items,
progressor,
printer,
..
} = best_items.into_inner();
let matched_items = items;
let display_lines = printer.to_display_lines(matched_items);
progressor.on_finished(display_lines, total_matched, total_processed);
Ok(())
}
|
use std::cell::RefCell;
use std::collections::HashMap;
use std::collections::VecDeque;
use std::fmt;
use std::rc::Rc;
#[derive(Debug, Clone)]
enum ValueBind {
Vb(String, VarValue), /* type, value*/
}
impl ValueBind {
pub fn get_type(&self) -> String {
match self {
ValueBind::Vb(t, _) => t.to_string(),
}
}
pub fn get_value(&self) -> VarValue {
match self {
ValueBind::Vb(_, v) => *v,
}
}
}
#[derive(Debug, Clone)]
struct ProgList {
var_list: HashMap<String, ValueBind>,
func_list: HashMap<String, PistoletAST>,
}
#[derive(Debug, Clone)]
struct ProgState(Rc<RefCell<ProgList>>);
#[derive(Debug, Clone)]
struct StateVec {
states: VecDeque<ProgState>,
}
#[derive(Debug, Clone)]
struct ProgStates(Rc<RefCell<StateVec>>);
impl ProgStates {
pub fn new() -> ProgStates {
let main_state = ProgState(Rc::new(RefCell::new(ProgList {
var_list: HashMap::new(),
func_list: HashMap::new(),
})));
let state = ProgStates(Rc::new(RefCell::new(StateVec {
states: VecDeque::new(),
})));
state.push_back(main_state);
return state;
}
pub fn push_front(&self, state: ProgState) {
self.0.borrow_mut().states.push_front(state)
}
pub fn push_back(&self, state: ProgState) {
self.0.borrow_mut().states.push_back(state)
}
pub fn pop_front(&self) {
self.0.borrow_mut().states.pop_front();
}
pub fn find_var(&self, name: String) -> Result<ValueBind, RuntimeErr> {
let mut r: ValueBind = ValueBind::Vb("foo".to_string(), VarValue::Bool(true));
let mut find_var: bool = false;
for state in self.0.borrow().states.iter() {
match state.get(name.clone()) {
Some(result) => {
r = result.clone();
find_var = true;
break;
}
None => continue,
}
}
if find_var {
Ok(r)
} else {
Err(RuntimeErr::VarUsedBeforeDefine)
}
}
pub fn insert(&self, var_name: String, var_value: ValueBind) {
self.0
.borrow_mut()
.states
.get(0)
.unwrap()
.insert(var_name, var_value);
}
pub fn print(&self) {
self.0.borrow_mut().states.get(0).unwrap().print();
}
}
impl ProgState {
pub fn insert(&self, var_name: String, var_value: ValueBind) {
self.0.borrow_mut().var_list.insert(var_name, var_value);
}
pub fn get(&self, var_name: String) -> Option<ValueBind> {
match self.0.borrow().var_list.get(&var_name) {
Some(n) => Some(n.clone()),
None => None,
}
}
pub fn print(&self) {
println!("------ PROGRAM STATE ------");
for var in &(self.0.borrow().var_list) {
let (var_name, ValueBind::Vb(type_name, var_value)) = var;
println!(
"Var: {} Type: {} Value: {}",
var_name, type_name, var_value
)
}
println!("------ PROGRAM STATE ------");
}
}
#[derive(Debug, Copy, Clone)]
enum VarValue {
Int(i128),
Float(f64),
Bool(bool),
}
impl fmt::Display for VarValue {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
VarValue::Int(i) => write!(f, "{}", i),
VarValue::Float(i) => write!(f, "{}", i),
VarValue::Bool(i) => write!(f, "{}", i),
}
}
}
#[derive(Debug)]
enum RuntimeErr {
TypeMismatch,
Unknown,
VarUsedBeforeDefine,
DivideByZero,
ReturnValue(ValueBind),
}
impl RuntimeErr {
pub fn print(&self) {
println!("------ Runtime Error ------");
match self {
RuntimeErr::TypeMismatch => println!("[Error] Type mismatch in an expression"),
RuntimeErr::VarUsedBeforeDefine => println!("[Error] Var used before defined"),
RuntimeErr::Unknown => println!("[Error] An exception has occurred"),
RuntimeErr::DivideByZero => println!("[Error] Attempt to divide by zero "),
_ => unreachable!(),
}
println!("------ Runtime Error ------");
}
}
fn type_dec(v1: VarValue, v2: VarValue) -> bool {
match v1 {
VarValue::Int(_) => match v2 {
VarValue::Int(_) => true,
_ => false,
},
VarValue::Float(_) => match v2 {
VarValue::Float(_) => true,
_ => false,
},
VarValue::Bool(_) => match v2 {
VarValue::Bool(_) => true,
_ => false,
},
}
}
fn var_eval(name: String, states: ProgStates) -> Result<ValueBind, RuntimeErr> {
states.find_var(name)
}
fn expr_eval(expr: PistoletExpr, state: ProgStates) -> Result<ValueBind, RuntimeErr> {
match expr {
PistoletExpr::Val(value) => match value {
PistoletValue::Integer(n) => Ok(ValueBind::Vb("int".to_string(), VarValue::Int(n))),
PistoletValue::Float(n) => Ok(ValueBind::Vb("float".to_string(), VarValue::Float(n))),
PistoletValue::Boolean(n) => Ok(ValueBind::Vb("bool".to_string(), VarValue::Bool(n))),
PistoletValue::Var(n) => var_eval(n, state),
_ => unimplemented!(),
},
PistoletExpr::Add(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Int(n) => match v2 {
VarValue::Int(m) => {
Ok(ValueBind::Vb("int".to_string(), VarValue::Int(n + m)))
}
_ => unreachable!(),
},
VarValue::Float(n) => match v2 {
VarValue::Float(m) => {
Ok(ValueBind::Vb("float".to_string(), VarValue::Float(n + m)))
}
_ => unreachable!(),
},
_ => Err(RuntimeErr::TypeMismatch),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletExpr::Sub(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Int(n) => match v2 {
VarValue::Int(m) => {
Ok(ValueBind::Vb("int".to_string(), VarValue::Int(n - m)))
}
_ => unreachable!(),
},
VarValue::Float(n) => match v2 {
VarValue::Float(m) => {
Ok(ValueBind::Vb("float".to_string(), VarValue::Float(n - m)))
}
_ => unreachable!(),
},
_ => Err(RuntimeErr::TypeMismatch),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletExpr::Mul(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Int(n) => match v2 {
VarValue::Int(m) => {
Ok(ValueBind::Vb("int".to_string(), VarValue::Int(n * m)))
}
_ => unreachable!(),
},
VarValue::Float(n) => match v2 {
VarValue::Float(m) => {
Ok(ValueBind::Vb("float".to_string(), VarValue::Float(n * m)))
}
_ => unreachable!(),
},
_ => Err(RuntimeErr::TypeMismatch),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletExpr::Div(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Int(n) => match v2 {
VarValue::Int(m) => {
if m == 0 {
Err(RuntimeErr::DivideByZero)
} else {
Ok(ValueBind::Vb("int".to_string(), VarValue::Int(n / m)))
}
}
_ => unreachable!(),
},
VarValue::Float(n) => match v2 {
VarValue::Float(m) => {
let r = n / m;
if r.is_infinite() {
Err(RuntimeErr::DivideByZero)
} else {
Ok(ValueBind::Vb("float".to_string(), VarValue::Float(r)))
}
}
_ => unreachable!(),
},
_ => Err(RuntimeErr::TypeMismatch),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletExpr::And(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Bool(n) => match v2 {
VarValue::Bool(m) => {
Ok(ValueBind::Vb("bool".to_string(), VarValue::Bool(n && m)))
}
_ => unreachable!(),
},
_ => Err(RuntimeErr::TypeMismatch),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletExpr::Orb(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Bool(n) => match v2 {
VarValue::Bool(m) => {
Ok(ValueBind::Vb("bool".to_string(), VarValue::Bool(n || m)))
}
_ => unreachable!(),
},
_ => Err(RuntimeErr::TypeMismatch),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletExpr::Nand(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Bool(n) => match v2 {
VarValue::Bool(m) => {
Ok(ValueBind::Vb("bool".to_string(), VarValue::Bool(!(n && m))))
}
_ => unreachable!(),
},
_ => Err(RuntimeErr::TypeMismatch),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletExpr::Eq(e1, e2) => {
let v1 = expr_eval(*e1, state.clone())?;
let v2 = expr_eval(*e2, state.clone())?;
let v1 = v1.get_value();
let v2 = v2.get_value();
if type_dec(v1, v2) {
match v1 {
VarValue::Int(n) => match v2 {
VarValue::Int(m) => {
Ok(ValueBind::Vb("bool".to_string(), VarValue::Bool(n == m)))
}
_ => unreachable!(),
},
VarValue::Float(n) => match v2 {
VarValue::Float(m) => {
Ok(ValueBind::Vb("bool".to_string(), VarValue::Bool(n == m)))
}
_ => unreachable!(),
},
_ => unreachable!(),
}
} else {
Err(RuntimeErr::TypeMismatch)
}
}
}
}
fn seq_eval(ast: PistoletAST, state: ProgStates) -> Option<RuntimeErr> {
let mut error: RuntimeErr = RuntimeErr::Unknown;
let mut error_state = false;
match ast {
PistoletAST::Seq(term_list) => {
for term in term_list {
match ast_eval(term, state.clone()) {
Ok(_) => continue,
Err(err) => {
error = err;
error_state = true;
break;
}
}
}
}
_ => unreachable!(),
}
if error_state {
Some(error)
} else {
None
}
}
fn ast_eval(ast: PistoletAST, state: ProgStates) -> Result<ProgStates, RuntimeErr> {
match ast {
PistoletAST::Seq(term_list) => match seq_eval(PistoletAST::Seq(term_list), state.clone()) {
Some(err) => Err(err),
None => Ok(state.clone()),
},
PistoletAST::Let(var_name, var_type, var_expr) => {
let var_value = expr_eval(var_expr, state.clone())?;
if var_value.get_type().eq_ignore_ascii_case(&var_type) {
state.insert(var_name, var_value);
Ok(state)
} else {
Err(RuntimeErr::TypeMismatch)
}
}
PistoletAST::If(expr, branch_true, branch_false) => {
let expr_value = expr_eval(expr, state.clone())?;
let sub_state = ProgState(Rc::new(RefCell::new(ProgList {
var_list: HashMap::new(),
func_list: HashMap::new(),
})));
state.push_front(sub_state);
match expr_value.get_value() {
VarValue::Bool(true) => match seq_eval(*branch_true, state.clone()) {
Some(err) => {
state.pop_front();
Err(err)
}
None => {
state.pop_front();
Ok(state)
}
},
VarValue::Bool(false) => match seq_eval(*branch_false, state.clone()) {
Some(err) => {
state.pop_front();
Err(err)
}
None => {
state.pop_front();
Ok(state)
}
},
_ => unreachable!(),
}
}
PistoletAST::While(seq, expr) => {
let info: Result<ProgStates, RuntimeErr>;
let sub_state = ProgState(Rc::new(RefCell::new(ProgList {
var_list: HashMap::new(),
func_list: HashMap::new(),
})));
state.push_front(sub_state);
loop {
match seq_eval(*seq.clone(), state.clone()) {
Some(err) => {
info = Err(err);
break;
} //Here can process break. in future...
None => {
let expr_value = expr_eval(expr.clone(), state.clone())?.get_value();
match expr_value {
VarValue::Bool(true) => {
info = Ok(state.clone());
break;
}
VarValue::Bool(false) => {
continue;
}
_ => unreachable!(),
}
}
}
}
state.pop_front();
info
}
PistoletAST::Return(expr) => {
let expr_value = expr_eval(expr, state.clone())?;
Err(RuntimeErr::ReturnValue(expr_value))
}
PistoletAST::PrintLine(expr) => {
let expr_value = expr_eval(expr, state.clone())?;
println!("{} : {}", expr_value.get_value(), expr_value.get_type());
Ok(state)
}
PistoletAST::EOI => Ok(state),
_ => Err(RuntimeErr::Unknown),
}
}
|
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[link(name = "windows")]
extern "system" {
pub fn CloseHandle(hobject: HANDLE) -> BOOL;
pub fn CompareObjectHandles(hfirstobjecthandle: HANDLE, hsecondobjecthandle: HANDLE) -> BOOL;
pub fn DuplicateHandle(hsourceprocesshandle: HANDLE, hsourcehandle: HANDLE, htargetprocesshandle: HANDLE, lptargethandle: *mut HANDLE, dwdesiredaccess: u32, binherithandle: BOOL, dwoptions: DUPLICATE_HANDLE_OPTIONS) -> BOOL;
pub fn GetHandleInformation(hobject: HANDLE, lpdwflags: *mut u32) -> BOOL;
pub fn GetLastError() -> WIN32_ERROR;
pub fn RtlNtStatusToDosError(status: NTSTATUS) -> u32;
pub fn SetHandleInformation(hobject: HANDLE, dwmask: u32, dwflags: HANDLE_FLAGS) -> BOOL;
pub fn SetLastError(dwerrcode: WIN32_ERROR);
pub fn SetLastErrorEx(dwerrcode: WIN32_ERROR, dwtype: u32);
pub fn SysAddRefString(bstrstring: BSTR) -> ::windows_sys::core::HRESULT;
pub fn SysAllocString(psz: PWSTR) -> BSTR;
pub fn SysAllocStringByteLen(psz: PSTR, len: u32) -> BSTR;
pub fn SysAllocStringLen(strin: PWSTR, ui: u32) -> BSTR;
pub fn SysFreeString(bstrstring: BSTR);
pub fn SysReAllocString(pbstr: *mut BSTR, psz: PWSTR) -> i32;
pub fn SysReAllocStringLen(pbstr: *mut BSTR, psz: PWSTR, len: u32) -> i32;
pub fn SysReleaseString(bstrstring: BSTR);
pub fn SysStringByteLen(bstr: BSTR) -> u32;
pub fn SysStringLen(pbstr: BSTR) -> u32;
}
pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID: i32 = 15705i32;
pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED: i32 = 15704i32;
pub const APPMODEL_ERROR_NO_APPLICATION: i32 = 15703i32;
pub const APPMODEL_ERROR_NO_MUTABLE_DIRECTORY: i32 = 15707i32;
pub const APPMODEL_ERROR_NO_PACKAGE: i32 = 15700i32;
pub const APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT: i32 = 15702i32;
pub const APPMODEL_ERROR_PACKAGE_NOT_AVAILABLE: i32 = 15706i32;
pub const APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT: i32 = 15701i32;
pub const APPX_E_BLOCK_HASH_INVALID: ::windows_sys::core::HRESULT = -2146958841i32;
pub const APPX_E_CORRUPT_CONTENT: ::windows_sys::core::HRESULT = -2146958842i32;
pub const APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2146958832i32;
pub const APPX_E_DELTA_BASELINE_VERSION_MISMATCH: ::windows_sys::core::HRESULT = -2146958835i32;
pub const APPX_E_DELTA_PACKAGE_MISSING_FILE: ::windows_sys::core::HRESULT = -2146958834i32;
pub const APPX_E_FILE_COMPRESSION_MISMATCH: ::windows_sys::core::HRESULT = -2146958828i32;
pub const APPX_E_INTERLEAVING_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2146958847i32;
pub const APPX_E_INVALID_APPINSTALLER: ::windows_sys::core::HRESULT = -2146958836i32;
pub const APPX_E_INVALID_BLOCKMAP: ::windows_sys::core::HRESULT = -2146958843i32;
pub const APPX_E_INVALID_CONTENTGROUPMAP: ::windows_sys::core::HRESULT = -2146958837i32;
pub const APPX_E_INVALID_DELTA_PACKAGE: ::windows_sys::core::HRESULT = -2146958833i32;
pub const APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST: ::windows_sys::core::HRESULT = -2146958826i32;
pub const APPX_E_INVALID_KEY_INFO: ::windows_sys::core::HRESULT = -2146958838i32;
pub const APPX_E_INVALID_MANIFEST: ::windows_sys::core::HRESULT = -2146958844i32;
pub const APPX_E_INVALID_PACKAGESIGNCONFIG: ::windows_sys::core::HRESULT = -2146958830i32;
pub const APPX_E_INVALID_PACKAGE_FOLDER_ACLS: ::windows_sys::core::HRESULT = -2146958825i32;
pub const APPX_E_INVALID_PACKAGING_LAYOUT: ::windows_sys::core::HRESULT = -2146958831i32;
pub const APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION: ::windows_sys::core::HRESULT = -2146958827i32;
pub const APPX_E_INVALID_PUBLISHER_BRIDGING: ::windows_sys::core::HRESULT = -2146958824i32;
pub const APPX_E_INVALID_SIP_CLIENT_DATA: ::windows_sys::core::HRESULT = -2146958839i32;
pub const APPX_E_MISSING_REQUIRED_FILE: ::windows_sys::core::HRESULT = -2146958845i32;
pub const APPX_E_PACKAGING_INTERNAL: ::windows_sys::core::HRESULT = -2146958848i32;
pub const APPX_E_RELATIONSHIPS_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2146958846i32;
pub const APPX_E_REQUESTED_RANGE_TOO_LARGE: ::windows_sys::core::HRESULT = -2146958840i32;
pub const APPX_E_RESOURCESPRI_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2146958829i32;
#[repr(C)]
pub struct APP_LOCAL_DEVICE_ID {
pub value: [u8; 32],
}
impl ::core::marker::Copy for APP_LOCAL_DEVICE_ID {}
impl ::core::clone::Clone for APP_LOCAL_DEVICE_ID {
fn clone(&self) -> Self {
*self
}
}
pub const APP_LOCAL_DEVICE_ID_SIZE: u32 = 32u32;
pub type BOOL = i32;
pub type BOOLEAN = u8;
pub type BSTR = *mut u16;
pub const BT_E_SPURIOUS_ACTIVATION: ::windows_sys::core::HRESULT = -2146958592i32;
pub const CACHE_E_FIRST: i32 = -2147221136i32;
pub const CACHE_E_LAST: i32 = -2147221121i32;
pub const CACHE_E_NOCACHE_UPDATED: ::windows_sys::core::HRESULT = -2147221136i32;
pub const CACHE_S_FIRST: i32 = 262512i32;
pub const CACHE_S_FORMATETC_NOTSUPPORTED: ::windows_sys::core::HRESULT = 262512i32;
pub const CACHE_S_LAST: i32 = 262527i32;
pub const CACHE_S_SAMECACHE: ::windows_sys::core::HRESULT = 262513i32;
pub const CACHE_S_SOMECACHES_NOTUPDATED: ::windows_sys::core::HRESULT = 262514i32;
pub const CAT_E_CATIDNOEXIST: ::windows_sys::core::HRESULT = -2147221152i32;
pub const CAT_E_FIRST: i32 = -2147221152i32;
pub const CAT_E_LAST: i32 = -2147221151i32;
pub const CAT_E_NODESCRIPTION: ::windows_sys::core::HRESULT = -2147221151i32;
pub const CERTSRV_E_ADMIN_DENIED_REQUEST: ::windows_sys::core::HRESULT = -2146877420i32;
pub const CERTSRV_E_ALIGNMENT_FAULT: ::windows_sys::core::HRESULT = -2146877424i32;
pub const CERTSRV_E_ARCHIVED_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2146875388i32;
pub const CERTSRV_E_ARCHIVED_KEY_UNEXPECTED: ::windows_sys::core::HRESULT = -2146875376i32;
pub const CERTSRV_E_BAD_RENEWAL_CERT_ATTRIBUTE: ::windows_sys::core::HRESULT = -2146877426i32;
pub const CERTSRV_E_BAD_RENEWAL_SUBJECT: ::windows_sys::core::HRESULT = -2146875386i32;
pub const CERTSRV_E_BAD_REQUESTSTATUS: ::windows_sys::core::HRESULT = -2146877437i32;
pub const CERTSRV_E_BAD_REQUESTSUBJECT: ::windows_sys::core::HRESULT = -2146877439i32;
pub const CERTSRV_E_BAD_REQUEST_KEY_ARCHIVAL: ::windows_sys::core::HRESULT = -2146877428i32;
pub const CERTSRV_E_BAD_TEMPLATE_VERSION: ::windows_sys::core::HRESULT = -2146875385i32;
pub const CERTSRV_E_CERT_TYPE_OVERLAP: ::windows_sys::core::HRESULT = -2146875372i32;
pub const CERTSRV_E_CORRUPT_KEY_ATTESTATION: ::windows_sys::core::HRESULT = -2146875365i32;
pub const CERTSRV_E_DOWNLEVEL_DC_SSL_OR_UPGRADE: ::windows_sys::core::HRESULT = -2146877421i32;
pub const CERTSRV_E_ENCODING_LENGTH: ::windows_sys::core::HRESULT = -2146877433i32;
pub const CERTSRV_E_ENCRYPTION_CERT_REQUIRED: ::windows_sys::core::HRESULT = -2146877416i32;
pub const CERTSRV_E_ENROLL_DENIED: ::windows_sys::core::HRESULT = -2146877423i32;
pub const CERTSRV_E_EXPIRED_CHALLENGE: ::windows_sys::core::HRESULT = -2146875364i32;
pub const CERTSRV_E_INVALID_ATTESTATION: ::windows_sys::core::HRESULT = -2146875367i32;
pub const CERTSRV_E_INVALID_CA_CERTIFICATE: ::windows_sys::core::HRESULT = -2146877435i32;
pub const CERTSRV_E_INVALID_EK: ::windows_sys::core::HRESULT = -2146875369i32;
pub const CERTSRV_E_INVALID_IDBINDING: ::windows_sys::core::HRESULT = -2146875368i32;
pub const CERTSRV_E_INVALID_REQUESTID: ::windows_sys::core::HRESULT = -2146875362i32;
pub const CERTSRV_E_INVALID_RESPONSE: ::windows_sys::core::HRESULT = -2146875363i32;
pub const CERTSRV_E_ISSUANCE_POLICY_REQUIRED: ::windows_sys::core::HRESULT = -2146875380i32;
pub const CERTSRV_E_KEY_ARCHIVAL_NOT_CONFIGURED: ::windows_sys::core::HRESULT = -2146877430i32;
pub const CERTSRV_E_KEY_ATTESTATION: ::windows_sys::core::HRESULT = -2146875366i32;
pub const CERTSRV_E_KEY_ATTESTATION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146877417i32;
pub const CERTSRV_E_KEY_LENGTH: ::windows_sys::core::HRESULT = -2146875375i32;
pub const CERTSRV_E_NO_CAADMIN_DEFINED: ::windows_sys::core::HRESULT = -2146877427i32;
pub const CERTSRV_E_NO_CERT_TYPE: ::windows_sys::core::HRESULT = -2146875391i32;
pub const CERTSRV_E_NO_DB_SESSIONS: ::windows_sys::core::HRESULT = -2146877425i32;
pub const CERTSRV_E_NO_POLICY_SERVER: ::windows_sys::core::HRESULT = -2146877419i32;
pub const CERTSRV_E_NO_REQUEST: ::windows_sys::core::HRESULT = -2146877438i32;
pub const CERTSRV_E_NO_VALID_KRA: ::windows_sys::core::HRESULT = -2146877429i32;
pub const CERTSRV_E_PENDING_CLIENT_RESPONSE: ::windows_sys::core::HRESULT = -2146875360i32;
pub const CERTSRV_E_PROPERTY_EMPTY: ::windows_sys::core::HRESULT = -2146877436i32;
pub const CERTSRV_E_RENEWAL_BAD_PUBLIC_KEY: ::windows_sys::core::HRESULT = -2146875370i32;
pub const CERTSRV_E_REQUEST_PRECERTIFICATE_MISMATCH: ::windows_sys::core::HRESULT = -2146875361i32;
pub const CERTSRV_E_RESTRICTEDOFFICER: ::windows_sys::core::HRESULT = -2146877431i32;
pub const CERTSRV_E_ROLECONFLICT: ::windows_sys::core::HRESULT = -2146877432i32;
pub const CERTSRV_E_SERVER_SUSPENDED: ::windows_sys::core::HRESULT = -2146877434i32;
pub const CERTSRV_E_SIGNATURE_COUNT: ::windows_sys::core::HRESULT = -2146875382i32;
pub const CERTSRV_E_SIGNATURE_POLICY_REQUIRED: ::windows_sys::core::HRESULT = -2146875383i32;
pub const CERTSRV_E_SIGNATURE_REJECTED: ::windows_sys::core::HRESULT = -2146875381i32;
pub const CERTSRV_E_SMIME_REQUIRED: ::windows_sys::core::HRESULT = -2146875387i32;
pub const CERTSRV_E_SUBJECT_ALT_NAME_REQUIRED: ::windows_sys::core::HRESULT = -2146875389i32;
pub const CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED: ::windows_sys::core::HRESULT = -2146875378i32;
pub const CERTSRV_E_SUBJECT_DNS_REQUIRED: ::windows_sys::core::HRESULT = -2146875377i32;
pub const CERTSRV_E_SUBJECT_EMAIL_REQUIRED: ::windows_sys::core::HRESULT = -2146875374i32;
pub const CERTSRV_E_SUBJECT_UPN_REQUIRED: ::windows_sys::core::HRESULT = -2146875379i32;
pub const CERTSRV_E_TEMPLATE_CONFLICT: ::windows_sys::core::HRESULT = -2146875390i32;
pub const CERTSRV_E_TEMPLATE_DENIED: ::windows_sys::core::HRESULT = -2146877422i32;
pub const CERTSRV_E_TEMPLATE_POLICY_REQUIRED: ::windows_sys::core::HRESULT = -2146875384i32;
pub const CERTSRV_E_TOO_MANY_SIGNATURES: ::windows_sys::core::HRESULT = -2146875371i32;
pub const CERTSRV_E_UNKNOWN_CERT_TYPE: ::windows_sys::core::HRESULT = -2146875373i32;
pub const CERTSRV_E_UNSUPPORTED_CERT_TYPE: ::windows_sys::core::HRESULT = -2146875392i32;
pub const CERTSRV_E_WEAK_SIGNATURE_OR_KEY: ::windows_sys::core::HRESULT = -2146877418i32;
pub const CERT_E_CHAINING: ::windows_sys::core::HRESULT = -2146762486i32;
pub const CERT_E_CN_NO_MATCH: ::windows_sys::core::HRESULT = -2146762481i32;
pub const CERT_E_CRITICAL: ::windows_sys::core::HRESULT = -2146762491i32;
pub const CERT_E_EXPIRED: ::windows_sys::core::HRESULT = -2146762495i32;
pub const CERT_E_INVALID_NAME: ::windows_sys::core::HRESULT = -2146762476i32;
pub const CERT_E_INVALID_POLICY: ::windows_sys::core::HRESULT = -2146762477i32;
pub const CERT_E_ISSUERCHAINING: ::windows_sys::core::HRESULT = -2146762489i32;
pub const CERT_E_MALFORMED: ::windows_sys::core::HRESULT = -2146762488i32;
pub const CERT_E_PATHLENCONST: ::windows_sys::core::HRESULT = -2146762492i32;
pub const CERT_E_PURPOSE: ::windows_sys::core::HRESULT = -2146762490i32;
pub const CERT_E_REVOCATION_FAILURE: ::windows_sys::core::HRESULT = -2146762482i32;
pub const CERT_E_REVOKED: ::windows_sys::core::HRESULT = -2146762484i32;
pub const CERT_E_ROLE: ::windows_sys::core::HRESULT = -2146762493i32;
pub const CERT_E_UNTRUSTEDCA: ::windows_sys::core::HRESULT = -2146762478i32;
pub const CERT_E_UNTRUSTEDROOT: ::windows_sys::core::HRESULT = -2146762487i32;
pub const CERT_E_UNTRUSTEDTESTROOT: ::windows_sys::core::HRESULT = -2146762483i32;
pub const CERT_E_VALIDITYPERIODNESTING: ::windows_sys::core::HRESULT = -2146762494i32;
pub const CERT_E_WRONG_USAGE: ::windows_sys::core::HRESULT = -2146762480i32;
pub type CHAR = u8;
pub const CI_CORRUPT_CATALOG: ::windows_sys::core::HRESULT = -1073473535i32;
pub const CI_CORRUPT_DATABASE: ::windows_sys::core::HRESULT = -1073473536i32;
pub const CI_CORRUPT_FILTER_BUFFER: ::windows_sys::core::HRESULT = -1073473529i32;
pub const CI_E_ALREADY_INITIALIZED: ::windows_sys::core::HRESULT = -2147215350i32;
pub const CI_E_BUFFERTOOSMALL: ::windows_sys::core::HRESULT = -2147215348i32;
pub const CI_E_CARDINALITY_MISMATCH: ::windows_sys::core::HRESULT = -2147215321i32;
pub const CI_E_CLIENT_FILTER_ABORT: ::windows_sys::core::HRESULT = -1073473500i32;
pub const CI_E_CONFIG_DISK_FULL: ::windows_sys::core::HRESULT = -2147215320i32;
pub const CI_E_DISK_FULL: ::windows_sys::core::HRESULT = -2147215343i32;
pub const CI_E_DISTRIBUTED_GROUPBY_UNSUPPORTED: ::windows_sys::core::HRESULT = -2147215319i32;
pub const CI_E_DUPLICATE_NOTIFICATION: ::windows_sys::core::HRESULT = -2147215337i32;
pub const CI_E_ENUMERATION_STARTED: ::windows_sys::core::HRESULT = -1073473502i32;
pub const CI_E_FILTERING_DISABLED: ::windows_sys::core::HRESULT = -2147215344i32;
pub const CI_E_INVALID_FLAGS_COMBINATION: ::windows_sys::core::HRESULT = -2147215335i32;
pub const CI_E_INVALID_STATE: ::windows_sys::core::HRESULT = -2147215345i32;
pub const CI_E_LOGON_FAILURE: ::windows_sys::core::HRESULT = -2147215332i32;
pub const CI_E_NOT_FOUND: ::windows_sys::core::HRESULT = -2147215339i32;
pub const CI_E_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2147215349i32;
pub const CI_E_NOT_RUNNING: ::windows_sys::core::HRESULT = -2147215328i32;
pub const CI_E_NO_CATALOG: ::windows_sys::core::HRESULT = -2147215331i32;
pub const CI_E_OUTOFSEQ_INCREMENT_DATA: ::windows_sys::core::HRESULT = -2147215334i32;
pub const CI_E_PROPERTY_NOT_CACHED: ::windows_sys::core::HRESULT = -2147215347i32;
pub const CI_E_PROPERTY_TOOLARGE: ::windows_sys::core::HRESULT = -1073473501i32;
pub const CI_E_SHARING_VIOLATION: ::windows_sys::core::HRESULT = -2147215333i32;
pub const CI_E_SHUTDOWN: ::windows_sys::core::HRESULT = -2147215342i32;
pub const CI_E_STRANGE_PAGEORSECTOR_SIZE: ::windows_sys::core::HRESULT = -2147215330i32;
pub const CI_E_TIMEOUT: ::windows_sys::core::HRESULT = -2147215329i32;
pub const CI_E_UPDATES_DISABLED: ::windows_sys::core::HRESULT = -2147215336i32;
pub const CI_E_USE_DEFAULT_PID: ::windows_sys::core::HRESULT = -2147215338i32;
pub const CI_E_WORKID_NOTVALID: ::windows_sys::core::HRESULT = -2147215341i32;
pub const CI_INCORRECT_VERSION: ::windows_sys::core::HRESULT = -1073473503i32;
pub const CI_INVALID_INDEX: ::windows_sys::core::HRESULT = -1073473528i32;
pub const CI_INVALID_PARTITION: ::windows_sys::core::HRESULT = -1073473534i32;
pub const CI_INVALID_PRIORITY: ::windows_sys::core::HRESULT = -1073473533i32;
pub const CI_NO_CATALOG: ::windows_sys::core::HRESULT = -1073473530i32;
pub const CI_NO_STARTING_KEY: ::windows_sys::core::HRESULT = -1073473532i32;
pub const CI_OUT_OF_INDEX_IDS: ::windows_sys::core::HRESULT = -1073473531i32;
pub const CI_PROPSTORE_INCONSISTENCY: ::windows_sys::core::HRESULT = -1073473527i32;
pub const CI_S_CAT_STOPPED: ::windows_sys::core::HRESULT = 268326i32;
pub const CI_S_END_OF_ENUMERATION: ::windows_sys::core::HRESULT = 268308i32;
pub const CI_S_NO_DOCSTORE: ::windows_sys::core::HRESULT = 268325i32;
pub const CI_S_WORKID_DELETED: ::windows_sys::core::HRESULT = 268302i32;
pub const CLASSFACTORY_E_FIRST: i32 = -2147221232i32;
pub const CLASSFACTORY_E_LAST: i32 = -2147221217i32;
pub const CLASSFACTORY_S_FIRST: i32 = 262416i32;
pub const CLASSFACTORY_S_LAST: i32 = 262431i32;
pub const CLASS_E_CLASSNOTAVAILABLE: ::windows_sys::core::HRESULT = -2147221231i32;
pub const CLASS_E_NOAGGREGATION: ::windows_sys::core::HRESULT = -2147221232i32;
pub const CLASS_E_NOTLICENSED: ::windows_sys::core::HRESULT = -2147221230i32;
pub const CLIENTSITE_E_FIRST: i32 = -2147221104i32;
pub const CLIENTSITE_E_LAST: i32 = -2147221089i32;
pub const CLIENTSITE_S_FIRST: i32 = 262544i32;
pub const CLIENTSITE_S_LAST: i32 = 262559i32;
pub const CLIPBRD_E_BAD_DATA: ::windows_sys::core::HRESULT = -2147221037i32;
pub const CLIPBRD_E_CANT_CLOSE: ::windows_sys::core::HRESULT = -2147221036i32;
pub const CLIPBRD_E_CANT_EMPTY: ::windows_sys::core::HRESULT = -2147221039i32;
pub const CLIPBRD_E_CANT_OPEN: ::windows_sys::core::HRESULT = -2147221040i32;
pub const CLIPBRD_E_CANT_SET: ::windows_sys::core::HRESULT = -2147221038i32;
pub const CLIPBRD_E_FIRST: i32 = -2147221040i32;
pub const CLIPBRD_E_LAST: i32 = -2147221025i32;
pub const CLIPBRD_S_FIRST: i32 = 262608i32;
pub const CLIPBRD_S_LAST: i32 = 262623i32;
pub const COMADMIN_E_ALREADYINSTALLED: ::windows_sys::core::HRESULT = -2146368508i32;
pub const COMADMIN_E_AMBIGUOUS_APPLICATION_NAME: ::windows_sys::core::HRESULT = -2146368420i32;
pub const COMADMIN_E_AMBIGUOUS_PARTITION_NAME: ::windows_sys::core::HRESULT = -2146368419i32;
pub const COMADMIN_E_APPDIRNOTFOUND: ::windows_sys::core::HRESULT = -2146368481i32;
pub const COMADMIN_E_APPLICATIONEXISTS: ::windows_sys::core::HRESULT = -2146368501i32;
pub const COMADMIN_E_APPLID_MATCHES_CLSID: ::windows_sys::core::HRESULT = -2146368442i32;
pub const COMADMIN_E_APP_FILE_READFAIL: ::windows_sys::core::HRESULT = -2146368504i32;
pub const COMADMIN_E_APP_FILE_VERSION: ::windows_sys::core::HRESULT = -2146368503i32;
pub const COMADMIN_E_APP_FILE_WRITEFAIL: ::windows_sys::core::HRESULT = -2146368505i32;
pub const COMADMIN_E_APP_NOT_RUNNING: ::windows_sys::core::HRESULT = -2146367478i32;
pub const COMADMIN_E_AUTHENTICATIONLEVEL: ::windows_sys::core::HRESULT = -2146368493i32;
pub const COMADMIN_E_BADPATH: ::windows_sys::core::HRESULT = -2146368502i32;
pub const COMADMIN_E_BADREGISTRYLIBID: ::windows_sys::core::HRESULT = -2146368482i32;
pub const COMADMIN_E_BADREGISTRYPROGID: ::windows_sys::core::HRESULT = -2146368494i32;
pub const COMADMIN_E_BASEPARTITION_REQUIRED_IN_SET: ::windows_sys::core::HRESULT = -2146367457i32;
pub const COMADMIN_E_BASE_PARTITION_ONLY: ::windows_sys::core::HRESULT = -2146368432i32;
pub const COMADMIN_E_CANNOT_ALIAS_EVENTCLASS: ::windows_sys::core::HRESULT = -2146367456i32;
pub const COMADMIN_E_CANTCOPYFILE: ::windows_sys::core::HRESULT = -2146368499i32;
pub const COMADMIN_E_CANTMAKEINPROCSERVICE: ::windows_sys::core::HRESULT = -2146367468i32;
pub const COMADMIN_E_CANTRECYCLELIBRARYAPPS: ::windows_sys::core::HRESULT = -2146367473i32;
pub const COMADMIN_E_CANTRECYCLESERVICEAPPS: ::windows_sys::core::HRESULT = -2146367471i32;
pub const COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT: ::windows_sys::core::HRESULT = -2146368435i32;
pub const COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY: ::windows_sys::core::HRESULT = -2146368438i32;
pub const COMADMIN_E_CAN_NOT_EXPORT_SYS_APP: ::windows_sys::core::HRESULT = -2146368436i32;
pub const COMADMIN_E_CAN_NOT_START_APP: ::windows_sys::core::HRESULT = -2146368437i32;
pub const COMADMIN_E_CAT_BITNESSMISMATCH: ::windows_sys::core::HRESULT = -2146368382i32;
pub const COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME: ::windows_sys::core::HRESULT = -2146368425i32;
pub const COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2146368421i32;
pub const COMADMIN_E_CAT_INVALID_PARTITION_NAME: ::windows_sys::core::HRESULT = -2146368424i32;
pub const COMADMIN_E_CAT_PARTITION_IN_USE: ::windows_sys::core::HRESULT = -2146368423i32;
pub const COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146368379i32;
pub const COMADMIN_E_CAT_SERVERFAULT: ::windows_sys::core::HRESULT = -2146368378i32;
pub const COMADMIN_E_CAT_UNACCEPTABLEBITNESS: ::windows_sys::core::HRESULT = -2146368381i32;
pub const COMADMIN_E_CAT_WRONGAPPBITNESS: ::windows_sys::core::HRESULT = -2146368380i32;
pub const COMADMIN_E_CLSIDORIIDMISMATCH: ::windows_sys::core::HRESULT = -2146368488i32;
pub const COMADMIN_E_COMPFILE_BADTLB: ::windows_sys::core::HRESULT = -2146368472i32;
pub const COMADMIN_E_COMPFILE_CLASSNOTAVAIL: ::windows_sys::core::HRESULT = -2146368473i32;
pub const COMADMIN_E_COMPFILE_DOESNOTEXIST: ::windows_sys::core::HRESULT = -2146368476i32;
pub const COMADMIN_E_COMPFILE_GETCLASSOBJ: ::windows_sys::core::HRESULT = -2146368474i32;
pub const COMADMIN_E_COMPFILE_LOADDLLFAIL: ::windows_sys::core::HRESULT = -2146368475i32;
pub const COMADMIN_E_COMPFILE_NOREGISTRAR: ::windows_sys::core::HRESULT = -2146368460i32;
pub const COMADMIN_E_COMPFILE_NOTINSTALLABLE: ::windows_sys::core::HRESULT = -2146368471i32;
pub const COMADMIN_E_COMPONENTEXISTS: ::windows_sys::core::HRESULT = -2146368455i32;
pub const COMADMIN_E_COMP_MOVE_BAD_DEST: ::windows_sys::core::HRESULT = -2146368466i32;
pub const COMADMIN_E_COMP_MOVE_DEST: ::windows_sys::core::HRESULT = -2146367459i32;
pub const COMADMIN_E_COMP_MOVE_LOCKED: ::windows_sys::core::HRESULT = -2146368467i32;
pub const COMADMIN_E_COMP_MOVE_PRIVATE: ::windows_sys::core::HRESULT = -2146367458i32;
pub const COMADMIN_E_COMP_MOVE_SOURCE: ::windows_sys::core::HRESULT = -2146367460i32;
pub const COMADMIN_E_COREQCOMPINSTALLED: ::windows_sys::core::HRESULT = -2146368459i32;
pub const COMADMIN_E_DEFAULT_PARTITION_NOT_IN_SET: ::windows_sys::core::HRESULT = -2146367466i32;
pub const COMADMIN_E_DLLLOADFAILED: ::windows_sys::core::HRESULT = -2146368483i32;
pub const COMADMIN_E_DLLREGISTERSERVER: ::windows_sys::core::HRESULT = -2146368486i32;
pub const COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER: ::windows_sys::core::HRESULT = -2146368434i32;
pub const COMADMIN_E_FILE_PARTITION_DUPLICATE_FILES: ::windows_sys::core::HRESULT = -2146368422i32;
pub const COMADMIN_E_INVALIDUSERIDS: ::windows_sys::core::HRESULT = -2146368496i32;
pub const COMADMIN_E_INVALID_PARTITION: ::windows_sys::core::HRESULT = -2146367477i32;
pub const COMADMIN_E_KEYMISSING: ::windows_sys::core::HRESULT = -2146368509i32;
pub const COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_1_0_FORMAT: ::windows_sys::core::HRESULT = -2146367462i32;
pub const COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_NONBASE_PARTITIONS: ::windows_sys::core::HRESULT = -2146367461i32;
pub const COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE: ::windows_sys::core::HRESULT = -2146368433i32;
pub const COMADMIN_E_MIG_SCHEMANOTFOUND: ::windows_sys::core::HRESULT = -2146368383i32;
pub const COMADMIN_E_MIG_VERSIONNOTSUPPORTED: ::windows_sys::core::HRESULT = -2146368384i32;
pub const COMADMIN_E_NOREGISTRYCLSID: ::windows_sys::core::HRESULT = -2146368495i32;
pub const COMADMIN_E_NOSERVERSHARE: ::windows_sys::core::HRESULT = -2146368485i32;
pub const COMADMIN_E_NOTCHANGEABLE: ::windows_sys::core::HRESULT = -2146368470i32;
pub const COMADMIN_E_NOTDELETEABLE: ::windows_sys::core::HRESULT = -2146368469i32;
pub const COMADMIN_E_NOTINREGISTRY: ::windows_sys::core::HRESULT = -2146368450i32;
pub const COMADMIN_E_NOUSER: ::windows_sys::core::HRESULT = -2146368497i32;
pub const COMADMIN_E_OBJECTERRORS: ::windows_sys::core::HRESULT = -2146368511i32;
pub const COMADMIN_E_OBJECTEXISTS: ::windows_sys::core::HRESULT = -2146368456i32;
pub const COMADMIN_E_OBJECTINVALID: ::windows_sys::core::HRESULT = -2146368510i32;
pub const COMADMIN_E_OBJECTNOTPOOLABLE: ::windows_sys::core::HRESULT = -2146368449i32;
pub const COMADMIN_E_OBJECT_DOES_NOT_EXIST: ::windows_sys::core::HRESULT = -2146367479i32;
pub const COMADMIN_E_OBJECT_PARENT_MISSING: ::windows_sys::core::HRESULT = -2146367480i32;
pub const COMADMIN_E_PARTITIONS_DISABLED: ::windows_sys::core::HRESULT = -2146367452i32;
pub const COMADMIN_E_PARTITION_ACCESSDENIED: ::windows_sys::core::HRESULT = -2146367464i32;
pub const COMADMIN_E_PARTITION_MSI_ONLY: ::windows_sys::core::HRESULT = -2146367463i32;
pub const COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED: ::windows_sys::core::HRESULT = -2146367469i32;
pub const COMADMIN_E_PRIVATE_ACCESSDENIED: ::windows_sys::core::HRESULT = -2146367455i32;
pub const COMADMIN_E_PROCESSALREADYRECYCLED: ::windows_sys::core::HRESULT = -2146367470i32;
pub const COMADMIN_E_PROGIDINUSEBYCLSID: ::windows_sys::core::HRESULT = -2146367467i32;
pub const COMADMIN_E_PROPERTYSAVEFAILED: ::windows_sys::core::HRESULT = -2146368457i32;
pub const COMADMIN_E_PROPERTY_OVERFLOW: ::windows_sys::core::HRESULT = -2146368452i32;
pub const COMADMIN_E_RECYCLEDPROCESSMAYNOTBEPAUSED: ::windows_sys::core::HRESULT = -2146367465i32;
pub const COMADMIN_E_REGDB_ALREADYRUNNING: ::windows_sys::core::HRESULT = -2146368395i32;
pub const COMADMIN_E_REGDB_NOTINITIALIZED: ::windows_sys::core::HRESULT = -2146368398i32;
pub const COMADMIN_E_REGDB_NOTOPEN: ::windows_sys::core::HRESULT = -2146368397i32;
pub const COMADMIN_E_REGDB_SYSTEMERR: ::windows_sys::core::HRESULT = -2146368396i32;
pub const COMADMIN_E_REGFILE_CORRUPT: ::windows_sys::core::HRESULT = -2146368453i32;
pub const COMADMIN_E_REGISTERTLB: ::windows_sys::core::HRESULT = -2146368464i32;
pub const COMADMIN_E_REGISTRARFAILED: ::windows_sys::core::HRESULT = -2146368477i32;
pub const COMADMIN_E_REGISTRY_ACCESSDENIED: ::windows_sys::core::HRESULT = -2146367453i32;
pub const COMADMIN_E_REMOTEINTERFACE: ::windows_sys::core::HRESULT = -2146368487i32;
pub const COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM: ::windows_sys::core::HRESULT = -2146368439i32;
pub const COMADMIN_E_ROLEEXISTS: ::windows_sys::core::HRESULT = -2146368500i32;
pub const COMADMIN_E_ROLE_DOES_NOT_EXIST: ::windows_sys::core::HRESULT = -2146368441i32;
pub const COMADMIN_E_SAFERINVALID: ::windows_sys::core::HRESULT = -2146367454i32;
pub const COMADMIN_E_SERVICENOTINSTALLED: ::windows_sys::core::HRESULT = -2146368458i32;
pub const COMADMIN_E_SESSION: ::windows_sys::core::HRESULT = -2146368468i32;
pub const COMADMIN_E_START_APP_DISABLED: ::windows_sys::core::HRESULT = -2146368431i32;
pub const COMADMIN_E_START_APP_NEEDS_COMPONENTS: ::windows_sys::core::HRESULT = -2146368440i32;
pub const COMADMIN_E_SVCAPP_NOT_POOLABLE_OR_RECYCLABLE: ::windows_sys::core::HRESULT = -2146367475i32;
pub const COMADMIN_E_SYSTEMAPP: ::windows_sys::core::HRESULT = -2146368461i32;
pub const COMADMIN_E_USERPASSWDNOTVALID: ::windows_sys::core::HRESULT = -2146368492i32;
pub const COMADMIN_E_USER_IN_SET: ::windows_sys::core::HRESULT = -2146367474i32;
pub const COMQC_E_APPLICATION_NOT_QUEUED: ::windows_sys::core::HRESULT = -2146368000i32;
pub const COMQC_E_BAD_MESSAGE: ::windows_sys::core::HRESULT = -2146367996i32;
pub const COMQC_E_NO_IPERSISTSTREAM: ::windows_sys::core::HRESULT = -2146367997i32;
pub const COMQC_E_NO_QUEUEABLE_INTERFACES: ::windows_sys::core::HRESULT = -2146367999i32;
pub const COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2146367998i32;
pub const COMQC_E_UNAUTHENTICATED: ::windows_sys::core::HRESULT = -2146367995i32;
pub const COMQC_E_UNTRUSTED_ENQUEUER: ::windows_sys::core::HRESULT = -2146367994i32;
pub const CONTEXT_E_ABORTED: ::windows_sys::core::HRESULT = -2147164158i32;
pub const CONTEXT_E_ABORTING: ::windows_sys::core::HRESULT = -2147164157i32;
pub const CONTEXT_E_FIRST: i32 = -2147164160i32;
pub const CONTEXT_E_LAST: i32 = -2147164113i32;
pub const CONTEXT_E_NOCONTEXT: ::windows_sys::core::HRESULT = -2147164156i32;
pub const CONTEXT_E_NOJIT: ::windows_sys::core::HRESULT = -2147164122i32;
pub const CONTEXT_E_NOTRANSACTION: ::windows_sys::core::HRESULT = -2147164121i32;
pub const CONTEXT_E_OLDREF: ::windows_sys::core::HRESULT = -2147164153i32;
pub const CONTEXT_E_ROLENOTFOUND: ::windows_sys::core::HRESULT = -2147164148i32;
pub const CONTEXT_E_SYNCH_TIMEOUT: ::windows_sys::core::HRESULT = -2147164154i32;
pub const CONTEXT_E_TMNOTAVAILABLE: ::windows_sys::core::HRESULT = -2147164145i32;
pub const CONTEXT_E_WOULD_DEADLOCK: ::windows_sys::core::HRESULT = -2147164155i32;
pub const CONTEXT_S_FIRST: i32 = 319488i32;
pub const CONTEXT_S_LAST: i32 = 319535i32;
pub const CONVERT10_E_FIRST: i32 = -2147221056i32;
pub const CONVERT10_E_LAST: i32 = -2147221041i32;
pub const CONVERT10_E_OLESTREAM_BITMAP_TO_DIB: ::windows_sys::core::HRESULT = -2147221053i32;
pub const CONVERT10_E_OLESTREAM_FMT: ::windows_sys::core::HRESULT = -2147221054i32;
pub const CONVERT10_E_OLESTREAM_GET: ::windows_sys::core::HRESULT = -2147221056i32;
pub const CONVERT10_E_OLESTREAM_PUT: ::windows_sys::core::HRESULT = -2147221055i32;
pub const CONVERT10_E_STG_DIB_TO_BITMAP: ::windows_sys::core::HRESULT = -2147221050i32;
pub const CONVERT10_E_STG_FMT: ::windows_sys::core::HRESULT = -2147221052i32;
pub const CONVERT10_E_STG_NO_STD_STREAM: ::windows_sys::core::HRESULT = -2147221051i32;
pub const CONVERT10_S_FIRST: i32 = 262592i32;
pub const CONVERT10_S_LAST: i32 = 262607i32;
pub const CONVERT10_S_NO_PRESENTATION: ::windows_sys::core::HRESULT = 262592i32;
pub const CO_E_ACCESSCHECKFAILED: ::windows_sys::core::HRESULT = -2147417814i32;
pub const CO_E_ACESINWRONGORDER: ::windows_sys::core::HRESULT = -2147417798i32;
pub const CO_E_ACNOTINITIALIZED: ::windows_sys::core::HRESULT = -2147417793i32;
pub const CO_E_ACTIVATIONFAILED: ::windows_sys::core::HRESULT = -2147164127i32;
pub const CO_E_ACTIVATIONFAILED_CATALOGERROR: ::windows_sys::core::HRESULT = -2147164125i32;
pub const CO_E_ACTIVATIONFAILED_EVENTLOGGED: ::windows_sys::core::HRESULT = -2147164126i32;
pub const CO_E_ACTIVATIONFAILED_TIMEOUT: ::windows_sys::core::HRESULT = -2147164124i32;
pub const CO_E_ALREADYINITIALIZED: ::windows_sys::core::HRESULT = -2147221007i32;
pub const CO_E_APPDIDNTREG: ::windows_sys::core::HRESULT = -2147220994i32;
pub const CO_E_APPNOTFOUND: ::windows_sys::core::HRESULT = -2147221003i32;
pub const CO_E_APPSINGLEUSE: ::windows_sys::core::HRESULT = -2147221002i32;
pub const CO_E_ASYNC_WORK_REJECTED: ::windows_sys::core::HRESULT = -2147467223i32;
pub const CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT: ::windows_sys::core::HRESULT = -2147467228i32;
pub const CO_E_BAD_PATH: ::windows_sys::core::HRESULT = -2146959356i32;
pub const CO_E_BAD_SERVER_NAME: ::windows_sys::core::HRESULT = -2147467244i32;
pub const CO_E_CALL_OUT_OF_TX_SCOPE_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2147164112i32;
pub const CO_E_CANCEL_DISABLED: ::windows_sys::core::HRESULT = -2147417792i32;
pub const CO_E_CANTDETERMINECLASS: ::windows_sys::core::HRESULT = -2147221006i32;
pub const CO_E_CANT_REMOTE: ::windows_sys::core::HRESULT = -2147467245i32;
pub const CO_E_CLASSSTRING: ::windows_sys::core::HRESULT = -2147221005i32;
pub const CO_E_CLASS_CREATE_FAILED: ::windows_sys::core::HRESULT = -2146959359i32;
pub const CO_E_CLASS_DISABLED: ::windows_sys::core::HRESULT = -2147467225i32;
pub const CO_E_CLRNOTAVAILABLE: ::windows_sys::core::HRESULT = -2147467224i32;
pub const CO_E_CLSREG_INCONSISTENT: ::windows_sys::core::HRESULT = -2147467233i32;
pub const CO_E_CONVERSIONFAILED: ::windows_sys::core::HRESULT = -2147417810i32;
pub const CO_E_CREATEPROCESS_FAILURE: ::windows_sys::core::HRESULT = -2147467240i32;
pub const CO_E_DBERROR: ::windows_sys::core::HRESULT = -2147164117i32;
pub const CO_E_DECODEFAILED: ::windows_sys::core::HRESULT = -2147417795i32;
pub const CO_E_DLLNOTFOUND: ::windows_sys::core::HRESULT = -2147221000i32;
pub const CO_E_ELEVATION_DISABLED: ::windows_sys::core::HRESULT = -2146959337i32;
pub const CO_E_ERRORINAPP: ::windows_sys::core::HRESULT = -2147221001i32;
pub const CO_E_ERRORINDLL: ::windows_sys::core::HRESULT = -2147220999i32;
pub const CO_E_EXCEEDSYSACLLIMIT: ::windows_sys::core::HRESULT = -2147417799i32;
pub const CO_E_EXIT_TRANSACTION_SCOPE_NOT_CALLED: ::windows_sys::core::HRESULT = -2147164111i32;
pub const CO_E_FAILEDTOCLOSEHANDLE: ::windows_sys::core::HRESULT = -2147417800i32;
pub const CO_E_FAILEDTOCREATEFILE: ::windows_sys::core::HRESULT = -2147417801i32;
pub const CO_E_FAILEDTOGENUUID: ::windows_sys::core::HRESULT = -2147417802i32;
pub const CO_E_FAILEDTOGETSECCTX: ::windows_sys::core::HRESULT = -2147417820i32;
pub const CO_E_FAILEDTOGETTOKENINFO: ::windows_sys::core::HRESULT = -2147417818i32;
pub const CO_E_FAILEDTOGETWINDIR: ::windows_sys::core::HRESULT = -2147417804i32;
pub const CO_E_FAILEDTOIMPERSONATE: ::windows_sys::core::HRESULT = -2147417821i32;
pub const CO_E_FAILEDTOOPENPROCESSTOKEN: ::windows_sys::core::HRESULT = -2147417796i32;
pub const CO_E_FAILEDTOOPENTHREADTOKEN: ::windows_sys::core::HRESULT = -2147417819i32;
pub const CO_E_FAILEDTOQUERYCLIENTBLANKET: ::windows_sys::core::HRESULT = -2147417816i32;
pub const CO_E_FAILEDTOSETDACL: ::windows_sys::core::HRESULT = -2147417815i32;
pub const CO_E_FIRST: i32 = -2147221008i32;
pub const CO_E_IIDREG_INCONSISTENT: ::windows_sys::core::HRESULT = -2147467232i32;
pub const CO_E_IIDSTRING: ::windows_sys::core::HRESULT = -2147221004i32;
pub const CO_E_INCOMPATIBLESTREAMVERSION: ::windows_sys::core::HRESULT = -2147417797i32;
pub const CO_E_INITIALIZATIONFAILED: ::windows_sys::core::HRESULT = -2147164123i32;
pub const CO_E_INIT_CLASS_CACHE: ::windows_sys::core::HRESULT = -2147467255i32;
pub const CO_E_INIT_MEMORY_ALLOCATOR: ::windows_sys::core::HRESULT = -2147467256i32;
pub const CO_E_INIT_ONLY_SINGLE_THREADED: ::windows_sys::core::HRESULT = -2147467246i32;
pub const CO_E_INIT_RPC_CHANNEL: ::windows_sys::core::HRESULT = -2147467254i32;
pub const CO_E_INIT_SCM_EXEC_FAILURE: ::windows_sys::core::HRESULT = -2147467247i32;
pub const CO_E_INIT_SCM_FILE_MAPPING_EXISTS: ::windows_sys::core::HRESULT = -2147467249i32;
pub const CO_E_INIT_SCM_MAP_VIEW_OF_FILE: ::windows_sys::core::HRESULT = -2147467248i32;
pub const CO_E_INIT_SCM_MUTEX_EXISTS: ::windows_sys::core::HRESULT = -2147467250i32;
pub const CO_E_INIT_SHARED_ALLOCATOR: ::windows_sys::core::HRESULT = -2147467257i32;
pub const CO_E_INIT_TLS: ::windows_sys::core::HRESULT = -2147467258i32;
pub const CO_E_INIT_TLS_CHANNEL_CONTROL: ::windows_sys::core::HRESULT = -2147467252i32;
pub const CO_E_INIT_TLS_SET_CHANNEL_CONTROL: ::windows_sys::core::HRESULT = -2147467253i32;
pub const CO_E_INIT_UNACCEPTED_USER_ALLOCATOR: ::windows_sys::core::HRESULT = -2147467251i32;
pub const CO_E_INVALIDSID: ::windows_sys::core::HRESULT = -2147417811i32;
pub const CO_E_ISOLEVELMISMATCH: ::windows_sys::core::HRESULT = -2147164113i32;
pub const CO_E_LAST: i32 = -2147220993i32;
pub const CO_E_LAUNCH_PERMSSION_DENIED: ::windows_sys::core::HRESULT = -2147467237i32;
pub const CO_E_LOOKUPACCNAMEFAILED: ::windows_sys::core::HRESULT = -2147417806i32;
pub const CO_E_LOOKUPACCSIDFAILED: ::windows_sys::core::HRESULT = -2147417808i32;
pub const CO_E_MALFORMED_SPN: ::windows_sys::core::HRESULT = -2147467213i32;
pub const CO_E_MISSING_DISPLAYNAME: ::windows_sys::core::HRESULT = -2146959339i32;
pub const CO_E_MSI_ERROR: ::windows_sys::core::HRESULT = -2147467229i32;
pub const CO_E_NETACCESSAPIFAILED: ::windows_sys::core::HRESULT = -2147417813i32;
pub const CO_E_NOCOOKIES: ::windows_sys::core::HRESULT = -2147164118i32;
pub const CO_E_NOIISINTRINSICS: ::windows_sys::core::HRESULT = -2147164119i32;
pub const CO_E_NOMATCHINGNAMEFOUND: ::windows_sys::core::HRESULT = -2147417807i32;
pub const CO_E_NOMATCHINGSIDFOUND: ::windows_sys::core::HRESULT = -2147417809i32;
pub const CO_E_NOSYNCHRONIZATION: ::windows_sys::core::HRESULT = -2147164114i32;
pub const CO_E_NOTCONSTRUCTED: ::windows_sys::core::HRESULT = -2147164115i32;
pub const CO_E_NOTINITIALIZED: ::windows_sys::core::HRESULT = -2147221008i32;
pub const CO_E_NOTPOOLED: ::windows_sys::core::HRESULT = -2147164116i32;
pub const CO_E_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2147467231i32;
pub const CO_E_NO_SECCTX_IN_ACTIVATE: ::windows_sys::core::HRESULT = -2147467221i32;
pub const CO_E_OBJISREG: ::windows_sys::core::HRESULT = -2147220996i32;
pub const CO_E_OBJNOTCONNECTED: ::windows_sys::core::HRESULT = -2147220995i32;
pub const CO_E_OBJNOTREG: ::windows_sys::core::HRESULT = -2147220997i32;
pub const CO_E_OBJSRV_RPC_FAILURE: ::windows_sys::core::HRESULT = -2146959354i32;
pub const CO_E_OLE1DDE_DISABLED: ::windows_sys::core::HRESULT = -2147467242i32;
pub const CO_E_PATHTOOLONG: ::windows_sys::core::HRESULT = -2147417803i32;
pub const CO_E_PREMATURE_STUB_RUNDOWN: ::windows_sys::core::HRESULT = -2147467211i32;
pub const CO_E_RELEASED: ::windows_sys::core::HRESULT = -2147220993i32;
pub const CO_E_RELOAD_DLL: ::windows_sys::core::HRESULT = -2147467230i32;
pub const CO_E_REMOTE_COMMUNICATION_FAILURE: ::windows_sys::core::HRESULT = -2147467235i32;
pub const CO_E_RUNAS_CREATEPROCESS_FAILURE: ::windows_sys::core::HRESULT = -2147467239i32;
pub const CO_E_RUNAS_LOGON_FAILURE: ::windows_sys::core::HRESULT = -2147467238i32;
pub const CO_E_RUNAS_SYNTAX: ::windows_sys::core::HRESULT = -2147467241i32;
pub const CO_E_RUNAS_VALUE_MUST_BE_AAA: ::windows_sys::core::HRESULT = -2146959338i32;
pub const CO_E_SCM_ERROR: ::windows_sys::core::HRESULT = -2146959358i32;
pub const CO_E_SCM_RPC_FAILURE: ::windows_sys::core::HRESULT = -2146959357i32;
pub const CO_E_SERVER_EXEC_FAILURE: ::windows_sys::core::HRESULT = -2146959355i32;
pub const CO_E_SERVER_INIT_TIMEOUT: ::windows_sys::core::HRESULT = -2147467222i32;
pub const CO_E_SERVER_NOT_PAUSED: ::windows_sys::core::HRESULT = -2147467226i32;
pub const CO_E_SERVER_PAUSED: ::windows_sys::core::HRESULT = -2147467227i32;
pub const CO_E_SERVER_START_TIMEOUT: ::windows_sys::core::HRESULT = -2147467234i32;
pub const CO_E_SERVER_STOPPING: ::windows_sys::core::HRESULT = -2146959352i32;
pub const CO_E_SETSERLHNDLFAILED: ::windows_sys::core::HRESULT = -2147417805i32;
pub const CO_E_START_SERVICE_FAILURE: ::windows_sys::core::HRESULT = -2147467236i32;
pub const CO_E_SXS_CONFIG: ::windows_sys::core::HRESULT = -2147467214i32;
pub const CO_E_THREADINGMODEL_CHANGED: ::windows_sys::core::HRESULT = -2147164120i32;
pub const CO_E_THREADPOOL_CONFIG: ::windows_sys::core::HRESULT = -2147467215i32;
pub const CO_E_TRACKER_CONFIG: ::windows_sys::core::HRESULT = -2147467216i32;
pub const CO_E_TRUSTEEDOESNTMATCHCLIENT: ::windows_sys::core::HRESULT = -2147417817i32;
pub const CO_E_UNREVOKED_REGISTRATION_ON_APARTMENT_SHUTDOWN: ::windows_sys::core::HRESULT = -2147467212i32;
pub const CO_E_WRONGOSFORAPP: ::windows_sys::core::HRESULT = -2147220998i32;
pub const CO_E_WRONGTRUSTEENAMESYNTAX: ::windows_sys::core::HRESULT = -2147417812i32;
pub const CO_E_WRONG_SERVER_IDENTITY: ::windows_sys::core::HRESULT = -2147467243i32;
pub const CO_S_FIRST: i32 = 262640i32;
pub const CO_S_LAST: i32 = 262655i32;
pub const CO_S_MACHINENAMENOTFOUND: ::windows_sys::core::HRESULT = 524307i32;
pub const CO_S_NOTALLINTERFACES: ::windows_sys::core::HRESULT = 524306i32;
pub const CRYPT_E_ALREADY_DECRYPTED: ::windows_sys::core::HRESULT = -2146889719i32;
pub const CRYPT_E_ASN1_BADARGS: ::windows_sys::core::HRESULT = -2146881271i32;
pub const CRYPT_E_ASN1_BADPDU: ::windows_sys::core::HRESULT = -2146881272i32;
pub const CRYPT_E_ASN1_BADREAL: ::windows_sys::core::HRESULT = -2146881270i32;
pub const CRYPT_E_ASN1_BADTAG: ::windows_sys::core::HRESULT = -2146881269i32;
pub const CRYPT_E_ASN1_CHOICE: ::windows_sys::core::HRESULT = -2146881268i32;
pub const CRYPT_E_ASN1_CONSTRAINT: ::windows_sys::core::HRESULT = -2146881275i32;
pub const CRYPT_E_ASN1_CORRUPT: ::windows_sys::core::HRESULT = -2146881277i32;
pub const CRYPT_E_ASN1_EOD: ::windows_sys::core::HRESULT = -2146881278i32;
pub const CRYPT_E_ASN1_ERROR: ::windows_sys::core::HRESULT = -2146881280i32;
pub const CRYPT_E_ASN1_EXTENDED: ::windows_sys::core::HRESULT = -2146881023i32;
pub const CRYPT_E_ASN1_INTERNAL: ::windows_sys::core::HRESULT = -2146881279i32;
pub const CRYPT_E_ASN1_LARGE: ::windows_sys::core::HRESULT = -2146881276i32;
pub const CRYPT_E_ASN1_MEMORY: ::windows_sys::core::HRESULT = -2146881274i32;
pub const CRYPT_E_ASN1_NOEOD: ::windows_sys::core::HRESULT = -2146881022i32;
pub const CRYPT_E_ASN1_NYI: ::windows_sys::core::HRESULT = -2146881228i32;
pub const CRYPT_E_ASN1_OVERFLOW: ::windows_sys::core::HRESULT = -2146881273i32;
pub const CRYPT_E_ASN1_PDU_TYPE: ::windows_sys::core::HRESULT = -2146881229i32;
pub const CRYPT_E_ASN1_RULE: ::windows_sys::core::HRESULT = -2146881267i32;
pub const CRYPT_E_ASN1_UTF8: ::windows_sys::core::HRESULT = -2146881266i32;
pub const CRYPT_E_ATTRIBUTES_MISSING: ::windows_sys::core::HRESULT = -2146889713i32;
pub const CRYPT_E_AUTH_ATTR_MISSING: ::windows_sys::core::HRESULT = -2146889722i32;
pub const CRYPT_E_BAD_ENCODE: ::windows_sys::core::HRESULT = -2146885630i32;
pub const CRYPT_E_BAD_LEN: ::windows_sys::core::HRESULT = -2146885631i32;
pub const CRYPT_E_BAD_MSG: ::windows_sys::core::HRESULT = -2146885619i32;
pub const CRYPT_E_CONTROL_TYPE: ::windows_sys::core::HRESULT = -2146889716i32;
pub const CRYPT_E_DELETED_PREV: ::windows_sys::core::HRESULT = -2146885624i32;
pub const CRYPT_E_EXISTS: ::windows_sys::core::HRESULT = -2146885627i32;
pub const CRYPT_E_FILERESIZED: ::windows_sys::core::HRESULT = -2146885595i32;
pub const CRYPT_E_FILE_ERROR: ::windows_sys::core::HRESULT = -2146885629i32;
pub const CRYPT_E_HASH_VALUE: ::windows_sys::core::HRESULT = -2146889721i32;
pub const CRYPT_E_INVALID_IA5_STRING: ::windows_sys::core::HRESULT = -2146885598i32;
pub const CRYPT_E_INVALID_INDEX: ::windows_sys::core::HRESULT = -2146889720i32;
pub const CRYPT_E_INVALID_MSG_TYPE: ::windows_sys::core::HRESULT = -2146889724i32;
pub const CRYPT_E_INVALID_NUMERIC_STRING: ::windows_sys::core::HRESULT = -2146885600i32;
pub const CRYPT_E_INVALID_PRINTABLE_STRING: ::windows_sys::core::HRESULT = -2146885599i32;
pub const CRYPT_E_INVALID_X500_STRING: ::windows_sys::core::HRESULT = -2146885597i32;
pub const CRYPT_E_ISSUER_SERIALNUMBER: ::windows_sys::core::HRESULT = -2146889715i32;
pub const CRYPT_E_MISSING_PUBKEY_PARA: ::windows_sys::core::HRESULT = -2146885588i32;
pub const CRYPT_E_MSG_ERROR: ::windows_sys::core::HRESULT = -2146889727i32;
pub const CRYPT_E_NOT_CHAR_STRING: ::windows_sys::core::HRESULT = -2146885596i32;
pub const CRYPT_E_NOT_DECRYPTED: ::windows_sys::core::HRESULT = -2146889718i32;
pub const CRYPT_E_NOT_FOUND: ::windows_sys::core::HRESULT = -2146885628i32;
pub const CRYPT_E_NOT_IN_CTL: ::windows_sys::core::HRESULT = -2146885590i32;
pub const CRYPT_E_NOT_IN_REVOCATION_DATABASE: ::windows_sys::core::HRESULT = -2146885612i32;
pub const CRYPT_E_NO_DECRYPT_CERT: ::windows_sys::core::HRESULT = -2146885620i32;
pub const CRYPT_E_NO_KEY_PROPERTY: ::windows_sys::core::HRESULT = -2146885621i32;
pub const CRYPT_E_NO_MATCH: ::windows_sys::core::HRESULT = -2146885623i32;
pub const CRYPT_E_NO_PROVIDER: ::windows_sys::core::HRESULT = -2146885626i32;
pub const CRYPT_E_NO_REVOCATION_CHECK: ::windows_sys::core::HRESULT = -2146885614i32;
pub const CRYPT_E_NO_REVOCATION_DLL: ::windows_sys::core::HRESULT = -2146885615i32;
pub const CRYPT_E_NO_SIGNER: ::windows_sys::core::HRESULT = -2146885618i32;
pub const CRYPT_E_NO_TRUSTED_SIGNER: ::windows_sys::core::HRESULT = -2146885589i32;
pub const CRYPT_E_NO_VERIFY_USAGE_CHECK: ::windows_sys::core::HRESULT = -2146885592i32;
pub const CRYPT_E_NO_VERIFY_USAGE_DLL: ::windows_sys::core::HRESULT = -2146885593i32;
pub const CRYPT_E_OBJECT_LOCATOR_OBJECT_NOT_FOUND: ::windows_sys::core::HRESULT = -2146885587i32;
pub const CRYPT_E_OID_FORMAT: ::windows_sys::core::HRESULT = -2146889725i32;
pub const CRYPT_E_OSS_ERROR: ::windows_sys::core::HRESULT = -2146881536i32;
pub const CRYPT_E_PENDING_CLOSE: ::windows_sys::core::HRESULT = -2146885617i32;
pub const CRYPT_E_RECIPIENT_NOT_FOUND: ::windows_sys::core::HRESULT = -2146889717i32;
pub const CRYPT_E_REVOCATION_OFFLINE: ::windows_sys::core::HRESULT = -2146885613i32;
pub const CRYPT_E_REVOKED: ::windows_sys::core::HRESULT = -2146885616i32;
pub const CRYPT_E_SECURITY_SETTINGS: ::windows_sys::core::HRESULT = -2146885594i32;
pub const CRYPT_E_SELF_SIGNED: ::windows_sys::core::HRESULT = -2146885625i32;
pub const CRYPT_E_SIGNER_NOT_FOUND: ::windows_sys::core::HRESULT = -2146889714i32;
pub const CRYPT_E_STREAM_INSUFFICIENT_DATA: ::windows_sys::core::HRESULT = -2146889711i32;
pub const CRYPT_E_STREAM_MSG_NOT_READY: ::windows_sys::core::HRESULT = -2146889712i32;
pub const CRYPT_E_UNEXPECTED_ENCODING: ::windows_sys::core::HRESULT = -2146889723i32;
pub const CRYPT_E_UNEXPECTED_MSG_TYPE: ::windows_sys::core::HRESULT = -2146885622i32;
pub const CRYPT_E_UNKNOWN_ALGO: ::windows_sys::core::HRESULT = -2146889726i32;
pub const CRYPT_E_VERIFY_USAGE_OFFLINE: ::windows_sys::core::HRESULT = -2146885591i32;
pub const CRYPT_I_NEW_PROTECTION_REQUIRED: ::windows_sys::core::HRESULT = 593938i32;
pub const CS_E_ADMIN_LIMIT_EXCEEDED: ::windows_sys::core::HRESULT = -2147221139i32;
pub const CS_E_CLASS_NOTFOUND: ::windows_sys::core::HRESULT = -2147221146i32;
pub const CS_E_FIRST: i32 = -2147221148i32;
pub const CS_E_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2147221137i32;
pub const CS_E_INVALID_PATH: ::windows_sys::core::HRESULT = -2147221141i32;
pub const CS_E_INVALID_VERSION: ::windows_sys::core::HRESULT = -2147221145i32;
pub const CS_E_LAST: i32 = -2147221137i32;
pub const CS_E_NETWORK_ERROR: ::windows_sys::core::HRESULT = -2147221140i32;
pub const CS_E_NOT_DELETABLE: ::windows_sys::core::HRESULT = -2147221147i32;
pub const CS_E_NO_CLASSSTORE: ::windows_sys::core::HRESULT = -2147221144i32;
pub const CS_E_OBJECT_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2147221142i32;
pub const CS_E_OBJECT_NOTFOUND: ::windows_sys::core::HRESULT = -2147221143i32;
pub const CS_E_PACKAGE_NOTFOUND: ::windows_sys::core::HRESULT = -2147221148i32;
pub const CS_E_SCHEMA_MISMATCH: ::windows_sys::core::HRESULT = -2147221138i32;
pub const D2DERR_BAD_NUMBER: ::windows_sys::core::HRESULT = -2003238895i32;
pub const D2DERR_BITMAP_BOUND_AS_TARGET: ::windows_sys::core::HRESULT = -2003238875i32;
pub const D2DERR_BITMAP_CANNOT_DRAW: ::windows_sys::core::HRESULT = -2003238879i32;
pub const D2DERR_CYCLIC_GRAPH: ::windows_sys::core::HRESULT = -2003238880i32;
pub const D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2003238903i32;
pub const D2DERR_DISPLAY_STATE_INVALID: ::windows_sys::core::HRESULT = -2003238906i32;
pub const D2DERR_EFFECT_IS_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2003238872i32;
pub const D2DERR_EXCEEDS_MAX_BITMAP_SIZE: ::windows_sys::core::HRESULT = -2003238883i32;
pub const D2DERR_INCOMPATIBLE_BRUSH_TYPES: ::windows_sys::core::HRESULT = -2003238888i32;
pub const D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES: ::windows_sys::core::HRESULT = -2003238874i32;
pub const D2DERR_INTERMEDIATE_TOO_LARGE: ::windows_sys::core::HRESULT = -2003238873i32;
pub const D2DERR_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2003238904i32;
pub const D2DERR_INVALID_CALL: ::windows_sys::core::HRESULT = -2003238902i32;
pub const D2DERR_INVALID_GLYPH_IMAGE: ::windows_sys::core::HRESULT = -2003238866i32;
pub const D2DERR_INVALID_GRAPH_CONFIGURATION: ::windows_sys::core::HRESULT = -2003238882i32;
pub const D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION: ::windows_sys::core::HRESULT = -2003238881i32;
pub const D2DERR_INVALID_PROPERTY: ::windows_sys::core::HRESULT = -2003238871i32;
pub const D2DERR_INVALID_TARGET: ::windows_sys::core::HRESULT = -2003238876i32;
pub const D2DERR_LAYER_ALREADY_IN_USE: ::windows_sys::core::HRESULT = -2003238893i32;
pub const D2DERR_MAX_TEXTURE_SIZE_EXCEEDED: ::windows_sys::core::HRESULT = -2003238897i32;
pub const D2DERR_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2003238910i32;
pub const D2DERR_NO_HARDWARE_DEVICE: ::windows_sys::core::HRESULT = -2003238901i32;
pub const D2DERR_NO_SUBPROPERTIES: ::windows_sys::core::HRESULT = -2003238870i32;
pub const D2DERR_ORIGINAL_TARGET_NOT_BOUND: ::windows_sys::core::HRESULT = -2003238877i32;
pub const D2DERR_OUTSTANDING_BITMAP_REFERENCES: ::windows_sys::core::HRESULT = -2003238878i32;
pub const D2DERR_POP_CALL_DID_NOT_MATCH_PUSH: ::windows_sys::core::HRESULT = -2003238892i32;
pub const D2DERR_PRINT_FORMAT_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2003238868i32;
pub const D2DERR_PRINT_JOB_CLOSED: ::windows_sys::core::HRESULT = -2003238869i32;
pub const D2DERR_PUSH_POP_UNBALANCED: ::windows_sys::core::HRESULT = -2003238890i32;
pub const D2DERR_RECREATE_TARGET: ::windows_sys::core::HRESULT = -2003238900i32;
pub const D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT: ::windows_sys::core::HRESULT = -2003238889i32;
pub const D2DERR_SCANNER_FAILED: ::windows_sys::core::HRESULT = -2003238908i32;
pub const D2DERR_SCREEN_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2003238907i32;
pub const D2DERR_SHADER_COMPILE_FAILED: ::windows_sys::core::HRESULT = -2003238898i32;
pub const D2DERR_TARGET_NOT_GDI_COMPATIBLE: ::windows_sys::core::HRESULT = -2003238886i32;
pub const D2DERR_TEXT_EFFECT_IS_WRONG_TYPE: ::windows_sys::core::HRESULT = -2003238885i32;
pub const D2DERR_TEXT_RENDERER_NOT_RELEASED: ::windows_sys::core::HRESULT = -2003238884i32;
pub const D2DERR_TOO_MANY_SHADER_ELEMENTS: ::windows_sys::core::HRESULT = -2003238899i32;
pub const D2DERR_TOO_MANY_TRANSFORM_INPUTS: ::windows_sys::core::HRESULT = -2003238867i32;
pub const D2DERR_UNSUPPORTED_OPERATION: ::windows_sys::core::HRESULT = -2003238909i32;
pub const D2DERR_UNSUPPORTED_VERSION: ::windows_sys::core::HRESULT = -2003238896i32;
pub const D2DERR_WIN32_ERROR: ::windows_sys::core::HRESULT = -2003238887i32;
pub const D2DERR_WRONG_FACTORY: ::windows_sys::core::HRESULT = -2003238894i32;
pub const D2DERR_WRONG_RESOURCE_DOMAIN: ::windows_sys::core::HRESULT = -2003238891i32;
pub const D2DERR_WRONG_STATE: ::windows_sys::core::HRESULT = -2003238911i32;
pub const D2DERR_ZERO_VECTOR: ::windows_sys::core::HRESULT = -2003238905i32;
pub const D3D10_ERROR_FILE_NOT_FOUND: ::windows_sys::core::HRESULT = -2005336062i32;
pub const D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS: ::windows_sys::core::HRESULT = -2005336063i32;
pub const D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD: ::windows_sys::core::HRESULT = -2005139452i32;
pub const D3D11_ERROR_FILE_NOT_FOUND: ::windows_sys::core::HRESULT = -2005139454i32;
pub const D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS: ::windows_sys::core::HRESULT = -2005139455i32;
pub const D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS: ::windows_sys::core::HRESULT = -2005139453i32;
pub const D3D12_ERROR_ADAPTER_NOT_FOUND: ::windows_sys::core::HRESULT = -2005008383i32;
pub const D3D12_ERROR_DRIVER_VERSION_MISMATCH: ::windows_sys::core::HRESULT = -2005008382i32;
pub const D3D12_ERROR_INVALID_REDIST: ::windows_sys::core::HRESULT = -2005008381i32;
pub const DATA_E_FIRST: i32 = -2147221200i32;
pub const DATA_E_LAST: i32 = -2147221185i32;
pub const DATA_S_FIRST: i32 = 262448i32;
pub const DATA_S_LAST: i32 = 262463i32;
pub const DATA_S_SAMEFORMATETC: ::windows_sys::core::HRESULT = 262448i32;
pub const DBG_APP_NOT_IDLE: NTSTATUS = -1073676286i32;
pub const DBG_COMMAND_EXCEPTION: NTSTATUS = 1073807369i32;
pub const DBG_CONTINUE: NTSTATUS = 65538i32;
pub const DBG_CONTROL_BREAK: NTSTATUS = 1073807368i32;
pub const DBG_CONTROL_C: NTSTATUS = 1073807365i32;
pub const DBG_EXCEPTION_HANDLED: NTSTATUS = 65537i32;
pub const DBG_EXCEPTION_NOT_HANDLED: NTSTATUS = -2147418111i32;
pub const DBG_NO_STATE_CHANGE: NTSTATUS = -1073676287i32;
pub const DBG_PRINTEXCEPTION_C: NTSTATUS = 1073807366i32;
pub const DBG_PRINTEXCEPTION_WIDE_C: NTSTATUS = 1073807370i32;
pub const DBG_REPLY_LATER: NTSTATUS = 1073807361i32;
pub const DBG_RIPEXCEPTION: NTSTATUS = 1073807367i32;
pub const DBG_TERMINATE_PROCESS: NTSTATUS = 1073807364i32;
pub const DBG_TERMINATE_THREAD: NTSTATUS = 1073807363i32;
pub const DBG_UNABLE_TO_PROVIDE_HANDLE: NTSTATUS = 1073807362i32;
pub const DCOMPOSITION_ERROR_SURFACE_BEING_RENDERED: ::windows_sys::core::HRESULT = -2003302399i32;
pub const DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED: ::windows_sys::core::HRESULT = -2003302398i32;
pub const DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED: ::windows_sys::core::HRESULT = -2003302400i32;
#[repr(C)]
pub struct DECIMAL {
pub wReserved: u16,
pub Anonymous1: DECIMAL_0,
pub Hi32: u32,
pub Anonymous2: DECIMAL_1,
}
impl ::core::marker::Copy for DECIMAL {}
impl ::core::clone::Clone for DECIMAL {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub union DECIMAL_0 {
pub Anonymous: DECIMAL_0_0,
pub signscale: u16,
}
impl ::core::marker::Copy for DECIMAL_0 {}
impl ::core::clone::Clone for DECIMAL_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct DECIMAL_0_0 {
pub scale: u8,
pub sign: u8,
}
impl ::core::marker::Copy for DECIMAL_0_0 {}
impl ::core::clone::Clone for DECIMAL_0_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub union DECIMAL_1 {
pub Anonymous: DECIMAL_1_0,
pub Lo64: u64,
}
impl ::core::marker::Copy for DECIMAL_1 {}
impl ::core::clone::Clone for DECIMAL_1 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct DECIMAL_1_0 {
pub Lo32: u32,
pub Mid32: u32,
}
impl ::core::marker::Copy for DECIMAL_1_0 {}
impl ::core::clone::Clone for DECIMAL_1_0 {
fn clone(&self) -> Self {
*self
}
}
pub const DIGSIG_E_CRYPTO: ::windows_sys::core::HRESULT = -2146762744i32;
pub const DIGSIG_E_DECODE: ::windows_sys::core::HRESULT = -2146762746i32;
pub const DIGSIG_E_ENCODE: ::windows_sys::core::HRESULT = -2146762747i32;
pub const DIGSIG_E_EXTENSIBILITY: ::windows_sys::core::HRESULT = -2146762745i32;
pub const DISP_E_ARRAYISLOCKED: ::windows_sys::core::HRESULT = -2147352563i32;
pub const DISP_E_BADCALLEE: ::windows_sys::core::HRESULT = -2147352560i32;
pub const DISP_E_BADINDEX: ::windows_sys::core::HRESULT = -2147352565i32;
pub const DISP_E_BADPARAMCOUNT: ::windows_sys::core::HRESULT = -2147352562i32;
pub const DISP_E_BADVARTYPE: ::windows_sys::core::HRESULT = -2147352568i32;
pub const DISP_E_BUFFERTOOSMALL: ::windows_sys::core::HRESULT = -2147352557i32;
pub const DISP_E_DIVBYZERO: ::windows_sys::core::HRESULT = -2147352558i32;
pub const DISP_E_EXCEPTION: ::windows_sys::core::HRESULT = -2147352567i32;
pub const DISP_E_MEMBERNOTFOUND: ::windows_sys::core::HRESULT = -2147352573i32;
pub const DISP_E_NONAMEDARGS: ::windows_sys::core::HRESULT = -2147352569i32;
pub const DISP_E_NOTACOLLECTION: ::windows_sys::core::HRESULT = -2147352559i32;
pub const DISP_E_OVERFLOW: ::windows_sys::core::HRESULT = -2147352566i32;
pub const DISP_E_PARAMNOTFOUND: ::windows_sys::core::HRESULT = -2147352572i32;
pub const DISP_E_PARAMNOTOPTIONAL: ::windows_sys::core::HRESULT = -2147352561i32;
pub const DISP_E_TYPEMISMATCH: ::windows_sys::core::HRESULT = -2147352571i32;
pub const DISP_E_UNKNOWNINTERFACE: ::windows_sys::core::HRESULT = -2147352575i32;
pub const DISP_E_UNKNOWNLCID: ::windows_sys::core::HRESULT = -2147352564i32;
pub const DISP_E_UNKNOWNNAME: ::windows_sys::core::HRESULT = -2147352570i32;
pub const DM_COPY: u32 = 2u32;
pub const DM_IN_BUFFER: u32 = 8u32;
pub const DM_IN_PROMPT: u32 = 4u32;
pub const DM_MODIFY: u32 = 8u32;
pub const DM_OUT_BUFFER: u32 = 2u32;
pub const DM_OUT_DEFAULT: u32 = 1u32;
pub const DM_PROMPT: u32 = 4u32;
pub const DM_UPDATE: u32 = 1u32;
pub const DNS_INFO_ADDED_LOCAL_WINS: i32 = 9753i32;
pub const DNS_INFO_AXFR_COMPLETE: i32 = 9751i32;
pub const DNS_INFO_NO_RECORDS: i32 = 9501i32;
pub const DNS_REQUEST_PENDING: i32 = 9506i32;
pub const DNS_STATUS_CONTINUE_NEEDED: i32 = 9801i32;
pub const DNS_STATUS_DOTTED_NAME: i32 = 9558i32;
pub const DNS_STATUS_FQDN: i32 = 9557i32;
pub const DNS_STATUS_SINGLE_PART_NAME: i32 = 9559i32;
pub const DNS_WARNING_DOMAIN_UNDELETED: i32 = 9716i32;
pub const DNS_WARNING_PTR_CREATE_FAILED: i32 = 9715i32;
pub const DRAGDROP_E_ALREADYREGISTERED: ::windows_sys::core::HRESULT = -2147221247i32;
pub const DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED: ::windows_sys::core::HRESULT = -2147221245i32;
pub const DRAGDROP_E_FIRST: i32 = -2147221248i32;
pub const DRAGDROP_E_INVALIDHWND: ::windows_sys::core::HRESULT = -2147221246i32;
pub const DRAGDROP_E_LAST: i32 = -2147221233i32;
pub const DRAGDROP_E_NOTREGISTERED: ::windows_sys::core::HRESULT = -2147221248i32;
pub const DRAGDROP_S_CANCEL: ::windows_sys::core::HRESULT = 262401i32;
pub const DRAGDROP_S_DROP: ::windows_sys::core::HRESULT = 262400i32;
pub const DRAGDROP_S_FIRST: i32 = 262400i32;
pub const DRAGDROP_S_LAST: i32 = 262415i32;
pub const DRAGDROP_S_USEDEFAULTCURSORS: ::windows_sys::core::HRESULT = 262402i32;
pub type DUPLICATE_HANDLE_OPTIONS = u32;
pub const DUPLICATE_CLOSE_SOURCE: DUPLICATE_HANDLE_OPTIONS = 1u32;
pub const DUPLICATE_SAME_ACCESS: DUPLICATE_HANDLE_OPTIONS = 2u32;
pub const DV_E_CLIPFORMAT: ::windows_sys::core::HRESULT = -2147221398i32;
pub const DV_E_DVASPECT: ::windows_sys::core::HRESULT = -2147221397i32;
pub const DV_E_DVTARGETDEVICE: ::windows_sys::core::HRESULT = -2147221403i32;
pub const DV_E_DVTARGETDEVICE_SIZE: ::windows_sys::core::HRESULT = -2147221396i32;
pub const DV_E_FORMATETC: ::windows_sys::core::HRESULT = -2147221404i32;
pub const DV_E_LINDEX: ::windows_sys::core::HRESULT = -2147221400i32;
pub const DV_E_NOIVIEWOBJECT: ::windows_sys::core::HRESULT = -2147221395i32;
pub const DV_E_STATDATA: ::windows_sys::core::HRESULT = -2147221401i32;
pub const DV_E_STGMEDIUM: ::windows_sys::core::HRESULT = -2147221402i32;
pub const DV_E_TYMED: ::windows_sys::core::HRESULT = -2147221399i32;
pub const DWMERR_CATASTROPHIC_FAILURE: ::windows_sys::core::HRESULT = -2003302654i32;
pub const DWMERR_STATE_TRANSITION_FAILED: ::windows_sys::core::HRESULT = -2003302656i32;
pub const DWMERR_THEME_FAILED: ::windows_sys::core::HRESULT = -2003302655i32;
pub const DWM_E_ADAPTER_NOT_FOUND: ::windows_sys::core::HRESULT = -2144980987i32;
pub const DWM_E_COMPOSITIONDISABLED: ::windows_sys::core::HRESULT = -2144980991i32;
pub const DWM_E_NOT_QUEUING_PRESENTS: ::windows_sys::core::HRESULT = -2144980988i32;
pub const DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE: ::windows_sys::core::HRESULT = -2144980989i32;
pub const DWM_E_REMOTING_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144980990i32;
pub const DWM_E_TEXTURE_TOO_LARGE: ::windows_sys::core::HRESULT = -2144980985i32;
pub const DWM_S_GDI_REDIRECTION_SURFACE: ::windows_sys::core::HRESULT = 2502661i32;
pub const DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI: ::windows_sys::core::HRESULT = 2502664i32;
pub const DWRITE_E_ALREADYREGISTERED: ::windows_sys::core::HRESULT = -2003283962i32;
pub const DWRITE_E_CACHEFORMAT: ::windows_sys::core::HRESULT = -2003283961i32;
pub const DWRITE_E_CACHEVERSION: ::windows_sys::core::HRESULT = -2003283960i32;
pub const DWRITE_E_FILEACCESS: ::windows_sys::core::HRESULT = -2003283964i32;
pub const DWRITE_E_FILEFORMAT: ::windows_sys::core::HRESULT = -2003283968i32;
pub const DWRITE_E_FILENOTFOUND: ::windows_sys::core::HRESULT = -2003283965i32;
pub const DWRITE_E_FLOWDIRECTIONCONFLICTS: ::windows_sys::core::HRESULT = -2003283957i32;
pub const DWRITE_E_FONTCOLLECTIONOBSOLETE: ::windows_sys::core::HRESULT = -2003283963i32;
pub const DWRITE_E_NOCOLOR: ::windows_sys::core::HRESULT = -2003283956i32;
pub const DWRITE_E_NOFONT: ::windows_sys::core::HRESULT = -2003283966i32;
pub const DWRITE_E_TEXTRENDERERINCOMPATIBLE: ::windows_sys::core::HRESULT = -2003283958i32;
pub const DWRITE_E_UNEXPECTED: ::windows_sys::core::HRESULT = -2003283967i32;
pub const DWRITE_E_UNSUPPORTEDOPERATION: ::windows_sys::core::HRESULT = -2003283959i32;
pub const DXCORE_ERROR_EVENT_NOT_UNREGISTERED: ::windows_sys::core::HRESULT = -2004877311i32;
pub const DXGI_DDI_ERR_NONEXCLUSIVE: ::windows_sys::core::HRESULT = -2005204989i32;
pub const DXGI_DDI_ERR_UNSUPPORTED: ::windows_sys::core::HRESULT = -2005204990i32;
pub const DXGI_DDI_ERR_WASSTILLDRAWING: ::windows_sys::core::HRESULT = -2005204991i32;
pub const DXGI_STATUS_CLIPPED: ::windows_sys::core::HRESULT = 142213122i32;
pub const DXGI_STATUS_DDA_WAS_STILL_DRAWING: ::windows_sys::core::HRESULT = 142213130i32;
pub const DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE: ::windows_sys::core::HRESULT = 142213126i32;
pub const DXGI_STATUS_MODE_CHANGED: ::windows_sys::core::HRESULT = 142213127i32;
pub const DXGI_STATUS_MODE_CHANGE_IN_PROGRESS: ::windows_sys::core::HRESULT = 142213128i32;
pub const DXGI_STATUS_NO_DESKTOP_ACCESS: ::windows_sys::core::HRESULT = 142213125i32;
pub const DXGI_STATUS_NO_REDIRECTION: ::windows_sys::core::HRESULT = 142213124i32;
pub const DXGI_STATUS_OCCLUDED: ::windows_sys::core::HRESULT = 142213121i32;
pub const DXGI_STATUS_PRESENT_REQUIRED: ::windows_sys::core::HRESULT = 142213167i32;
pub const DXGI_STATUS_UNOCCLUDED: ::windows_sys::core::HRESULT = 142213129i32;
pub const EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD: ::windows_sys::core::HRESULT = -2141913080i32;
pub const EAS_E_ADMINS_HAVE_BLANK_PASSWORD: ::windows_sys::core::HRESULT = -2141913081i32;
pub const EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD: ::windows_sys::core::HRESULT = -2141913077i32;
pub const EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD: ::windows_sys::core::HRESULT = -2141913075i32;
pub const EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD: ::windows_sys::core::HRESULT = -2141913084i32;
pub const EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD: ::windows_sys::core::HRESULT = -2141913079i32;
pub const EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS: ::windows_sys::core::HRESULT = -2141913078i32;
pub const EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER: ::windows_sys::core::HRESULT = -2141913076i32;
pub const EAS_E_POLICY_COMPLIANT_WITH_ACTIONS: ::windows_sys::core::HRESULT = -2141913086i32;
pub const EAS_E_POLICY_NOT_MANAGED_BY_OS: ::windows_sys::core::HRESULT = -2141913087i32;
pub const EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE: ::windows_sys::core::HRESULT = -2141913085i32;
pub const EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE: ::windows_sys::core::HRESULT = -2141913083i32;
pub const EAS_E_USER_CANNOT_CHANGE_PASSWORD: ::windows_sys::core::HRESULT = -2141913082i32;
pub const ENUM_E_FIRST: i32 = -2147221072i32;
pub const ENUM_E_LAST: i32 = -2147221057i32;
pub const ENUM_S_FIRST: i32 = 262576i32;
pub const ENUM_S_LAST: i32 = 262591i32;
pub const EPT_NT_CANT_CREATE: NTSTATUS = -1073610676i32;
pub const EPT_NT_CANT_PERFORM_OP: NTSTATUS = -1073610699i32;
pub const EPT_NT_INVALID_ENTRY: NTSTATUS = -1073610700i32;
pub const EPT_NT_NOT_REGISTERED: NTSTATUS = -1073610698i32;
pub const ERROR_ALLOWED_PORT_TYPE_RESTRICTION: u32 = 941u32;
pub const ERROR_ALL_SIDS_FILTERED: ::windows_sys::core::HRESULT = -1073151998i32;
pub const ERROR_ALREADY_CONNECTED: u32 = 901u32;
pub const ERROR_ALREADY_CONNECTING: u32 = 910u32;
pub const ERROR_ATTRIBUTE_NOT_PRESENT: ::windows_sys::core::HRESULT = -2138898422i32;
pub const ERROR_AUDITING_DISABLED: ::windows_sys::core::HRESULT = -1073151999i32;
pub const ERROR_AUTHENTICATOR_MISMATCH: u32 = 955u32;
pub const ERROR_AUTH_PROTOCOL_REJECTED: u32 = 917u32;
pub const ERROR_AUTH_PROTOCOL_RESTRICTION: u32 = 942u32;
pub const ERROR_AUTH_SERVER_TIMEOUT: u32 = 930u32;
pub const ERROR_BAP_DISCONNECTED: u32 = 936u32;
pub const ERROR_BAP_REQUIRED: u32 = 943u32;
pub const ERROR_BIZRULES_NOT_ENABLED: ::windows_sys::core::HRESULT = -1073151997i32;
pub const ERROR_CLIENT_INTERFACE_ALREADY_EXISTS: u32 = 915u32;
pub const ERROR_CLIP_DEVICE_LICENSE_MISSING: ::windows_sys::core::HRESULT = -1058406397i32;
pub const ERROR_CLIP_KEYHOLDER_LICENSE_MISSING_OR_INVALID: ::windows_sys::core::HRESULT = -1058406395i32;
pub const ERROR_CLIP_LICENSE_DEVICE_ID_MISMATCH: ::windows_sys::core::HRESULT = -1058406390i32;
pub const ERROR_CLIP_LICENSE_EXPIRED: ::windows_sys::core::HRESULT = -1058406394i32;
pub const ERROR_CLIP_LICENSE_HARDWARE_ID_OUT_OF_TOLERANCE: ::windows_sys::core::HRESULT = -1058406391i32;
pub const ERROR_CLIP_LICENSE_INVALID_SIGNATURE: ::windows_sys::core::HRESULT = -1058406396i32;
pub const ERROR_CLIP_LICENSE_NOT_FOUND: ::windows_sys::core::HRESULT = -1058406398i32;
pub const ERROR_CLIP_LICENSE_NOT_SIGNED: ::windows_sys::core::HRESULT = -1058406392i32;
pub const ERROR_CLIP_LICENSE_SIGNED_BY_UNKNOWN_SOURCE: ::windows_sys::core::HRESULT = -1058406393i32;
pub const ERROR_CRED_REQUIRES_CONFIRMATION: ::windows_sys::core::HRESULT = -2146865127i32;
pub const ERROR_DBG_ATTACH_PROCESS_FAILURE_LOCKDOWN: ::windows_sys::core::HRESULT = -2135949310i32;
pub const ERROR_DBG_CONNECT_SERVER_FAILURE_LOCKDOWN: ::windows_sys::core::HRESULT = -2135949309i32;
pub const ERROR_DBG_CREATE_PROCESS_FAILURE_LOCKDOWN: ::windows_sys::core::HRESULT = -2135949311i32;
pub const ERROR_DBG_START_SERVER_FAILURE_LOCKDOWN: ::windows_sys::core::HRESULT = -2135949308i32;
pub const ERROR_DDM_NOT_RUNNING: u32 = 903u32;
pub const ERROR_DIALIN_HOURS_RESTRICTION: u32 = 940u32;
pub const ERROR_DIALOUT_HOURS_RESTRICTION: u32 = 944u32;
pub const ERROR_FLT_ALREADY_ENLISTED: ::windows_sys::core::HRESULT = -2145452005i32;
pub const ERROR_FLT_CBDQ_DISABLED: ::windows_sys::core::HRESULT = -2145452018i32;
pub const ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND: ::windows_sys::core::HRESULT = -2145452010i32;
pub const ERROR_FLT_CONTEXT_ALREADY_DEFINED: ::windows_sys::core::HRESULT = -2145452030i32;
pub const ERROR_FLT_CONTEXT_ALREADY_LINKED: ::windows_sys::core::HRESULT = -2145452004i32;
pub const ERROR_FLT_DELETING_OBJECT: ::windows_sys::core::HRESULT = -2145452021i32;
pub const ERROR_FLT_DISALLOW_FAST_IO: ::windows_sys::core::HRESULT = -2145452028i32;
pub const ERROR_FLT_DO_NOT_ATTACH: ::windows_sys::core::HRESULT = -2145452017i32;
pub const ERROR_FLT_DO_NOT_DETACH: ::windows_sys::core::HRESULT = -2145452016i32;
pub const ERROR_FLT_DUPLICATE_ENTRY: ::windows_sys::core::HRESULT = -2145452019i32;
pub const ERROR_FLT_FILTER_NOT_FOUND: ::windows_sys::core::HRESULT = -2145452013i32;
pub const ERROR_FLT_FILTER_NOT_READY: ::windows_sys::core::HRESULT = -2145452024i32;
pub const ERROR_FLT_INSTANCE_ALTITUDE_COLLISION: ::windows_sys::core::HRESULT = -2145452015i32;
pub const ERROR_FLT_INSTANCE_NAME_COLLISION: ::windows_sys::core::HRESULT = -2145452014i32;
pub const ERROR_FLT_INSTANCE_NOT_FOUND: ::windows_sys::core::HRESULT = -2145452011i32;
pub const ERROR_FLT_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2145452022i32;
pub const ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST: ::windows_sys::core::HRESULT = -2145452029i32;
pub const ERROR_FLT_INVALID_CONTEXT_REGISTRATION: ::windows_sys::core::HRESULT = -2145452009i32;
pub const ERROR_FLT_INVALID_NAME_REQUEST: ::windows_sys::core::HRESULT = -2145452027i32;
pub const ERROR_FLT_IO_COMPLETE: ::windows_sys::core::HRESULT = 2031617i32;
pub const ERROR_FLT_MUST_BE_NONPAGED_POOL: ::windows_sys::core::HRESULT = -2145452020i32;
pub const ERROR_FLT_NAME_CACHE_MISS: ::windows_sys::core::HRESULT = -2145452008i32;
pub const ERROR_FLT_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2145452025i32;
pub const ERROR_FLT_NOT_SAFE_TO_POST_OPERATION: ::windows_sys::core::HRESULT = -2145452026i32;
pub const ERROR_FLT_NO_DEVICE_OBJECT: ::windows_sys::core::HRESULT = -2145452007i32;
pub const ERROR_FLT_NO_HANDLER_DEFINED: ::windows_sys::core::HRESULT = -2145452031i32;
pub const ERROR_FLT_NO_WAITER_FOR_REPLY: ::windows_sys::core::HRESULT = -2145452000i32;
pub const ERROR_FLT_POST_OPERATION_CLEANUP: ::windows_sys::core::HRESULT = -2145452023i32;
pub const ERROR_FLT_REGISTRATION_BUSY: ::windows_sys::core::HRESULT = -2145451997i32;
pub const ERROR_FLT_VOLUME_ALREADY_MOUNTED: ::windows_sys::core::HRESULT = -2145452006i32;
pub const ERROR_FLT_VOLUME_NOT_FOUND: ::windows_sys::core::HRESULT = -2145452012i32;
pub const ERROR_FLT_WCOS_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2145451996i32;
pub const ERROR_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED: ::windows_sys::core::HRESULT = -1071242181i32;
pub const ERROR_GRAPHICS_ADAPTER_CHAIN_NOT_READY: ::windows_sys::core::HRESULT = -1071242189i32;
pub const ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE: ::windows_sys::core::HRESULT = -1071242456i32;
pub const ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET: ::windows_sys::core::HRESULT = -1071242455i32;
pub const ERROR_GRAPHICS_ADAPTER_WAS_RESET: ::windows_sys::core::HRESULT = -1071243261i32;
pub const ERROR_GRAPHICS_ALLOCATION_BUSY: ::windows_sys::core::HRESULT = -1071243006i32;
pub const ERROR_GRAPHICS_ALLOCATION_CLOSED: ::windows_sys::core::HRESULT = -1071242990i32;
pub const ERROR_GRAPHICS_ALLOCATION_CONTENT_LOST: ::windows_sys::core::HRESULT = -1071242986i32;
pub const ERROR_GRAPHICS_ALLOCATION_INVALID: ::windows_sys::core::HRESULT = -1071243002i32;
pub const ERROR_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION: ::windows_sys::core::HRESULT = -1071242406i32;
pub const ERROR_GRAPHICS_CANNOTCOLORCONVERT: ::windows_sys::core::HRESULT = -1071243256i32;
pub const ERROR_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN: ::windows_sys::core::HRESULT = -1071242429i32;
pub const ERROR_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION: ::windows_sys::core::HRESULT = -1071242999i32;
pub const ERROR_GRAPHICS_CANT_LOCK_MEMORY: ::windows_sys::core::HRESULT = -1071243007i32;
pub const ERROR_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION: ::windows_sys::core::HRESULT = -1071242991i32;
pub const ERROR_GRAPHICS_CHAINLINKS_NOT_ENUMERATED: ::windows_sys::core::HRESULT = -1071242190i32;
pub const ERROR_GRAPHICS_CHAINLINKS_NOT_POWERED_ON: ::windows_sys::core::HRESULT = -1071242187i32;
pub const ERROR_GRAPHICS_CHAINLINKS_NOT_STARTED: ::windows_sys::core::HRESULT = -1071242188i32;
pub const ERROR_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071242239i32;
pub const ERROR_GRAPHICS_CLIENTVIDPN_NOT_SET: ::windows_sys::core::HRESULT = -1071242404i32;
pub const ERROR_GRAPHICS_COPP_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071241983i32;
pub const ERROR_GRAPHICS_DATASET_IS_EMPTY: ::windows_sys::core::HRESULT = 2499403i32;
pub const ERROR_GRAPHICS_DDCCI_CURRENT_CURRENT_VALUE_GREATER_THAN_MAXIMUM_VALUE: ::windows_sys::core::HRESULT = -1071241768i32;
pub const ERROR_GRAPHICS_DDCCI_INVALID_DATA: ::windows_sys::core::HRESULT = -1071241851i32;
pub const ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM: ::windows_sys::core::HRESULT = -1071241845i32;
pub const ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND: ::windows_sys::core::HRESULT = -1071241847i32;
pub const ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH: ::windows_sys::core::HRESULT = -1071241846i32;
pub const ERROR_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE: ::windows_sys::core::HRESULT = -1071241850i32;
pub const ERROR_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071241852i32;
pub const ERROR_GRAPHICS_DEPENDABLE_CHILD_STATUS: ::windows_sys::core::HRESULT = 1076241468i32;
pub const ERROR_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP: ::windows_sys::core::HRESULT = -1071241758i32;
pub const ERROR_GRAPHICS_DRIVER_MISMATCH: ::windows_sys::core::HRESULT = -1071243255i32;
pub const ERROR_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION: ::windows_sys::core::HRESULT = -1071242459i32;
pub const ERROR_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET: ::windows_sys::core::HRESULT = -1071242465i32;
pub const ERROR_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET: ::windows_sys::core::HRESULT = -1071242467i32;
pub const ERROR_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071242424i32;
pub const ERROR_GRAPHICS_GPU_EXCEPTION_ON_DEVICE: ::windows_sys::core::HRESULT = -1071242752i32;
pub const ERROR_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST: ::windows_sys::core::HRESULT = -1071241855i32;
pub const ERROR_GRAPHICS_I2C_ERROR_RECEIVING_DATA: ::windows_sys::core::HRESULT = -1071241853i32;
pub const ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA: ::windows_sys::core::HRESULT = -1071241854i32;
pub const ERROR_GRAPHICS_I2C_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071241856i32;
pub const ERROR_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT: ::windows_sys::core::HRESULT = -1071242411i32;
pub const ERROR_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE: ::windows_sys::core::HRESULT = -1071242186i32;
pub const ERROR_GRAPHICS_INDIRECT_DISPLAY_ABANDON_SWAPCHAIN: ::windows_sys::core::HRESULT = -1071243246i32;
pub const ERROR_GRAPHICS_INDIRECT_DISPLAY_DEVICE_STOPPED: ::windows_sys::core::HRESULT = -1071243245i32;
pub const ERROR_GRAPHICS_INSUFFICIENT_DMA_BUFFER: ::windows_sys::core::HRESULT = -1071243263i32;
pub const ERROR_GRAPHICS_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -1071241753i32;
pub const ERROR_GRAPHICS_INVALID_ACTIVE_REGION: ::windows_sys::core::HRESULT = -1071242485i32;
pub const ERROR_GRAPHICS_INVALID_ALLOCATION_HANDLE: ::windows_sys::core::HRESULT = -1071242988i32;
pub const ERROR_GRAPHICS_INVALID_ALLOCATION_INSTANCE: ::windows_sys::core::HRESULT = -1071242989i32;
pub const ERROR_GRAPHICS_INVALID_ALLOCATION_USAGE: ::windows_sys::core::HRESULT = -1071242992i32;
pub const ERROR_GRAPHICS_INVALID_CLIENT_TYPE: ::windows_sys::core::HRESULT = -1071242405i32;
pub const ERROR_GRAPHICS_INVALID_COLORBASIS: ::windows_sys::core::HRESULT = -1071242434i32;
pub const ERROR_GRAPHICS_INVALID_COPYPROTECTION_TYPE: ::windows_sys::core::HRESULT = -1071242417i32;
pub const ERROR_GRAPHICS_INVALID_DISPLAY_ADAPTER: ::windows_sys::core::HRESULT = -1071243262i32;
pub const ERROR_GRAPHICS_INVALID_DRIVER_MODEL: ::windows_sys::core::HRESULT = -1071243260i32;
pub const ERROR_GRAPHICS_INVALID_FREQUENCY: ::windows_sys::core::HRESULT = -1071242486i32;
pub const ERROR_GRAPHICS_INVALID_GAMMA_RAMP: ::windows_sys::core::HRESULT = -1071242425i32;
pub const ERROR_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM: ::windows_sys::core::HRESULT = -1071242410i32;
pub const ERROR_GRAPHICS_INVALID_MONITORDESCRIPTOR: ::windows_sys::core::HRESULT = -1071242453i32;
pub const ERROR_GRAPHICS_INVALID_MONITORDESCRIPTORSET: ::windows_sys::core::HRESULT = -1071242454i32;
pub const ERROR_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN: ::windows_sys::core::HRESULT = -1071242409i32;
pub const ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE: ::windows_sys::core::HRESULT = -1071242468i32;
pub const ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET: ::windows_sys::core::HRESULT = -1071242469i32;
pub const ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT: ::windows_sys::core::HRESULT = -1071242408i32;
pub const ERROR_GRAPHICS_INVALID_MONITOR_SOURCEMODESET: ::windows_sys::core::HRESULT = -1071242463i32;
pub const ERROR_GRAPHICS_INVALID_MONITOR_SOURCE_MODE: ::windows_sys::core::HRESULT = -1071242462i32;
pub const ERROR_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION: ::windows_sys::core::HRESULT = -1071242427i32;
pub const ERROR_GRAPHICS_INVALID_PATH_CONTENT_TYPE: ::windows_sys::core::HRESULT = -1071242418i32;
pub const ERROR_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL: ::windows_sys::core::HRESULT = -1071242428i32;
pub const ERROR_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE: ::windows_sys::core::HRESULT = -1071241844i32;
pub const ERROR_GRAPHICS_INVALID_PIXELFORMAT: ::windows_sys::core::HRESULT = -1071242435i32;
pub const ERROR_GRAPHICS_INVALID_PIXELVALUEACCESSMODE: ::windows_sys::core::HRESULT = -1071242433i32;
pub const ERROR_GRAPHICS_INVALID_POINTER: ::windows_sys::core::HRESULT = -1071241756i32;
pub const ERROR_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE: ::windows_sys::core::HRESULT = -1071242438i32;
pub const ERROR_GRAPHICS_INVALID_SCANLINE_ORDERING: ::windows_sys::core::HRESULT = -1071242414i32;
pub const ERROR_GRAPHICS_INVALID_STRIDE: ::windows_sys::core::HRESULT = -1071242436i32;
pub const ERROR_GRAPHICS_INVALID_TOTAL_REGION: ::windows_sys::core::HRESULT = -1071242484i32;
pub const ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET: ::windows_sys::core::HRESULT = -1071242475i32;
pub const ERROR_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET: ::windows_sys::core::HRESULT = -1071242474i32;
pub const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE: ::windows_sys::core::HRESULT = -1071242492i32;
pub const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE: ::windows_sys::core::HRESULT = -1071242480i32;
pub const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET: ::windows_sys::core::HRESULT = -1071242491i32;
pub const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE: ::windows_sys::core::HRESULT = -1071242479i32;
pub const ERROR_GRAPHICS_INVALID_VIDPN: ::windows_sys::core::HRESULT = -1071242493i32;
pub const ERROR_GRAPHICS_INVALID_VIDPN_PRESENT_PATH: ::windows_sys::core::HRESULT = -1071242471i32;
pub const ERROR_GRAPHICS_INVALID_VIDPN_SOURCEMODESET: ::windows_sys::core::HRESULT = -1071242488i32;
pub const ERROR_GRAPHICS_INVALID_VIDPN_TARGETMODESET: ::windows_sys::core::HRESULT = -1071242487i32;
pub const ERROR_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE: ::windows_sys::core::HRESULT = -1071242449i32;
pub const ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY: ::windows_sys::core::HRESULT = -1071242496i32;
pub const ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON: ::windows_sys::core::HRESULT = -1071242419i32;
pub const ERROR_GRAPHICS_INVALID_VISIBLEREGION_SIZE: ::windows_sys::core::HRESULT = -1071242437i32;
pub const ERROR_GRAPHICS_LEADLINK_NOT_ENUMERATED: ::windows_sys::core::HRESULT = -1071242191i32;
pub const ERROR_GRAPHICS_LEADLINK_START_DEFERRED: ::windows_sys::core::HRESULT = 1076241463i32;
pub const ERROR_GRAPHICS_MAX_NUM_PATHS_REACHED: ::windows_sys::core::HRESULT = -1071242407i32;
pub const ERROR_GRAPHICS_MCA_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -1071241848i32;
pub const ERROR_GRAPHICS_MCA_INVALID_CAPABILITIES_STRING: ::windows_sys::core::HRESULT = -1071241849i32;
pub const ERROR_GRAPHICS_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED: ::windows_sys::core::HRESULT = -1071241762i32;
pub const ERROR_GRAPHICS_MCA_INVALID_VCP_VERSION: ::windows_sys::core::HRESULT = -1071241767i32;
pub const ERROR_GRAPHICS_MCA_MCCS_VERSION_MISMATCH: ::windows_sys::core::HRESULT = -1071241765i32;
pub const ERROR_GRAPHICS_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION: ::windows_sys::core::HRESULT = -1071241766i32;
pub const ERROR_GRAPHICS_MCA_UNSUPPORTED_COLOR_TEMPERATURE: ::windows_sys::core::HRESULT = -1071241761i32;
pub const ERROR_GRAPHICS_MCA_UNSUPPORTED_MCCS_VERSION: ::windows_sys::core::HRESULT = -1071241764i32;
pub const ERROR_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071241757i32;
pub const ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET: ::windows_sys::core::HRESULT = -1071242476i32;
pub const ERROR_GRAPHICS_MODE_ID_MUST_BE_UNIQUE: ::windows_sys::core::HRESULT = -1071242460i32;
pub const ERROR_GRAPHICS_MODE_NOT_IN_MODESET: ::windows_sys::core::HRESULT = -1071242422i32;
pub const ERROR_GRAPHICS_MODE_NOT_PINNED: ::windows_sys::core::HRESULT = 2499335i32;
pub const ERROR_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET: ::windows_sys::core::HRESULT = -1071242451i32;
pub const ERROR_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE: ::windows_sys::core::HRESULT = -1071242450i32;
pub const ERROR_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET: ::windows_sys::core::HRESULT = -1071242452i32;
pub const ERROR_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER: ::windows_sys::core::HRESULT = -1071242444i32;
pub const ERROR_GRAPHICS_MONITOR_NOT_CONNECTED: ::windows_sys::core::HRESULT = -1071242440i32;
pub const ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS: ::windows_sys::core::HRESULT = -1071241843i32;
pub const ERROR_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071242423i32;
pub const ERROR_GRAPHICS_NOT_A_LINKED_ADAPTER: ::windows_sys::core::HRESULT = -1071242192i32;
pub const ERROR_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER: ::windows_sys::core::HRESULT = -1071243264i32;
pub const ERROR_GRAPHICS_NOT_POST_DEVICE_DRIVER: ::windows_sys::core::HRESULT = -1071242184i32;
pub const ERROR_GRAPHICS_NO_ACTIVE_VIDPN: ::windows_sys::core::HRESULT = -1071242442i32;
pub const ERROR_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS: ::windows_sys::core::HRESULT = -1071242412i32;
pub const ERROR_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET: ::windows_sys::core::HRESULT = -1071242445i32;
pub const ERROR_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME: ::windows_sys::core::HRESULT = -1071241759i32;
pub const ERROR_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT: ::windows_sys::core::HRESULT = -1071242431i32;
pub const ERROR_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE: ::windows_sys::core::HRESULT = -1071241755i32;
pub const ERROR_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET: ::windows_sys::core::HRESULT = 2499404i32;
pub const ERROR_GRAPHICS_NO_PREFERRED_MODE: ::windows_sys::core::HRESULT = 2499358i32;
pub const ERROR_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN: ::windows_sys::core::HRESULT = -1071242461i32;
pub const ERROR_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY: ::windows_sys::core::HRESULT = -1071242470i32;
pub const ERROR_GRAPHICS_NO_VIDEO_MEMORY: ::windows_sys::core::HRESULT = -1071243008i32;
pub const ERROR_GRAPHICS_NO_VIDPNMGR: ::windows_sys::core::HRESULT = -1071242443i32;
pub const ERROR_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED: ::windows_sys::core::HRESULT = -1071241760i32;
pub const ERROR_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE: ::windows_sys::core::HRESULT = -1071241960i32;
pub const ERROR_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -1071241954i32;
pub const ERROR_GRAPHICS_OPM_HDCP_SRM_NEVER_SET: ::windows_sys::core::HRESULT = -1071241962i32;
pub const ERROR_GRAPHICS_OPM_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -1071241973i32;
pub const ERROR_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST: ::windows_sys::core::HRESULT = -1071241951i32;
pub const ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS: ::windows_sys::core::HRESULT = -1071241981i32;
pub const ERROR_GRAPHICS_OPM_INVALID_HANDLE: ::windows_sys::core::HRESULT = -1071241972i32;
pub const ERROR_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST: ::windows_sys::core::HRESULT = -1071241955i32;
pub const ERROR_GRAPHICS_OPM_INVALID_SRM: ::windows_sys::core::HRESULT = -1071241966i32;
pub const ERROR_GRAPHICS_OPM_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071241984i32;
pub const ERROR_GRAPHICS_OPM_NO_VIDEO_OUTPUTS_EXIST: ::windows_sys::core::HRESULT = -1071241979i32;
pub const ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP: ::windows_sys::core::HRESULT = -1071241964i32;
pub const ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA: ::windows_sys::core::HRESULT = -1071241963i32;
pub const ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP: ::windows_sys::core::HRESULT = -1071241965i32;
pub const ERROR_GRAPHICS_OPM_RESOLUTION_TOO_HIGH: ::windows_sys::core::HRESULT = -1071241961i32;
pub const ERROR_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS: ::windows_sys::core::HRESULT = -1071241957i32;
pub const ERROR_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071241952i32;
pub const ERROR_GRAPHICS_OPM_SPANNING_MODE_ENABLED: ::windows_sys::core::HRESULT = -1071241969i32;
pub const ERROR_GRAPHICS_OPM_THEATER_MODE_ENABLED: ::windows_sys::core::HRESULT = -1071241968i32;
pub const ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS: ::windows_sys::core::HRESULT = -1071241956i32;
pub const ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS: ::windows_sys::core::HRESULT = -1071241953i32;
pub const ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_NO_LONGER_EXISTS: ::windows_sys::core::HRESULT = -1071241958i32;
pub const ERROR_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL: ::windows_sys::core::HRESULT = -1071241754i32;
pub const ERROR_GRAPHICS_PARTIAL_DATA_POPULATED: ::windows_sys::core::HRESULT = 1076240394i32;
pub const ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY: ::windows_sys::core::HRESULT = -1071242477i32;
pub const ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED: ::windows_sys::core::HRESULT = 2499409i32;
pub const ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071242426i32;
pub const ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY: ::windows_sys::core::HRESULT = -1071242457i32;
pub const ERROR_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET: ::windows_sys::core::HRESULT = -1071242478i32;
pub const ERROR_GRAPHICS_POLLING_TOO_FREQUENTLY: ::windows_sys::core::HRESULT = 1076241465i32;
pub const ERROR_GRAPHICS_PRESENT_BUFFER_NOT_BOUND: ::windows_sys::core::HRESULT = -1071243248i32;
pub const ERROR_GRAPHICS_PRESENT_DENIED: ::windows_sys::core::HRESULT = -1071243257i32;
pub const ERROR_GRAPHICS_PRESENT_INVALID_WINDOW: ::windows_sys::core::HRESULT = -1071243249i32;
pub const ERROR_GRAPHICS_PRESENT_MODE_CHANGED: ::windows_sys::core::HRESULT = -1071243259i32;
pub const ERROR_GRAPHICS_PRESENT_OCCLUDED: ::windows_sys::core::HRESULT = -1071243258i32;
pub const ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED: ::windows_sys::core::HRESULT = -1071243253i32;
pub const ERROR_GRAPHICS_PRESENT_UNOCCLUDED: ::windows_sys::core::HRESULT = -1071243252i32;
pub const ERROR_GRAPHICS_PVP_HFS_FAILED: ::windows_sys::core::HRESULT = -1071241967i32;
pub const ERROR_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH: ::windows_sys::core::HRESULT = -1071241970i32;
pub const ERROR_GRAPHICS_RESOURCES_NOT_RELATED: ::windows_sys::core::HRESULT = -1071242448i32;
pub const ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS: ::windows_sys::core::HRESULT = -1071249944i32;
pub const ERROR_GRAPHICS_SKIP_ALLOCATION_PREPARATION: ::windows_sys::core::HRESULT = 1076240897i32;
pub const ERROR_GRAPHICS_SOURCE_ALREADY_IN_SET: ::windows_sys::core::HRESULT = -1071242473i32;
pub const ERROR_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE: ::windows_sys::core::HRESULT = -1071242447i32;
pub const ERROR_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY: ::windows_sys::core::HRESULT = -1071242439i32;
pub const ERROR_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED: ::windows_sys::core::HRESULT = -1071242240i32;
pub const ERROR_GRAPHICS_STALE_MODESET: ::windows_sys::core::HRESULT = -1071242464i32;
pub const ERROR_GRAPHICS_STALE_VIDPN_TOPOLOGY: ::windows_sys::core::HRESULT = -1071242441i32;
pub const ERROR_GRAPHICS_START_DEFERRED: ::windows_sys::core::HRESULT = 1076241466i32;
pub const ERROR_GRAPHICS_TARGET_ALREADY_IN_SET: ::windows_sys::core::HRESULT = -1071242472i32;
pub const ERROR_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE: ::windows_sys::core::HRESULT = -1071242446i32;
pub const ERROR_GRAPHICS_TARGET_NOT_IN_TOPOLOGY: ::windows_sys::core::HRESULT = -1071242432i32;
pub const ERROR_GRAPHICS_TOO_MANY_REFERENCES: ::windows_sys::core::HRESULT = -1071243005i32;
pub const ERROR_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED: ::windows_sys::core::HRESULT = -1071242413i32;
pub const ERROR_GRAPHICS_TRY_AGAIN_LATER: ::windows_sys::core::HRESULT = -1071243004i32;
pub const ERROR_GRAPHICS_TRY_AGAIN_NOW: ::windows_sys::core::HRESULT = -1071243003i32;
pub const ERROR_GRAPHICS_UAB_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071241982i32;
pub const ERROR_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -1071242416i32;
pub const ERROR_GRAPHICS_UNKNOWN_CHILD_STATUS: ::windows_sys::core::HRESULT = 1076241455i32;
pub const ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE: ::windows_sys::core::HRESULT = -1071243001i32;
pub const ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED: ::windows_sys::core::HRESULT = -1071243000i32;
pub const ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_COMPOSITION_WINDOW_DPI_MESSAGE: ::windows_sys::core::HRESULT = -1071243242i32;
pub const ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_CREATE_SUPERWETINK_MESSAGE: ::windows_sys::core::HRESULT = -1071243244i32;
pub const ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_DESTROY_SUPERWETINK_MESSAGE: ::windows_sys::core::HRESULT = -1071243243i32;
pub const ERROR_GRAPHICS_VAIL_STATE_CHANGED: ::windows_sys::core::HRESULT = -1071243247i32;
pub const ERROR_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES: ::windows_sys::core::HRESULT = -1071242458i32;
pub const ERROR_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071242490i32;
pub const ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE: ::windows_sys::core::HRESULT = -1071242430i32;
pub const ERROR_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071242494i32;
pub const ERROR_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1071242495i32;
pub const ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -1071243251i32;
pub const ERROR_GRAPHICS_WINDOWLESS_PRESENT_DISABLED: ::windows_sys::core::HRESULT = -1071243250i32;
pub const ERROR_GRAPHICS_WRONG_ALLOCATION_DEVICE: ::windows_sys::core::HRESULT = -1071242987i32;
pub const ERROR_HUNG_DISPLAY_DRIVER_THREAD: ::windows_sys::core::HRESULT = -2144993279i32;
pub const ERROR_IDLE_DISCONNECTED: u32 = 926u32;
pub const ERROR_INTERFACE_ALREADY_EXISTS: u32 = 904u32;
pub const ERROR_INTERFACE_CONFIGURATION: u32 = 912u32;
pub const ERROR_INTERFACE_CONNECTED: u32 = 908u32;
pub const ERROR_INTERFACE_DISABLED: u32 = 916u32;
pub const ERROR_INTERFACE_DISCONNECTED: u32 = 929u32;
pub const ERROR_INTERFACE_HAS_NO_DEVICES: u32 = 925u32;
pub const ERROR_INTERFACE_NOT_CONNECTED: u32 = 906u32;
pub const ERROR_INTERFACE_UNREACHABLE: u32 = 927u32;
pub const ERROR_INVALID_ATTRIBUTE_LENGTH: u32 = 953u32;
pub const ERROR_INVALID_PACKET: u32 = 954u32;
pub const ERROR_INVALID_PACKET_LENGTH_OR_ID: u32 = 952u32;
pub const ERROR_INVALID_RADIUS_RESPONSE: u32 = 939u32;
pub const ERROR_INVALID_SIGNATURE: u32 = 950u32;
pub const ERROR_INVALID_SIGNATURE_LENGTH: u32 = 949u32;
pub const ERROR_IO_PREEMPTED: ::windows_sys::core::HRESULT = -1996423167i32;
pub const ERROR_MAX_CLIENT_INTERFACE_LIMIT: u32 = 935u32;
pub const ERROR_MAX_LAN_INTERFACE_LIMIT: u32 = 933u32;
pub const ERROR_MAX_WAN_INTERFACE_LIMIT: u32 = 934u32;
pub const ERROR_MONITOR_INVALID_DESCRIPTOR_CHECKSUM: ::windows_sys::core::HRESULT = -1071247357i32;
pub const ERROR_MONITOR_INVALID_DETAILED_TIMING_BLOCK: ::windows_sys::core::HRESULT = -1071247351i32;
pub const ERROR_MONITOR_INVALID_MANUFACTURE_DATE: ::windows_sys::core::HRESULT = -1071247350i32;
pub const ERROR_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK: ::windows_sys::core::HRESULT = -1071247354i32;
pub const ERROR_MONITOR_INVALID_STANDARD_TIMING_BLOCK: ::windows_sys::core::HRESULT = -1071247356i32;
pub const ERROR_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK: ::windows_sys::core::HRESULT = -1071247353i32;
pub const ERROR_MONITOR_NO_DESCRIPTOR: ::windows_sys::core::HRESULT = 2494465i32;
pub const ERROR_MONITOR_NO_MORE_DESCRIPTOR_DATA: ::windows_sys::core::HRESULT = -1071247352i32;
pub const ERROR_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT: ::windows_sys::core::HRESULT = 2494466i32;
pub const ERROR_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED: ::windows_sys::core::HRESULT = -1071247355i32;
pub const ERROR_NOT_A_TIERED_VOLUME: ::windows_sys::core::HRESULT = -2138898423i32;
pub const ERROR_NOT_CLIENT_PORT: u32 = 913u32;
pub const ERROR_NOT_ROUTER_PORT: u32 = 914u32;
pub const ERROR_NO_APPLICABLE_APP_LICENSES_FOUND: ::windows_sys::core::HRESULT = -1058406399i32;
pub const ERROR_NO_AUTH_PROTOCOL_AVAILABLE: u32 = 918u32;
pub const ERROR_NO_INTERFACE_CREDENTIALS_SET: u32 = 909u32;
pub const ERROR_NO_RADIUS_SERVERS: u32 = 938u32;
pub const ERROR_NO_SIGNATURE: u32 = 951u32;
pub const ERROR_NO_SUCH_INTERFACE: u32 = 905u32;
pub const ERROR_PEER_REFUSED_AUTH: u32 = 919u32;
pub const ERROR_PORT_LIMIT_REACHED: u32 = 931u32;
pub const ERROR_PPP_SESSION_TIMEOUT: u32 = 932u32;
pub const ERROR_PROTOCOL_ALREADY_INSTALLED: u32 = 948u32;
pub const ERROR_PROTOCOL_STOP_PENDING: u32 = 907u32;
pub const ERROR_QUIC_ALPN_NEG_FAILURE: ::windows_sys::core::HRESULT = -2143223801i32;
pub const ERROR_QUIC_CONNECTION_IDLE: ::windows_sys::core::HRESULT = -2143223803i32;
pub const ERROR_QUIC_CONNECTION_TIMEOUT: ::windows_sys::core::HRESULT = -2143223802i32;
pub const ERROR_QUIC_HANDSHAKE_FAILURE: ::windows_sys::core::HRESULT = -2143223808i32;
pub const ERROR_QUIC_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2143223805i32;
pub const ERROR_QUIC_PROTOCOL_VIOLATION: ::windows_sys::core::HRESULT = -2143223804i32;
pub const ERROR_QUIC_USER_CANCELED: ::windows_sys::core::HRESULT = -2143223806i32;
pub const ERROR_QUIC_VER_NEG_FAILURE: ::windows_sys::core::HRESULT = -2143223807i32;
pub const ERROR_REMOTEACCESS_NOT_CONFIGURED: u32 = 956u32;
pub const ERROR_REMOTE_ACCT_DISABLED: u32 = 922u32;
pub const ERROR_REMOTE_AUTHENTICATION_FAILURE: u32 = 924u32;
pub const ERROR_REMOTE_NO_DIALIN_PERMISSION: u32 = 920u32;
pub const ERROR_REMOTE_PASSWD_EXPIRED: u32 = 921u32;
pub const ERROR_REMOTE_RESTRICTED_LOGON_HOURS: u32 = 923u32;
pub const ERROR_ROUTER_CONFIG_INCOMPATIBLE: u32 = 945u32;
pub const ERROR_ROUTER_STOPPED: u32 = 900u32;
pub const ERROR_SECCORE_INVALID_COMMAND: ::windows_sys::core::HRESULT = -1058537472i32;
pub const ERROR_SERVICE_IS_PAUSED: u32 = 928u32;
pub const ERROR_SMB_BAD_CLUSTER_DIALECT: ::windows_sys::core::HRESULT = -1067646975i32;
pub const ERROR_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP: ::windows_sys::core::HRESULT = -1067646976i32;
pub const ERROR_SMB_NO_SIGNING_ALGORITHM_OVERLAP: ::windows_sys::core::HRESULT = -1067646974i32;
pub const ERROR_SPACES_ALLOCATION_SIZE_INVALID: ::windows_sys::core::HRESULT = -2132344818i32;
pub const ERROR_SPACES_CACHE_FULL: ::windows_sys::core::HRESULT = -2132344794i32;
pub const ERROR_SPACES_CORRUPT_METADATA: ::windows_sys::core::HRESULT = -2132344808i32;
pub const ERROR_SPACES_DRIVE_LOST_DATA: ::windows_sys::core::HRESULT = -2132344801i32;
pub const ERROR_SPACES_DRIVE_NOT_READY: ::windows_sys::core::HRESULT = -2132344803i32;
pub const ERROR_SPACES_DRIVE_OPERATIONAL_STATE_INVALID: ::windows_sys::core::HRESULT = -2132344814i32;
pub const ERROR_SPACES_DRIVE_REDUNDANCY_INVALID: ::windows_sys::core::HRESULT = -2132344826i32;
pub const ERROR_SPACES_DRIVE_SECTOR_SIZE_INVALID: ::windows_sys::core::HRESULT = -2132344828i32;
pub const ERROR_SPACES_DRIVE_SPLIT: ::windows_sys::core::HRESULT = -2132344802i32;
pub const ERROR_SPACES_DRT_FULL: ::windows_sys::core::HRESULT = -2132344807i32;
pub const ERROR_SPACES_ENCLOSURE_AWARE_INVALID: ::windows_sys::core::HRESULT = -2132344817i32;
pub const ERROR_SPACES_ENTRY_INCOMPLETE: ::windows_sys::core::HRESULT = -2132344813i32;
pub const ERROR_SPACES_ENTRY_INVALID: ::windows_sys::core::HRESULT = -2132344812i32;
pub const ERROR_SPACES_EXTENDED_ERROR: ::windows_sys::core::HRESULT = -2132344820i32;
pub const ERROR_SPACES_FAULT_DOMAIN_TYPE_INVALID: ::windows_sys::core::HRESULT = -2132344831i32;
pub const ERROR_SPACES_FLUSH_METADATA: ::windows_sys::core::HRESULT = -2132344795i32;
pub const ERROR_SPACES_INCONSISTENCY: ::windows_sys::core::HRESULT = -2132344806i32;
pub const ERROR_SPACES_INTERLEAVE_LENGTH_INVALID: ::windows_sys::core::HRESULT = -2132344823i32;
pub const ERROR_SPACES_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2132344830i32;
pub const ERROR_SPACES_LOG_NOT_READY: ::windows_sys::core::HRESULT = -2132344805i32;
pub const ERROR_SPACES_MAP_REQUIRED: ::windows_sys::core::HRESULT = -2132344810i32;
pub const ERROR_SPACES_MARK_DIRTY: ::windows_sys::core::HRESULT = -2132344800i32;
pub const ERROR_SPACES_NOT_ENOUGH_DRIVES: ::windows_sys::core::HRESULT = -2132344821i32;
pub const ERROR_SPACES_NO_REDUNDANCY: ::windows_sys::core::HRESULT = -2132344804i32;
pub const ERROR_SPACES_NUMBER_OF_COLUMNS_INVALID: ::windows_sys::core::HRESULT = -2132344822i32;
pub const ERROR_SPACES_NUMBER_OF_DATA_COPIES_INVALID: ::windows_sys::core::HRESULT = -2132344825i32;
pub const ERROR_SPACES_NUMBER_OF_GROUPS_INVALID: ::windows_sys::core::HRESULT = -2132344815i32;
pub const ERROR_SPACES_PARITY_LAYOUT_INVALID: ::windows_sys::core::HRESULT = -2132344824i32;
pub const ERROR_SPACES_POOL_WAS_DELETED: ::windows_sys::core::HRESULT = 15138817i32;
pub const ERROR_SPACES_PROVISIONING_TYPE_INVALID: ::windows_sys::core::HRESULT = -2132344819i32;
pub const ERROR_SPACES_RESILIENCY_TYPE_INVALID: ::windows_sys::core::HRESULT = -2132344829i32;
pub const ERROR_SPACES_UNSUPPORTED_VERSION: ::windows_sys::core::HRESULT = -2132344809i32;
pub const ERROR_SPACES_UPDATE_COLUMN_STATE: ::windows_sys::core::HRESULT = -2132344811i32;
pub const ERROR_SPACES_WRITE_CACHE_SIZE_INVALID: ::windows_sys::core::HRESULT = -2132344816i32;
pub const ERROR_SVHDX_ERROR_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -1067647232i32;
pub const ERROR_SVHDX_ERROR_STORED: ::windows_sys::core::HRESULT = -1067712512i32;
pub const ERROR_SVHDX_NO_INITIATOR: ::windows_sys::core::HRESULT = -1067647221i32;
pub const ERROR_SVHDX_RESERVATION_CONFLICT: ::windows_sys::core::HRESULT = -1067647225i32;
pub const ERROR_SVHDX_UNIT_ATTENTION_AVAILABLE: ::windows_sys::core::HRESULT = -1067647231i32;
pub const ERROR_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED: ::windows_sys::core::HRESULT = -1067647230i32;
pub const ERROR_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED: ::windows_sys::core::HRESULT = -1067647226i32;
pub const ERROR_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED: ::windows_sys::core::HRESULT = -1067647227i32;
pub const ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED: ::windows_sys::core::HRESULT = -1067647229i32;
pub const ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED: ::windows_sys::core::HRESULT = -1067647228i32;
pub const ERROR_SVHDX_VERSION_MISMATCH: ::windows_sys::core::HRESULT = -1067647223i32;
pub const ERROR_SVHDX_WRONG_FILE_TYPE: ::windows_sys::core::HRESULT = -1067647224i32;
pub const ERROR_TIERING_ALREADY_PROCESSING: ::windows_sys::core::HRESULT = -2138898426i32;
pub const ERROR_TIERING_CANNOT_PIN_OBJECT: ::windows_sys::core::HRESULT = -2138898425i32;
pub const ERROR_TIERING_FILE_IS_NOT_PINNED: ::windows_sys::core::HRESULT = -2138898424i32;
pub const ERROR_TIERING_INVALID_FILE_ID: ::windows_sys::core::HRESULT = -2138898428i32;
pub const ERROR_TIERING_NOT_SUPPORTED_ON_VOLUME: ::windows_sys::core::HRESULT = -2138898431i32;
pub const ERROR_TIERING_STORAGE_TIER_NOT_FOUND: ::windows_sys::core::HRESULT = -2138898429i32;
pub const ERROR_TIERING_VOLUME_DISMOUNT_IN_PROGRESS: ::windows_sys::core::HRESULT = -2138898430i32;
pub const ERROR_TIERING_WRONG_CLUSTER_NODE: ::windows_sys::core::HRESULT = -2138898427i32;
pub const ERROR_UNKNOWN_PROTOCOL_ID: u32 = 902u32;
pub const ERROR_UPDATE_IN_PROGRESS: u32 = 911u32;
pub const ERROR_USER_LIMIT: u32 = 937u32;
pub const ERROR_VHDSET_BACKING_STORAGE_NOT_FOUND: ::windows_sys::core::HRESULT = -1067647220i32;
pub const ERROR_VHD_SHARED: ::windows_sys::core::HRESULT = -1067647222i32;
pub const ERROR_VOLSNAP_ACTIVATION_TIMEOUT: ::windows_sys::core::HRESULT = -2138963966i32;
pub const ERROR_VOLSNAP_BOOTFILE_NOT_VALID: ::windows_sys::core::HRESULT = -2138963967i32;
pub const ERROR_VOLSNAP_NO_BYPASSIO_WITH_SNAPSHOT: ::windows_sys::core::HRESULT = -2138963965i32;
pub const EVENT_E_ALL_SUBSCRIBERS_FAILED: ::windows_sys::core::HRESULT = -2147220991i32;
pub const EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT: ::windows_sys::core::HRESULT = -2147220978i32;
pub const EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT: ::windows_sys::core::HRESULT = -2147220979i32;
pub const EVENT_E_COMPLUS_NOT_INSTALLED: ::windows_sys::core::HRESULT = -2147220980i32;
pub const EVENT_E_FIRST: i32 = -2147220992i32;
pub const EVENT_E_INTERNALERROR: ::windows_sys::core::HRESULT = -2147220986i32;
pub const EVENT_E_INTERNALEXCEPTION: ::windows_sys::core::HRESULT = -2147220987i32;
pub const EVENT_E_INVALID_EVENT_CLASS_PARTITION: ::windows_sys::core::HRESULT = -2147220977i32;
pub const EVENT_E_INVALID_PER_USER_SID: ::windows_sys::core::HRESULT = -2147220985i32;
pub const EVENT_E_LAST: i32 = -2147220961i32;
pub const EVENT_E_MISSING_EVENTCLASS: ::windows_sys::core::HRESULT = -2147220982i32;
pub const EVENT_E_NOT_ALL_REMOVED: ::windows_sys::core::HRESULT = -2147220981i32;
pub const EVENT_E_PER_USER_SID_NOT_LOGGED_ON: ::windows_sys::core::HRESULT = -2147220976i32;
pub const EVENT_E_QUERYFIELD: ::windows_sys::core::HRESULT = -2147220988i32;
pub const EVENT_E_QUERYSYNTAX: ::windows_sys::core::HRESULT = -2147220989i32;
pub const EVENT_E_TOO_MANY_METHODS: ::windows_sys::core::HRESULT = -2147220983i32;
pub const EVENT_E_USER_EXCEPTION: ::windows_sys::core::HRESULT = -2147220984i32;
pub const EVENT_S_FIRST: i32 = 262656i32;
pub const EVENT_S_LAST: i32 = 262687i32;
pub const EVENT_S_NOSUBSCRIBERS: ::windows_sys::core::HRESULT = 262658i32;
pub const EVENT_S_SOME_SUBSCRIBERS_FAILED: ::windows_sys::core::HRESULT = 262656i32;
pub const E_ABORT: ::windows_sys::core::HRESULT = -2147467260i32;
pub const E_ACCESSDENIED: ::windows_sys::core::HRESULT = -2147024891i32;
pub const E_APPLICATION_ACTIVATION_EXEC_FAILURE: ::windows_sys::core::HRESULT = -2144927141i32;
pub const E_APPLICATION_ACTIVATION_TIMED_OUT: ::windows_sys::core::HRESULT = -2144927142i32;
pub const E_APPLICATION_EXITING: ::windows_sys::core::HRESULT = -2147483622i32;
pub const E_APPLICATION_MANAGER_NOT_RUNNING: ::windows_sys::core::HRESULT = -2144927145i32;
pub const E_APPLICATION_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2144927148i32;
pub const E_APPLICATION_TEMPORARY_LICENSE_ERROR: ::windows_sys::core::HRESULT = -2144927140i32;
pub const E_APPLICATION_TRIAL_LICENSE_EXPIRED: ::windows_sys::core::HRESULT = -2144927139i32;
pub const E_APPLICATION_VIEW_EXITING: ::windows_sys::core::HRESULT = -2147483621i32;
pub const E_ASYNC_OPERATION_NOT_STARTED: ::windows_sys::core::HRESULT = -2147483623i32;
pub const E_AUDIO_ENGINE_NODE_NOT_FOUND: ::windows_sys::core::HRESULT = -2140798975i32;
pub const E_BLUETOOTH_ATT_ATTRIBUTE_NOT_FOUND: ::windows_sys::core::HRESULT = -2140864502i32;
pub const E_BLUETOOTH_ATT_ATTRIBUTE_NOT_LONG: ::windows_sys::core::HRESULT = -2140864501i32;
pub const E_BLUETOOTH_ATT_INSUFFICIENT_AUTHENTICATION: ::windows_sys::core::HRESULT = -2140864507i32;
pub const E_BLUETOOTH_ATT_INSUFFICIENT_AUTHORIZATION: ::windows_sys::core::HRESULT = -2140864504i32;
pub const E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION: ::windows_sys::core::HRESULT = -2140864497i32;
pub const E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE: ::windows_sys::core::HRESULT = -2140864500i32;
pub const E_BLUETOOTH_ATT_INSUFFICIENT_RESOURCES: ::windows_sys::core::HRESULT = -2140864495i32;
pub const E_BLUETOOTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH: ::windows_sys::core::HRESULT = -2140864499i32;
pub const E_BLUETOOTH_ATT_INVALID_HANDLE: ::windows_sys::core::HRESULT = -2140864511i32;
pub const E_BLUETOOTH_ATT_INVALID_OFFSET: ::windows_sys::core::HRESULT = -2140864505i32;
pub const E_BLUETOOTH_ATT_INVALID_PDU: ::windows_sys::core::HRESULT = -2140864508i32;
pub const E_BLUETOOTH_ATT_PREPARE_QUEUE_FULL: ::windows_sys::core::HRESULT = -2140864503i32;
pub const E_BLUETOOTH_ATT_READ_NOT_PERMITTED: ::windows_sys::core::HRESULT = -2140864510i32;
pub const E_BLUETOOTH_ATT_REQUEST_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2140864506i32;
pub const E_BLUETOOTH_ATT_UNKNOWN_ERROR: ::windows_sys::core::HRESULT = -2140860416i32;
pub const E_BLUETOOTH_ATT_UNLIKELY: ::windows_sys::core::HRESULT = -2140864498i32;
pub const E_BLUETOOTH_ATT_UNSUPPORTED_GROUP_TYPE: ::windows_sys::core::HRESULT = -2140864496i32;
pub const E_BLUETOOTH_ATT_WRITE_NOT_PERMITTED: ::windows_sys::core::HRESULT = -2140864509i32;
pub const E_BOUNDS: ::windows_sys::core::HRESULT = -2147483637i32;
pub const E_CHANGED_STATE: ::windows_sys::core::HRESULT = -2147483636i32;
pub const E_ELEVATED_ACTIVATION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144927151i32;
pub const E_FAIL: ::windows_sys::core::HRESULT = -2147467259i32;
pub const E_FULL_ADMIN_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144927149i32;
pub const E_HANDLE: ::windows_sys::core::HRESULT = -2147024890i32;
pub const E_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2140798973i32;
pub const E_HDAUDIO_EMPTY_CONNECTION_LIST: ::windows_sys::core::HRESULT = -2140798974i32;
pub const E_HDAUDIO_NO_LOGICAL_DEVICES_CREATED: ::windows_sys::core::HRESULT = -2140798972i32;
pub const E_HDAUDIO_NULL_LINKED_LIST_ENTRY: ::windows_sys::core::HRESULT = -2140798971i32;
pub const E_ILLEGAL_DELEGATE_ASSIGNMENT: ::windows_sys::core::HRESULT = -2147483624i32;
pub const E_ILLEGAL_METHOD_CALL: ::windows_sys::core::HRESULT = -2147483634i32;
pub const E_ILLEGAL_STATE_CHANGE: ::windows_sys::core::HRESULT = -2147483635i32;
pub const E_INVALIDARG: ::windows_sys::core::HRESULT = -2147024809i32;
pub const E_INVALID_PROTOCOL_FORMAT: ::windows_sys::core::HRESULT = -2089418750i32;
pub const E_INVALID_PROTOCOL_OPERATION: ::windows_sys::core::HRESULT = -2089418751i32;
pub const E_MBN_BAD_SIM: ::windows_sys::core::HRESULT = -2141945342i32;
pub const E_MBN_CONTEXT_NOT_ACTIVATED: ::windows_sys::core::HRESULT = -2141945343i32;
pub const E_MBN_DATA_CLASS_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2141945341i32;
pub const E_MBN_DEFAULT_PROFILE_EXIST: ::windows_sys::core::HRESULT = -2141945319i32;
pub const E_MBN_FAILURE: ::windows_sys::core::HRESULT = -2141945326i32;
pub const E_MBN_INVALID_ACCESS_STRING: ::windows_sys::core::HRESULT = -2141945340i32;
pub const E_MBN_INVALID_CACHE: ::windows_sys::core::HRESULT = -2141945332i32;
pub const E_MBN_INVALID_PROFILE: ::windows_sys::core::HRESULT = -2141945320i32;
pub const E_MBN_MAX_ACTIVATED_CONTEXTS: ::windows_sys::core::HRESULT = -2141945339i32;
pub const E_MBN_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2141945331i32;
pub const E_MBN_PACKET_SVC_DETACHED: ::windows_sys::core::HRESULT = -2141945338i32;
pub const E_MBN_PIN_DISABLED: ::windows_sys::core::HRESULT = -2141945327i32;
pub const E_MBN_PIN_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2141945329i32;
pub const E_MBN_PIN_REQUIRED: ::windows_sys::core::HRESULT = -2141945328i32;
pub const E_MBN_PROVIDERS_NOT_FOUND: ::windows_sys::core::HRESULT = -2141945330i32;
pub const E_MBN_PROVIDER_NOT_VISIBLE: ::windows_sys::core::HRESULT = -2141945337i32;
pub const E_MBN_RADIO_POWER_OFF: ::windows_sys::core::HRESULT = -2141945336i32;
pub const E_MBN_SERVICE_NOT_ACTIVATED: ::windows_sys::core::HRESULT = -2141945335i32;
pub const E_MBN_SIM_NOT_INSERTED: ::windows_sys::core::HRESULT = -2141945334i32;
pub const E_MBN_SMS_ENCODING_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2141945312i32;
pub const E_MBN_SMS_FILTER_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2141945311i32;
pub const E_MBN_SMS_FORMAT_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2141945305i32;
pub const E_MBN_SMS_INVALID_MEMORY_INDEX: ::windows_sys::core::HRESULT = -2141945310i32;
pub const E_MBN_SMS_LANG_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2141945309i32;
pub const E_MBN_SMS_MEMORY_FAILURE: ::windows_sys::core::HRESULT = -2141945308i32;
pub const E_MBN_SMS_MEMORY_FULL: ::windows_sys::core::HRESULT = -2141945303i32;
pub const E_MBN_SMS_NETWORK_TIMEOUT: ::windows_sys::core::HRESULT = -2141945307i32;
pub const E_MBN_SMS_OPERATION_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2141945304i32;
pub const E_MBN_SMS_UNKNOWN_SMSC_ADDRESS: ::windows_sys::core::HRESULT = -2141945306i32;
pub const E_MBN_VOICE_CALL_IN_PROGRESS: ::windows_sys::core::HRESULT = -2141945333i32;
pub const E_MONITOR_RESOLUTION_TOO_LOW: ::windows_sys::core::HRESULT = -2144927152i32;
pub const E_MULTIPLE_EXTENSIONS_FOR_APPLICATION: ::windows_sys::core::HRESULT = -2144927147i32;
pub const E_MULTIPLE_PACKAGES_FOR_FAMILY: ::windows_sys::core::HRESULT = -2144927146i32;
pub const E_NOINTERFACE: ::windows_sys::core::HRESULT = -2147467262i32;
pub const E_NOTIMPL: ::windows_sys::core::HRESULT = -2147467263i32;
pub const E_OUTOFMEMORY: ::windows_sys::core::HRESULT = -2147024882i32;
pub const E_POINTER: ::windows_sys::core::HRESULT = -2147467261i32;
pub const E_PROTOCOL_EXTENSIONS_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2089418749i32;
pub const E_PROTOCOL_VERSION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2089418747i32;
pub const E_SKYDRIVE_FILE_NOT_UPLOADED: ::windows_sys::core::HRESULT = -2144927133i32;
pub const E_SKYDRIVE_ROOT_TARGET_CANNOT_INDEX: ::windows_sys::core::HRESULT = -2144927134i32;
pub const E_SKYDRIVE_ROOT_TARGET_FILE_SYSTEM_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144927136i32;
pub const E_SKYDRIVE_ROOT_TARGET_OVERLAP: ::windows_sys::core::HRESULT = -2144927135i32;
pub const E_SKYDRIVE_ROOT_TARGET_VOLUME_ROOT_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144927131i32;
pub const E_SKYDRIVE_UPDATE_AVAILABILITY_FAIL: ::windows_sys::core::HRESULT = -2144927132i32;
pub const E_STRING_NOT_NULL_TERMINATED: ::windows_sys::core::HRESULT = -2147483625i32;
pub const E_SUBPROTOCOL_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2089418748i32;
pub const E_SYNCENGINE_CLIENT_UPDATE_NEEDED: ::windows_sys::core::HRESULT = -2013081594i32;
pub const E_SYNCENGINE_FILE_IDENTIFIER_UNKNOWN: ::windows_sys::core::HRESULT = -2013085694i32;
pub const E_SYNCENGINE_FILE_SIZE_EXCEEDS_REMAINING_QUOTA: ::windows_sys::core::HRESULT = -2013089790i32;
pub const E_SYNCENGINE_FILE_SIZE_OVER_LIMIT: ::windows_sys::core::HRESULT = -2013089791i32;
pub const E_SYNCENGINE_FILE_SYNC_PARTNER_ERROR: ::windows_sys::core::HRESULT = -2013089787i32;
pub const E_SYNCENGINE_FOLDER_INACCESSIBLE: ::windows_sys::core::HRESULT = -2013081599i32;
pub const E_SYNCENGINE_FOLDER_IN_REDIRECTION: ::windows_sys::core::HRESULT = -2013081589i32;
pub const E_SYNCENGINE_FOLDER_ITEM_COUNT_LIMIT_EXCEEDED: ::windows_sys::core::HRESULT = -2013089788i32;
pub const E_SYNCENGINE_PATH_LENGTH_LIMIT_EXCEEDED: ::windows_sys::core::HRESULT = -2013081596i32;
pub const E_SYNCENGINE_PROXY_AUTHENTICATION_REQUIRED: ::windows_sys::core::HRESULT = -2013081593i32;
pub const E_SYNCENGINE_REMOTE_PATH_LENGTH_LIMIT_EXCEEDED: ::windows_sys::core::HRESULT = -2013081595i32;
pub const E_SYNCENGINE_REQUEST_BLOCKED_BY_SERVICE: ::windows_sys::core::HRESULT = -2013085690i32;
pub const E_SYNCENGINE_REQUEST_BLOCKED_DUE_TO_CLIENT_ERROR: ::windows_sys::core::HRESULT = -2013085689i32;
pub const E_SYNCENGINE_SERVICE_AUTHENTICATION_FAILED: ::windows_sys::core::HRESULT = -2013085693i32;
pub const E_SYNCENGINE_SERVICE_RETURNED_UNEXPECTED_SIZE: ::windows_sys::core::HRESULT = -2013085691i32;
pub const E_SYNCENGINE_STORAGE_SERVICE_BLOCKED: ::windows_sys::core::HRESULT = -2013081590i32;
pub const E_SYNCENGINE_STORAGE_SERVICE_PROVISIONING_FAILED: ::windows_sys::core::HRESULT = -2013081592i32;
pub const E_SYNCENGINE_SYNC_PAUSED_BY_SERVICE: ::windows_sys::core::HRESULT = -2013089786i32;
pub const E_SYNCENGINE_UNKNOWN_SERVICE_ERROR: ::windows_sys::core::HRESULT = -2013085692i32;
pub const E_SYNCENGINE_UNSUPPORTED_FILE_NAME: ::windows_sys::core::HRESULT = -2013089789i32;
pub const E_SYNCENGINE_UNSUPPORTED_FOLDER_NAME: ::windows_sys::core::HRESULT = -2013081598i32;
pub const E_SYNCENGINE_UNSUPPORTED_MARKET: ::windows_sys::core::HRESULT = -2013081597i32;
pub const E_SYNCENGINE_UNSUPPORTED_REPARSE_POINT: ::windows_sys::core::HRESULT = -2013081591i32;
pub const E_UAC_DISABLED: ::windows_sys::core::HRESULT = -2144927150i32;
pub const E_UNEXPECTED: ::windows_sys::core::HRESULT = -2147418113i32;
pub const FACILTIY_MUI_ERROR_CODE: u32 = 11u32;
pub type FARPROC = ::core::option::Option<unsafe extern "system" fn() -> isize>;
pub const FA_E_HOMEGROUP_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2144927198i32;
pub const FA_E_MAX_PERSISTED_ITEMS_REACHED: ::windows_sys::core::HRESULT = -2144927200i32;
pub const FDAEMON_E_CHANGEUPDATEFAILED: ::windows_sys::core::HRESULT = -2147215740i32;
pub const FDAEMON_E_FATALERROR: ::windows_sys::core::HRESULT = -2147215742i32;
pub const FDAEMON_E_LOWRESOURCE: ::windows_sys::core::HRESULT = -2147215743i32;
pub const FDAEMON_E_NOWORDLIST: ::windows_sys::core::HRESULT = -2147215737i32;
pub const FDAEMON_E_PARTITIONDELETED: ::windows_sys::core::HRESULT = -2147215741i32;
pub const FDAEMON_E_TOOMANYFILTEREDBLOCKS: ::windows_sys::core::HRESULT = -2147215736i32;
pub const FDAEMON_E_WORDLISTCOMMITFAILED: ::windows_sys::core::HRESULT = -2147215738i32;
pub const FDAEMON_W_EMPTYWORDLIST: ::windows_sys::core::HRESULT = 267909i32;
pub const FDAEMON_W_WORDLISTFULL: ::windows_sys::core::HRESULT = 267904i32;
#[repr(C)]
pub struct FILETIME {
pub dwLowDateTime: u32,
pub dwHighDateTime: u32,
}
impl ::core::marker::Copy for FILETIME {}
impl ::core::clone::Clone for FILETIME {
fn clone(&self) -> Self {
*self
}
}
pub const FILTER_E_ALREADY_OPEN: ::windows_sys::core::HRESULT = -2147215562i32;
pub const FILTER_E_CONTENTINDEXCORRUPT: ::windows_sys::core::HRESULT = -1073473740i32;
pub const FILTER_E_IN_USE: ::windows_sys::core::HRESULT = -2147215560i32;
pub const FILTER_E_NOT_OPEN: ::windows_sys::core::HRESULT = -2147215559i32;
pub const FILTER_E_NO_SUCH_PROPERTY: ::windows_sys::core::HRESULT = -2147215557i32;
pub const FILTER_E_OFFLINE: ::windows_sys::core::HRESULT = -2147215555i32;
pub const FILTER_E_PARTIALLY_FILTERED: ::windows_sys::core::HRESULT = -2147215554i32;
pub const FILTER_E_TOO_BIG: ::windows_sys::core::HRESULT = -2147215568i32;
pub const FILTER_E_UNREACHABLE: ::windows_sys::core::HRESULT = -2147215561i32;
pub const FILTER_S_CONTENTSCAN_DELAYED: ::windows_sys::core::HRESULT = 268083i32;
pub const FILTER_S_DISK_FULL: ::windows_sys::core::HRESULT = 268085i32;
pub const FILTER_S_FULL_CONTENTSCAN_IMMEDIATE: ::windows_sys::core::HRESULT = 268082i32;
pub const FILTER_S_NO_PROPSETS: ::windows_sys::core::HRESULT = 268090i32;
pub const FILTER_S_NO_SECURITY_DESCRIPTOR: ::windows_sys::core::HRESULT = 268092i32;
pub const FILTER_S_PARTIAL_CONTENTSCAN_IMMEDIATE: ::windows_sys::core::HRESULT = 268081i32;
#[repr(C)]
pub struct FLOAT128 {
pub LowPart: i64,
pub HighPart: i64,
}
impl ::core::marker::Copy for FLOAT128 {}
impl ::core::clone::Clone for FLOAT128 {
fn clone(&self) -> Self {
*self
}
}
pub const FRS_ERR_AUTHENTICATION: i32 = 8008i32;
pub const FRS_ERR_CHILD_TO_PARENT_COMM: i32 = 8011i32;
pub const FRS_ERR_INSUFFICIENT_PRIV: i32 = 8007i32;
pub const FRS_ERR_INTERNAL: i32 = 8005i32;
pub const FRS_ERR_INTERNAL_API: i32 = 8004i32;
pub const FRS_ERR_INVALID_API_SEQUENCE: i32 = 8001i32;
pub const FRS_ERR_INVALID_SERVICE_PARAMETER: i32 = 8017i32;
pub const FRS_ERR_PARENT_AUTHENTICATION: i32 = 8010i32;
pub const FRS_ERR_PARENT_INSUFFICIENT_PRIV: i32 = 8009i32;
pub const FRS_ERR_PARENT_TO_CHILD_COMM: i32 = 8012i32;
pub const FRS_ERR_SERVICE_COMM: i32 = 8006i32;
pub const FRS_ERR_STARTING_SERVICE: i32 = 8002i32;
pub const FRS_ERR_STOPPING_SERVICE: i32 = 8003i32;
pub const FRS_ERR_SYSVOL_DEMOTE: i32 = 8016i32;
pub const FRS_ERR_SYSVOL_IS_BUSY: i32 = 8015i32;
pub const FRS_ERR_SYSVOL_POPULATE: i32 = 8013i32;
pub const FRS_ERR_SYSVOL_POPULATE_TIMEOUT: i32 = 8014i32;
pub const FVE_E_AAD_ENDPOINT_BUSY: ::windows_sys::core::HRESULT = -2144272159i32;
pub const FVE_E_ACTION_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272375i32;
pub const FVE_E_ADBACKUP_NOT_ENABLED: ::windows_sys::core::HRESULT = -2144272171i32;
pub const FVE_E_AD_ATTR_NOT_SET: ::windows_sys::core::HRESULT = -2144272370i32;
pub const FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_FIXED_DRIVE: ::windows_sys::core::HRESULT = -2144272165i32;
pub const FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_OS_DRIVE: ::windows_sys::core::HRESULT = -2144272166i32;
pub const FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_REMOVABLE_DRIVE: ::windows_sys::core::HRESULT = -2144272164i32;
pub const FVE_E_AD_GUID_NOT_FOUND: ::windows_sys::core::HRESULT = -2144272369i32;
pub const FVE_E_AD_INSUFFICIENT_BUFFER: ::windows_sys::core::HRESULT = -2144272358i32;
pub const FVE_E_AD_INVALID_DATASIZE: ::windows_sys::core::HRESULT = -2144272372i32;
pub const FVE_E_AD_INVALID_DATATYPE: ::windows_sys::core::HRESULT = -2144272373i32;
pub const FVE_E_AD_NO_VALUES: ::windows_sys::core::HRESULT = -2144272371i32;
pub const FVE_E_AD_SCHEMA_NOT_INSTALLED: ::windows_sys::core::HRESULT = -2144272374i32;
pub const FVE_E_AUTH_INVALID_APPLICATION: ::windows_sys::core::HRESULT = -2144272316i32;
pub const FVE_E_AUTH_INVALID_CONFIG: ::windows_sys::core::HRESULT = -2144272315i32;
pub const FVE_E_AUTOUNLOCK_ENABLED: ::windows_sys::core::HRESULT = -2144272343i32;
pub const FVE_E_BAD_DATA: ::windows_sys::core::HRESULT = -2144272362i32;
pub const FVE_E_BAD_INFORMATION: ::windows_sys::core::HRESULT = -2144272368i32;
pub const FVE_E_BAD_PARTITION_SIZE: ::windows_sys::core::HRESULT = -2144272364i32;
pub const FVE_E_BCD_APPLICATIONS_PATH_INCORRECT: ::windows_sys::core::HRESULT = -2144272302i32;
pub const FVE_E_BOOTABLE_CDDVD: ::windows_sys::core::HRESULT = -2144272336i32;
pub const FVE_E_BUFFER_TOO_LARGE: ::windows_sys::core::HRESULT = -2144272177i32;
pub const FVE_E_CANNOT_ENCRYPT_NO_KEY: ::windows_sys::core::HRESULT = -2144272338i32;
pub const FVE_E_CANNOT_SET_FVEK_ENCRYPTED: ::windows_sys::core::HRESULT = -2144272339i32;
pub const FVE_E_CANT_LOCK_AUTOUNLOCK_ENABLED_VOLUME: ::windows_sys::core::HRESULT = -2144272233i32;
pub const FVE_E_CLUSTERING_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272354i32;
pub const FVE_E_CONV_READ: ::windows_sys::core::HRESULT = -2144272357i32;
pub const FVE_E_CONV_RECOVERY_FAILED: ::windows_sys::core::HRESULT = -2144272248i32;
pub const FVE_E_CONV_WRITE: ::windows_sys::core::HRESULT = -2144272356i32;
pub const FVE_E_DEBUGGER_ENABLED: ::windows_sys::core::HRESULT = -2144272305i32;
pub const FVE_E_DEVICELOCKOUT_COUNTER_MISMATCH: ::windows_sys::core::HRESULT = -2144272178i32;
pub const FVE_E_DEVICE_LOCKOUT_COUNTER_UNAVAILABLE: ::windows_sys::core::HRESULT = -2144272179i32;
pub const FVE_E_DEVICE_NOT_JOINED: ::windows_sys::core::HRESULT = -2144272160i32;
pub const FVE_E_DE_DEVICE_LOCKEDOUT: ::windows_sys::core::HRESULT = -2144272182i32;
pub const FVE_E_DE_FIXED_DATA_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272187i32;
pub const FVE_E_DE_HARDWARE_NOT_COMPLIANT: ::windows_sys::core::HRESULT = -2144272186i32;
pub const FVE_E_DE_OS_VOLUME_NOT_PROTECTED: ::windows_sys::core::HRESULT = -2144272183i32;
pub const FVE_E_DE_PREVENTED_FOR_OS: ::windows_sys::core::HRESULT = -2144272175i32;
pub const FVE_E_DE_PROTECTION_NOT_YET_ENABLED: ::windows_sys::core::HRESULT = -2144272181i32;
pub const FVE_E_DE_PROTECTION_SUSPENDED: ::windows_sys::core::HRESULT = -2144272184i32;
pub const FVE_E_DE_VOLUME_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272173i32;
pub const FVE_E_DE_VOLUME_OPTED_OUT: ::windows_sys::core::HRESULT = -2144272174i32;
pub const FVE_E_DE_WINRE_NOT_CONFIGURED: ::windows_sys::core::HRESULT = -2144272185i32;
pub const FVE_E_DRY_RUN_FAILED: ::windows_sys::core::HRESULT = -2144272307i32;
pub const FVE_E_DV_NOT_ALLOWED_BY_GP: ::windows_sys::core::HRESULT = -2144272271i32;
pub const FVE_E_DV_NOT_SUPPORTED_ON_FS: ::windows_sys::core::HRESULT = -2144272272i32;
pub const FVE_E_EDRIVE_BAND_ENUMERATION_FAILED: ::windows_sys::core::HRESULT = -2144272157i32;
pub const FVE_E_EDRIVE_BAND_IN_USE: ::windows_sys::core::HRESULT = -2144272208i32;
pub const FVE_E_EDRIVE_DISALLOWED_BY_GP: ::windows_sys::core::HRESULT = -2144272207i32;
pub const FVE_E_EDRIVE_DRY_RUN_FAILED: ::windows_sys::core::HRESULT = -2144272196i32;
pub const FVE_E_EDRIVE_DV_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272204i32;
pub const FVE_E_EDRIVE_INCOMPATIBLE_FIRMWARE: ::windows_sys::core::HRESULT = -2144272193i32;
pub const FVE_E_EDRIVE_INCOMPATIBLE_VOLUME: ::windows_sys::core::HRESULT = -2144272206i32;
pub const FVE_E_EDRIVE_NO_FAILOVER_TO_SW: ::windows_sys::core::HRESULT = -2144272209i32;
pub const FVE_E_EFI_ONLY: ::windows_sys::core::HRESULT = -2144272228i32;
pub const FVE_E_ENH_PIN_INVALID: ::windows_sys::core::HRESULT = -2144272231i32;
pub const FVE_E_EOW_NOT_SUPPORTED_IN_VERSION: ::windows_sys::core::HRESULT = -2144272172i32;
pub const FVE_E_EXECUTE_REQUEST_SENT_TOO_SOON: ::windows_sys::core::HRESULT = -2144272162i32;
pub const FVE_E_FAILED_AUTHENTICATION: ::windows_sys::core::HRESULT = -2144272345i32;
pub const FVE_E_FAILED_SECTOR_SIZE: ::windows_sys::core::HRESULT = -2144272346i32;
pub const FVE_E_FAILED_WRONG_FS: ::windows_sys::core::HRESULT = -2144272365i32;
pub const FVE_E_FIPS_DISABLE_PROTECTION_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272314i32;
pub const FVE_E_FIPS_HASH_KDF_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272232i32;
pub const FVE_E_FIPS_PREVENTS_EXTERNAL_KEY_EXPORT: ::windows_sys::core::HRESULT = -2144272328i32;
pub const FVE_E_FIPS_PREVENTS_PASSPHRASE: ::windows_sys::core::HRESULT = -2144272276i32;
pub const FVE_E_FIPS_PREVENTS_RECOVERY_PASSWORD: ::windows_sys::core::HRESULT = -2144272329i32;
pub const FVE_E_FIPS_RNG_CHECK_FAILED: ::windows_sys::core::HRESULT = -2144272330i32;
pub const FVE_E_FIRMWARE_TYPE_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272312i32;
pub const FVE_E_FOREIGN_VOLUME: ::windows_sys::core::HRESULT = -2144272349i32;
pub const FVE_E_FS_MOUNTED: ::windows_sys::core::HRESULT = -2144272309i32;
pub const FVE_E_FS_NOT_EXTENDED: ::windows_sys::core::HRESULT = -2144272313i32;
pub const FVE_E_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE: ::windows_sys::core::HRESULT = -2144272219i32;
pub const FVE_E_HIDDEN_VOLUME: ::windows_sys::core::HRESULT = -2144272298i32;
pub const FVE_E_INVALID_BITLOCKER_OID: ::windows_sys::core::HRESULT = -2144272274i32;
pub const FVE_E_INVALID_DATUM_TYPE: ::windows_sys::core::HRESULT = -2144272229i32;
pub const FVE_E_INVALID_KEY_FORMAT: ::windows_sys::core::HRESULT = -2144272332i32;
pub const FVE_E_INVALID_NBP_CERT: ::windows_sys::core::HRESULT = -2144272158i32;
pub const FVE_E_INVALID_NKP_CERT: ::windows_sys::core::HRESULT = -2144272225i32;
pub const FVE_E_INVALID_PASSWORD_FORMAT: ::windows_sys::core::HRESULT = -2144272331i32;
pub const FVE_E_INVALID_PIN_CHARS: ::windows_sys::core::HRESULT = -2144272230i32;
pub const FVE_E_INVALID_PIN_CHARS_DETAILED: ::windows_sys::core::HRESULT = -2144272180i32;
pub const FVE_E_INVALID_PROTECTOR_TYPE: ::windows_sys::core::HRESULT = -2144272326i32;
pub const FVE_E_INVALID_STARTUP_OPTIONS: ::windows_sys::core::HRESULT = -2144272293i32;
pub const FVE_E_KEYFILE_INVALID: ::windows_sys::core::HRESULT = -2144272323i32;
pub const FVE_E_KEYFILE_NOT_FOUND: ::windows_sys::core::HRESULT = -2144272324i32;
pub const FVE_E_KEYFILE_NO_VMK: ::windows_sys::core::HRESULT = -2144272322i32;
pub const FVE_E_KEY_LENGTH_NOT_SUPPORTED_BY_EDRIVE: ::windows_sys::core::HRESULT = -2144272217i32;
pub const FVE_E_KEY_PROTECTOR_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272279i32;
pub const FVE_E_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2144272355i32;
pub const FVE_E_KEY_ROTATION_NOT_ENABLED: ::windows_sys::core::HRESULT = -2144272161i32;
pub const FVE_E_KEY_ROTATION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272163i32;
pub const FVE_E_LIVEID_ACCOUNT_BLOCKED: ::windows_sys::core::HRESULT = -2144272189i32;
pub const FVE_E_LIVEID_ACCOUNT_SUSPENDED: ::windows_sys::core::HRESULT = -2144272190i32;
pub const FVE_E_LOCKED_VOLUME: ::windows_sys::core::HRESULT = -2144272384i32;
pub const FVE_E_MOR_FAILED: ::windows_sys::core::HRESULT = -2144272299i32;
pub const FVE_E_MULTIPLE_NKP_CERTS: ::windows_sys::core::HRESULT = -2144272227i32;
pub const FVE_E_NON_BITLOCKER_KU: ::windows_sys::core::HRESULT = -2144272237i32;
pub const FVE_E_NON_BITLOCKER_OID: ::windows_sys::core::HRESULT = -2144272251i32;
pub const FVE_E_NOT_ACTIVATED: ::windows_sys::core::HRESULT = -2144272376i32;
pub const FVE_E_NOT_ALLOWED_IN_SAFE_MODE: ::windows_sys::core::HRESULT = -2144272320i32;
pub const FVE_E_NOT_ALLOWED_IN_VERSION: ::windows_sys::core::HRESULT = -2144272301i32;
pub const FVE_E_NOT_ALLOWED_ON_CLUSTER: ::windows_sys::core::HRESULT = -2144272210i32;
pub const FVE_E_NOT_ALLOWED_ON_CSV_STACK: ::windows_sys::core::HRESULT = -2144272211i32;
pub const FVE_E_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING: ::windows_sys::core::HRESULT = -2144272205i32;
pub const FVE_E_NOT_DATA_VOLUME: ::windows_sys::core::HRESULT = -2144272359i32;
pub const FVE_E_NOT_DECRYPTED: ::windows_sys::core::HRESULT = -2144272327i32;
pub const FVE_E_NOT_DE_VOLUME: ::windows_sys::core::HRESULT = -2144272169i32;
pub const FVE_E_NOT_ENCRYPTED: ::windows_sys::core::HRESULT = -2144272383i32;
pub const FVE_E_NOT_ON_STACK: ::windows_sys::core::HRESULT = -2144272310i32;
pub const FVE_E_NOT_OS_VOLUME: ::windows_sys::core::HRESULT = -2144272344i32;
pub const FVE_E_NOT_PROVISIONED_ON_ALL_VOLUMES: ::windows_sys::core::HRESULT = -2144272188i32;
pub const FVE_E_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272363i32;
pub const FVE_E_NO_AUTOUNLOCK_MASTER_KEY: ::windows_sys::core::HRESULT = -2144272300i32;
pub const FVE_E_NO_BOOTMGR_METRIC: ::windows_sys::core::HRESULT = -2144272379i32;
pub const FVE_E_NO_BOOTSECTOR_METRIC: ::windows_sys::core::HRESULT = -2144272380i32;
pub const FVE_E_NO_EXISTING_PASSPHRASE: ::windows_sys::core::HRESULT = -2144272216i32;
pub const FVE_E_NO_EXISTING_PIN: ::windows_sys::core::HRESULT = -2144272224i32;
pub const FVE_E_NO_FEATURE_LICENSE: ::windows_sys::core::HRESULT = -2144272294i32;
pub const FVE_E_NO_LICENSE: ::windows_sys::core::HRESULT = -2144272311i32;
pub const FVE_E_NO_MBR_METRIC: ::windows_sys::core::HRESULT = -2144272381i32;
pub const FVE_E_NO_PASSPHRASE_WITH_TPM: ::windows_sys::core::HRESULT = -2144272213i32;
pub const FVE_E_NO_PREBOOT_KEYBOARD_DETECTED: ::windows_sys::core::HRESULT = -2144272203i32;
pub const FVE_E_NO_PREBOOT_KEYBOARD_OR_WINRE_DETECTED: ::windows_sys::core::HRESULT = -2144272202i32;
pub const FVE_E_NO_PROTECTORS_TO_TEST: ::windows_sys::core::HRESULT = -2144272325i32;
pub const FVE_E_NO_SUCH_CAPABILITY_ON_TARGET: ::windows_sys::core::HRESULT = -2144272176i32;
pub const FVE_E_NO_TPM_BIOS: ::windows_sys::core::HRESULT = -2144272382i32;
pub const FVE_E_NO_TPM_WITH_PASSPHRASE: ::windows_sys::core::HRESULT = -2144272212i32;
pub const FVE_E_OPERATION_NOT_SUPPORTED_ON_VISTA_VOLUME: ::windows_sys::core::HRESULT = -2144272234i32;
pub const FVE_E_OSV_KSR_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272167i32;
pub const FVE_E_OS_NOT_PROTECTED: ::windows_sys::core::HRESULT = -2144272352i32;
pub const FVE_E_OS_VOLUME_PASSPHRASE_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272275i32;
pub const FVE_E_OVERLAPPED_UPDATE: ::windows_sys::core::HRESULT = -2144272348i32;
pub const FVE_E_PASSPHRASE_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED: ::windows_sys::core::HRESULT = -2144272191i32;
pub const FVE_E_PASSPHRASE_TOO_LONG: ::windows_sys::core::HRESULT = -2144272214i32;
pub const FVE_E_PIN_INVALID: ::windows_sys::core::HRESULT = -2144272317i32;
pub const FVE_E_PIN_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED: ::windows_sys::core::HRESULT = -2144272222i32;
pub const FVE_E_POLICY_CONFLICT_FDV_RK_OFF_AUK_ON: ::windows_sys::core::HRESULT = -2144272253i32;
pub const FVE_E_POLICY_CONFLICT_FDV_RP_OFF_ADB_ON: ::windows_sys::core::HRESULT = -2144272239i32;
pub const FVE_E_POLICY_CONFLICT_OSV_RP_OFF_ADB_ON: ::windows_sys::core::HRESULT = -2144272240i32;
pub const FVE_E_POLICY_CONFLICT_RDV_RK_OFF_AUK_ON: ::windows_sys::core::HRESULT = -2144272252i32;
pub const FVE_E_POLICY_CONFLICT_RDV_RP_OFF_ADB_ON: ::windows_sys::core::HRESULT = -2144272238i32;
pub const FVE_E_POLICY_CONFLICT_RO_AND_STARTUP_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2144272249i32;
pub const FVE_E_POLICY_INVALID_ENHANCED_BCD_SETTINGS: ::windows_sys::core::HRESULT = -2144272194i32;
pub const FVE_E_POLICY_INVALID_PASSPHRASE_LENGTH: ::windows_sys::core::HRESULT = -2144272256i32;
pub const FVE_E_POLICY_INVALID_PIN_LENGTH: ::windows_sys::core::HRESULT = -2144272280i32;
pub const FVE_E_POLICY_ON_RDV_EXCLUSION_LIST: ::windows_sys::core::HRESULT = -2144272156i32;
pub const FVE_E_POLICY_PASSPHRASE_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272278i32;
pub const FVE_E_POLICY_PASSPHRASE_REQUIRED: ::windows_sys::core::HRESULT = -2144272277i32;
pub const FVE_E_POLICY_PASSPHRASE_REQUIRES_ASCII: ::windows_sys::core::HRESULT = -2144272220i32;
pub const FVE_E_POLICY_PASSPHRASE_TOO_SIMPLE: ::windows_sys::core::HRESULT = -2144272255i32;
pub const FVE_E_POLICY_PASSWORD_REQUIRED: ::windows_sys::core::HRESULT = -2144272340i32;
pub const FVE_E_POLICY_PROHIBITS_SELFSIGNED: ::windows_sys::core::HRESULT = -2144272250i32;
pub const FVE_E_POLICY_RECOVERY_KEY_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272290i32;
pub const FVE_E_POLICY_RECOVERY_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2144272289i32;
pub const FVE_E_POLICY_RECOVERY_PASSWORD_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272292i32;
pub const FVE_E_POLICY_RECOVERY_PASSWORD_REQUIRED: ::windows_sys::core::HRESULT = -2144272291i32;
pub const FVE_E_POLICY_REQUIRES_RECOVERY_PASSWORD_ON_TOUCH_DEVICE: ::windows_sys::core::HRESULT = -2144272200i32;
pub const FVE_E_POLICY_REQUIRES_STARTUP_PIN_ON_TOUCH_DEVICE: ::windows_sys::core::HRESULT = -2144272201i32;
pub const FVE_E_POLICY_STARTUP_KEY_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272286i32;
pub const FVE_E_POLICY_STARTUP_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2144272285i32;
pub const FVE_E_POLICY_STARTUP_PIN_KEY_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272284i32;
pub const FVE_E_POLICY_STARTUP_PIN_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2144272283i32;
pub const FVE_E_POLICY_STARTUP_PIN_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272288i32;
pub const FVE_E_POLICY_STARTUP_PIN_REQUIRED: ::windows_sys::core::HRESULT = -2144272287i32;
pub const FVE_E_POLICY_STARTUP_TPM_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272282i32;
pub const FVE_E_POLICY_STARTUP_TPM_REQUIRED: ::windows_sys::core::HRESULT = -2144272281i32;
pub const FVE_E_POLICY_USER_CERTIFICATE_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272270i32;
pub const FVE_E_POLICY_USER_CERTIFICATE_REQUIRED: ::windows_sys::core::HRESULT = -2144272269i32;
pub const FVE_E_POLICY_USER_CERT_MUST_BE_HW: ::windows_sys::core::HRESULT = -2144272268i32;
pub const FVE_E_POLICY_USER_CONFIGURE_FDV_AUTOUNLOCK_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272267i32;
pub const FVE_E_POLICY_USER_CONFIGURE_RDV_AUTOUNLOCK_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272266i32;
pub const FVE_E_POLICY_USER_CONFIGURE_RDV_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272265i32;
pub const FVE_E_POLICY_USER_DISABLE_RDV_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272263i32;
pub const FVE_E_POLICY_USER_ENABLE_RDV_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272264i32;
pub const FVE_E_PREDICTED_TPM_PROTECTOR_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272155i32;
pub const FVE_E_PRIVATEKEY_AUTH_FAILED: ::windows_sys::core::HRESULT = -2144272236i32;
pub const FVE_E_PROTECTION_CANNOT_BE_DISABLED: ::windows_sys::core::HRESULT = -2144272168i32;
pub const FVE_E_PROTECTION_DISABLED: ::windows_sys::core::HRESULT = -2144272351i32;
pub const FVE_E_PROTECTOR_CHANGE_MAX_PASSPHRASE_CHANGE_ATTEMPTS_REACHED: ::windows_sys::core::HRESULT = -2144272192i32;
pub const FVE_E_PROTECTOR_CHANGE_MAX_PIN_CHANGE_ATTEMPTS_REACHED: ::windows_sys::core::HRESULT = -2144272221i32;
pub const FVE_E_PROTECTOR_CHANGE_PASSPHRASE_MISMATCH: ::windows_sys::core::HRESULT = -2144272215i32;
pub const FVE_E_PROTECTOR_CHANGE_PIN_MISMATCH: ::windows_sys::core::HRESULT = -2144272223i32;
pub const FVE_E_PROTECTOR_EXISTS: ::windows_sys::core::HRESULT = -2144272335i32;
pub const FVE_E_PROTECTOR_NOT_FOUND: ::windows_sys::core::HRESULT = -2144272333i32;
pub const FVE_E_PUBKEY_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144272296i32;
pub const FVE_E_RAW_ACCESS: ::windows_sys::core::HRESULT = -2144272304i32;
pub const FVE_E_RAW_BLOCKED: ::windows_sys::core::HRESULT = -2144272303i32;
pub const FVE_E_REBOOT_REQUIRED: ::windows_sys::core::HRESULT = -2144272306i32;
pub const FVE_E_RECOVERY_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2144272350i32;
pub const FVE_E_RECOVERY_PARTITION: ::windows_sys::core::HRESULT = -2144272254i32;
pub const FVE_E_RELATIVE_PATH: ::windows_sys::core::HRESULT = -2144272334i32;
pub const FVE_E_REMOVAL_OF_DRA_FAILED: ::windows_sys::core::HRESULT = -2144272235i32;
pub const FVE_E_REMOVAL_OF_NKP_FAILED: ::windows_sys::core::HRESULT = -2144272226i32;
pub const FVE_E_SECUREBOOT_CONFIGURATION_INVALID: ::windows_sys::core::HRESULT = -2144272197i32;
pub const FVE_E_SECUREBOOT_DISABLED: ::windows_sys::core::HRESULT = -2144272198i32;
pub const FVE_E_SECURE_KEY_REQUIRED: ::windows_sys::core::HRESULT = -2144272377i32;
pub const FVE_E_SETUP_TPM_CALLBACK_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272154i32;
pub const FVE_E_SHADOW_COPY_PRESENT: ::windows_sys::core::HRESULT = -2144272195i32;
pub const FVE_E_SYSTEM_VOLUME: ::windows_sys::core::HRESULT = -2144272366i32;
pub const FVE_E_TOKEN_NOT_IMPERSONATED: ::windows_sys::core::HRESULT = -2144272308i32;
pub const FVE_E_TOO_SMALL: ::windows_sys::core::HRESULT = -2144272367i32;
pub const FVE_E_TPM_CONTEXT_SETUP_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144272153i32;
pub const FVE_E_TPM_DISABLED: ::windows_sys::core::HRESULT = -2144272321i32;
pub const FVE_E_TPM_INVALID_PCR: ::windows_sys::core::HRESULT = -2144272319i32;
pub const FVE_E_TPM_NOT_OWNED: ::windows_sys::core::HRESULT = -2144272360i32;
pub const FVE_E_TPM_NO_VMK: ::windows_sys::core::HRESULT = -2144272318i32;
pub const FVE_E_TPM_SRK_AUTH_NOT_ZERO: ::windows_sys::core::HRESULT = -2144272347i32;
pub const FVE_E_TRANSIENT_STATE: ::windows_sys::core::HRESULT = -2144272297i32;
pub const FVE_E_VIRTUALIZED_SPACE_TOO_BIG: ::windows_sys::core::HRESULT = -2144272247i32;
pub const FVE_E_VOLUME_BOUND_ALREADY: ::windows_sys::core::HRESULT = -2144272353i32;
pub const FVE_E_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT: ::windows_sys::core::HRESULT = -2144272170i32;
pub const FVE_E_VOLUME_HANDLE_OPEN: ::windows_sys::core::HRESULT = -2144272295i32;
pub const FVE_E_VOLUME_NOT_BOUND: ::windows_sys::core::HRESULT = -2144272361i32;
pub const FVE_E_VOLUME_TOO_SMALL: ::windows_sys::core::HRESULT = -2144272273i32;
pub const FVE_E_WIPE_CANCEL_NOT_APPLICABLE: ::windows_sys::core::HRESULT = -2144272199i32;
pub const FVE_E_WIPE_NOT_ALLOWED_ON_TP_STORAGE: ::windows_sys::core::HRESULT = -2144272218i32;
pub const FVE_E_WRONG_BOOTMGR: ::windows_sys::core::HRESULT = -2144272378i32;
pub const FVE_E_WRONG_BOOTSECTOR: ::windows_sys::core::HRESULT = -2144272342i32;
pub const FVE_E_WRONG_SYSTEM_FS: ::windows_sys::core::HRESULT = -2144272341i32;
pub const FWP_E_ACTION_INCOMPATIBLE_WITH_LAYER: ::windows_sys::core::HRESULT = -2144206804i32;
pub const FWP_E_ACTION_INCOMPATIBLE_WITH_SUBLAYER: ::windows_sys::core::HRESULT = -2144206803i32;
pub const FWP_E_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2144206839i32;
pub const FWP_E_BUILTIN_OBJECT: ::windows_sys::core::HRESULT = -2144206825i32;
pub const FWP_E_CALLOUT_NOTIFICATION_FAILED: ::windows_sys::core::HRESULT = -2144206793i32;
pub const FWP_E_CALLOUT_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206847i32;
pub const FWP_E_CONDITION_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206846i32;
pub const FWP_E_CONNECTIONS_DISABLED: ::windows_sys::core::HRESULT = -2144206783i32;
pub const FWP_E_CONTEXT_INCOMPATIBLE_WITH_CALLOUT: ::windows_sys::core::HRESULT = -2144206801i32;
pub const FWP_E_CONTEXT_INCOMPATIBLE_WITH_LAYER: ::windows_sys::core::HRESULT = -2144206802i32;
pub const FWP_E_DROP_NOICMP: ::windows_sys::core::HRESULT = -2144206588i32;
pub const FWP_E_DUPLICATE_AUTH_METHOD: ::windows_sys::core::HRESULT = -2144206788i32;
pub const FWP_E_DUPLICATE_CONDITION: ::windows_sys::core::HRESULT = -2144206806i32;
pub const FWP_E_DUPLICATE_KEYMOD: ::windows_sys::core::HRESULT = -2144206805i32;
pub const FWP_E_DYNAMIC_SESSION_IN_PROGRESS: ::windows_sys::core::HRESULT = -2144206837i32;
pub const FWP_E_EM_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144206798i32;
pub const FWP_E_FILTER_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206845i32;
pub const FWP_E_IKEEXT_NOT_RUNNING: ::windows_sys::core::HRESULT = -2144206780i32;
pub const FWP_E_INCOMPATIBLE_AUTH_METHOD: ::windows_sys::core::HRESULT = -2144206800i32;
pub const FWP_E_INCOMPATIBLE_CIPHER_TRANSFORM: ::windows_sys::core::HRESULT = -2144206790i32;
pub const FWP_E_INCOMPATIBLE_DH_GROUP: ::windows_sys::core::HRESULT = -2144206799i32;
pub const FWP_E_INCOMPATIBLE_LAYER: ::windows_sys::core::HRESULT = -2144206828i32;
pub const FWP_E_INCOMPATIBLE_SA_STATE: ::windows_sys::core::HRESULT = -2144206821i32;
pub const FWP_E_INCOMPATIBLE_TXN: ::windows_sys::core::HRESULT = -2144206831i32;
pub const FWP_E_INVALID_ACTION_TYPE: ::windows_sys::core::HRESULT = -2144206812i32;
pub const FWP_E_INVALID_AUTH_TRANSFORM: ::windows_sys::core::HRESULT = -2144206792i32;
pub const FWP_E_INVALID_CIPHER_TRANSFORM: ::windows_sys::core::HRESULT = -2144206791i32;
pub const FWP_E_INVALID_DNS_NAME: ::windows_sys::core::HRESULT = -2144206782i32;
pub const FWP_E_INVALID_ENUMERATOR: ::windows_sys::core::HRESULT = -2144206819i32;
pub const FWP_E_INVALID_FLAGS: ::windows_sys::core::HRESULT = -2144206818i32;
pub const FWP_E_INVALID_INTERVAL: ::windows_sys::core::HRESULT = -2144206815i32;
pub const FWP_E_INVALID_NET_MASK: ::windows_sys::core::HRESULT = -2144206817i32;
pub const FWP_E_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2144206795i32;
pub const FWP_E_INVALID_RANGE: ::windows_sys::core::HRESULT = -2144206816i32;
pub const FWP_E_INVALID_TRANSFORM_COMBINATION: ::windows_sys::core::HRESULT = -2144206789i32;
pub const FWP_E_INVALID_TUNNEL_ENDPOINT: ::windows_sys::core::HRESULT = -2144206787i32;
pub const FWP_E_INVALID_WEIGHT: ::windows_sys::core::HRESULT = -2144206811i32;
pub const FWP_E_IN_USE: ::windows_sys::core::HRESULT = -2144206838i32;
pub const FWP_E_KEY_DICTATION_INVALID_KEYING_MATERIAL: ::windows_sys::core::HRESULT = -2144206784i32;
pub const FWP_E_KEY_DICTATOR_ALREADY_REGISTERED: ::windows_sys::core::HRESULT = -2144206785i32;
pub const FWP_E_KM_CLIENTS_ONLY: ::windows_sys::core::HRESULT = -2144206827i32;
pub const FWP_E_L2_DRIVER_NOT_READY: ::windows_sys::core::HRESULT = -2144206786i32;
pub const FWP_E_LAYER_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206844i32;
pub const FWP_E_LIFETIME_MISMATCH: ::windows_sys::core::HRESULT = -2144206826i32;
pub const FWP_E_MATCH_TYPE_MISMATCH: ::windows_sys::core::HRESULT = -2144206810i32;
pub const FWP_E_NET_EVENTS_DISABLED: ::windows_sys::core::HRESULT = -2144206829i32;
pub const FWP_E_NEVER_MATCH: ::windows_sys::core::HRESULT = -2144206797i32;
pub const FWP_E_NOTIFICATION_DROPPED: ::windows_sys::core::HRESULT = -2144206823i32;
pub const FWP_E_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206840i32;
pub const FWP_E_NO_TXN_IN_PROGRESS: ::windows_sys::core::HRESULT = -2144206835i32;
pub const FWP_E_NULL_DISPLAY_NAME: ::windows_sys::core::HRESULT = -2144206813i32;
pub const FWP_E_NULL_POINTER: ::windows_sys::core::HRESULT = -2144206820i32;
pub const FWP_E_OUT_OF_BOUNDS: ::windows_sys::core::HRESULT = -2144206808i32;
pub const FWP_E_PROVIDER_CONTEXT_MISMATCH: ::windows_sys::core::HRESULT = -2144206796i32;
pub const FWP_E_PROVIDER_CONTEXT_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206842i32;
pub const FWP_E_PROVIDER_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206843i32;
pub const FWP_E_RESERVED: ::windows_sys::core::HRESULT = -2144206807i32;
pub const FWP_E_SESSION_ABORTED: ::windows_sys::core::HRESULT = -2144206832i32;
pub const FWP_E_STILL_ON: ::windows_sys::core::HRESULT = -2144206781i32;
pub const FWP_E_SUBLAYER_NOT_FOUND: ::windows_sys::core::HRESULT = -2144206841i32;
pub const FWP_E_TIMEOUT: ::windows_sys::core::HRESULT = -2144206830i32;
pub const FWP_E_TOO_MANY_CALLOUTS: ::windows_sys::core::HRESULT = -2144206824i32;
pub const FWP_E_TOO_MANY_SUBLAYERS: ::windows_sys::core::HRESULT = -2144206794i32;
pub const FWP_E_TRAFFIC_MISMATCH: ::windows_sys::core::HRESULT = -2144206822i32;
pub const FWP_E_TXN_ABORTED: ::windows_sys::core::HRESULT = -2144206833i32;
pub const FWP_E_TXN_IN_PROGRESS: ::windows_sys::core::HRESULT = -2144206834i32;
pub const FWP_E_TYPE_MISMATCH: ::windows_sys::core::HRESULT = -2144206809i32;
pub const FWP_E_WRONG_SESSION: ::windows_sys::core::HRESULT = -2144206836i32;
pub const FWP_E_ZERO_LENGTH_ARRAY: ::windows_sys::core::HRESULT = -2144206814i32;
pub const GCN_E_DEFAULTNAMESPACE_EXISTS: ::windows_sys::core::HRESULT = -2143616983i32;
pub const GCN_E_MODULE_NOT_FOUND: ::windows_sys::core::HRESULT = -2143616991i32;
pub const GCN_E_NETADAPTER_NOT_FOUND: ::windows_sys::core::HRESULT = -2143616986i32;
pub const GCN_E_NETADAPTER_TIMEOUT: ::windows_sys::core::HRESULT = -2143616987i32;
pub const GCN_E_NETCOMPARTMENT_NOT_FOUND: ::windows_sys::core::HRESULT = -2143616985i32;
pub const GCN_E_NETINTERFACE_NOT_FOUND: ::windows_sys::core::HRESULT = -2143616984i32;
pub const GCN_E_NO_REQUEST_HANDLERS: ::windows_sys::core::HRESULT = -2143616990i32;
pub const GCN_E_REQUEST_UNSUPPORTED: ::windows_sys::core::HRESULT = -2143616989i32;
pub const GCN_E_RUNTIMEKEYS_FAILED: ::windows_sys::core::HRESULT = -2143616988i32;
pub type HANDLE = *mut ::core::ffi::c_void;
pub type HANDLE_FLAGS = u32;
pub const HANDLE_FLAG_INHERIT: HANDLE_FLAGS = 1u32;
pub const HANDLE_FLAG_PROTECT_FROM_CLOSE: HANDLE_FLAGS = 2u32;
pub type HANDLE_PTR = usize;
pub const HCN_E_ADAPTER_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617018i32;
pub const HCN_E_ADDR_INVALID_OR_RESERVED: ::windows_sys::core::HRESULT = -2143616977i32;
pub const HCN_E_DEGRADED_OPERATION: ::windows_sys::core::HRESULT = -2143617001i32;
pub const HCN_E_ENDPOINT_ALREADY_ATTACHED: ::windows_sys::core::HRESULT = -2143617004i32;
pub const HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2143616981i32;
pub const HCN_E_ENDPOINT_NOT_ATTACHED: ::windows_sys::core::HRESULT = -2143616972i32;
pub const HCN_E_ENDPOINT_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617022i32;
pub const HCN_E_ENDPOINT_NOT_LOCAL: ::windows_sys::core::HRESULT = -2143616971i32;
pub const HCN_E_ENDPOINT_SHARING_DISABLED: ::windows_sys::core::HRESULT = -2143616995i32;
pub const HCN_E_ENTITY_HAS_REFERENCES: ::windows_sys::core::HRESULT = -2143616980i32;
pub const HCN_E_GUID_CONVERSION_FAILURE: ::windows_sys::core::HRESULT = -2143616999i32;
pub const HCN_E_ICS_DISABLED: ::windows_sys::core::HRESULT = -2143616982i32;
pub const HCN_E_INVALID_ENDPOINT: ::windows_sys::core::HRESULT = -2143617012i32;
pub const HCN_E_INVALID_INTERNAL_PORT: ::windows_sys::core::HRESULT = -2143616979i32;
pub const HCN_E_INVALID_IP: ::windows_sys::core::HRESULT = -2143616994i32;
pub const HCN_E_INVALID_IP_SUBNET: ::windows_sys::core::HRESULT = -2143616973i32;
pub const HCN_E_INVALID_JSON: ::windows_sys::core::HRESULT = -2143616997i32;
pub const HCN_E_INVALID_JSON_REFERENCE: ::windows_sys::core::HRESULT = -2143616996i32;
pub const HCN_E_INVALID_NETWORK: ::windows_sys::core::HRESULT = -2143617014i32;
pub const HCN_E_INVALID_NETWORK_TYPE: ::windows_sys::core::HRESULT = -2143617013i32;
pub const HCN_E_INVALID_POLICY: ::windows_sys::core::HRESULT = -2143617011i32;
pub const HCN_E_INVALID_POLICY_TYPE: ::windows_sys::core::HRESULT = -2143617010i32;
pub const HCN_E_INVALID_PREFIX: ::windows_sys::core::HRESULT = -2143616976i32;
pub const HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION: ::windows_sys::core::HRESULT = -2143617009i32;
pub const HCN_E_INVALID_SUBNET: ::windows_sys::core::HRESULT = -2143616974i32;
pub const HCN_E_LAYER_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2143617007i32;
pub const HCN_E_LAYER_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617021i32;
pub const HCN_E_MANAGER_STOPPED: ::windows_sys::core::HRESULT = -2143616992i32;
pub const HCN_E_MAPPING_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2143617002i32;
pub const HCN_E_NAMESPACE_ATTACH_FAILED: ::windows_sys::core::HRESULT = -2143616978i32;
pub const HCN_E_NETWORK_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2143617008i32;
pub const HCN_E_NETWORK_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617023i32;
pub const HCN_E_OBJECT_USED_AFTER_UNLOAD: ::windows_sys::core::HRESULT = -2143616975i32;
pub const HCN_E_POLICY_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2143617006i32;
pub const HCN_E_POLICY_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617016i32;
pub const HCN_E_PORT_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2143617005i32;
pub const HCN_E_PORT_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617017i32;
pub const HCN_E_REGKEY_FAILURE: ::windows_sys::core::HRESULT = -2143616998i32;
pub const HCN_E_REQUEST_UNSUPPORTED: ::windows_sys::core::HRESULT = -2143617003i32;
pub const HCN_E_SHARED_SWITCH_MODIFICATION: ::windows_sys::core::HRESULT = -2143617000i32;
pub const HCN_E_SUBNET_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617019i32;
pub const HCN_E_SWITCH_EXTENSION_NOT_FOUND: ::windows_sys::core::HRESULT = -2143616993i32;
pub const HCN_E_SWITCH_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617020i32;
pub const HCN_E_VFP_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2143616969i32;
pub const HCN_E_VFP_PORTSETTING_NOT_FOUND: ::windows_sys::core::HRESULT = -2143617015i32;
pub const HCN_INTERFACEPARAMETERS_ALREADY_APPLIED: ::windows_sys::core::HRESULT = -2143616970i32;
pub const HCS_E_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2143878885i32;
pub const HCS_E_CONNECTION_CLOSED: ::windows_sys::core::HRESULT = -2143878902i32;
pub const HCS_E_CONNECTION_TIMEOUT: ::windows_sys::core::HRESULT = -2143878903i32;
pub const HCS_E_CONNECT_FAILED: ::windows_sys::core::HRESULT = -2143878904i32;
pub const HCS_E_GUEST_CRITICAL_ERROR: ::windows_sys::core::HRESULT = -2143878884i32;
pub const HCS_E_HYPERV_NOT_INSTALLED: ::windows_sys::core::HRESULT = -2143878910i32;
pub const HCS_E_IMAGE_MISMATCH: ::windows_sys::core::HRESULT = -2143878911i32;
pub const HCS_E_INVALID_JSON: ::windows_sys::core::HRESULT = -2143878899i32;
pub const HCS_E_INVALID_LAYER: ::windows_sys::core::HRESULT = -2143878894i32;
pub const HCS_E_INVALID_STATE: ::windows_sys::core::HRESULT = -2143878907i32;
pub const HCS_E_OPERATION_ALREADY_STARTED: ::windows_sys::core::HRESULT = -2143878890i32;
pub const HCS_E_OPERATION_NOT_STARTED: ::windows_sys::core::HRESULT = -2143878891i32;
pub const HCS_E_OPERATION_PENDING: ::windows_sys::core::HRESULT = -2143878889i32;
pub const HCS_E_OPERATION_RESULT_ALLOCATION_FAILED: ::windows_sys::core::HRESULT = -2143878886i32;
pub const HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET: ::windows_sys::core::HRESULT = -2143878887i32;
pub const HCS_E_OPERATION_TIMEOUT: ::windows_sys::core::HRESULT = -2143878888i32;
pub const HCS_E_PROCESS_ALREADY_STOPPED: ::windows_sys::core::HRESULT = -2143878881i32;
pub const HCS_E_PROCESS_INFO_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2143878883i32;
pub const HCS_E_PROTOCOL_ERROR: ::windows_sys::core::HRESULT = -2143878895i32;
pub const HCS_E_SERVICE_DISCONNECT: ::windows_sys::core::HRESULT = -2143878882i32;
pub const HCS_E_SERVICE_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2143878892i32;
pub const HCS_E_SYSTEM_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2143878897i32;
pub const HCS_E_SYSTEM_ALREADY_STOPPED: ::windows_sys::core::HRESULT = -2143878896i32;
pub const HCS_E_SYSTEM_NOT_CONFIGURED_FOR_OPERATION: ::windows_sys::core::HRESULT = -2143878880i32;
pub const HCS_E_SYSTEM_NOT_FOUND: ::windows_sys::core::HRESULT = -2143878898i32;
pub const HCS_E_TERMINATED: ::windows_sys::core::HRESULT = -2143878905i32;
pub const HCS_E_TERMINATED_DURING_START: ::windows_sys::core::HRESULT = -2143878912i32;
pub const HCS_E_UNEXPECTED_EXIT: ::windows_sys::core::HRESULT = -2143878906i32;
pub const HCS_E_UNKNOWN_MESSAGE: ::windows_sys::core::HRESULT = -2143878901i32;
pub const HCS_E_UNSUPPORTED_PROTOCOL_VERSION: ::windows_sys::core::HRESULT = -2143878900i32;
pub const HCS_E_WINDOWS_INSIDER_REQUIRED: ::windows_sys::core::HRESULT = -2143878893i32;
pub type HINSTANCE = isize;
#[repr(C)]
pub struct HLSURF__ {
pub unused: i32,
}
impl ::core::marker::Copy for HLSURF__ {}
impl ::core::clone::Clone for HLSURF__ {
fn clone(&self) -> Self {
*self
}
}
pub type HRSRC = isize;
#[repr(C)]
pub struct HSPRITE__ {
pub unused: i32,
}
impl ::core::marker::Copy for HSPRITE__ {}
impl ::core::clone::Clone for HSPRITE__ {
fn clone(&self) -> Self {
*self
}
}
pub const HSP_BASE_ERROR_MASK: ::windows_sys::core::HRESULT = -2128019200i32;
pub const HSP_BASE_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2128018945i32;
pub const HSP_BS_ERROR_MASK: ::windows_sys::core::HRESULT = -2128080896i32;
pub const HSP_BS_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2128080641i32;
pub const HSP_DRV_ERROR_MASK: ::windows_sys::core::HRESULT = -2128019456i32;
pub const HSP_DRV_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2128019201i32;
pub const HSP_E_ERROR_MASK: ::windows_sys::core::HRESULT = -2128084992i32;
pub const HSP_E_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2128080897i32;
pub const HSP_KSP_ALGORITHM_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2128018935i32;
pub const HSP_KSP_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2128018939i32;
pub const HSP_KSP_DEVICE_NOT_READY: ::windows_sys::core::HRESULT = -2128018943i32;
pub const HSP_KSP_ERROR_MASK: ::windows_sys::core::HRESULT = -2128018944i32;
pub const HSP_KSP_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2128018689i32;
pub const HSP_KSP_INVALID_DATA: ::windows_sys::core::HRESULT = -2128018937i32;
pub const HSP_KSP_INVALID_FLAGS: ::windows_sys::core::HRESULT = -2128018936i32;
pub const HSP_KSP_INVALID_KEY_HANDLE: ::windows_sys::core::HRESULT = -2128018941i32;
pub const HSP_KSP_INVALID_KEY_TYPE: ::windows_sys::core::HRESULT = -2128018932i32;
pub const HSP_KSP_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2128018940i32;
pub const HSP_KSP_INVALID_PROVIDER_HANDLE: ::windows_sys::core::HRESULT = -2128018942i32;
pub const HSP_KSP_KEY_ALREADY_FINALIZED: ::windows_sys::core::HRESULT = -2128018934i32;
pub const HSP_KSP_KEY_EXISTS: ::windows_sys::core::HRESULT = -2128018923i32;
pub const HSP_KSP_KEY_LOAD_FAIL: ::windows_sys::core::HRESULT = -2128018921i32;
pub const HSP_KSP_KEY_MISSING: ::windows_sys::core::HRESULT = -2128018922i32;
pub const HSP_KSP_KEY_NOT_FINALIZED: ::windows_sys::core::HRESULT = -2128018933i32;
pub const HSP_KSP_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2128018938i32;
pub const HSP_KSP_NO_MEMORY: ::windows_sys::core::HRESULT = -2128018928i32;
pub const HSP_KSP_NO_MORE_ITEMS: ::windows_sys::core::HRESULT = -2128018920i32;
pub const HSP_KSP_PARAMETER_NOT_SET: ::windows_sys::core::HRESULT = -2128018927i32;
#[repr(C)]
pub struct HSTR__ {
pub unused: i32,
}
impl ::core::marker::Copy for HSTR__ {}
impl ::core::clone::Clone for HSTR__ {
fn clone(&self) -> Self {
*self
}
}
pub const HTTP_E_STATUS_AMBIGUOUS: ::windows_sys::core::HRESULT = -2145844948i32;
pub const HTTP_E_STATUS_BAD_GATEWAY: ::windows_sys::core::HRESULT = -2145844746i32;
pub const HTTP_E_STATUS_BAD_METHOD: ::windows_sys::core::HRESULT = -2145844843i32;
pub const HTTP_E_STATUS_BAD_REQUEST: ::windows_sys::core::HRESULT = -2145844848i32;
pub const HTTP_E_STATUS_CONFLICT: ::windows_sys::core::HRESULT = -2145844839i32;
pub const HTTP_E_STATUS_DENIED: ::windows_sys::core::HRESULT = -2145844847i32;
pub const HTTP_E_STATUS_EXPECTATION_FAILED: ::windows_sys::core::HRESULT = -2145844831i32;
pub const HTTP_E_STATUS_FORBIDDEN: ::windows_sys::core::HRESULT = -2145844845i32;
pub const HTTP_E_STATUS_GATEWAY_TIMEOUT: ::windows_sys::core::HRESULT = -2145844744i32;
pub const HTTP_E_STATUS_GONE: ::windows_sys::core::HRESULT = -2145844838i32;
pub const HTTP_E_STATUS_LENGTH_REQUIRED: ::windows_sys::core::HRESULT = -2145844837i32;
pub const HTTP_E_STATUS_MOVED: ::windows_sys::core::HRESULT = -2145844947i32;
pub const HTTP_E_STATUS_NONE_ACCEPTABLE: ::windows_sys::core::HRESULT = -2145844842i32;
pub const HTTP_E_STATUS_NOT_FOUND: ::windows_sys::core::HRESULT = -2145844844i32;
pub const HTTP_E_STATUS_NOT_MODIFIED: ::windows_sys::core::HRESULT = -2145844944i32;
pub const HTTP_E_STATUS_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2145844747i32;
pub const HTTP_E_STATUS_PAYMENT_REQ: ::windows_sys::core::HRESULT = -2145844846i32;
pub const HTTP_E_STATUS_PRECOND_FAILED: ::windows_sys::core::HRESULT = -2145844836i32;
pub const HTTP_E_STATUS_PROXY_AUTH_REQ: ::windows_sys::core::HRESULT = -2145844841i32;
pub const HTTP_E_STATUS_RANGE_NOT_SATISFIABLE: ::windows_sys::core::HRESULT = -2145844832i32;
pub const HTTP_E_STATUS_REDIRECT: ::windows_sys::core::HRESULT = -2145844946i32;
pub const HTTP_E_STATUS_REDIRECT_KEEP_VERB: ::windows_sys::core::HRESULT = -2145844941i32;
pub const HTTP_E_STATUS_REDIRECT_METHOD: ::windows_sys::core::HRESULT = -2145844945i32;
pub const HTTP_E_STATUS_REQUEST_TIMEOUT: ::windows_sys::core::HRESULT = -2145844840i32;
pub const HTTP_E_STATUS_REQUEST_TOO_LARGE: ::windows_sys::core::HRESULT = -2145844835i32;
pub const HTTP_E_STATUS_SERVER_ERROR: ::windows_sys::core::HRESULT = -2145844748i32;
pub const HTTP_E_STATUS_SERVICE_UNAVAIL: ::windows_sys::core::HRESULT = -2145844745i32;
pub const HTTP_E_STATUS_UNEXPECTED: ::windows_sys::core::HRESULT = -2145845247i32;
pub const HTTP_E_STATUS_UNEXPECTED_CLIENT_ERROR: ::windows_sys::core::HRESULT = -2145845244i32;
pub const HTTP_E_STATUS_UNEXPECTED_REDIRECTION: ::windows_sys::core::HRESULT = -2145845245i32;
pub const HTTP_E_STATUS_UNEXPECTED_SERVER_ERROR: ::windows_sys::core::HRESULT = -2145845243i32;
pub const HTTP_E_STATUS_UNSUPPORTED_MEDIA: ::windows_sys::core::HRESULT = -2145844833i32;
pub const HTTP_E_STATUS_URI_TOO_LONG: ::windows_sys::core::HRESULT = -2145844834i32;
pub const HTTP_E_STATUS_USE_PROXY: ::windows_sys::core::HRESULT = -2145844943i32;
pub const HTTP_E_STATUS_VERSION_NOT_SUP: ::windows_sys::core::HRESULT = -2145844743i32;
#[repr(C)]
pub struct HUMPD__ {
pub unused: i32,
}
impl ::core::marker::Copy for HUMPD__ {}
impl ::core::clone::Clone for HUMPD__ {
fn clone(&self) -> Self {
*self
}
}
pub type HWND = isize;
pub const INPLACE_E_FIRST: i32 = -2147221088i32;
pub const INPLACE_E_LAST: i32 = -2147221073i32;
pub const INPLACE_E_NOTOOLSPACE: ::windows_sys::core::HRESULT = -2147221087i32;
pub const INPLACE_E_NOTUNDOABLE: ::windows_sys::core::HRESULT = -2147221088i32;
pub const INPLACE_S_FIRST: i32 = 262560i32;
pub const INPLACE_S_LAST: i32 = 262575i32;
pub const INPLACE_S_TRUNCATED: ::windows_sys::core::HRESULT = 262560i32;
pub const INPUT_E_DEVICE_INFO: ::windows_sys::core::HRESULT = -2143289338i32;
pub const INPUT_E_DEVICE_PROPERTY: ::windows_sys::core::HRESULT = -2143289336i32;
pub const INPUT_E_FRAME: ::windows_sys::core::HRESULT = -2143289340i32;
pub const INPUT_E_HISTORY: ::windows_sys::core::HRESULT = -2143289339i32;
pub const INPUT_E_MULTIMODAL: ::windows_sys::core::HRESULT = -2143289342i32;
pub const INPUT_E_OUT_OF_ORDER: ::windows_sys::core::HRESULT = -2143289344i32;
pub const INPUT_E_PACKET: ::windows_sys::core::HRESULT = -2143289341i32;
pub const INPUT_E_REENTRANCY: ::windows_sys::core::HRESULT = -2143289343i32;
pub const INPUT_E_TRANSFORM: ::windows_sys::core::HRESULT = -2143289337i32;
pub const INVALID_HANDLE_VALUE: HANDLE = -1i32 as _;
pub const IORING_E_COMPLETION_QUEUE_TOO_BIG: ::windows_sys::core::HRESULT = -2142896123i32;
pub const IORING_E_CORRUPT: ::windows_sys::core::HRESULT = -2142896121i32;
pub const IORING_E_REQUIRED_FLAG_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2142896127i32;
pub const IORING_E_SUBMISSION_QUEUE_FULL: ::windows_sys::core::HRESULT = -2142896126i32;
pub const IORING_E_SUBMISSION_QUEUE_TOO_BIG: ::windows_sys::core::HRESULT = -2142896124i32;
pub const IORING_E_SUBMIT_IN_PROGRESS: ::windows_sys::core::HRESULT = -2142896122i32;
pub const IORING_E_VERSION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2142896125i32;
pub const JSCRIPT_E_CANTEXECUTE: ::windows_sys::core::HRESULT = -1996357631i32;
pub const LANGUAGE_E_DATABASE_NOT_FOUND: ::windows_sys::core::HRESULT = -2147215484i32;
pub const LANGUAGE_S_LARGE_WORD: ::windows_sys::core::HRESULT = 268161i32;
pub type LPARAM = isize;
pub type LRESULT = isize;
pub type LSTATUS = i32;
#[repr(C)]
pub struct LUID {
pub LowPart: u32,
pub HighPart: i32,
}
impl ::core::marker::Copy for LUID {}
impl ::core::clone::Clone for LUID {
fn clone(&self) -> Self {
*self
}
}
pub const MARSHAL_E_FIRST: i32 = -2147221216i32;
pub const MARSHAL_E_LAST: i32 = -2147221201i32;
pub const MARSHAL_S_FIRST: i32 = 262432i32;
pub const MARSHAL_S_LAST: i32 = 262447i32;
pub const MAX_PATH: u32 = 260u32;
pub const MEM_E_INVALID_LINK: ::windows_sys::core::HRESULT = -2146959344i32;
pub const MEM_E_INVALID_ROOT: ::windows_sys::core::HRESULT = -2146959351i32;
pub const MEM_E_INVALID_SIZE: ::windows_sys::core::HRESULT = -2146959343i32;
pub const MENROLL_S_ENROLLMENT_SUSPENDED: ::windows_sys::core::HRESULT = 1572881i32;
pub const MILAVERR_INSUFFICIENTVIDEORESOURCES: ::windows_sys::core::HRESULT = -2003303160i32;
pub const MILAVERR_INVALIDWMPVERSION: ::windows_sys::core::HRESULT = -2003303161i32;
pub const MILAVERR_MEDIAPLAYERCLOSED: ::windows_sys::core::HRESULT = -2003303155i32;
pub const MILAVERR_MODULENOTLOADED: ::windows_sys::core::HRESULT = -2003303163i32;
pub const MILAVERR_NOCLOCK: ::windows_sys::core::HRESULT = -2003303168i32;
pub const MILAVERR_NOMEDIATYPE: ::windows_sys::core::HRESULT = -2003303167i32;
pub const MILAVERR_NOREADYFRAMES: ::windows_sys::core::HRESULT = -2003303164i32;
pub const MILAVERR_NOVIDEOMIXER: ::windows_sys::core::HRESULT = -2003303166i32;
pub const MILAVERR_NOVIDEOPRESENTER: ::windows_sys::core::HRESULT = -2003303165i32;
pub const MILAVERR_REQUESTEDTEXTURETOOBIG: ::windows_sys::core::HRESULT = -2003303158i32;
pub const MILAVERR_SEEKFAILED: ::windows_sys::core::HRESULT = -2003303157i32;
pub const MILAVERR_UNEXPECTEDWMPFAILURE: ::windows_sys::core::HRESULT = -2003303156i32;
pub const MILAVERR_UNKNOWNHARDWAREERROR: ::windows_sys::core::HRESULT = -2003303154i32;
pub const MILAVERR_VIDEOACCELERATIONNOTAVAILABLE: ::windows_sys::core::HRESULT = -2003303159i32;
pub const MILAVERR_WMPFACTORYNOTREGISTERED: ::windows_sys::core::HRESULT = -2003303162i32;
pub const MILEFFECTSERR_ALREADYATTACHEDTOLISTENER: ::windows_sys::core::HRESULT = -2003302888i32;
pub const MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT: ::windows_sys::core::HRESULT = -2003302894i32;
pub const MILEFFECTSERR_CONNECTORNOTCONNECTED: ::windows_sys::core::HRESULT = -2003302895i32;
pub const MILEFFECTSERR_CYCLEDETECTED: ::windows_sys::core::HRESULT = -2003302892i32;
pub const MILEFFECTSERR_EFFECTALREADYINAGRAPH: ::windows_sys::core::HRESULT = -2003302890i32;
pub const MILEFFECTSERR_EFFECTHASNOCHILDREN: ::windows_sys::core::HRESULT = -2003302889i32;
pub const MILEFFECTSERR_EFFECTINMORETHANONEGRAPH: ::windows_sys::core::HRESULT = -2003302891i32;
pub const MILEFFECTSERR_EFFECTNOTPARTOFGROUP: ::windows_sys::core::HRESULT = -2003302897i32;
pub const MILEFFECTSERR_EMPTYBOUNDS: ::windows_sys::core::HRESULT = -2003302886i32;
pub const MILEFFECTSERR_NOINPUTSOURCEATTACHED: ::windows_sys::core::HRESULT = -2003302896i32;
pub const MILEFFECTSERR_NOTAFFINETRANSFORM: ::windows_sys::core::HRESULT = -2003302887i32;
pub const MILEFFECTSERR_OUTPUTSIZETOOLARGE: ::windows_sys::core::HRESULT = -2003302885i32;
pub const MILEFFECTSERR_RESERVED: ::windows_sys::core::HRESULT = -2003302893i32;
pub const MILEFFECTSERR_UNKNOWNPROPERTY: ::windows_sys::core::HRESULT = -2003302898i32;
pub const MILERR_ADAPTER_NOT_FOUND: ::windows_sys::core::HRESULT = -2003304290i32;
pub const MILERR_ALREADYLOCKED: ::windows_sys::core::HRESULT = -2003304314i32;
pub const MILERR_ALREADY_INITIALIZED: ::windows_sys::core::HRESULT = -2003304305i32;
pub const MILERR_BADNUMBER: ::windows_sys::core::HRESULT = -2003304438i32;
pub const MILERR_COLORSPACE_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2003304289i32;
pub const MILERR_DEVICECANNOTRENDERTEXT: ::windows_sys::core::HRESULT = -2003304312i32;
pub const MILERR_DISPLAYFORMATNOTSUPPORTED: ::windows_sys::core::HRESULT = -2003304316i32;
pub const MILERR_DISPLAYID_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2003304287i32;
pub const MILERR_DISPLAYSTATEINVALID: ::windows_sys::core::HRESULT = -2003304442i32;
pub const MILERR_DXGI_ENUMERATION_OUT_OF_SYNC: ::windows_sys::core::HRESULT = -2003304291i32;
pub const MILERR_GENERIC_IGNORE: ::windows_sys::core::HRESULT = -2003304309i32;
pub const MILERR_GLYPHBITMAPMISSED: ::windows_sys::core::HRESULT = -2003304311i32;
pub const MILERR_INSUFFICIENTBUFFER: ::windows_sys::core::HRESULT = -2003304446i32;
pub const MILERR_INTERNALERROR: ::windows_sys::core::HRESULT = -2003304320i32;
pub const MILERR_INVALIDCALL: ::windows_sys::core::HRESULT = -2003304315i32;
pub const MILERR_MALFORMEDGLYPHCACHE: ::windows_sys::core::HRESULT = -2003304310i32;
pub const MILERR_MALFORMED_GUIDELINE_DATA: ::windows_sys::core::HRESULT = -2003304308i32;
pub const MILERR_MAX_TEXTURE_SIZE_EXCEEDED: ::windows_sys::core::HRESULT = -2003304294i32;
pub const MILERR_MISMATCHED_SIZE: ::windows_sys::core::HRESULT = -2003304304i32;
pub const MILERR_MROW_READLOCK_FAILED: ::windows_sys::core::HRESULT = -2003304297i32;
pub const MILERR_MROW_UPDATE_FAILED: ::windows_sys::core::HRESULT = -2003304296i32;
pub const MILERR_NEED_RECREATE_AND_PRESENT: ::windows_sys::core::HRESULT = -2003304306i32;
pub const MILERR_NONINVERTIBLEMATRIX: ::windows_sys::core::HRESULT = -2003304441i32;
pub const MILERR_NOTLOCKED: ::windows_sys::core::HRESULT = -2003304313i32;
pub const MILERR_NOT_QUEUING_PRESENTS: ::windows_sys::core::HRESULT = -2003304300i32;
pub const MILERR_NO_HARDWARE_DEVICE: ::windows_sys::core::HRESULT = -2003304307i32;
pub const MILERR_NO_REDIRECTION_SURFACE_AVAILABLE: ::windows_sys::core::HRESULT = -2003304303i32;
pub const MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER: ::windows_sys::core::HRESULT = -2003304299i32;
pub const MILERR_OBJECTBUSY: ::windows_sys::core::HRESULT = -2003304447i32;
pub const MILERR_PREFILTER_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2003304288i32;
pub const MILERR_QPC_TIME_WENT_BACKWARD: ::windows_sys::core::HRESULT = -2003304293i32;
pub const MILERR_QUEUED_PRESENT_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2003304301i32;
pub const MILERR_REMOTING_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2003304302i32;
pub const MILERR_SCANNER_FAILED: ::windows_sys::core::HRESULT = -2003304444i32;
pub const MILERR_SCREENACCESSDENIED: ::windows_sys::core::HRESULT = -2003304443i32;
pub const MILERR_SHADER_COMPILE_FAILED: ::windows_sys::core::HRESULT = -2003304295i32;
pub const MILERR_TERMINATED: ::windows_sys::core::HRESULT = -2003304439i32;
pub const MILERR_TOOMANYSHADERELEMNTS: ::windows_sys::core::HRESULT = -2003304298i32;
pub const MILERR_WIN32ERROR: ::windows_sys::core::HRESULT = -2003304445i32;
pub const MILERR_ZEROVECTOR: ::windows_sys::core::HRESULT = -2003304440i32;
pub const MK_E_CANTOPENFILE: ::windows_sys::core::HRESULT = -2147221014i32;
pub const MK_E_CONNECTMANUALLY: ::windows_sys::core::HRESULT = -2147221024i32;
pub const MK_E_ENUMERATION_FAILED: ::windows_sys::core::HRESULT = -2147221009i32;
pub const MK_E_EXCEEDEDDEADLINE: ::windows_sys::core::HRESULT = -2147221023i32;
pub const MK_E_FIRST: i32 = -2147221024i32;
pub const MK_E_INTERMEDIATEINTERFACENOTSUPPORTED: ::windows_sys::core::HRESULT = -2147221017i32;
pub const MK_E_INVALIDEXTENSION: ::windows_sys::core::HRESULT = -2147221018i32;
pub const MK_E_LAST: i32 = -2147221009i32;
pub const MK_E_MUSTBOTHERUSER: ::windows_sys::core::HRESULT = -2147221013i32;
pub const MK_E_NEEDGENERIC: ::windows_sys::core::HRESULT = -2147221022i32;
pub const MK_E_NOINVERSE: ::windows_sys::core::HRESULT = -2147221012i32;
pub const MK_E_NOOBJECT: ::windows_sys::core::HRESULT = -2147221019i32;
pub const MK_E_NOPREFIX: ::windows_sys::core::HRESULT = -2147221010i32;
pub const MK_E_NOSTORAGE: ::windows_sys::core::HRESULT = -2147221011i32;
pub const MK_E_NOTBINDABLE: ::windows_sys::core::HRESULT = -2147221016i32;
pub const MK_E_NOTBOUND: ::windows_sys::core::HRESULT = -2147221015i32;
pub const MK_E_NO_NORMALIZED: ::windows_sys::core::HRESULT = -2146959353i32;
pub const MK_E_SYNTAX: ::windows_sys::core::HRESULT = -2147221020i32;
pub const MK_E_UNAVAILABLE: ::windows_sys::core::HRESULT = -2147221021i32;
pub const MK_S_FIRST: i32 = 262624i32;
pub const MK_S_HIM: ::windows_sys::core::HRESULT = 262629i32;
pub const MK_S_LAST: i32 = 262639i32;
pub const MK_S_ME: ::windows_sys::core::HRESULT = 262628i32;
pub const MK_S_MONIKERALREADYREGISTERED: ::windows_sys::core::HRESULT = 262631i32;
pub const MK_S_REDUCED_TO_SELF: ::windows_sys::core::HRESULT = 262626i32;
pub const MK_S_US: ::windows_sys::core::HRESULT = 262630i32;
pub const MSDTC_E_DUPLICATE_RESOURCE: ::windows_sys::core::HRESULT = -2146367743i32;
pub const MSSIPOTF_E_BADVERSION: ::windows_sys::core::HRESULT = -2146865131i32;
pub const MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT: ::windows_sys::core::HRESULT = -2146865144i32;
pub const MSSIPOTF_E_BAD_MAGICNUMBER: ::windows_sys::core::HRESULT = -2146865148i32;
pub const MSSIPOTF_E_BAD_OFFSET_TABLE: ::windows_sys::core::HRESULT = -2146865147i32;
pub const MSSIPOTF_E_CANTGETOBJECT: ::windows_sys::core::HRESULT = -2146865150i32;
pub const MSSIPOTF_E_CRYPT: ::windows_sys::core::HRESULT = -2146865132i32;
pub const MSSIPOTF_E_DSIG_STRUCTURE: ::windows_sys::core::HRESULT = -2146865130i32;
pub const MSSIPOTF_E_FAILED_HINTS_CHECK: ::windows_sys::core::HRESULT = -2146865135i32;
pub const MSSIPOTF_E_FAILED_POLICY: ::windows_sys::core::HRESULT = -2146865136i32;
pub const MSSIPOTF_E_FILE: ::windows_sys::core::HRESULT = -2146865133i32;
pub const MSSIPOTF_E_FILETOOSMALL: ::windows_sys::core::HRESULT = -2146865141i32;
pub const MSSIPOTF_E_FILE_CHECKSUM: ::windows_sys::core::HRESULT = -2146865139i32;
pub const MSSIPOTF_E_NOHEADTABLE: ::windows_sys::core::HRESULT = -2146865149i32;
pub const MSSIPOTF_E_NOT_OPENTYPE: ::windows_sys::core::HRESULT = -2146865134i32;
pub const MSSIPOTF_E_OUTOFMEMRANGE: ::windows_sys::core::HRESULT = -2146865151i32;
pub const MSSIPOTF_E_PCONST_CHECK: ::windows_sys::core::HRESULT = -2146865129i32;
pub const MSSIPOTF_E_STRUCTURE: ::windows_sys::core::HRESULT = -2146865128i32;
pub const MSSIPOTF_E_TABLES_OVERLAP: ::windows_sys::core::HRESULT = -2146865143i32;
pub const MSSIPOTF_E_TABLE_CHECKSUM: ::windows_sys::core::HRESULT = -2146865140i32;
pub const MSSIPOTF_E_TABLE_LONGWORD: ::windows_sys::core::HRESULT = -2146865145i32;
pub const MSSIPOTF_E_TABLE_PADBYTES: ::windows_sys::core::HRESULT = -2146865142i32;
pub const MSSIPOTF_E_TABLE_TAGORDER: ::windows_sys::core::HRESULT = -2146865146i32;
pub const NAP_E_CONFLICTING_ID: ::windows_sys::core::HRESULT = -2144927741i32;
pub const NAP_E_ENTITY_DISABLED: ::windows_sys::core::HRESULT = -2144927730i32;
pub const NAP_E_ID_NOT_FOUND: ::windows_sys::core::HRESULT = -2144927734i32;
pub const NAP_E_INVALID_PACKET: ::windows_sys::core::HRESULT = -2144927743i32;
pub const NAP_E_MAXSIZE_TOO_SMALL: ::windows_sys::core::HRESULT = -2144927733i32;
pub const NAP_E_MISMATCHED_ID: ::windows_sys::core::HRESULT = -2144927736i32;
pub const NAP_E_MISSING_SOH: ::windows_sys::core::HRESULT = -2144927742i32;
pub const NAP_E_NETSH_GROUPPOLICY_ERROR: ::windows_sys::core::HRESULT = -2144927729i32;
pub const NAP_E_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2144927737i32;
pub const NAP_E_NOT_PENDING: ::windows_sys::core::HRESULT = -2144927735i32;
pub const NAP_E_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2144927738i32;
pub const NAP_E_NO_CACHED_SOH: ::windows_sys::core::HRESULT = -2144927740i32;
pub const NAP_E_SERVICE_NOT_RUNNING: ::windows_sys::core::HRESULT = -2144927732i32;
pub const NAP_E_SHV_CONFIG_EXISTED: ::windows_sys::core::HRESULT = -2144927727i32;
pub const NAP_E_SHV_CONFIG_NOT_FOUND: ::windows_sys::core::HRESULT = -2144927726i32;
pub const NAP_E_SHV_TIMEOUT: ::windows_sys::core::HRESULT = -2144927725i32;
pub const NAP_E_STILL_BOUND: ::windows_sys::core::HRESULT = -2144927739i32;
pub const NAP_E_TOO_MANY_CALLS: ::windows_sys::core::HRESULT = -2144927728i32;
pub const NAP_S_CERT_ALREADY_PRESENT: ::windows_sys::core::HRESULT = 2555917i32;
pub type NEARPROC = ::core::option::Option<unsafe extern "system" fn() -> isize>;
pub const NOERROR: u32 = 0u32;
pub const NOT_AN_ERROR1: ::windows_sys::core::HRESULT = 529920i32;
pub const NTDDI_MAXVER: u32 = 2560u32;
pub const NTE_AUTHENTICATION_IGNORED: ::windows_sys::core::HRESULT = -2146893775i32;
pub const NTE_BAD_ALGID: ::windows_sys::core::HRESULT = -2146893816i32;
pub const NTE_BAD_DATA: ::windows_sys::core::HRESULT = -2146893819i32;
pub const NTE_BAD_FLAGS: ::windows_sys::core::HRESULT = -2146893815i32;
pub const NTE_BAD_HASH: ::windows_sys::core::HRESULT = -2146893822i32;
pub const NTE_BAD_HASH_STATE: ::windows_sys::core::HRESULT = -2146893812i32;
pub const NTE_BAD_KEY: ::windows_sys::core::HRESULT = -2146893821i32;
pub const NTE_BAD_KEYSET: ::windows_sys::core::HRESULT = -2146893802i32;
pub const NTE_BAD_KEYSET_PARAM: ::windows_sys::core::HRESULT = -2146893793i32;
pub const NTE_BAD_KEY_STATE: ::windows_sys::core::HRESULT = -2146893813i32;
pub const NTE_BAD_LEN: ::windows_sys::core::HRESULT = -2146893820i32;
pub const NTE_BAD_PROVIDER: ::windows_sys::core::HRESULT = -2146893805i32;
pub const NTE_BAD_PROV_TYPE: ::windows_sys::core::HRESULT = -2146893804i32;
pub const NTE_BAD_PUBLIC_KEY: ::windows_sys::core::HRESULT = -2146893803i32;
pub const NTE_BAD_SIGNATURE: ::windows_sys::core::HRESULT = -2146893818i32;
pub const NTE_BAD_TYPE: ::windows_sys::core::HRESULT = -2146893814i32;
pub const NTE_BAD_UID: ::windows_sys::core::HRESULT = -2146893823i32;
pub const NTE_BAD_VER: ::windows_sys::core::HRESULT = -2146893817i32;
pub const NTE_BUFFERS_OVERLAP: ::windows_sys::core::HRESULT = -2146893781i32;
pub const NTE_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2146893784i32;
pub const NTE_DECRYPTION_FAILURE: ::windows_sys::core::HRESULT = -2146893780i32;
pub const NTE_DEVICE_NOT_FOUND: ::windows_sys::core::HRESULT = -2146893771i32;
pub const NTE_DEVICE_NOT_READY: ::windows_sys::core::HRESULT = -2146893776i32;
pub const NTE_DOUBLE_ENCRYPT: ::windows_sys::core::HRESULT = -2146893806i32;
pub const NTE_ENCRYPTION_FAILURE: ::windows_sys::core::HRESULT = -2146893772i32;
pub const NTE_EXISTS: ::windows_sys::core::HRESULT = -2146893809i32;
pub const NTE_FAIL: ::windows_sys::core::HRESULT = -2146893792i32;
pub const NTE_FIXEDPARAMETER: ::windows_sys::core::HRESULT = -2146893787i32;
pub const NTE_HMAC_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146893777i32;
pub const NTE_INCORRECT_PASSWORD: ::windows_sys::core::HRESULT = -2146893773i32;
pub const NTE_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2146893779i32;
pub const NTE_INVALID_HANDLE: ::windows_sys::core::HRESULT = -2146893786i32;
pub const NTE_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2146893785i32;
pub const NTE_KEYSET_ENTRY_BAD: ::windows_sys::core::HRESULT = -2146893798i32;
pub const NTE_KEYSET_NOT_DEF: ::windows_sys::core::HRESULT = -2146893799i32;
pub const NTE_NOT_ACTIVE_CONSOLE: ::windows_sys::core::HRESULT = -2146893768i32;
pub const NTE_NOT_FOUND: ::windows_sys::core::HRESULT = -2146893807i32;
pub const NTE_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146893783i32;
pub const NTE_NO_KEY: ::windows_sys::core::HRESULT = -2146893811i32;
pub const NTE_NO_MEMORY: ::windows_sys::core::HRESULT = -2146893810i32;
pub const NTE_NO_MORE_ITEMS: ::windows_sys::core::HRESULT = -2146893782i32;
pub const NTE_OP_OK: u32 = 0u32;
pub const NTE_PASSWORD_CHANGE_REQUIRED: ::windows_sys::core::HRESULT = -2146893769i32;
pub const NTE_PERM: ::windows_sys::core::HRESULT = -2146893808i32;
pub const NTE_PROVIDER_DLL_FAIL: ::windows_sys::core::HRESULT = -2146893795i32;
pub const NTE_PROV_DLL_NOT_FOUND: ::windows_sys::core::HRESULT = -2146893794i32;
pub const NTE_PROV_TYPE_ENTRY_BAD: ::windows_sys::core::HRESULT = -2146893800i32;
pub const NTE_PROV_TYPE_NOT_DEF: ::windows_sys::core::HRESULT = -2146893801i32;
pub const NTE_PROV_TYPE_NO_MATCH: ::windows_sys::core::HRESULT = -2146893797i32;
pub const NTE_SIGNATURE_FILE_BAD: ::windows_sys::core::HRESULT = -2146893796i32;
pub const NTE_SILENT_CONTEXT: ::windows_sys::core::HRESULT = -2146893790i32;
pub const NTE_SYS_ERR: ::windows_sys::core::HRESULT = -2146893791i32;
pub const NTE_TEMPORARY_PROFILE: ::windows_sys::core::HRESULT = -2146893788i32;
pub const NTE_TOKEN_KEYSET_STORAGE_FULL: ::windows_sys::core::HRESULT = -2146893789i32;
pub const NTE_UI_REQUIRED: ::windows_sys::core::HRESULT = -2146893778i32;
pub const NTE_USER_CANCELLED: ::windows_sys::core::HRESULT = -2146893770i32;
pub const NTE_VALIDATION_FAILED: ::windows_sys::core::HRESULT = -2146893774i32;
pub type NTSTATUS = i32;
pub type NTSTATUS_FACILITY_CODE = u32;
pub const FACILITY_DEBUGGER: NTSTATUS_FACILITY_CODE = 1u32;
pub const FACILITY_RPC_RUNTIME: NTSTATUS_FACILITY_CODE = 2u32;
pub const FACILITY_RPC_STUBS: NTSTATUS_FACILITY_CODE = 3u32;
pub const FACILITY_IO_ERROR_CODE: NTSTATUS_FACILITY_CODE = 4u32;
pub const FACILITY_CODCLASS_ERROR_CODE: NTSTATUS_FACILITY_CODE = 6u32;
pub const FACILITY_NTWIN32: NTSTATUS_FACILITY_CODE = 7u32;
pub const FACILITY_NTCERT: NTSTATUS_FACILITY_CODE = 8u32;
pub const FACILITY_NTSSPI: NTSTATUS_FACILITY_CODE = 9u32;
pub const FACILITY_TERMINAL_SERVER: NTSTATUS_FACILITY_CODE = 10u32;
pub const FACILITY_USB_ERROR_CODE: NTSTATUS_FACILITY_CODE = 16u32;
pub const FACILITY_HID_ERROR_CODE: NTSTATUS_FACILITY_CODE = 17u32;
pub const FACILITY_FIREWIRE_ERROR_CODE: NTSTATUS_FACILITY_CODE = 18u32;
pub const FACILITY_CLUSTER_ERROR_CODE: NTSTATUS_FACILITY_CODE = 19u32;
pub const FACILITY_ACPI_ERROR_CODE: NTSTATUS_FACILITY_CODE = 20u32;
pub const FACILITY_SXS_ERROR_CODE: NTSTATUS_FACILITY_CODE = 21u32;
pub const FACILITY_TRANSACTION: NTSTATUS_FACILITY_CODE = 25u32;
pub const FACILITY_COMMONLOG: NTSTATUS_FACILITY_CODE = 26u32;
pub const FACILITY_VIDEO: NTSTATUS_FACILITY_CODE = 27u32;
pub const FACILITY_FILTER_MANAGER: NTSTATUS_FACILITY_CODE = 28u32;
pub const FACILITY_MONITOR: NTSTATUS_FACILITY_CODE = 29u32;
pub const FACILITY_GRAPHICS_KERNEL: NTSTATUS_FACILITY_CODE = 30u32;
pub const FACILITY_DRIVER_FRAMEWORK: NTSTATUS_FACILITY_CODE = 32u32;
pub const FACILITY_FVE_ERROR_CODE: NTSTATUS_FACILITY_CODE = 33u32;
pub const FACILITY_FWP_ERROR_CODE: NTSTATUS_FACILITY_CODE = 34u32;
pub const FACILITY_NDIS_ERROR_CODE: NTSTATUS_FACILITY_CODE = 35u32;
pub const FACILITY_QUIC_ERROR_CODE: NTSTATUS_FACILITY_CODE = 36u32;
pub const FACILITY_TPM: NTSTATUS_FACILITY_CODE = 41u32;
pub const FACILITY_RTPM: NTSTATUS_FACILITY_CODE = 42u32;
pub const FACILITY_HYPERVISOR: NTSTATUS_FACILITY_CODE = 53u32;
pub const FACILITY_IPSEC: NTSTATUS_FACILITY_CODE = 54u32;
pub const FACILITY_VIRTUALIZATION: NTSTATUS_FACILITY_CODE = 55u32;
pub const FACILITY_VOLMGR: NTSTATUS_FACILITY_CODE = 56u32;
pub const FACILITY_BCD_ERROR_CODE: NTSTATUS_FACILITY_CODE = 57u32;
pub const FACILITY_WIN32K_NTUSER: NTSTATUS_FACILITY_CODE = 62u32;
pub const FACILITY_WIN32K_NTGDI: NTSTATUS_FACILITY_CODE = 63u32;
pub const FACILITY_RESUME_KEY_FILTER: NTSTATUS_FACILITY_CODE = 64u32;
pub const FACILITY_RDBSS: NTSTATUS_FACILITY_CODE = 65u32;
pub const FACILITY_BTH_ATT: NTSTATUS_FACILITY_CODE = 66u32;
pub const FACILITY_SECUREBOOT: NTSTATUS_FACILITY_CODE = 67u32;
pub const FACILITY_AUDIO_KERNEL: NTSTATUS_FACILITY_CODE = 68u32;
pub const FACILITY_VSM: NTSTATUS_FACILITY_CODE = 69u32;
pub const FACILITY_NT_IORING: NTSTATUS_FACILITY_CODE = 70u32;
pub const FACILITY_VOLSNAP: NTSTATUS_FACILITY_CODE = 80u32;
pub const FACILITY_SDBUS: NTSTATUS_FACILITY_CODE = 81u32;
pub const FACILITY_SHARED_VHDX: NTSTATUS_FACILITY_CODE = 92u32;
pub const FACILITY_SMB: NTSTATUS_FACILITY_CODE = 93u32;
pub const FACILITY_XVS: NTSTATUS_FACILITY_CODE = 94u32;
pub const FACILITY_INTERIX: NTSTATUS_FACILITY_CODE = 153u32;
pub const FACILITY_SPACES: NTSTATUS_FACILITY_CODE = 231u32;
pub const FACILITY_SECURITY_CORE: NTSTATUS_FACILITY_CODE = 232u32;
pub const FACILITY_SYSTEM_INTEGRITY: NTSTATUS_FACILITY_CODE = 233u32;
pub const FACILITY_LICENSING: NTSTATUS_FACILITY_CODE = 234u32;
pub const FACILITY_PLATFORM_MANIFEST: NTSTATUS_FACILITY_CODE = 235u32;
pub const FACILITY_APP_EXEC: NTSTATUS_FACILITY_CODE = 236u32;
pub const FACILITY_MAXIMUM_VALUE: NTSTATUS_FACILITY_CODE = 237u32;
pub const OLEOBJ_E_FIRST: i32 = -2147221120i32;
pub const OLEOBJ_E_INVALIDVERB: ::windows_sys::core::HRESULT = -2147221119i32;
pub const OLEOBJ_E_LAST: i32 = -2147221105i32;
pub const OLEOBJ_E_NOVERBS: ::windows_sys::core::HRESULT = -2147221120i32;
pub const OLEOBJ_S_CANNOT_DOVERB_NOW: ::windows_sys::core::HRESULT = 262529i32;
pub const OLEOBJ_S_FIRST: i32 = 262528i32;
pub const OLEOBJ_S_INVALIDHWND: ::windows_sys::core::HRESULT = 262530i32;
pub const OLEOBJ_S_INVALIDVERB: ::windows_sys::core::HRESULT = 262528i32;
pub const OLEOBJ_S_LAST: i32 = 262543i32;
pub const OLE_E_ADVF: ::windows_sys::core::HRESULT = -2147221503i32;
pub const OLE_E_ADVISENOTSUPPORTED: ::windows_sys::core::HRESULT = -2147221501i32;
pub const OLE_E_BLANK: ::windows_sys::core::HRESULT = -2147221497i32;
pub const OLE_E_CANTCONVERT: ::windows_sys::core::HRESULT = -2147221487i32;
pub const OLE_E_CANT_BINDTOSOURCE: ::windows_sys::core::HRESULT = -2147221494i32;
pub const OLE_E_CANT_GETMONIKER: ::windows_sys::core::HRESULT = -2147221495i32;
pub const OLE_E_CLASSDIFF: ::windows_sys::core::HRESULT = -2147221496i32;
pub const OLE_E_ENUM_NOMORE: ::windows_sys::core::HRESULT = -2147221502i32;
pub const OLE_E_FIRST: ::windows_sys::core::HRESULT = -2147221504i32;
pub const OLE_E_INVALIDHWND: ::windows_sys::core::HRESULT = -2147221489i32;
pub const OLE_E_INVALIDRECT: ::windows_sys::core::HRESULT = -2147221491i32;
pub const OLE_E_LAST: ::windows_sys::core::HRESULT = -2147221249i32;
pub const OLE_E_NOCACHE: ::windows_sys::core::HRESULT = -2147221498i32;
pub const OLE_E_NOCONNECTION: ::windows_sys::core::HRESULT = -2147221500i32;
pub const OLE_E_NOSTORAGE: ::windows_sys::core::HRESULT = -2147221486i32;
pub const OLE_E_NOTRUNNING: ::windows_sys::core::HRESULT = -2147221499i32;
pub const OLE_E_NOT_INPLACEACTIVE: ::windows_sys::core::HRESULT = -2147221488i32;
pub const OLE_E_OLEVERB: ::windows_sys::core::HRESULT = -2147221504i32;
pub const OLE_E_PROMPTSAVECANCELLED: ::windows_sys::core::HRESULT = -2147221492i32;
pub const OLE_E_STATIC: ::windows_sys::core::HRESULT = -2147221493i32;
pub const OLE_E_WRONGCOMPOBJ: ::windows_sys::core::HRESULT = -2147221490i32;
pub const OLE_S_FIRST: ::windows_sys::core::HRESULT = 262144i32;
pub const OLE_S_LAST: ::windows_sys::core::HRESULT = 262399i32;
pub const OLE_S_MAC_CLIPFORMAT: ::windows_sys::core::HRESULT = 262146i32;
pub const OLE_S_STATIC: ::windows_sys::core::HRESULT = 262145i32;
pub const OLE_S_USEREG: ::windows_sys::core::HRESULT = 262144i32;
pub const ONL_CONNECTION_COUNT_LIMIT: ::windows_sys::core::HRESULT = -2138701811i32;
pub const ONL_E_ACCESS_DENIED_BY_TOU: ::windows_sys::core::HRESULT = -2138701822i32;
pub const ONL_E_ACCOUNT_LOCKED: ::windows_sys::core::HRESULT = -2138701817i32;
pub const ONL_E_ACCOUNT_SUSPENDED_ABUSE: ::windows_sys::core::HRESULT = -2138701813i32;
pub const ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE: ::windows_sys::core::HRESULT = -2138701814i32;
pub const ONL_E_ACCOUNT_UPDATE_REQUIRED: ::windows_sys::core::HRESULT = -2138701819i32;
pub const ONL_E_ACTION_REQUIRED: ::windows_sys::core::HRESULT = -2138701812i32;
pub const ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT: ::windows_sys::core::HRESULT = -2138701810i32;
pub const ONL_E_EMAIL_VERIFICATION_REQUIRED: ::windows_sys::core::HRESULT = -2138701815i32;
pub const ONL_E_FORCESIGNIN: ::windows_sys::core::HRESULT = -2138701818i32;
pub const ONL_E_INVALID_APPLICATION: ::windows_sys::core::HRESULT = -2138701821i32;
pub const ONL_E_INVALID_AUTHENTICATION_TARGET: ::windows_sys::core::HRESULT = -2138701823i32;
pub const ONL_E_PARENTAL_CONSENT_REQUIRED: ::windows_sys::core::HRESULT = -2138701816i32;
pub const ONL_E_PASSWORD_UPDATE_REQUIRED: ::windows_sys::core::HRESULT = -2138701820i32;
pub const ONL_E_REQUEST_THROTTLED: ::windows_sys::core::HRESULT = -2138701808i32;
pub const ONL_E_USER_AUTHENTICATION_REQUIRED: ::windows_sys::core::HRESULT = -2138701809i32;
pub const OR_INVALID_OID: i32 = 1911i32;
pub const OR_INVALID_OXID: i32 = 1910i32;
pub const OR_INVALID_SET: i32 = 1912i32;
pub const OSS_ACCESS_SERIALIZATION_ERROR: ::windows_sys::core::HRESULT = -2146881517i32;
pub const OSS_API_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881495i32;
pub const OSS_BAD_ARG: ::windows_sys::core::HRESULT = -2146881530i32;
pub const OSS_BAD_ENCRULES: ::windows_sys::core::HRESULT = -2146881514i32;
pub const OSS_BAD_PTR: ::windows_sys::core::HRESULT = -2146881525i32;
pub const OSS_BAD_TABLE: ::windows_sys::core::HRESULT = -2146881521i32;
pub const OSS_BAD_TIME: ::windows_sys::core::HRESULT = -2146881524i32;
pub const OSS_BAD_VERSION: ::windows_sys::core::HRESULT = -2146881529i32;
pub const OSS_BERDER_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881494i32;
pub const OSS_CANT_CLOSE_TRACE_FILE: ::windows_sys::core::HRESULT = -2146881490i32;
pub const OSS_CANT_OPEN_TRACE_FILE: ::windows_sys::core::HRESULT = -2146881509i32;
pub const OSS_CANT_OPEN_TRACE_WINDOW: ::windows_sys::core::HRESULT = -2146881512i32;
pub const OSS_COMPARATOR_CODE_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881499i32;
pub const OSS_COMPARATOR_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881500i32;
pub const OSS_CONSTRAINT_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881501i32;
pub const OSS_CONSTRAINT_VIOLATED: ::windows_sys::core::HRESULT = -2146881519i32;
pub const OSS_COPIER_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881502i32;
pub const OSS_DATA_ERROR: ::windows_sys::core::HRESULT = -2146881531i32;
pub const OSS_FATAL_ERROR: ::windows_sys::core::HRESULT = -2146881518i32;
pub const OSS_INDEFINITE_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146881523i32;
pub const OSS_LIMITED: ::windows_sys::core::HRESULT = -2146881526i32;
pub const OSS_MEM_ERROR: ::windows_sys::core::HRESULT = -2146881522i32;
pub const OSS_MEM_MGR_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881498i32;
pub const OSS_MORE_BUF: ::windows_sys::core::HRESULT = -2146881535i32;
pub const OSS_MORE_INPUT: ::windows_sys::core::HRESULT = -2146881532i32;
pub const OSS_MUTEX_NOT_CREATED: ::windows_sys::core::HRESULT = -2146881491i32;
pub const OSS_NEGATIVE_UINTEGER: ::windows_sys::core::HRESULT = -2146881534i32;
pub const OSS_NULL_FCN: ::windows_sys::core::HRESULT = -2146881515i32;
pub const OSS_NULL_TBL: ::windows_sys::core::HRESULT = -2146881516i32;
pub const OSS_OID_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881510i32;
pub const OSS_OPEN_TYPE_ERROR: ::windows_sys::core::HRESULT = -2146881492i32;
pub const OSS_OUT_MEMORY: ::windows_sys::core::HRESULT = -2146881528i32;
pub const OSS_OUT_OF_RANGE: ::windows_sys::core::HRESULT = -2146881503i32;
pub const OSS_PDU_MISMATCH: ::windows_sys::core::HRESULT = -2146881527i32;
pub const OSS_PDU_RANGE: ::windows_sys::core::HRESULT = -2146881533i32;
pub const OSS_PDV_CODE_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881496i32;
pub const OSS_PDV_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881497i32;
pub const OSS_PER_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881493i32;
pub const OSS_REAL_CODE_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881504i32;
pub const OSS_REAL_DLL_NOT_LINKED: ::windows_sys::core::HRESULT = -2146881505i32;
pub const OSS_TABLE_MISMATCH: ::windows_sys::core::HRESULT = -2146881507i32;
pub const OSS_TOO_LONG: ::windows_sys::core::HRESULT = -2146881520i32;
pub const OSS_TRACE_FILE_ALREADY_OPEN: ::windows_sys::core::HRESULT = -2146881508i32;
pub const OSS_TYPE_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146881506i32;
pub const OSS_UNAVAIL_ENCRULES: ::windows_sys::core::HRESULT = -2146881513i32;
pub const OSS_UNIMPLEMENTED: ::windows_sys::core::HRESULT = -2146881511i32;
pub type PAPCFUNC = ::core::option::Option<unsafe extern "system" fn(parameter: usize)>;
pub const PEERDIST_ERROR_ALREADY_COMPLETED: i32 = 4060i32;
pub const PEERDIST_ERROR_ALREADY_EXISTS: i32 = 4058i32;
pub const PEERDIST_ERROR_ALREADY_INITIALIZED: i32 = 4055i32;
pub const PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO: i32 = 4051i32;
pub const PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED: i32 = 4050i32;
pub const PEERDIST_ERROR_INVALIDATED: i32 = 4057i32;
pub const PEERDIST_ERROR_INVALID_CONFIGURATION: i32 = 4063i32;
pub const PEERDIST_ERROR_MISSING_DATA: i32 = 4052i32;
pub const PEERDIST_ERROR_NOT_INITIALIZED: i32 = 4054i32;
pub const PEERDIST_ERROR_NOT_LICENSED: i32 = 4064i32;
pub const PEERDIST_ERROR_NO_MORE: i32 = 4053i32;
pub const PEERDIST_ERROR_OPERATION_NOTFOUND: i32 = 4059i32;
pub const PEERDIST_ERROR_OUT_OF_BOUNDS: i32 = 4061i32;
pub const PEERDIST_ERROR_SERVICE_UNAVAILABLE: i32 = 4065i32;
pub const PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS: i32 = 4056i32;
pub const PEERDIST_ERROR_TRUST_FAILURE: i32 = 4066i32;
pub const PEERDIST_ERROR_VERSION_UNSUPPORTED: i32 = 4062i32;
pub const PEER_E_ALREADY_LISTENING: ::windows_sys::core::HRESULT = -2140995321i32;
pub const PEER_E_CANNOT_CONVERT_PEER_NAME: ::windows_sys::core::HRESULT = -2140979199i32;
pub const PEER_E_CANNOT_START_SERVICE: ::windows_sys::core::HRESULT = -2140995581i32;
pub const PEER_E_CERT_STORE_CORRUPTED: ::windows_sys::core::HRESULT = -2140993535i32;
pub const PEER_E_CHAIN_TOO_LONG: ::windows_sys::core::HRESULT = -2140993789i32;
pub const PEER_E_CIRCULAR_CHAIN_DETECTED: ::windows_sys::core::HRESULT = -2140993786i32;
pub const PEER_E_CLASSIFIER_TOO_LONG: ::windows_sys::core::HRESULT = -2140995071i32;
pub const PEER_E_CLOUD_NAME_AMBIGUOUS: ::windows_sys::core::HRESULT = -2140991483i32;
pub const PEER_E_CONNECTION_FAILED: ::windows_sys::core::HRESULT = -2140995319i32;
pub const PEER_E_CONNECTION_NOT_AUTHENTICATED: ::windows_sys::core::HRESULT = -2140995318i32;
pub const PEER_E_CONNECTION_NOT_FOUND: ::windows_sys::core::HRESULT = -2140995325i32;
pub const PEER_E_CONNECTION_REFUSED: ::windows_sys::core::HRESULT = -2140995317i32;
pub const PEER_E_CONNECT_SELF: ::windows_sys::core::HRESULT = -2140995322i32;
pub const PEER_E_CONTACT_NOT_FOUND: ::windows_sys::core::HRESULT = -2140971007i32;
pub const PEER_E_DATABASE_ACCESSDENIED: ::windows_sys::core::HRESULT = -2140994814i32;
pub const PEER_E_DATABASE_ALREADY_PRESENT: ::windows_sys::core::HRESULT = -2140994811i32;
pub const PEER_E_DATABASE_NOT_PRESENT: ::windows_sys::core::HRESULT = -2140994810i32;
pub const PEER_E_DBINITIALIZATION_FAILED: ::windows_sys::core::HRESULT = -2140994813i32;
pub const PEER_E_DBNAME_CHANGED: ::windows_sys::core::HRESULT = -2140995567i32;
pub const PEER_E_DEFERRED_VALIDATION: ::windows_sys::core::HRESULT = -2140987344i32;
pub const PEER_E_DUPLICATE_GRAPH: ::windows_sys::core::HRESULT = -2140995566i32;
pub const PEER_E_EVENT_HANDLE_NOT_FOUND: ::windows_sys::core::HRESULT = -2140994303i32;
pub const PEER_E_FW_BLOCKED_BY_POLICY: ::windows_sys::core::HRESULT = -2140966903i32;
pub const PEER_E_FW_BLOCKED_BY_SHIELDS_UP: ::windows_sys::core::HRESULT = -2140966902i32;
pub const PEER_E_FW_DECLINED: ::windows_sys::core::HRESULT = -2140966901i32;
pub const PEER_E_FW_EXCEPTION_DISABLED: ::windows_sys::core::HRESULT = -2140966904i32;
pub const PEER_E_GRAPH_IN_USE: ::windows_sys::core::HRESULT = -2140995563i32;
pub const PEER_E_GRAPH_NOT_READY: ::windows_sys::core::HRESULT = -2140995565i32;
pub const PEER_E_GRAPH_SHUTTING_DOWN: ::windows_sys::core::HRESULT = -2140995564i32;
pub const PEER_E_GROUPS_EXIST: ::windows_sys::core::HRESULT = -2140995068i32;
pub const PEER_E_GROUP_IN_USE: ::windows_sys::core::HRESULT = -2140987246i32;
pub const PEER_E_GROUP_NOT_READY: ::windows_sys::core::HRESULT = -2140987247i32;
pub const PEER_E_IDENTITY_DELETED: ::windows_sys::core::HRESULT = -2140987232i32;
pub const PEER_E_IDENTITY_NOT_FOUND: ::windows_sys::core::HRESULT = -2140994559i32;
pub const PEER_E_INVALID_ADDRESS: ::windows_sys::core::HRESULT = -2140966905i32;
pub const PEER_E_INVALID_ATTRIBUTES: ::windows_sys::core::HRESULT = -2140994046i32;
pub const PEER_E_INVALID_CLASSIFIER: ::windows_sys::core::HRESULT = -2140987296i32;
pub const PEER_E_INVALID_CLASSIFIER_PROPERTY: ::windows_sys::core::HRESULT = -2140987278i32;
pub const PEER_E_INVALID_CREDENTIAL: ::windows_sys::core::HRESULT = -2140987262i32;
pub const PEER_E_INVALID_CREDENTIAL_INFO: ::windows_sys::core::HRESULT = -2140987263i32;
pub const PEER_E_INVALID_DATABASE: ::windows_sys::core::HRESULT = -2140995562i32;
pub const PEER_E_INVALID_FRIENDLY_NAME: ::windows_sys::core::HRESULT = -2140987280i32;
pub const PEER_E_INVALID_GRAPH: ::windows_sys::core::HRESULT = -2140995568i32;
pub const PEER_E_INVALID_GROUP: ::windows_sys::core::HRESULT = -2140987245i32;
pub const PEER_E_INVALID_GROUP_PROPERTIES: ::windows_sys::core::HRESULT = -2140987328i32;
pub const PEER_E_INVALID_PEER_HOST_NAME: ::windows_sys::core::HRESULT = -2140979198i32;
pub const PEER_E_INVALID_PEER_NAME: ::windows_sys::core::HRESULT = -2140987312i32;
pub const PEER_E_INVALID_RECORD: ::windows_sys::core::HRESULT = -2140987376i32;
pub const PEER_E_INVALID_RECORD_EXPIRATION: ::windows_sys::core::HRESULT = -2140987264i32;
pub const PEER_E_INVALID_RECORD_SIZE: ::windows_sys::core::HRESULT = -2140987261i32;
pub const PEER_E_INVALID_ROLE_PROPERTY: ::windows_sys::core::HRESULT = -2140987279i32;
pub const PEER_E_INVALID_SEARCH: ::windows_sys::core::HRESULT = -2140994047i32;
pub const PEER_E_INVALID_TIME_PERIOD: ::windows_sys::core::HRESULT = -2140993787i32;
pub const PEER_E_INVITATION_NOT_TRUSTED: ::windows_sys::core::HRESULT = -2140993791i32;
pub const PEER_E_INVITE_CANCELLED: ::windows_sys::core::HRESULT = -2140966912i32;
pub const PEER_E_INVITE_RESPONSE_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2140966911i32;
pub const PEER_E_IPV6_NOT_INSTALLED: ::windows_sys::core::HRESULT = -2140995583i32;
pub const PEER_E_MAX_RECORD_SIZE_EXCEEDED: ::windows_sys::core::HRESULT = -2140994812i32;
pub const PEER_E_NODE_NOT_FOUND: ::windows_sys::core::HRESULT = -2140995320i32;
pub const PEER_E_NOT_AUTHORIZED: ::windows_sys::core::HRESULT = -2140987360i32;
pub const PEER_E_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2140995582i32;
pub const PEER_E_NOT_LICENSED: ::windows_sys::core::HRESULT = -2140995580i32;
pub const PEER_E_NOT_SIGNED_IN: ::windows_sys::core::HRESULT = -2140966909i32;
pub const PEER_E_NO_CLOUD: ::windows_sys::core::HRESULT = -2140991487i32;
pub const PEER_E_NO_KEY_ACCESS: ::windows_sys::core::HRESULT = -2140995069i32;
pub const PEER_E_NO_MEMBERS_FOUND: ::windows_sys::core::HRESULT = -2140987244i32;
pub const PEER_E_NO_MEMBER_CONNECTIONS: ::windows_sys::core::HRESULT = -2140987243i32;
pub const PEER_E_NO_MORE: ::windows_sys::core::HRESULT = -2140979197i32;
pub const PEER_E_PASSWORD_DOES_NOT_MEET_POLICY: ::windows_sys::core::HRESULT = -2140987359i32;
pub const PEER_E_PNRP_DUPLICATE_PEER_NAME: ::windows_sys::core::HRESULT = -2140979195i32;
pub const PEER_E_PRIVACY_DECLINED: ::windows_sys::core::HRESULT = -2140966908i32;
pub const PEER_E_RECORD_NOT_FOUND: ::windows_sys::core::HRESULT = -2140994815i32;
pub const PEER_E_SERVICE_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2140987231i32;
pub const PEER_E_TIMEOUT: ::windows_sys::core::HRESULT = -2140966907i32;
pub const PEER_E_TOO_MANY_ATTRIBUTES: ::windows_sys::core::HRESULT = -2140995561i32;
pub const PEER_E_TOO_MANY_IDENTITIES: ::windows_sys::core::HRESULT = -2140995070i32;
pub const PEER_E_UNABLE_TO_LISTEN: ::windows_sys::core::HRESULT = -2140987242i32;
pub const PEER_E_UNSUPPORTED_VERSION: ::windows_sys::core::HRESULT = -2140987248i32;
pub const PEER_S_ALREADY_A_MEMBER: ::windows_sys::core::HRESULT = 6488070i32;
pub const PEER_S_ALREADY_CONNECTED: ::windows_sys::core::HRESULT = 6496256i32;
pub const PEER_S_GRAPH_DATA_CREATED: ::windows_sys::core::HRESULT = 6488065i32;
pub const PEER_S_NO_CONNECTIVITY: ::windows_sys::core::HRESULT = 6488069i32;
pub const PEER_S_NO_EVENT_DATA: ::windows_sys::core::HRESULT = 6488066i32;
pub const PEER_S_SUBSCRIPTION_EXISTS: ::windows_sys::core::HRESULT = 6512640i32;
pub const PERSIST_E_NOTSELFSIZING: ::windows_sys::core::HRESULT = -2146762741i32;
pub const PERSIST_E_SIZEDEFINITE: ::windows_sys::core::HRESULT = -2146762743i32;
pub const PERSIST_E_SIZEINDEFINITE: ::windows_sys::core::HRESULT = -2146762742i32;
pub const PLA_E_CABAPI_FAILURE: ::windows_sys::core::HRESULT = -2144337645i32;
pub const PLA_E_CONFLICT_INCL_EXCL_API: ::windows_sys::core::HRESULT = -2144337659i32;
pub const PLA_E_CREDENTIALS_REQUIRED: ::windows_sys::core::HRESULT = -2144337661i32;
pub const PLA_E_DCS_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2144337737i32;
pub const PLA_E_DCS_IN_USE: ::windows_sys::core::HRESULT = -2144337750i32;
pub const PLA_E_DCS_NOT_FOUND: ::windows_sys::core::HRESULT = -2144337918i32;
pub const PLA_E_DCS_NOT_RUNNING: ::windows_sys::core::HRESULT = -2144337660i32;
pub const PLA_E_DCS_SINGLETON_REQUIRED: ::windows_sys::core::HRESULT = -2144337662i32;
pub const PLA_E_DCS_START_WAIT_TIMEOUT: ::windows_sys::core::HRESULT = -2144337654i32;
pub const PLA_E_DC_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2144337655i32;
pub const PLA_E_DC_START_WAIT_TIMEOUT: ::windows_sys::core::HRESULT = -2144337653i32;
pub const PLA_E_EXE_ALREADY_CONFIGURED: ::windows_sys::core::HRESULT = -2144337657i32;
pub const PLA_E_EXE_FULL_PATH_REQUIRED: ::windows_sys::core::HRESULT = -2144337650i32;
pub const PLA_E_EXE_PATH_NOT_VALID: ::windows_sys::core::HRESULT = -2144337656i32;
pub const PLA_E_INVALID_SESSION_NAME: ::windows_sys::core::HRESULT = -2144337649i32;
pub const PLA_E_NETWORK_EXE_NOT_VALID: ::windows_sys::core::HRESULT = -2144337658i32;
pub const PLA_E_NO_DUPLICATES: ::windows_sys::core::HRESULT = -2144337651i32;
pub const PLA_E_NO_MIN_DISK: ::windows_sys::core::HRESULT = -2144337808i32;
pub const PLA_E_PLA_CHANNEL_NOT_ENABLED: ::windows_sys::core::HRESULT = -2144337648i32;
pub const PLA_E_PROPERTY_CONFLICT: ::windows_sys::core::HRESULT = -2144337663i32;
pub const PLA_E_REPORT_WAIT_TIMEOUT: ::windows_sys::core::HRESULT = -2144337652i32;
pub const PLA_E_RULES_MANAGER_FAILED: ::windows_sys::core::HRESULT = -2144337646i32;
pub const PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED: ::windows_sys::core::HRESULT = -2144337647i32;
pub const PLA_E_TOO_MANY_FOLDERS: ::windows_sys::core::HRESULT = -2144337851i32;
pub const PLA_S_PROPERTY_IGNORED: ::windows_sys::core::HRESULT = 3145984i32;
#[repr(C)]
pub struct POINT {
pub x: i32,
pub y: i32,
}
impl ::core::marker::Copy for POINT {}
impl ::core::clone::Clone for POINT {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct POINTL {
pub x: i32,
pub y: i32,
}
impl ::core::marker::Copy for POINTL {}
impl ::core::clone::Clone for POINTL {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct POINTS {
pub x: i16,
pub y: i16,
}
impl ::core::marker::Copy for POINTS {}
impl ::core::clone::Clone for POINTS {
fn clone(&self) -> Self {
*self
}
}
pub const PRESENTATION_ERROR_LOST: ::windows_sys::core::HRESULT = -2004811775i32;
pub type PROC = ::core::option::Option<unsafe extern "system" fn() -> isize>;
pub type PSID = isize;
pub const PSINK_E_INDEX_ONLY: ::windows_sys::core::HRESULT = -2147215471i32;
pub const PSINK_E_LARGE_ATTACHMENT: ::windows_sys::core::HRESULT = -2147215470i32;
pub const PSINK_E_QUERY_ONLY: ::windows_sys::core::HRESULT = -2147215472i32;
pub const PSINK_S_LARGE_WORD: ::windows_sys::core::HRESULT = 268179i32;
pub type PSTR = *mut u8;
pub type PWSTR = *mut u16;
pub const QPARSE_E_EXPECTING_BRACE: ::windows_sys::core::HRESULT = -2147215770i32;
pub const QPARSE_E_EXPECTING_COMMA: ::windows_sys::core::HRESULT = -2147215759i32;
pub const QPARSE_E_EXPECTING_CURRENCY: ::windows_sys::core::HRESULT = -2147215772i32;
pub const QPARSE_E_EXPECTING_DATE: ::windows_sys::core::HRESULT = -2147215773i32;
pub const QPARSE_E_EXPECTING_EOS: ::windows_sys::core::HRESULT = -2147215760i32;
pub const QPARSE_E_EXPECTING_GUID: ::windows_sys::core::HRESULT = -2147215771i32;
pub const QPARSE_E_EXPECTING_INTEGER: ::windows_sys::core::HRESULT = -2147215775i32;
pub const QPARSE_E_EXPECTING_PAREN: ::windows_sys::core::HRESULT = -2147215769i32;
pub const QPARSE_E_EXPECTING_PHRASE: ::windows_sys::core::HRESULT = -2147215766i32;
pub const QPARSE_E_EXPECTING_PROPERTY: ::windows_sys::core::HRESULT = -2147215768i32;
pub const QPARSE_E_EXPECTING_REAL: ::windows_sys::core::HRESULT = -2147215774i32;
pub const QPARSE_E_EXPECTING_REGEX: ::windows_sys::core::HRESULT = -2147215764i32;
pub const QPARSE_E_EXPECTING_REGEX_PROPERTY: ::windows_sys::core::HRESULT = -2147215763i32;
pub const QPARSE_E_INVALID_GROUPING: ::windows_sys::core::HRESULT = -2147215753i32;
pub const QPARSE_E_INVALID_LITERAL: ::windows_sys::core::HRESULT = -2147215762i32;
pub const QPARSE_E_INVALID_QUERY: ::windows_sys::core::HRESULT = -2147215750i32;
pub const QPARSE_E_INVALID_RANKMETHOD: ::windows_sys::core::HRESULT = -2147215749i32;
pub const QPARSE_E_INVALID_SORT_ORDER: ::windows_sys::core::HRESULT = -2147215755i32;
pub const QPARSE_E_NOT_YET_IMPLEMENTED: ::windows_sys::core::HRESULT = -2147215767i32;
pub const QPARSE_E_NO_SUCH_PROPERTY: ::windows_sys::core::HRESULT = -2147215761i32;
pub const QPARSE_E_NO_SUCH_SORT_PROPERTY: ::windows_sys::core::HRESULT = -2147215756i32;
pub const QPARSE_E_UNEXPECTED_EOS: ::windows_sys::core::HRESULT = -2147215758i32;
pub const QPARSE_E_UNEXPECTED_NOT: ::windows_sys::core::HRESULT = -2147215776i32;
pub const QPARSE_E_UNSUPPORTED_PROPERTY_TYPE: ::windows_sys::core::HRESULT = -2147215765i32;
pub const QPARSE_E_WEIGHT_OUT_OF_RANGE: ::windows_sys::core::HRESULT = -2147215757i32;
pub const QPLIST_E_BAD_GUID: ::windows_sys::core::HRESULT = -2147215783i32;
pub const QPLIST_E_BYREF_USED_WITHOUT_PTRTYPE: ::windows_sys::core::HRESULT = -2147215778i32;
pub const QPLIST_E_CANT_OPEN_FILE: ::windows_sys::core::HRESULT = -2147215791i32;
pub const QPLIST_E_CANT_SET_PROPERTY: ::windows_sys::core::HRESULT = -2147215781i32;
pub const QPLIST_E_DUPLICATE: ::windows_sys::core::HRESULT = -2147215780i32;
pub const QPLIST_E_EXPECTING_CLOSE_PAREN: ::windows_sys::core::HRESULT = -2147215785i32;
pub const QPLIST_E_EXPECTING_GUID: ::windows_sys::core::HRESULT = -2147215784i32;
pub const QPLIST_E_EXPECTING_INTEGER: ::windows_sys::core::HRESULT = -2147215786i32;
pub const QPLIST_E_EXPECTING_NAME: ::windows_sys::core::HRESULT = -2147215789i32;
pub const QPLIST_E_EXPECTING_PROP_SPEC: ::windows_sys::core::HRESULT = -2147215782i32;
pub const QPLIST_E_EXPECTING_TYPE: ::windows_sys::core::HRESULT = -2147215788i32;
pub const QPLIST_E_READ_ERROR: ::windows_sys::core::HRESULT = -2147215790i32;
pub const QPLIST_E_UNRECOGNIZED_TYPE: ::windows_sys::core::HRESULT = -2147215787i32;
pub const QPLIST_E_VECTORBYREF_USED_ALONE: ::windows_sys::core::HRESULT = -2147215779i32;
pub const QPLIST_S_DUPLICATE: ::windows_sys::core::HRESULT = 267897i32;
pub const QUERY_E_ALLNOISE: ::windows_sys::core::HRESULT = -2147215867i32;
pub const QUERY_E_DIR_ON_REMOVABLE_DRIVE: ::windows_sys::core::HRESULT = -2147215861i32;
pub const QUERY_E_DUPLICATE_OUTPUT_COLUMN: ::windows_sys::core::HRESULT = -2147215864i32;
pub const QUERY_E_FAILED: ::windows_sys::core::HRESULT = -2147215872i32;
pub const QUERY_E_INVALIDCATEGORIZE: ::windows_sys::core::HRESULT = -2147215868i32;
pub const QUERY_E_INVALIDQUERY: ::windows_sys::core::HRESULT = -2147215871i32;
pub const QUERY_E_INVALIDRESTRICTION: ::windows_sys::core::HRESULT = -2147215870i32;
pub const QUERY_E_INVALIDSORT: ::windows_sys::core::HRESULT = -2147215869i32;
pub const QUERY_E_INVALID_DIRECTORY: ::windows_sys::core::HRESULT = -2147215862i32;
pub const QUERY_E_INVALID_OUTPUT_COLUMN: ::windows_sys::core::HRESULT = -2147215863i32;
pub const QUERY_E_TIMEDOUT: ::windows_sys::core::HRESULT = -2147215865i32;
pub const QUERY_E_TOOCOMPLEX: ::windows_sys::core::HRESULT = -2147215866i32;
pub const QUERY_S_NO_QUERY: ::windows_sys::core::HRESULT = -2147215860i32;
pub const QUTIL_E_CANT_CONVERT_VROOT: ::windows_sys::core::HRESULT = -2147215754i32;
pub const QUTIL_E_INVALID_CODEPAGE: ::windows_sys::core::HRESULT = -1073473928i32;
#[repr(C)]
pub struct RECT {
pub left: i32,
pub top: i32,
pub right: i32,
pub bottom: i32,
}
impl ::core::marker::Copy for RECT {}
impl ::core::clone::Clone for RECT {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct RECTL {
pub left: i32,
pub top: i32,
pub right: i32,
pub bottom: i32,
}
impl ::core::marker::Copy for RECTL {}
impl ::core::clone::Clone for RECTL {
fn clone(&self) -> Self {
*self
}
}
pub const REGDB_E_BADTHREADINGMODEL: ::windows_sys::core::HRESULT = -2147221162i32;
pub const REGDB_E_CLASSNOTREG: ::windows_sys::core::HRESULT = -2147221164i32;
pub const REGDB_E_FIRST: i32 = -2147221168i32;
pub const REGDB_E_IIDNOTREG: ::windows_sys::core::HRESULT = -2147221163i32;
pub const REGDB_E_INVALIDVALUE: ::windows_sys::core::HRESULT = -2147221165i32;
pub const REGDB_E_KEYMISSING: ::windows_sys::core::HRESULT = -2147221166i32;
pub const REGDB_E_LAST: i32 = -2147221153i32;
pub const REGDB_E_PACKAGEPOLICYVIOLATION: ::windows_sys::core::HRESULT = -2147221161i32;
pub const REGDB_E_READREGDB: ::windows_sys::core::HRESULT = -2147221168i32;
pub const REGDB_E_WRITEREGDB: ::windows_sys::core::HRESULT = -2147221167i32;
pub const REGDB_S_FIRST: i32 = 262480i32;
pub const REGDB_S_LAST: i32 = 262495i32;
pub const ROUTEBASE: u32 = 900u32;
pub const ROUTEBASEEND: u32 = 957u32;
pub const RO_E_BLOCKED_CROSS_ASTA_CALL: ::windows_sys::core::HRESULT = -2147483617i32;
pub const RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER: ::windows_sys::core::HRESULT = -2147483616i32;
pub const RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER: ::windows_sys::core::HRESULT = -2147483615i32;
pub const RO_E_CHANGE_NOTIFICATION_IN_PROGRESS: ::windows_sys::core::HRESULT = -2147483627i32;
pub const RO_E_CLOSED: ::windows_sys::core::HRESULT = -2147483629i32;
pub const RO_E_COMMITTED: ::windows_sys::core::HRESULT = -2147483618i32;
pub const RO_E_ERROR_STRING_NOT_FOUND: ::windows_sys::core::HRESULT = -2147483626i32;
pub const RO_E_EXCLUSIVE_WRITE: ::windows_sys::core::HRESULT = -2147483628i32;
pub const RO_E_INVALID_METADATA_FILE: ::windows_sys::core::HRESULT = -2147483630i32;
pub const RO_E_METADATA_INVALID_TYPE_FORMAT: ::windows_sys::core::HRESULT = -2147483631i32;
pub const RO_E_METADATA_NAME_IS_NAMESPACE: ::windows_sys::core::HRESULT = -2147483632i32;
pub const RO_E_METADATA_NAME_NOT_FOUND: ::windows_sys::core::HRESULT = -2147483633i32;
pub const RO_E_MUST_BE_AGILE: ::windows_sys::core::HRESULT = -2147483620i32;
pub const RO_E_UNSUPPORTED_FROM_MTA: ::windows_sys::core::HRESULT = -2147483619i32;
pub const RPC_E_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2147417829i32;
pub const RPC_E_ATTEMPTED_MULTITHREAD: ::windows_sys::core::HRESULT = -2147417854i32;
pub const RPC_E_CALL_CANCELED: ::windows_sys::core::HRESULT = -2147418110i32;
pub const RPC_E_CALL_COMPLETE: ::windows_sys::core::HRESULT = -2147417833i32;
pub const RPC_E_CALL_REJECTED: ::windows_sys::core::HRESULT = -2147418111i32;
pub const RPC_E_CANTCALLOUT_AGAIN: ::windows_sys::core::HRESULT = -2147418095i32;
pub const RPC_E_CANTCALLOUT_INASYNCCALL: ::windows_sys::core::HRESULT = -2147418108i32;
pub const RPC_E_CANTCALLOUT_INEXTERNALCALL: ::windows_sys::core::HRESULT = -2147418107i32;
pub const RPC_E_CANTCALLOUT_ININPUTSYNCCALL: ::windows_sys::core::HRESULT = -2147417843i32;
pub const RPC_E_CANTPOST_INSENDCALL: ::windows_sys::core::HRESULT = -2147418109i32;
pub const RPC_E_CANTTRANSMIT_CALL: ::windows_sys::core::HRESULT = -2147418102i32;
pub const RPC_E_CHANGED_MODE: ::windows_sys::core::HRESULT = -2147417850i32;
pub const RPC_E_CLIENT_CANTMARSHAL_DATA: ::windows_sys::core::HRESULT = -2147418101i32;
pub const RPC_E_CLIENT_CANTUNMARSHAL_DATA: ::windows_sys::core::HRESULT = -2147418100i32;
pub const RPC_E_CLIENT_DIED: ::windows_sys::core::HRESULT = -2147418104i32;
pub const RPC_E_CONNECTION_TERMINATED: ::windows_sys::core::HRESULT = -2147418106i32;
pub const RPC_E_DISCONNECTED: ::windows_sys::core::HRESULT = -2147417848i32;
pub const RPC_E_FAULT: ::windows_sys::core::HRESULT = -2147417852i32;
pub const RPC_E_FULLSIC_REQUIRED: ::windows_sys::core::HRESULT = -2147417823i32;
pub const RPC_E_INVALIDMETHOD: ::windows_sys::core::HRESULT = -2147417849i32;
pub const RPC_E_INVALID_CALLDATA: ::windows_sys::core::HRESULT = -2147417844i32;
pub const RPC_E_INVALID_DATA: ::windows_sys::core::HRESULT = -2147418097i32;
pub const RPC_E_INVALID_DATAPACKET: ::windows_sys::core::HRESULT = -2147418103i32;
pub const RPC_E_INVALID_EXTENSION: ::windows_sys::core::HRESULT = -2147417838i32;
pub const RPC_E_INVALID_HEADER: ::windows_sys::core::HRESULT = -2147417839i32;
pub const RPC_E_INVALID_IPID: ::windows_sys::core::HRESULT = -2147417837i32;
pub const RPC_E_INVALID_OBJECT: ::windows_sys::core::HRESULT = -2147417836i32;
pub const RPC_E_INVALID_OBJREF: ::windows_sys::core::HRESULT = -2147417827i32;
pub const RPC_E_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2147418096i32;
pub const RPC_E_INVALID_STD_NAME: ::windows_sys::core::HRESULT = -2147417822i32;
pub const RPC_E_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2147417853i32;
pub const RPC_E_NO_CONTEXT: ::windows_sys::core::HRESULT = -2147417826i32;
pub const RPC_E_NO_GOOD_SECURITY_PACKAGES: ::windows_sys::core::HRESULT = -2147417830i32;
pub const RPC_E_NO_SYNC: ::windows_sys::core::HRESULT = -2147417824i32;
pub const RPC_E_OUT_OF_RESOURCES: ::windows_sys::core::HRESULT = -2147417855i32;
pub const RPC_E_REMOTE_DISABLED: ::windows_sys::core::HRESULT = -2147417828i32;
pub const RPC_E_RETRY: ::windows_sys::core::HRESULT = -2147417847i32;
pub const RPC_E_SERVERCALL_REJECTED: ::windows_sys::core::HRESULT = -2147417845i32;
pub const RPC_E_SERVERCALL_RETRYLATER: ::windows_sys::core::HRESULT = -2147417846i32;
pub const RPC_E_SERVERFAULT: ::windows_sys::core::HRESULT = -2147417851i32;
pub const RPC_E_SERVER_CANTMARSHAL_DATA: ::windows_sys::core::HRESULT = -2147418099i32;
pub const RPC_E_SERVER_CANTUNMARSHAL_DATA: ::windows_sys::core::HRESULT = -2147418098i32;
pub const RPC_E_SERVER_DIED: ::windows_sys::core::HRESULT = -2147418105i32;
pub const RPC_E_SERVER_DIED_DNE: ::windows_sys::core::HRESULT = -2147418094i32;
pub const RPC_E_SYS_CALL_FAILED: ::windows_sys::core::HRESULT = -2147417856i32;
pub const RPC_E_THREAD_NOT_INIT: ::windows_sys::core::HRESULT = -2147417841i32;
pub const RPC_E_TIMEOUT: ::windows_sys::core::HRESULT = -2147417825i32;
pub const RPC_E_TOO_LATE: ::windows_sys::core::HRESULT = -2147417831i32;
pub const RPC_E_UNEXPECTED: ::windows_sys::core::HRESULT = -2147352577i32;
pub const RPC_E_UNSECURE_CALL: ::windows_sys::core::HRESULT = -2147417832i32;
pub const RPC_E_VERSION_MISMATCH: ::windows_sys::core::HRESULT = -2147417840i32;
pub const RPC_E_WRONG_THREAD: ::windows_sys::core::HRESULT = -2147417842i32;
pub const RPC_NT_ADDRESS_ERROR: NTSTATUS = -1073610683i32;
pub const RPC_NT_ALREADY_LISTENING: NTSTATUS = -1073610738i32;
pub const RPC_NT_ALREADY_REGISTERED: NTSTATUS = -1073610740i32;
pub const RPC_NT_BAD_STUB_DATA: NTSTATUS = -1073545204i32;
pub const RPC_NT_BINDING_HAS_NO_AUTH: NTSTATUS = -1073610705i32;
pub const RPC_NT_BINDING_INCOMPLETE: NTSTATUS = -1073610671i32;
pub const RPC_NT_BYTE_COUNT_TOO_SMALL: NTSTATUS = -1073545205i32;
pub const RPC_NT_CALL_CANCELLED: NTSTATUS = -1073610672i32;
pub const RPC_NT_CALL_FAILED: NTSTATUS = -1073610725i32;
pub const RPC_NT_CALL_FAILED_DNE: NTSTATUS = -1073610724i32;
pub const RPC_NT_CALL_IN_PROGRESS: NTSTATUS = -1073610679i32;
pub const RPC_NT_CANNOT_SUPPORT: NTSTATUS = -1073610687i32;
pub const RPC_NT_CANT_CREATE_ENDPOINT: NTSTATUS = -1073610731i32;
pub const RPC_NT_COMM_FAILURE: NTSTATUS = -1073610670i32;
pub const RPC_NT_COOKIE_AUTH_FAILED: NTSTATUS = -1073610651i32;
pub const RPC_NT_DUPLICATE_ENDPOINT: NTSTATUS = -1073610711i32;
pub const RPC_NT_ENTRY_ALREADY_EXISTS: NTSTATUS = -1073610691i32;
pub const RPC_NT_ENTRY_NOT_FOUND: NTSTATUS = -1073610690i32;
pub const RPC_NT_ENUM_VALUE_OUT_OF_RANGE: NTSTATUS = -1073545206i32;
pub const RPC_NT_FP_DIV_ZERO: NTSTATUS = -1073610682i32;
pub const RPC_NT_FP_OVERFLOW: NTSTATUS = -1073610680i32;
pub const RPC_NT_FP_UNDERFLOW: NTSTATUS = -1073610681i32;
pub const RPC_NT_GROUP_MEMBER_NOT_FOUND: NTSTATUS = -1073610677i32;
pub const RPC_NT_INCOMPLETE_NAME: NTSTATUS = -1073610696i32;
pub const RPC_NT_INTERFACE_NOT_FOUND: NTSTATUS = -1073610692i32;
pub const RPC_NT_INTERNAL_ERROR: NTSTATUS = -1073610685i32;
pub const RPC_NT_INVALID_ASYNC_CALL: NTSTATUS = -1073610653i32;
pub const RPC_NT_INVALID_ASYNC_HANDLE: NTSTATUS = -1073610654i32;
pub const RPC_NT_INVALID_AUTH_IDENTITY: NTSTATUS = -1073610702i32;
pub const RPC_NT_INVALID_BINDING: NTSTATUS = -1073610749i32;
pub const RPC_NT_INVALID_BOUND: NTSTATUS = -1073610717i32;
pub const RPC_NT_INVALID_ENDPOINT_FORMAT: NTSTATUS = -1073610745i32;
pub const RPC_NT_INVALID_ES_ACTION: NTSTATUS = -1073545127i32;
pub const RPC_NT_INVALID_NAF_ID: NTSTATUS = -1073610688i32;
pub const RPC_NT_INVALID_NAME_SYNTAX: NTSTATUS = -1073610715i32;
pub const RPC_NT_INVALID_NETWORK_OPTIONS: NTSTATUS = -1073610727i32;
pub const RPC_NT_INVALID_NET_ADDR: NTSTATUS = -1073610744i32;
pub const RPC_NT_INVALID_OBJECT: NTSTATUS = -1073610675i32;
pub const RPC_NT_INVALID_PIPE_OBJECT: NTSTATUS = -1073545124i32;
pub const RPC_NT_INVALID_PIPE_OPERATION: NTSTATUS = -1073545123i32;
pub const RPC_NT_INVALID_RPC_PROTSEQ: NTSTATUS = -1073610747i32;
pub const RPC_NT_INVALID_STRING_BINDING: NTSTATUS = -1073610751i32;
pub const RPC_NT_INVALID_STRING_UUID: NTSTATUS = -1073610746i32;
pub const RPC_NT_INVALID_TAG: NTSTATUS = -1073610718i32;
pub const RPC_NT_INVALID_TIMEOUT: NTSTATUS = -1073610742i32;
pub const RPC_NT_INVALID_VERS_OPTION: NTSTATUS = -1073610695i32;
pub const RPC_NT_MAX_CALLS_TOO_SMALL: NTSTATUS = -1073610709i32;
pub const RPC_NT_NAME_SERVICE_UNAVAILABLE: NTSTATUS = -1073610689i32;
pub const RPC_NT_NOTHING_TO_EXPORT: NTSTATUS = -1073610697i32;
pub const RPC_NT_NOT_ALL_OBJS_UNEXPORTED: NTSTATUS = -1073610693i32;
pub const RPC_NT_NOT_CANCELLED: NTSTATUS = -1073610664i32;
pub const RPC_NT_NOT_LISTENING: NTSTATUS = -1073610736i32;
pub const RPC_NT_NOT_RPC_ERROR: NTSTATUS = -1073610667i32;
pub const RPC_NT_NO_BINDINGS: NTSTATUS = -1073610733i32;
pub const RPC_NT_NO_CALL_ACTIVE: NTSTATUS = -1073610726i32;
pub const RPC_NT_NO_CONTEXT_AVAILABLE: NTSTATUS = -1073610686i32;
pub const RPC_NT_NO_ENDPOINT_FOUND: NTSTATUS = -1073610743i32;
pub const RPC_NT_NO_ENTRY_NAME: NTSTATUS = -1073610716i32;
pub const RPC_NT_NO_INTERFACES: NTSTATUS = -1073610673i32;
pub const RPC_NT_NO_MORE_BINDINGS: NTSTATUS = -1073610678i32;
pub const RPC_NT_NO_MORE_ENTRIES: NTSTATUS = -1073545215i32;
pub const RPC_NT_NO_MORE_MEMBERS: NTSTATUS = -1073610694i32;
pub const RPC_NT_NO_PRINC_NAME: NTSTATUS = -1073610668i32;
pub const RPC_NT_NO_PROTSEQS: NTSTATUS = -1073610732i32;
pub const RPC_NT_NO_PROTSEQS_REGISTERED: NTSTATUS = -1073610737i32;
pub const RPC_NT_NULL_REF_POINTER: NTSTATUS = -1073545207i32;
pub const RPC_NT_OBJECT_NOT_FOUND: NTSTATUS = -1073610741i32;
pub const RPC_NT_OUT_OF_RESOURCES: NTSTATUS = -1073610730i32;
pub const RPC_NT_PIPE_CLOSED: NTSTATUS = -1073545121i32;
pub const RPC_NT_PIPE_DISCIPLINE_ERROR: NTSTATUS = -1073545120i32;
pub const RPC_NT_PIPE_EMPTY: NTSTATUS = -1073545119i32;
pub const RPC_NT_PROCNUM_OUT_OF_RANGE: NTSTATUS = -1073610706i32;
pub const RPC_NT_PROTOCOL_ERROR: NTSTATUS = -1073610723i32;
pub const RPC_NT_PROTSEQ_NOT_FOUND: NTSTATUS = -1073610707i32;
pub const RPC_NT_PROTSEQ_NOT_SUPPORTED: NTSTATUS = -1073610748i32;
pub const RPC_NT_PROXY_ACCESS_DENIED: NTSTATUS = -1073610652i32;
pub const RPC_NT_SEC_PKG_ERROR: NTSTATUS = -1073610665i32;
pub const RPC_NT_SEND_INCOMPLETE: NTSTATUS = 1073873071i32;
pub const RPC_NT_SERVER_TOO_BUSY: NTSTATUS = -1073610728i32;
pub const RPC_NT_SERVER_UNAVAILABLE: NTSTATUS = -1073610729i32;
pub const RPC_NT_SS_CANNOT_GET_CALL_HANDLE: NTSTATUS = -1073545208i32;
pub const RPC_NT_SS_CHAR_TRANS_OPEN_FAIL: NTSTATUS = -1073545214i32;
pub const RPC_NT_SS_CHAR_TRANS_SHORT_FILE: NTSTATUS = -1073545213i32;
pub const RPC_NT_SS_CONTEXT_DAMAGED: NTSTATUS = -1073545210i32;
pub const RPC_NT_SS_CONTEXT_MISMATCH: NTSTATUS = -1073545211i32;
pub const RPC_NT_SS_HANDLES_MISMATCH: NTSTATUS = -1073545209i32;
pub const RPC_NT_SS_IN_NULL_CONTEXT: NTSTATUS = -1073545212i32;
pub const RPC_NT_STRING_TOO_LONG: NTSTATUS = -1073610708i32;
pub const RPC_NT_TYPE_ALREADY_REGISTERED: NTSTATUS = -1073610739i32;
pub const RPC_NT_UNKNOWN_AUTHN_LEVEL: NTSTATUS = -1073610703i32;
pub const RPC_NT_UNKNOWN_AUTHN_SERVICE: NTSTATUS = -1073610704i32;
pub const RPC_NT_UNKNOWN_AUTHN_TYPE: NTSTATUS = -1073610710i32;
pub const RPC_NT_UNKNOWN_AUTHZ_SERVICE: NTSTATUS = -1073610701i32;
pub const RPC_NT_UNKNOWN_IF: NTSTATUS = -1073610734i32;
pub const RPC_NT_UNKNOWN_MGR_TYPE: NTSTATUS = -1073610735i32;
pub const RPC_NT_UNSUPPORTED_AUTHN_LEVEL: NTSTATUS = -1073610669i32;
pub const RPC_NT_UNSUPPORTED_NAME_SYNTAX: NTSTATUS = -1073610714i32;
pub const RPC_NT_UNSUPPORTED_TRANS_SYN: NTSTATUS = -1073610721i32;
pub const RPC_NT_UNSUPPORTED_TYPE: NTSTATUS = -1073610719i32;
pub const RPC_NT_UUID_LOCAL_ONLY: NTSTATUS = 1073872982i32;
pub const RPC_NT_UUID_NO_ADDRESS: NTSTATUS = -1073610712i32;
pub const RPC_NT_WRONG_ES_VERSION: NTSTATUS = -1073545126i32;
pub const RPC_NT_WRONG_KIND_OF_BINDING: NTSTATUS = -1073610750i32;
pub const RPC_NT_WRONG_PIPE_VERSION: NTSTATUS = -1073545122i32;
pub const RPC_NT_WRONG_STUB_VERSION: NTSTATUS = -1073545125i32;
pub const RPC_NT_ZERO_DIVIDE: NTSTATUS = -1073610684i32;
pub const RPC_S_CALLPENDING: ::windows_sys::core::HRESULT = -2147417835i32;
pub const RPC_S_WAITONTIMER: ::windows_sys::core::HRESULT = -2147417834i32;
pub const RPC_X_BAD_STUB_DATA: i32 = 1783i32;
pub const RPC_X_BYTE_COUNT_TOO_SMALL: i32 = 1782i32;
pub const RPC_X_ENUM_VALUE_OUT_OF_RANGE: i32 = 1781i32;
pub const RPC_X_INVALID_ES_ACTION: i32 = 1827i32;
pub const RPC_X_INVALID_PIPE_OBJECT: i32 = 1830i32;
pub const RPC_X_NO_MORE_ENTRIES: i32 = 1772i32;
pub const RPC_X_NULL_REF_POINTER: i32 = 1780i32;
pub const RPC_X_PIPE_CLOSED: i32 = 1916i32;
pub const RPC_X_PIPE_DISCIPLINE_ERROR: i32 = 1917i32;
pub const RPC_X_PIPE_EMPTY: i32 = 1918i32;
pub const RPC_X_SS_CANNOT_GET_CALL_HANDLE: i32 = 1779i32;
pub const RPC_X_SS_CHAR_TRANS_OPEN_FAIL: i32 = 1773i32;
pub const RPC_X_SS_CHAR_TRANS_SHORT_FILE: i32 = 1774i32;
pub const RPC_X_SS_CONTEXT_DAMAGED: i32 = 1777i32;
pub const RPC_X_SS_HANDLES_MISMATCH: i32 = 1778i32;
pub const RPC_X_SS_IN_NULL_CONTEXT: i32 = 1775i32;
pub const RPC_X_WRONG_ES_VERSION: i32 = 1828i32;
pub const RPC_X_WRONG_PIPE_ORDER: i32 = 1831i32;
pub const RPC_X_WRONG_PIPE_VERSION: i32 = 1832i32;
pub const RPC_X_WRONG_STUB_VERSION: i32 = 1829i32;
pub const SCARD_E_BAD_SEEK: ::windows_sys::core::HRESULT = -2146435031i32;
pub const SCARD_E_CANCELLED: ::windows_sys::core::HRESULT = -2146435070i32;
pub const SCARD_E_CANT_DISPOSE: ::windows_sys::core::HRESULT = -2146435058i32;
pub const SCARD_E_CARD_UNSUPPORTED: ::windows_sys::core::HRESULT = -2146435044i32;
pub const SCARD_E_CERTIFICATE_UNAVAILABLE: ::windows_sys::core::HRESULT = -2146435027i32;
pub const SCARD_E_COMM_DATA_LOST: ::windows_sys::core::HRESULT = -2146435025i32;
pub const SCARD_E_DIR_NOT_FOUND: ::windows_sys::core::HRESULT = -2146435037i32;
pub const SCARD_E_DUPLICATE_READER: ::windows_sys::core::HRESULT = -2146435045i32;
pub const SCARD_E_FILE_NOT_FOUND: ::windows_sys::core::HRESULT = -2146435036i32;
pub const SCARD_E_ICC_CREATEORDER: ::windows_sys::core::HRESULT = -2146435039i32;
pub const SCARD_E_ICC_INSTALLATION: ::windows_sys::core::HRESULT = -2146435040i32;
pub const SCARD_E_INSUFFICIENT_BUFFER: ::windows_sys::core::HRESULT = -2146435064i32;
pub const SCARD_E_INVALID_ATR: ::windows_sys::core::HRESULT = -2146435051i32;
pub const SCARD_E_INVALID_CHV: ::windows_sys::core::HRESULT = -2146435030i32;
pub const SCARD_E_INVALID_HANDLE: ::windows_sys::core::HRESULT = -2146435069i32;
pub const SCARD_E_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2146435068i32;
pub const SCARD_E_INVALID_TARGET: ::windows_sys::core::HRESULT = -2146435067i32;
pub const SCARD_E_INVALID_VALUE: ::windows_sys::core::HRESULT = -2146435055i32;
pub const SCARD_E_NOT_READY: ::windows_sys::core::HRESULT = -2146435056i32;
pub const SCARD_E_NOT_TRANSACTED: ::windows_sys::core::HRESULT = -2146435050i32;
pub const SCARD_E_NO_ACCESS: ::windows_sys::core::HRESULT = -2146435033i32;
pub const SCARD_E_NO_DIR: ::windows_sys::core::HRESULT = -2146435035i32;
pub const SCARD_E_NO_FILE: ::windows_sys::core::HRESULT = -2146435034i32;
pub const SCARD_E_NO_KEY_CONTAINER: ::windows_sys::core::HRESULT = -2146435024i32;
pub const SCARD_E_NO_MEMORY: ::windows_sys::core::HRESULT = -2146435066i32;
pub const SCARD_E_NO_PIN_CACHE: ::windows_sys::core::HRESULT = -2146435021i32;
pub const SCARD_E_NO_READERS_AVAILABLE: ::windows_sys::core::HRESULT = -2146435026i32;
pub const SCARD_E_NO_SERVICE: ::windows_sys::core::HRESULT = -2146435043i32;
pub const SCARD_E_NO_SMARTCARD: ::windows_sys::core::HRESULT = -2146435060i32;
pub const SCARD_E_NO_SUCH_CERTIFICATE: ::windows_sys::core::HRESULT = -2146435028i32;
pub const SCARD_E_PCI_TOO_SMALL: ::windows_sys::core::HRESULT = -2146435047i32;
pub const SCARD_E_PIN_CACHE_EXPIRED: ::windows_sys::core::HRESULT = -2146435022i32;
pub const SCARD_E_PROTO_MISMATCH: ::windows_sys::core::HRESULT = -2146435057i32;
pub const SCARD_E_READER_UNAVAILABLE: ::windows_sys::core::HRESULT = -2146435049i32;
pub const SCARD_E_READER_UNSUPPORTED: ::windows_sys::core::HRESULT = -2146435046i32;
pub const SCARD_E_READ_ONLY_CARD: ::windows_sys::core::HRESULT = -2146435020i32;
pub const SCARD_E_SERVER_TOO_BUSY: ::windows_sys::core::HRESULT = -2146435023i32;
pub const SCARD_E_SERVICE_STOPPED: ::windows_sys::core::HRESULT = -2146435042i32;
pub const SCARD_E_SHARING_VIOLATION: ::windows_sys::core::HRESULT = -2146435061i32;
pub const SCARD_E_SYSTEM_CANCELLED: ::windows_sys::core::HRESULT = -2146435054i32;
pub const SCARD_E_TIMEOUT: ::windows_sys::core::HRESULT = -2146435062i32;
pub const SCARD_E_UNEXPECTED: ::windows_sys::core::HRESULT = -2146435041i32;
pub const SCARD_E_UNKNOWN_CARD: ::windows_sys::core::HRESULT = -2146435059i32;
pub const SCARD_E_UNKNOWN_READER: ::windows_sys::core::HRESULT = -2146435063i32;
pub const SCARD_E_UNKNOWN_RES_MNG: ::windows_sys::core::HRESULT = -2146435029i32;
pub const SCARD_E_UNSUPPORTED_FEATURE: ::windows_sys::core::HRESULT = -2146435038i32;
pub const SCARD_E_WRITE_TOO_MANY: ::windows_sys::core::HRESULT = -2146435032i32;
pub const SCARD_F_COMM_ERROR: ::windows_sys::core::HRESULT = -2146435053i32;
pub const SCARD_F_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2146435071i32;
pub const SCARD_F_UNKNOWN_ERROR: ::windows_sys::core::HRESULT = -2146435052i32;
pub const SCARD_F_WAITED_TOO_LONG: ::windows_sys::core::HRESULT = -2146435065i32;
pub const SCARD_P_SHUTDOWN: ::windows_sys::core::HRESULT = -2146435048i32;
pub const SCARD_W_CACHE_ITEM_NOT_FOUND: ::windows_sys::core::HRESULT = -2146434960i32;
pub const SCARD_W_CACHE_ITEM_STALE: ::windows_sys::core::HRESULT = -2146434959i32;
pub const SCARD_W_CACHE_ITEM_TOO_BIG: ::windows_sys::core::HRESULT = -2146434958i32;
pub const SCARD_W_CANCELLED_BY_USER: ::windows_sys::core::HRESULT = -2146434962i32;
pub const SCARD_W_CARD_NOT_AUTHENTICATED: ::windows_sys::core::HRESULT = -2146434961i32;
pub const SCARD_W_CHV_BLOCKED: ::windows_sys::core::HRESULT = -2146434964i32;
pub const SCARD_W_EOF: ::windows_sys::core::HRESULT = -2146434963i32;
pub const SCARD_W_REMOVED_CARD: ::windows_sys::core::HRESULT = -2146434967i32;
pub const SCARD_W_RESET_CARD: ::windows_sys::core::HRESULT = -2146434968i32;
pub const SCARD_W_SECURITY_VIOLATION: ::windows_sys::core::HRESULT = -2146434966i32;
pub const SCARD_W_UNPOWERED_CARD: ::windows_sys::core::HRESULT = -2146434969i32;
pub const SCARD_W_UNRESPONSIVE_CARD: ::windows_sys::core::HRESULT = -2146434970i32;
pub const SCARD_W_UNSUPPORTED_CARD: ::windows_sys::core::HRESULT = -2146434971i32;
pub const SCARD_W_WRONG_CHV: ::windows_sys::core::HRESULT = -2146434965i32;
pub const SCHED_E_ACCOUNT_DBASE_CORRUPT: ::windows_sys::core::HRESULT = -2147216623i32;
pub const SCHED_E_ACCOUNT_INFORMATION_NOT_SET: ::windows_sys::core::HRESULT = -2147216625i32;
pub const SCHED_E_ACCOUNT_NAME_NOT_FOUND: ::windows_sys::core::HRESULT = -2147216624i32;
pub const SCHED_E_ALREADY_RUNNING: ::windows_sys::core::HRESULT = -2147216609i32;
pub const SCHED_E_CANNOT_OPEN_TASK: ::windows_sys::core::HRESULT = -2147216627i32;
pub const SCHED_E_DEPRECATED_FEATURE_USED: ::windows_sys::core::HRESULT = -2147216592i32;
pub const SCHED_E_INVALIDVALUE: ::windows_sys::core::HRESULT = -2147216616i32;
pub const SCHED_E_INVALID_TASK: ::windows_sys::core::HRESULT = -2147216626i32;
pub const SCHED_E_INVALID_TASK_HASH: ::windows_sys::core::HRESULT = -2147216607i32;
pub const SCHED_E_MALFORMEDXML: ::windows_sys::core::HRESULT = -2147216614i32;
pub const SCHED_E_MISSINGNODE: ::windows_sys::core::HRESULT = -2147216615i32;
pub const SCHED_E_NAMESPACE: ::windows_sys::core::HRESULT = -2147216617i32;
pub const SCHED_E_NO_SECURITY_SERVICES: ::windows_sys::core::HRESULT = -2147216622i32;
pub const SCHED_E_PAST_END_BOUNDARY: ::windows_sys::core::HRESULT = -2147216610i32;
pub const SCHED_E_SERVICE_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2147216606i32;
pub const SCHED_E_SERVICE_NOT_INSTALLED: ::windows_sys::core::HRESULT = -2147216628i32;
pub const SCHED_E_SERVICE_NOT_LOCALSYSTEM: i32 = 6200i32;
pub const SCHED_E_SERVICE_NOT_RUNNING: ::windows_sys::core::HRESULT = -2147216619i32;
pub const SCHED_E_SERVICE_TOO_BUSY: ::windows_sys::core::HRESULT = -2147216605i32;
pub const SCHED_E_START_ON_DEMAND: ::windows_sys::core::HRESULT = -2147216600i32;
pub const SCHED_E_TASK_ATTEMPTED: ::windows_sys::core::HRESULT = -2147216604i32;
pub const SCHED_E_TASK_DISABLED: ::windows_sys::core::HRESULT = -2147216602i32;
pub const SCHED_E_TASK_NOT_READY: ::windows_sys::core::HRESULT = -2147216630i32;
pub const SCHED_E_TASK_NOT_RUNNING: ::windows_sys::core::HRESULT = -2147216629i32;
pub const SCHED_E_TASK_NOT_UBPM_COMPAT: ::windows_sys::core::HRESULT = -2147216599i32;
pub const SCHED_E_TASK_NOT_V1_COMPAT: ::windows_sys::core::HRESULT = -2147216601i32;
pub const SCHED_E_TOO_MANY_NODES: ::windows_sys::core::HRESULT = -2147216611i32;
pub const SCHED_E_TRIGGER_NOT_FOUND: ::windows_sys::core::HRESULT = -2147216631i32;
pub const SCHED_E_UNEXPECTEDNODE: ::windows_sys::core::HRESULT = -2147216618i32;
pub const SCHED_E_UNKNOWN_OBJECT_VERSION: ::windows_sys::core::HRESULT = -2147216621i32;
pub const SCHED_E_UNSUPPORTED_ACCOUNT_OPTION: ::windows_sys::core::HRESULT = -2147216620i32;
pub const SCHED_E_USER_NOT_LOGGED_ON: ::windows_sys::core::HRESULT = -2147216608i32;
pub const SCHED_S_BATCH_LOGON_PROBLEM: ::windows_sys::core::HRESULT = 267036i32;
pub const SCHED_S_EVENT_TRIGGER: ::windows_sys::core::HRESULT = 267016i32;
pub const SCHED_S_SOME_TRIGGERS_FAILED: ::windows_sys::core::HRESULT = 267035i32;
pub const SCHED_S_TASK_DISABLED: ::windows_sys::core::HRESULT = 267010i32;
pub const SCHED_S_TASK_HAS_NOT_RUN: ::windows_sys::core::HRESULT = 267011i32;
pub const SCHED_S_TASK_NOT_SCHEDULED: ::windows_sys::core::HRESULT = 267013i32;
pub const SCHED_S_TASK_NO_MORE_RUNS: ::windows_sys::core::HRESULT = 267012i32;
pub const SCHED_S_TASK_NO_VALID_TRIGGERS: ::windows_sys::core::HRESULT = 267015i32;
pub const SCHED_S_TASK_QUEUED: ::windows_sys::core::HRESULT = 267045i32;
pub const SCHED_S_TASK_READY: ::windows_sys::core::HRESULT = 267008i32;
pub const SCHED_S_TASK_RUNNING: ::windows_sys::core::HRESULT = 267009i32;
pub const SCHED_S_TASK_TERMINATED: ::windows_sys::core::HRESULT = 267014i32;
pub const SDIAG_E_CANCELLED: i32 = -2143551232i32;
pub const SDIAG_E_CANNOTRUN: i32 = -2143551224i32;
pub const SDIAG_E_DISABLED: i32 = -2143551226i32;
pub const SDIAG_E_MANAGEDHOST: i32 = -2143551229i32;
pub const SDIAG_E_NOVERIFIER: i32 = -2143551228i32;
pub const SDIAG_E_POWERSHELL: i32 = -2143551230i32;
pub const SDIAG_E_RESOURCE: i32 = -2143551222i32;
pub const SDIAG_E_ROOTCAUSE: i32 = -2143551221i32;
pub const SDIAG_E_SCRIPT: i32 = -2143551231i32;
pub const SDIAG_E_TRUST: i32 = -2143551225i32;
pub const SDIAG_E_VERSION: i32 = -2143551223i32;
pub const SDIAG_S_CANNOTRUN: i32 = 3932421i32;
pub const SEARCH_E_NOMONIKER: ::windows_sys::core::HRESULT = -2147215711i32;
pub const SEARCH_E_NOREGION: ::windows_sys::core::HRESULT = -2147215710i32;
pub const SEARCH_S_NOMOREHITS: ::windows_sys::core::HRESULT = 267936i32;
pub const SEC_E_ALGORITHM_MISMATCH: ::windows_sys::core::HRESULT = -2146893007i32;
pub const SEC_E_APPLICATION_PROTOCOL_MISMATCH: ::windows_sys::core::HRESULT = -2146892953i32;
pub const SEC_E_BAD_BINDINGS: ::windows_sys::core::HRESULT = -2146892986i32;
pub const SEC_E_BAD_PKGID: ::windows_sys::core::HRESULT = -2146893034i32;
pub const SEC_E_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2146893023i32;
pub const SEC_E_CANNOT_INSTALL: ::windows_sys::core::HRESULT = -2146893049i32;
pub const SEC_E_CANNOT_PACK: ::windows_sys::core::HRESULT = -2146893047i32;
pub const SEC_E_CERT_EXPIRED: ::windows_sys::core::HRESULT = -2146893016i32;
pub const SEC_E_CERT_UNKNOWN: ::windows_sys::core::HRESULT = -2146893017i32;
pub const SEC_E_CERT_WRONG_USAGE: ::windows_sys::core::HRESULT = -2146892983i32;
pub const SEC_E_CONTEXT_EXPIRED: ::windows_sys::core::HRESULT = -2146893033i32;
pub const SEC_E_CROSSREALM_DELEGATION_FAILURE: ::windows_sys::core::HRESULT = -2146892969i32;
pub const SEC_E_CRYPTO_SYSTEM_INVALID: ::windows_sys::core::HRESULT = -2146893001i32;
pub const SEC_E_DECRYPT_FAILURE: ::windows_sys::core::HRESULT = -2146893008i32;
pub const SEC_E_DELEGATION_POLICY: ::windows_sys::core::HRESULT = -2146892962i32;
pub const SEC_E_DELEGATION_REQUIRED: ::windows_sys::core::HRESULT = -2146892987i32;
pub const SEC_E_DOWNGRADE_DETECTED: ::windows_sys::core::HRESULT = -2146892976i32;
pub const SEC_E_ENCRYPT_FAILURE: ::windows_sys::core::HRESULT = -2146893015i32;
pub const SEC_E_EXT_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2146892950i32;
pub const SEC_E_ILLEGAL_MESSAGE: ::windows_sys::core::HRESULT = -2146893018i32;
pub const SEC_E_INCOMPLETE_CREDENTIALS: ::windows_sys::core::HRESULT = -2146893024i32;
pub const SEC_E_INCOMPLETE_MESSAGE: ::windows_sys::core::HRESULT = -2146893032i32;
pub const SEC_E_INSUFFICIENT_BUFFERS: ::windows_sys::core::HRESULT = -2146892949i32;
pub const SEC_E_INSUFFICIENT_MEMORY: ::windows_sys::core::HRESULT = -2146893056i32;
pub const SEC_E_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2146893052i32;
pub const SEC_E_INVALID_HANDLE: ::windows_sys::core::HRESULT = -2146893055i32;
pub const SEC_E_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2146892963i32;
pub const SEC_E_INVALID_TOKEN: ::windows_sys::core::HRESULT = -2146893048i32;
pub const SEC_E_INVALID_UPN_NAME: ::windows_sys::core::HRESULT = -2146892951i32;
pub const SEC_E_ISSUING_CA_UNTRUSTED: ::windows_sys::core::HRESULT = -2146892974i32;
pub const SEC_E_ISSUING_CA_UNTRUSTED_KDC: ::windows_sys::core::HRESULT = -2146892967i32;
pub const SEC_E_KDC_CERT_EXPIRED: ::windows_sys::core::HRESULT = -2146892966i32;
pub const SEC_E_KDC_CERT_REVOKED: ::windows_sys::core::HRESULT = -2146892965i32;
pub const SEC_E_KDC_INVALID_REQUEST: ::windows_sys::core::HRESULT = -2146892992i32;
pub const SEC_E_KDC_UNABLE_TO_REFER: ::windows_sys::core::HRESULT = -2146892991i32;
pub const SEC_E_KDC_UNKNOWN_ETYPE: ::windows_sys::core::HRESULT = -2146892990i32;
pub const SEC_E_LOGON_DENIED: ::windows_sys::core::HRESULT = -2146893044i32;
pub const SEC_E_MAX_REFERRALS_EXCEEDED: ::windows_sys::core::HRESULT = -2146893000i32;
pub const SEC_E_MESSAGE_ALTERED: ::windows_sys::core::HRESULT = -2146893041i32;
pub const SEC_E_MULTIPLE_ACCOUNTS: ::windows_sys::core::HRESULT = -2146892985i32;
pub const SEC_E_MUST_BE_KDC: ::windows_sys::core::HRESULT = -2146892999i32;
pub const SEC_E_MUTUAL_AUTH_FAILED: ::windows_sys::core::HRESULT = -2146892957i32;
pub const SEC_E_NOT_OWNER: ::windows_sys::core::HRESULT = -2146893050i32;
pub const SEC_E_NOT_SUPPORTED: i32 = -2146893054i32;
pub const SEC_E_NO_AUTHENTICATING_AUTHORITY: ::windows_sys::core::HRESULT = -2146893039i32;
pub const SEC_E_NO_CONTEXT: ::windows_sys::core::HRESULT = -2146892959i32;
pub const SEC_E_NO_CREDENTIALS: ::windows_sys::core::HRESULT = -2146893042i32;
pub const SEC_E_NO_IMPERSONATION: ::windows_sys::core::HRESULT = -2146893045i32;
pub const SEC_E_NO_IP_ADDRESSES: ::windows_sys::core::HRESULT = -2146893003i32;
pub const SEC_E_NO_KERB_KEY: ::windows_sys::core::HRESULT = -2146892984i32;
pub const SEC_E_NO_PA_DATA: ::windows_sys::core::HRESULT = -2146892996i32;
pub const SEC_E_NO_S4U_PROT_SUPPORT: ::windows_sys::core::HRESULT = -2146892970i32;
pub const SEC_E_NO_SPM: i32 = -2146893052i32;
pub const SEC_E_NO_TGT_REPLY: ::windows_sys::core::HRESULT = -2146893004i32;
pub const SEC_E_OK: ::windows_sys::core::HRESULT = 0i32;
pub const SEC_E_ONLY_HTTPS_ALLOWED: ::windows_sys::core::HRESULT = -2146892955i32;
pub const SEC_E_OUT_OF_SEQUENCE: ::windows_sys::core::HRESULT = -2146893040i32;
pub const SEC_E_PKINIT_CLIENT_FAILURE: ::windows_sys::core::HRESULT = -2146892972i32;
pub const SEC_E_PKINIT_NAME_MISMATCH: ::windows_sys::core::HRESULT = -2146892995i32;
pub const SEC_E_PKU2U_CERT_FAILURE: ::windows_sys::core::HRESULT = -2146892958i32;
pub const SEC_E_POLICY_NLTM_ONLY: ::windows_sys::core::HRESULT = -2146892961i32;
pub const SEC_E_QOP_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146893046i32;
pub const SEC_E_REVOCATION_OFFLINE_C: ::windows_sys::core::HRESULT = -2146892973i32;
pub const SEC_E_REVOCATION_OFFLINE_KDC: ::windows_sys::core::HRESULT = -2146892968i32;
pub const SEC_E_SECPKG_NOT_FOUND: ::windows_sys::core::HRESULT = -2146893051i32;
pub const SEC_E_SECURITY_QOS_FAILED: ::windows_sys::core::HRESULT = -2146893006i32;
pub const SEC_E_SHUTDOWN_IN_PROGRESS: ::windows_sys::core::HRESULT = -2146892993i32;
pub const SEC_E_SMARTCARD_CERT_EXPIRED: ::windows_sys::core::HRESULT = -2146892971i32;
pub const SEC_E_SMARTCARD_CERT_REVOKED: ::windows_sys::core::HRESULT = -2146892975i32;
pub const SEC_E_SMARTCARD_LOGON_REQUIRED: ::windows_sys::core::HRESULT = -2146892994i32;
pub const SEC_E_STRONG_CRYPTO_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2146892998i32;
pub const SEC_E_TARGET_UNKNOWN: ::windows_sys::core::HRESULT = -2146893053i32;
pub const SEC_E_TIME_SKEW: ::windows_sys::core::HRESULT = -2146893020i32;
pub const SEC_E_TOO_MANY_PRINCIPALS: ::windows_sys::core::HRESULT = -2146892997i32;
pub const SEC_E_UNFINISHED_CONTEXT_DELETED: ::windows_sys::core::HRESULT = -2146893005i32;
pub const SEC_E_UNKNOWN_CREDENTIALS: ::windows_sys::core::HRESULT = -2146893043i32;
pub const SEC_E_UNSUPPORTED_FUNCTION: ::windows_sys::core::HRESULT = -2146893054i32;
pub const SEC_E_UNSUPPORTED_PREAUTH: ::windows_sys::core::HRESULT = -2146892989i32;
pub const SEC_E_UNTRUSTED_ROOT: ::windows_sys::core::HRESULT = -2146893019i32;
pub const SEC_E_WRONG_CREDENTIAL_HANDLE: ::windows_sys::core::HRESULT = -2146893002i32;
pub const SEC_E_WRONG_PRINCIPAL: ::windows_sys::core::HRESULT = -2146893022i32;
pub const SEC_I_ASYNC_CALL_PENDING: ::windows_sys::core::HRESULT = 590696i32;
pub const SEC_I_COMPLETE_AND_CONTINUE: ::windows_sys::core::HRESULT = 590612i32;
pub const SEC_I_COMPLETE_NEEDED: ::windows_sys::core::HRESULT = 590611i32;
pub const SEC_I_CONTEXT_EXPIRED: ::windows_sys::core::HRESULT = 590615i32;
pub const SEC_I_CONTINUE_NEEDED: ::windows_sys::core::HRESULT = 590610i32;
pub const SEC_I_CONTINUE_NEEDED_MESSAGE_OK: ::windows_sys::core::HRESULT = 590694i32;
pub const SEC_I_GENERIC_EXTENSION_RECEIVED: ::windows_sys::core::HRESULT = 590614i32;
pub const SEC_I_INCOMPLETE_CREDENTIALS: ::windows_sys::core::HRESULT = 590624i32;
pub const SEC_I_LOCAL_LOGON: ::windows_sys::core::HRESULT = 590613i32;
pub const SEC_I_MESSAGE_FRAGMENT: ::windows_sys::core::HRESULT = 590692i32;
pub const SEC_I_NO_LSA_CONTEXT: ::windows_sys::core::HRESULT = 590627i32;
pub const SEC_I_NO_RENEGOTIATION: ::windows_sys::core::HRESULT = 590688i32;
pub const SEC_I_RENEGOTIATE: ::windows_sys::core::HRESULT = 590625i32;
pub const SEC_I_SIGNATURE_NEEDED: ::windows_sys::core::HRESULT = 590684i32;
pub const SEVERITY_ERROR: u32 = 1u32;
pub const SEVERITY_SUCCESS: u32 = 0u32;
pub type SHANDLE_PTR = isize;
#[repr(C)]
pub struct SIZE {
pub cx: i32,
pub cy: i32,
}
impl ::core::marker::Copy for SIZE {}
impl ::core::clone::Clone for SIZE {
fn clone(&self) -> Self {
*self
}
}
pub const SPAPI_E_AUTHENTICODE_DISALLOWED: ::windows_sys::core::HRESULT = -2146500032i32;
pub const SPAPI_E_AUTHENTICODE_PUBLISHER_NOT_TRUSTED: ::windows_sys::core::HRESULT = -2146500029i32;
pub const SPAPI_E_AUTHENTICODE_TRUSTED_PUBLISHER: ::windows_sys::core::HRESULT = -2146500031i32;
pub const SPAPI_E_AUTHENTICODE_TRUST_NOT_ESTABLISHED: ::windows_sys::core::HRESULT = -2146500030i32;
pub const SPAPI_E_BAD_INTERFACE_INSTALLSECT: ::windows_sys::core::HRESULT = -2146500067i32;
pub const SPAPI_E_BAD_SECTION_NAME_LINE: ::windows_sys::core::HRESULT = -2146500607i32;
pub const SPAPI_E_BAD_SERVICE_INSTALLSECT: ::windows_sys::core::HRESULT = -2146500073i32;
pub const SPAPI_E_CANT_LOAD_CLASS_ICON: ::windows_sys::core::HRESULT = -2146500084i32;
pub const SPAPI_E_CANT_REMOVE_DEVINST: ::windows_sys::core::HRESULT = -2146500046i32;
pub const SPAPI_E_CLASS_MISMATCH: ::windows_sys::core::HRESULT = -2146500095i32;
pub const SPAPI_E_DEVICE_INSTALLER_NOT_READY: ::windows_sys::core::HRESULT = -2146500026i32;
pub const SPAPI_E_DEVICE_INSTALL_BLOCKED: ::windows_sys::core::HRESULT = -2146500024i32;
pub const SPAPI_E_DEVICE_INTERFACE_ACTIVE: ::windows_sys::core::HRESULT = -2146500069i32;
pub const SPAPI_E_DEVICE_INTERFACE_REMOVED: ::windows_sys::core::HRESULT = -2146500068i32;
pub const SPAPI_E_DEVINFO_DATA_LOCKED: ::windows_sys::core::HRESULT = -2146500077i32;
pub const SPAPI_E_DEVINFO_LIST_LOCKED: ::windows_sys::core::HRESULT = -2146500078i32;
pub const SPAPI_E_DEVINFO_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2146500088i32;
pub const SPAPI_E_DEVINSTALL_QUEUE_NONNATIVE: ::windows_sys::core::HRESULT = -2146500048i32;
pub const SPAPI_E_DEVINST_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2146500089i32;
pub const SPAPI_E_DI_BAD_PATH: ::windows_sys::core::HRESULT = -2146500076i32;
pub const SPAPI_E_DI_DONT_INSTALL: ::windows_sys::core::HRESULT = -2146500053i32;
pub const SPAPI_E_DI_DO_DEFAULT: ::windows_sys::core::HRESULT = -2146500082i32;
pub const SPAPI_E_DI_FUNCTION_OBSOLETE: ::windows_sys::core::HRESULT = -2146500034i32;
pub const SPAPI_E_DI_NOFILECOPY: ::windows_sys::core::HRESULT = -2146500081i32;
pub const SPAPI_E_DI_POSTPROCESSING_REQUIRED: ::windows_sys::core::HRESULT = -2146500058i32;
pub const SPAPI_E_DRIVER_INSTALL_BLOCKED: ::windows_sys::core::HRESULT = -2146500023i32;
pub const SPAPI_E_DRIVER_NONNATIVE: ::windows_sys::core::HRESULT = -2146500044i32;
pub const SPAPI_E_DRIVER_STORE_ADD_FAILED: ::windows_sys::core::HRESULT = -2146500025i32;
pub const SPAPI_E_DRIVER_STORE_DELETE_FAILED: ::windows_sys::core::HRESULT = -2146500020i32;
pub const SPAPI_E_DUPLICATE_FOUND: ::windows_sys::core::HRESULT = -2146500094i32;
pub const SPAPI_E_ERROR_NOT_INSTALLED: ::windows_sys::core::HRESULT = -2146496512i32;
pub const SPAPI_E_EXPECTED_SECTION_NAME: ::windows_sys::core::HRESULT = -2146500608i32;
pub const SPAPI_E_FILEQUEUE_LOCKED: ::windows_sys::core::HRESULT = -2146500074i32;
pub const SPAPI_E_FILE_HASH_NOT_IN_CATALOG: ::windows_sys::core::HRESULT = -2146500021i32;
pub const SPAPI_E_GENERAL_SYNTAX: ::windows_sys::core::HRESULT = -2146500605i32;
pub const SPAPI_E_INCORRECTLY_COPIED_INF: ::windows_sys::core::HRESULT = -2146500041i32;
pub const SPAPI_E_INF_IN_USE_BY_DEVICES: ::windows_sys::core::HRESULT = -2146500035i32;
pub const SPAPI_E_INVALID_CLASS: ::windows_sys::core::HRESULT = -2146500090i32;
pub const SPAPI_E_INVALID_CLASS_INSTALLER: ::windows_sys::core::HRESULT = -2146500083i32;
pub const SPAPI_E_INVALID_COINSTALLER: ::windows_sys::core::HRESULT = -2146500057i32;
pub const SPAPI_E_INVALID_DEVINST_NAME: ::windows_sys::core::HRESULT = -2146500091i32;
pub const SPAPI_E_INVALID_FILTER_DRIVER: ::windows_sys::core::HRESULT = -2146500052i32;
pub const SPAPI_E_INVALID_HWPROFILE: ::windows_sys::core::HRESULT = -2146500080i32;
pub const SPAPI_E_INVALID_INF_LOGCONFIG: ::windows_sys::core::HRESULT = -2146500054i32;
pub const SPAPI_E_INVALID_MACHINENAME: ::windows_sys::core::HRESULT = -2146500064i32;
pub const SPAPI_E_INVALID_PROPPAGE_PROVIDER: ::windows_sys::core::HRESULT = -2146500060i32;
pub const SPAPI_E_INVALID_REFERENCE_STRING: ::windows_sys::core::HRESULT = -2146500065i32;
pub const SPAPI_E_INVALID_REG_PROPERTY: ::windows_sys::core::HRESULT = -2146500087i32;
pub const SPAPI_E_INVALID_TARGET: ::windows_sys::core::HRESULT = -2146500045i32;
pub const SPAPI_E_IN_WOW64: ::windows_sys::core::HRESULT = -2146500043i32;
pub const SPAPI_E_KEY_DOES_NOT_EXIST: ::windows_sys::core::HRESULT = -2146500092i32;
pub const SPAPI_E_LINE_NOT_FOUND: ::windows_sys::core::HRESULT = -2146500350i32;
pub const SPAPI_E_MACHINE_UNAVAILABLE: ::windows_sys::core::HRESULT = -2146500062i32;
pub const SPAPI_E_NON_WINDOWS_DRIVER: ::windows_sys::core::HRESULT = -2146500050i32;
pub const SPAPI_E_NON_WINDOWS_NT_DRIVER: ::windows_sys::core::HRESULT = -2146500051i32;
pub const SPAPI_E_NOT_AN_INSTALLED_OEM_INF: ::windows_sys::core::HRESULT = -2146500036i32;
pub const SPAPI_E_NOT_DISABLEABLE: ::windows_sys::core::HRESULT = -2146500047i32;
pub const SPAPI_E_NO_ASSOCIATED_CLASS: ::windows_sys::core::HRESULT = -2146500096i32;
pub const SPAPI_E_NO_ASSOCIATED_SERVICE: ::windows_sys::core::HRESULT = -2146500071i32;
pub const SPAPI_E_NO_AUTHENTICODE_CATALOG: ::windows_sys::core::HRESULT = -2146500033i32;
pub const SPAPI_E_NO_BACKUP: ::windows_sys::core::HRESULT = -2146500349i32;
pub const SPAPI_E_NO_CATALOG_FOR_OEM_INF: ::windows_sys::core::HRESULT = -2146500049i32;
pub const SPAPI_E_NO_CLASSINSTALL_PARAMS: ::windows_sys::core::HRESULT = -2146500075i32;
pub const SPAPI_E_NO_CLASS_DRIVER_LIST: ::windows_sys::core::HRESULT = -2146500072i32;
pub const SPAPI_E_NO_COMPAT_DRIVERS: ::windows_sys::core::HRESULT = -2146500056i32;
pub const SPAPI_E_NO_CONFIGMGR_SERVICES: ::windows_sys::core::HRESULT = -2146500061i32;
pub const SPAPI_E_NO_DEFAULT_DEVICE_INTERFACE: ::windows_sys::core::HRESULT = -2146500070i32;
pub const SPAPI_E_NO_DEVICE_ICON: ::windows_sys::core::HRESULT = -2146500055i32;
pub const SPAPI_E_NO_DEVICE_SELECTED: ::windows_sys::core::HRESULT = -2146500079i32;
pub const SPAPI_E_NO_DRIVER_SELECTED: ::windows_sys::core::HRESULT = -2146500093i32;
pub const SPAPI_E_NO_INF: ::windows_sys::core::HRESULT = -2146500086i32;
pub const SPAPI_E_NO_SUCH_DEVICE_INTERFACE: ::windows_sys::core::HRESULT = -2146500059i32;
pub const SPAPI_E_NO_SUCH_DEVINST: ::windows_sys::core::HRESULT = -2146500085i32;
pub const SPAPI_E_NO_SUCH_INTERFACE_CLASS: ::windows_sys::core::HRESULT = -2146500066i32;
pub const SPAPI_E_ONLY_VALIDATE_VIA_AUTHENTICODE: ::windows_sys::core::HRESULT = -2146500027i32;
pub const SPAPI_E_PNP_REGISTRY_ERROR: ::windows_sys::core::HRESULT = -2146500038i32;
pub const SPAPI_E_REMOTE_COMM_FAILURE: ::windows_sys::core::HRESULT = -2146500063i32;
pub const SPAPI_E_REMOTE_REQUEST_UNSUPPORTED: ::windows_sys::core::HRESULT = -2146500037i32;
pub const SPAPI_E_SCE_DISABLED: ::windows_sys::core::HRESULT = -2146500040i32;
pub const SPAPI_E_SECTION_NAME_TOO_LONG: ::windows_sys::core::HRESULT = -2146500606i32;
pub const SPAPI_E_SECTION_NOT_FOUND: ::windows_sys::core::HRESULT = -2146500351i32;
pub const SPAPI_E_SET_SYSTEM_RESTORE_POINT: ::windows_sys::core::HRESULT = -2146500042i32;
pub const SPAPI_E_SIGNATURE_OSATTRIBUTE_MISMATCH: ::windows_sys::core::HRESULT = -2146500028i32;
pub const SPAPI_E_UNKNOWN_EXCEPTION: ::windows_sys::core::HRESULT = -2146500039i32;
pub const SPAPI_E_UNRECOVERABLE_STACK_OVERFLOW: ::windows_sys::core::HRESULT = -2146499840i32;
pub const SPAPI_E_WRONG_INF_STYLE: ::windows_sys::core::HRESULT = -2146500352i32;
pub const SPAPI_E_WRONG_INF_TYPE: ::windows_sys::core::HRESULT = -2146500022i32;
pub const SQLITE_E_ABORT: ::windows_sys::core::HRESULT = -2018574332i32;
pub const SQLITE_E_ABORT_ROLLBACK: ::windows_sys::core::HRESULT = -2018573820i32;
pub const SQLITE_E_AUTH: ::windows_sys::core::HRESULT = -2018574313i32;
pub const SQLITE_E_BUSY: ::windows_sys::core::HRESULT = -2018574331i32;
pub const SQLITE_E_BUSY_RECOVERY: ::windows_sys::core::HRESULT = -2018574075i32;
pub const SQLITE_E_BUSY_SNAPSHOT: ::windows_sys::core::HRESULT = -2018573819i32;
pub const SQLITE_E_CANTOPEN: ::windows_sys::core::HRESULT = -2018574322i32;
pub const SQLITE_E_CANTOPEN_CONVPATH: ::windows_sys::core::HRESULT = -2018573298i32;
pub const SQLITE_E_CANTOPEN_FULLPATH: ::windows_sys::core::HRESULT = -2018573554i32;
pub const SQLITE_E_CANTOPEN_ISDIR: ::windows_sys::core::HRESULT = -2018573810i32;
pub const SQLITE_E_CANTOPEN_NOTEMPDIR: ::windows_sys::core::HRESULT = -2018574066i32;
pub const SQLITE_E_CONSTRAINT: ::windows_sys::core::HRESULT = -2018574317i32;
pub const SQLITE_E_CONSTRAINT_CHECK: ::windows_sys::core::HRESULT = -2018574061i32;
pub const SQLITE_E_CONSTRAINT_COMMITHOOK: ::windows_sys::core::HRESULT = -2018573805i32;
pub const SQLITE_E_CONSTRAINT_FOREIGNKEY: ::windows_sys::core::HRESULT = -2018573549i32;
pub const SQLITE_E_CONSTRAINT_FUNCTION: ::windows_sys::core::HRESULT = -2018573293i32;
pub const SQLITE_E_CONSTRAINT_NOTNULL: ::windows_sys::core::HRESULT = -2018573037i32;
pub const SQLITE_E_CONSTRAINT_PRIMARYKEY: ::windows_sys::core::HRESULT = -2018572781i32;
pub const SQLITE_E_CONSTRAINT_ROWID: ::windows_sys::core::HRESULT = -2018571757i32;
pub const SQLITE_E_CONSTRAINT_TRIGGER: ::windows_sys::core::HRESULT = -2018572525i32;
pub const SQLITE_E_CONSTRAINT_UNIQUE: ::windows_sys::core::HRESULT = -2018572269i32;
pub const SQLITE_E_CONSTRAINT_VTAB: ::windows_sys::core::HRESULT = -2018572013i32;
pub const SQLITE_E_CORRUPT: ::windows_sys::core::HRESULT = -2018574325i32;
pub const SQLITE_E_CORRUPT_VTAB: ::windows_sys::core::HRESULT = -2018574069i32;
pub const SQLITE_E_DONE: ::windows_sys::core::HRESULT = -2018574235i32;
pub const SQLITE_E_EMPTY: ::windows_sys::core::HRESULT = -2018574320i32;
pub const SQLITE_E_ERROR: ::windows_sys::core::HRESULT = -2018574335i32;
pub const SQLITE_E_FORMAT: ::windows_sys::core::HRESULT = -2018574312i32;
pub const SQLITE_E_FULL: ::windows_sys::core::HRESULT = -2018574323i32;
pub const SQLITE_E_INTERNAL: ::windows_sys::core::HRESULT = -2018574334i32;
pub const SQLITE_E_INTERRUPT: ::windows_sys::core::HRESULT = -2018574327i32;
pub const SQLITE_E_IOERR: ::windows_sys::core::HRESULT = -2018574326i32;
pub const SQLITE_E_IOERR_ACCESS: ::windows_sys::core::HRESULT = -2018570998i32;
pub const SQLITE_E_IOERR_AUTH: ::windows_sys::core::HRESULT = -2018567677i32;
pub const SQLITE_E_IOERR_BLOCKED: ::windows_sys::core::HRESULT = -2018571510i32;
pub const SQLITE_E_IOERR_CHECKRESERVEDLOCK: ::windows_sys::core::HRESULT = -2018570742i32;
pub const SQLITE_E_IOERR_CLOSE: ::windows_sys::core::HRESULT = -2018570230i32;
pub const SQLITE_E_IOERR_CONVPATH: ::windows_sys::core::HRESULT = -2018567670i32;
pub const SQLITE_E_IOERR_DELETE: ::windows_sys::core::HRESULT = -2018571766i32;
pub const SQLITE_E_IOERR_DELETE_NOENT: ::windows_sys::core::HRESULT = -2018568438i32;
pub const SQLITE_E_IOERR_DIR_CLOSE: ::windows_sys::core::HRESULT = -2018569974i32;
pub const SQLITE_E_IOERR_DIR_FSYNC: ::windows_sys::core::HRESULT = -2018573046i32;
pub const SQLITE_E_IOERR_FSTAT: ::windows_sys::core::HRESULT = -2018572534i32;
pub const SQLITE_E_IOERR_FSYNC: ::windows_sys::core::HRESULT = -2018573302i32;
pub const SQLITE_E_IOERR_GETTEMPPATH: ::windows_sys::core::HRESULT = -2018567926i32;
pub const SQLITE_E_IOERR_LOCK: ::windows_sys::core::HRESULT = -2018570486i32;
pub const SQLITE_E_IOERR_MMAP: ::windows_sys::core::HRESULT = -2018568182i32;
pub const SQLITE_E_IOERR_NOMEM: ::windows_sys::core::HRESULT = -2018571254i32;
pub const SQLITE_E_IOERR_RDLOCK: ::windows_sys::core::HRESULT = -2018572022i32;
pub const SQLITE_E_IOERR_READ: ::windows_sys::core::HRESULT = -2018574070i32;
pub const SQLITE_E_IOERR_SEEK: ::windows_sys::core::HRESULT = -2018568694i32;
pub const SQLITE_E_IOERR_SHMLOCK: ::windows_sys::core::HRESULT = -2018569206i32;
pub const SQLITE_E_IOERR_SHMMAP: ::windows_sys::core::HRESULT = -2018568950i32;
pub const SQLITE_E_IOERR_SHMOPEN: ::windows_sys::core::HRESULT = -2018569718i32;
pub const SQLITE_E_IOERR_SHMSIZE: ::windows_sys::core::HRESULT = -2018569462i32;
pub const SQLITE_E_IOERR_SHORT_READ: ::windows_sys::core::HRESULT = -2018573814i32;
pub const SQLITE_E_IOERR_TRUNCATE: ::windows_sys::core::HRESULT = -2018572790i32;
pub const SQLITE_E_IOERR_UNLOCK: ::windows_sys::core::HRESULT = -2018572278i32;
pub const SQLITE_E_IOERR_VNODE: ::windows_sys::core::HRESULT = -2018567678i32;
pub const SQLITE_E_IOERR_WRITE: ::windows_sys::core::HRESULT = -2018573558i32;
pub const SQLITE_E_LOCKED: ::windows_sys::core::HRESULT = -2018574330i32;
pub const SQLITE_E_LOCKED_SHAREDCACHE: ::windows_sys::core::HRESULT = -2018574074i32;
pub const SQLITE_E_MISMATCH: ::windows_sys::core::HRESULT = -2018574316i32;
pub const SQLITE_E_MISUSE: ::windows_sys::core::HRESULT = -2018574315i32;
pub const SQLITE_E_NOLFS: ::windows_sys::core::HRESULT = -2018574314i32;
pub const SQLITE_E_NOMEM: ::windows_sys::core::HRESULT = -2018574329i32;
pub const SQLITE_E_NOTADB: ::windows_sys::core::HRESULT = -2018574310i32;
pub const SQLITE_E_NOTFOUND: ::windows_sys::core::HRESULT = -2018574324i32;
pub const SQLITE_E_NOTICE: ::windows_sys::core::HRESULT = -2018574309i32;
pub const SQLITE_E_NOTICE_RECOVER_ROLLBACK: ::windows_sys::core::HRESULT = -2018573797i32;
pub const SQLITE_E_NOTICE_RECOVER_WAL: ::windows_sys::core::HRESULT = -2018574053i32;
pub const SQLITE_E_PERM: ::windows_sys::core::HRESULT = -2018574333i32;
pub const SQLITE_E_PROTOCOL: ::windows_sys::core::HRESULT = -2018574321i32;
pub const SQLITE_E_RANGE: ::windows_sys::core::HRESULT = -2018574311i32;
pub const SQLITE_E_READONLY: ::windows_sys::core::HRESULT = -2018574328i32;
pub const SQLITE_E_READONLY_CANTLOCK: ::windows_sys::core::HRESULT = -2018573816i32;
pub const SQLITE_E_READONLY_DBMOVED: ::windows_sys::core::HRESULT = -2018573304i32;
pub const SQLITE_E_READONLY_RECOVERY: ::windows_sys::core::HRESULT = -2018574072i32;
pub const SQLITE_E_READONLY_ROLLBACK: ::windows_sys::core::HRESULT = -2018573560i32;
pub const SQLITE_E_ROW: ::windows_sys::core::HRESULT = -2018574236i32;
pub const SQLITE_E_SCHEMA: ::windows_sys::core::HRESULT = -2018574319i32;
pub const SQLITE_E_TOOBIG: ::windows_sys::core::HRESULT = -2018574318i32;
pub const SQLITE_E_WARNING: ::windows_sys::core::HRESULT = -2018574308i32;
pub const SQLITE_E_WARNING_AUTOINDEX: ::windows_sys::core::HRESULT = -2018574052i32;
pub const STATEREPOSITORY_ERROR_CACHE_CORRUPTED: ::windows_sys::core::HRESULT = -2140733422i32;
pub const STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED: ::windows_sys::core::HRESULT = -2140733435i32;
pub const STATEREPOSITORY_E_BLOCKED: ::windows_sys::core::HRESULT = -2140733434i32;
pub const STATEREPOSITORY_E_BUSY_RECOVERY_RETRY: ::windows_sys::core::HRESULT = -2140733432i32;
pub const STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED: ::windows_sys::core::HRESULT = -2140733427i32;
pub const STATEREPOSITORY_E_BUSY_RETRY: ::windows_sys::core::HRESULT = -2140733433i32;
pub const STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED: ::windows_sys::core::HRESULT = -2140733428i32;
pub const STATEREPOSITORY_E_CACHE_NOT_INIITALIZED: ::windows_sys::core::HRESULT = -2140733419i32;
pub const STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE: ::windows_sys::core::HRESULT = -2140733439i32;
pub const STATEREPOSITORY_E_CONFIGURATION_INVALID: ::windows_sys::core::HRESULT = -2140733437i32;
pub const STATEREPOSITORY_E_DEPENDENCY_NOT_RESOLVED: ::windows_sys::core::HRESULT = -2140733418i32;
pub const STATEREPOSITORY_E_LOCKED_RETRY: ::windows_sys::core::HRESULT = -2140733431i32;
pub const STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY: ::windows_sys::core::HRESULT = -2140733430i32;
pub const STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED: ::windows_sys::core::HRESULT = -2140733425i32;
pub const STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED: ::windows_sys::core::HRESULT = -2140733426i32;
pub const STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS: ::windows_sys::core::HRESULT = -2140733424i32;
pub const STATEREPOSITORY_E_STATEMENT_INPROGRESS: ::windows_sys::core::HRESULT = -2140733438i32;
pub const STATEREPOSITORY_E_TRANSACTION_REQUIRED: ::windows_sys::core::HRESULT = -2140733429i32;
pub const STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION: ::windows_sys::core::HRESULT = -2140733436i32;
pub const STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED: ::windows_sys::core::HRESULT = 6750227i32;
pub const STATEREPOSITORY_TRANSACTION_IN_PROGRESS: ::windows_sys::core::HRESULT = -2140733420i32;
pub const STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2140733423i32;
pub const STATUS_ABANDONED: NTSTATUS = 128i32;
pub const STATUS_ABANDONED_WAIT_0: NTSTATUS = 128i32;
pub const STATUS_ABANDONED_WAIT_63: NTSTATUS = 191i32;
pub const STATUS_ABANDON_HIBERFILE: NTSTATUS = 1073741875i32;
pub const STATUS_ABIOS_INVALID_COMMAND: NTSTATUS = -1073741549i32;
pub const STATUS_ABIOS_INVALID_LID: NTSTATUS = -1073741548i32;
pub const STATUS_ABIOS_INVALID_SELECTOR: NTSTATUS = -1073741546i32;
pub const STATUS_ABIOS_LID_ALREADY_OWNED: NTSTATUS = -1073741551i32;
pub const STATUS_ABIOS_LID_NOT_EXIST: NTSTATUS = -1073741552i32;
pub const STATUS_ABIOS_NOT_LID_OWNER: NTSTATUS = -1073741550i32;
pub const STATUS_ABIOS_NOT_PRESENT: NTSTATUS = -1073741553i32;
pub const STATUS_ABIOS_SELECTOR_NOT_AVAILABLE: NTSTATUS = -1073741547i32;
pub const STATUS_ACCESS_AUDIT_BY_POLICY: NTSTATUS = 1073741874i32;
pub const STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT: NTSTATUS = -1073740959i32;
pub const STATUS_ACCESS_DISABLED_BY_POLICY_OTHER: NTSTATUS = -1073740956i32;
pub const STATUS_ACCESS_DISABLED_BY_POLICY_PATH: NTSTATUS = -1073740958i32;
pub const STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER: NTSTATUS = -1073740957i32;
pub const STATUS_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY: NTSTATUS = -1073740942i32;
pub const STATUS_ACCESS_VIOLATION: NTSTATUS = -1073741819i32;
pub const STATUS_ACPI_ACQUIRE_GLOBAL_LOCK: NTSTATUS = -1072431086i32;
pub const STATUS_ACPI_ADDRESS_NOT_MAPPED: NTSTATUS = -1072431092i32;
pub const STATUS_ACPI_ALREADY_INITIALIZED: NTSTATUS = -1072431085i32;
pub const STATUS_ACPI_ASSERT_FAILED: NTSTATUS = -1072431101i32;
pub const STATUS_ACPI_FATAL: NTSTATUS = -1072431098i32;
pub const STATUS_ACPI_HANDLER_COLLISION: NTSTATUS = -1072431090i32;
pub const STATUS_ACPI_INCORRECT_ARGUMENT_COUNT: NTSTATUS = -1072431093i32;
pub const STATUS_ACPI_INVALID_ACCESS_SIZE: NTSTATUS = -1072431087i32;
pub const STATUS_ACPI_INVALID_ARGTYPE: NTSTATUS = -1072431096i32;
pub const STATUS_ACPI_INVALID_ARGUMENT: NTSTATUS = -1072431099i32;
pub const STATUS_ACPI_INVALID_DATA: NTSTATUS = -1072431089i32;
pub const STATUS_ACPI_INVALID_EVENTTYPE: NTSTATUS = -1072431091i32;
pub const STATUS_ACPI_INVALID_INDEX: NTSTATUS = -1072431100i32;
pub const STATUS_ACPI_INVALID_MUTEX_LEVEL: NTSTATUS = -1072431083i32;
pub const STATUS_ACPI_INVALID_OBJTYPE: NTSTATUS = -1072431095i32;
pub const STATUS_ACPI_INVALID_OPCODE: NTSTATUS = -1072431103i32;
pub const STATUS_ACPI_INVALID_REGION: NTSTATUS = -1072431088i32;
pub const STATUS_ACPI_INVALID_SUPERNAME: NTSTATUS = -1072431097i32;
pub const STATUS_ACPI_INVALID_TABLE: NTSTATUS = -1072431079i32;
pub const STATUS_ACPI_INVALID_TARGETTYPE: NTSTATUS = -1072431094i32;
pub const STATUS_ACPI_MUTEX_NOT_OWNED: NTSTATUS = -1072431082i32;
pub const STATUS_ACPI_MUTEX_NOT_OWNER: NTSTATUS = -1072431081i32;
pub const STATUS_ACPI_NOT_INITIALIZED: NTSTATUS = -1072431084i32;
pub const STATUS_ACPI_POWER_REQUEST_FAILED: NTSTATUS = -1072431071i32;
pub const STATUS_ACPI_REG_HANDLER_FAILED: NTSTATUS = -1072431072i32;
pub const STATUS_ACPI_RS_ACCESS: NTSTATUS = -1072431080i32;
pub const STATUS_ACPI_STACK_OVERFLOW: NTSTATUS = -1072431102i32;
pub const STATUS_ADAPTER_HARDWARE_ERROR: NTSTATUS = -1073741630i32;
pub const STATUS_ADDRESS_ALREADY_ASSOCIATED: NTSTATUS = -1073741256i32;
pub const STATUS_ADDRESS_ALREADY_EXISTS: NTSTATUS = -1073741302i32;
pub const STATUS_ADDRESS_CLOSED: NTSTATUS = -1073741301i32;
pub const STATUS_ADDRESS_NOT_ASSOCIATED: NTSTATUS = -1073741255i32;
pub const STATUS_ADMINLESS_ACCESS_DENIED: NTSTATUS = -1073700348i32;
pub const STATUS_ADVANCED_INSTALLER_FAILED: NTSTATUS = -1072365536i32;
pub const STATUS_AGENTS_EXHAUSTED: NTSTATUS = -1073741691i32;
pub const STATUS_ALERTED: NTSTATUS = 257i32;
pub const STATUS_ALIAS_EXISTS: NTSTATUS = -1073741484i32;
pub const STATUS_ALLOCATE_BUCKET: NTSTATUS = -1073741265i32;
pub const STATUS_ALLOTTED_SPACE_EXCEEDED: NTSTATUS = -1073741671i32;
pub const STATUS_ALL_SIDS_FILTERED: NTSTATUS = -1073740962i32;
pub const STATUS_ALL_USER_TRUST_QUOTA_EXCEEDED: NTSTATUS = -1073740798i32;
pub const STATUS_ALPC_CHECK_COMPLETION_LIST: NTSTATUS = 1073741872i32;
pub const STATUS_ALREADY_COMMITTED: NTSTATUS = -1073741791i32;
pub const STATUS_ALREADY_COMPLETE: NTSTATUS = 255i32;
pub const STATUS_ALREADY_DISCONNECTED: NTSTATUS = -2147483611i32;
pub const STATUS_ALREADY_HAS_STREAM_ID: NTSTATUS = -1073740530i32;
pub const STATUS_ALREADY_INITIALIZED: NTSTATUS = -1073740528i32;
pub const STATUS_ALREADY_REGISTERED: NTSTATUS = -1073740008i32;
pub const STATUS_ALREADY_WIN32: NTSTATUS = 1073741851i32;
pub const STATUS_AMBIGUOUS_SYSTEM_DEVICE: NTSTATUS = -1073740719i32;
pub const STATUS_APC_RETURNED_WHILE_IMPERSONATING: NTSTATUS = -1073740015i32;
pub const STATUS_APISET_NOT_HOSTED: NTSTATUS = -1073740671i32;
pub const STATUS_APISET_NOT_PRESENT: NTSTATUS = -1073740670i32;
pub const STATUS_APPEXEC_APP_COMPAT_BLOCK: NTSTATUS = -1058275320i32;
pub const STATUS_APPEXEC_CALLER_WAIT_TIMEOUT: NTSTATUS = -1058275319i32;
pub const STATUS_APPEXEC_CALLER_WAIT_TIMEOUT_LICENSING: NTSTATUS = -1058275317i32;
pub const STATUS_APPEXEC_CALLER_WAIT_TIMEOUT_RESOURCES: NTSTATUS = -1058275316i32;
pub const STATUS_APPEXEC_CALLER_WAIT_TIMEOUT_TERMINATION: NTSTATUS = -1058275318i32;
pub const STATUS_APPEXEC_CONDITION_NOT_SATISFIED: NTSTATUS = -1058275328i32;
pub const STATUS_APPEXEC_HANDLE_INVALIDATED: NTSTATUS = -1058275327i32;
pub const STATUS_APPEXEC_HOST_ID_MISMATCH: NTSTATUS = -1058275322i32;
pub const STATUS_APPEXEC_INVALID_HOST_GENERATION: NTSTATUS = -1058275326i32;
pub const STATUS_APPEXEC_INVALID_HOST_STATE: NTSTATUS = -1058275324i32;
pub const STATUS_APPEXEC_NO_DONOR: NTSTATUS = -1058275323i32;
pub const STATUS_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION: NTSTATUS = -1058275325i32;
pub const STATUS_APPEXEC_UNKNOWN_USER: NTSTATUS = -1058275321i32;
pub const STATUS_APPHELP_BLOCK: NTSTATUS = -1073740963i32;
pub const STATUS_APPX_FILE_NOT_ENCRYPTED: NTSTATUS = -1073740634i32;
pub const STATUS_APPX_INTEGRITY_FAILURE_CLR_NGEN: NTSTATUS = -1073740673i32;
pub const STATUS_APP_DATA_CORRUPT: NTSTATUS = -1073700221i32;
pub const STATUS_APP_DATA_EXPIRED: NTSTATUS = -1073700222i32;
pub const STATUS_APP_DATA_LIMIT_EXCEEDED: NTSTATUS = -1073700220i32;
pub const STATUS_APP_DATA_NOT_FOUND: NTSTATUS = -1073700223i32;
pub const STATUS_APP_DATA_REBOOT_REQUIRED: NTSTATUS = -1073700219i32;
pub const STATUS_APP_INIT_FAILURE: NTSTATUS = -1073741499i32;
pub const STATUS_ARBITRATION_UNHANDLED: NTSTATUS = 1073741862i32;
pub const STATUS_ARRAY_BOUNDS_EXCEEDED: NTSTATUS = -1073741684i32;
pub const STATUS_ASSERTION_FAILURE: NTSTATUS = -1073740768i32;
pub const STATUS_ATTACHED_EXECUTABLE_MEMORY_WRITE: NTSTATUS = -1073739995i32;
pub const STATUS_ATTRIBUTE_NOT_PRESENT: NTSTATUS = -1073740532i32;
pub const STATUS_AUDIO_ENGINE_NODE_NOT_FOUND: NTSTATUS = -1069285375i32;
pub const STATUS_AUDITING_DISABLED: NTSTATUS = -1073740970i32;
pub const STATUS_AUDIT_FAILED: NTSTATUS = -1073741244i32;
pub const STATUS_AUTHIP_FAILURE: NTSTATUS = -1073700730i32;
pub const STATUS_AUTH_TAG_MISMATCH: NTSTATUS = -1073700862i32;
pub const STATUS_BACKUP_CONTROLLER: NTSTATUS = -1073741433i32;
pub const STATUS_BAD_BINDINGS: NTSTATUS = -1073740965i32;
pub const STATUS_BAD_CLUSTERS: NTSTATUS = -1073739771i32;
pub const STATUS_BAD_COMPRESSION_BUFFER: NTSTATUS = -1073741246i32;
pub const STATUS_BAD_CURRENT_DIRECTORY: NTSTATUS = 1073741831i32;
pub const STATUS_BAD_DATA: NTSTATUS = -1073739509i32;
pub const STATUS_BAD_DESCRIPTOR_FORMAT: NTSTATUS = -1073741593i32;
pub const STATUS_BAD_DEVICE_TYPE: NTSTATUS = -1073741621i32;
pub const STATUS_BAD_DLL_ENTRYPOINT: NTSTATUS = -1073741231i32;
pub const STATUS_BAD_FILE_TYPE: NTSTATUS = -1073739517i32;
pub const STATUS_BAD_FUNCTION_TABLE: NTSTATUS = -1073741569i32;
pub const STATUS_BAD_IMPERSONATION_LEVEL: NTSTATUS = -1073741659i32;
pub const STATUS_BAD_INHERITANCE_ACL: NTSTATUS = -1073741699i32;
pub const STATUS_BAD_INITIAL_PC: NTSTATUS = -1073741814i32;
pub const STATUS_BAD_INITIAL_STACK: NTSTATUS = -1073741815i32;
pub const STATUS_BAD_KEY: NTSTATUS = -1073739510i32;
pub const STATUS_BAD_LOGON_SESSION_STATE: NTSTATUS = -1073741564i32;
pub const STATUS_BAD_MASTER_BOOT_RECORD: NTSTATUS = -1073741655i32;
pub const STATUS_BAD_MCFG_TABLE: NTSTATUS = -1073739512i32;
pub const STATUS_BAD_NETWORK_NAME: NTSTATUS = -1073741620i32;
pub const STATUS_BAD_NETWORK_PATH: NTSTATUS = -1073741634i32;
pub const STATUS_BAD_REMOTE_ADAPTER: NTSTATUS = -1073741627i32;
pub const STATUS_BAD_SERVICE_ENTRYPOINT: NTSTATUS = -1073741230i32;
pub const STATUS_BAD_STACK: NTSTATUS = -1073741784i32;
pub const STATUS_BAD_TOKEN_TYPE: NTSTATUS = -1073741656i32;
pub const STATUS_BAD_VALIDATION_CLASS: NTSTATUS = -1073741657i32;
pub const STATUS_BAD_WORKING_SET_LIMIT: NTSTATUS = -1073741748i32;
pub const STATUS_BCD_NOT_ALL_ENTRIES_IMPORTED: NTSTATUS = -2143748095i32;
pub const STATUS_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED: NTSTATUS = -2143748093i32;
pub const STATUS_BCD_TOO_MANY_ELEMENTS: NTSTATUS = -1070006270i32;
pub const STATUS_BEGINNING_OF_MEDIA: NTSTATUS = -2147483617i32;
pub const STATUS_BEYOND_VDL: NTSTATUS = -1073740750i32;
pub const STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT: NTSTATUS = -1073741458i32;
pub const STATUS_BIZRULES_NOT_ENABLED: NTSTATUS = 1073741876i32;
pub const STATUS_BLOCKED_BY_PARENTAL_CONTROLS: NTSTATUS = -1073740664i32;
pub const STATUS_BLOCK_TOO_MANY_REFERENCES: NTSTATUS = -1073740660i32;
pub const STATUS_BREAKPOINT: NTSTATUS = -2147483645i32;
pub const STATUS_BTH_ATT_ATTRIBUTE_NOT_FOUND: NTSTATUS = -1069416438i32;
pub const STATUS_BTH_ATT_ATTRIBUTE_NOT_LONG: NTSTATUS = -1069416437i32;
pub const STATUS_BTH_ATT_INSUFFICIENT_AUTHENTICATION: NTSTATUS = -1069416443i32;
pub const STATUS_BTH_ATT_INSUFFICIENT_AUTHORIZATION: NTSTATUS = -1069416440i32;
pub const STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION: NTSTATUS = -1069416433i32;
pub const STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE: NTSTATUS = -1069416436i32;
pub const STATUS_BTH_ATT_INSUFFICIENT_RESOURCES: NTSTATUS = -1069416431i32;
pub const STATUS_BTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH: NTSTATUS = -1069416435i32;
pub const STATUS_BTH_ATT_INVALID_HANDLE: NTSTATUS = -1069416447i32;
pub const STATUS_BTH_ATT_INVALID_OFFSET: NTSTATUS = -1069416441i32;
pub const STATUS_BTH_ATT_INVALID_PDU: NTSTATUS = -1069416444i32;
pub const STATUS_BTH_ATT_PREPARE_QUEUE_FULL: NTSTATUS = -1069416439i32;
pub const STATUS_BTH_ATT_READ_NOT_PERMITTED: NTSTATUS = -1069416446i32;
pub const STATUS_BTH_ATT_REQUEST_NOT_SUPPORTED: NTSTATUS = -1069416442i32;
pub const STATUS_BTH_ATT_UNKNOWN_ERROR: NTSTATUS = -1069412352i32;
pub const STATUS_BTH_ATT_UNLIKELY: NTSTATUS = -1069416434i32;
pub const STATUS_BTH_ATT_UNSUPPORTED_GROUP_TYPE: NTSTATUS = -1069416432i32;
pub const STATUS_BTH_ATT_WRITE_NOT_PERMITTED: NTSTATUS = -1069416445i32;
pub const STATUS_BUFFER_ALL_ZEROS: NTSTATUS = 279i32;
pub const STATUS_BUFFER_OVERFLOW: NTSTATUS = -2147483643i32;
pub const STATUS_BUFFER_TOO_SMALL: NTSTATUS = -1073741789i32;
pub const STATUS_BUS_RESET: NTSTATUS = -2147483619i32;
pub const STATUS_BYPASSIO_FLT_NOT_SUPPORTED: NTSTATUS = -1073740590i32;
pub const STATUS_CACHE_PAGE_LOCKED: NTSTATUS = 277i32;
pub const STATUS_CALLBACK_BYPASS: NTSTATUS = -1073740541i32;
pub const STATUS_CALLBACK_INVOKE_INLINE: NTSTATUS = -1073740661i32;
pub const STATUS_CALLBACK_POP_STACK: NTSTATUS = -1073740765i32;
pub const STATUS_CALLBACK_RETURNED_LANG: NTSTATUS = -1073740001i32;
pub const STATUS_CALLBACK_RETURNED_LDR_LOCK: NTSTATUS = -1073740002i32;
pub const STATUS_CALLBACK_RETURNED_PRI_BACK: NTSTATUS = -1073740000i32;
pub const STATUS_CALLBACK_RETURNED_THREAD_AFFINITY: NTSTATUS = -1073739999i32;
pub const STATUS_CALLBACK_RETURNED_THREAD_PRIORITY: NTSTATUS = -1073740005i32;
pub const STATUS_CALLBACK_RETURNED_TRANSACTION: NTSTATUS = -1073740003i32;
pub const STATUS_CALLBACK_RETURNED_WHILE_IMPERSONATING: NTSTATUS = -1073740016i32;
pub const STATUS_CANCELLED: NTSTATUS = -1073741536i32;
pub const STATUS_CANNOT_ABORT_TRANSACTIONS: NTSTATUS = -1072103347i32;
pub const STATUS_CANNOT_ACCEPT_TRANSACTED_WORK: NTSTATUS = -1072103348i32;
pub const STATUS_CANNOT_BREAK_OPLOCK: NTSTATUS = -1073739511i32;
pub const STATUS_CANNOT_DELETE: NTSTATUS = -1073741535i32;
pub const STATUS_CANNOT_EXECUTE_FILE_IN_TRANSACTION: NTSTATUS = -1072103356i32;
pub const STATUS_CANNOT_GRANT_REQUESTED_OPLOCK: NTSTATUS = -2147483602i32;
pub const STATUS_CANNOT_IMPERSONATE: NTSTATUS = -1073741555i32;
pub const STATUS_CANNOT_LOAD_REGISTRY_FILE: NTSTATUS = -1073741288i32;
pub const STATUS_CANNOT_MAKE: NTSTATUS = -1073741078i32;
pub const STATUS_CANNOT_SWITCH_RUNLEVEL: NTSTATUS = -1073700543i32;
pub const STATUS_CANT_ACCESS_DOMAIN_INFO: NTSTATUS = -1073741606i32;
pub const STATUS_CANT_BREAK_TRANSACTIONAL_DEPENDENCY: NTSTATUS = -1072103369i32;
pub const STATUS_CANT_CLEAR_ENCRYPTION_FLAG: NTSTATUS = -1073740616i32;
pub const STATUS_CANT_CREATE_MORE_STREAM_MINIVERSIONS: NTSTATUS = -1072103386i32;
pub const STATUS_CANT_CROSS_RM_BOUNDARY: NTSTATUS = -1072103368i32;
pub const STATUS_CANT_DISABLE_MANDATORY: NTSTATUS = -1073741731i32;
pub const STATUS_CANT_ENABLE_DENY_ONLY: NTSTATUS = -1073741133i32;
pub const STATUS_CANT_OPEN_ANONYMOUS: NTSTATUS = -1073741658i32;
pub const STATUS_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT: NTSTATUS = -1072103387i32;
pub const STATUS_CANT_RECOVER_WITH_HANDLE_OPEN: NTSTATUS = -2145845199i32;
pub const STATUS_CANT_TERMINATE_SELF: NTSTATUS = -1073741605i32;
pub const STATUS_CANT_WAIT: NTSTATUS = -1073741608i32;
pub const STATUS_CARDBUS_NOT_SUPPORTED: NTSTATUS = 1073741863i32;
pub const STATUS_CASE_DIFFERING_NAMES_IN_DIR: NTSTATUS = -1073740621i32;
pub const STATUS_CASE_SENSITIVE_PATH: NTSTATUS = -1073740614i32;
pub const STATUS_CC_NEEDS_CALLBACK_SECTION_DRAIN: NTSTATUS = -1073700856i32;
pub const STATUS_CERTIFICATE_MAPPING_NOT_UNIQUE: NTSTATUS = -1073740012i32;
pub const STATUS_CERTIFICATE_VALIDATION_PREFERENCE_CONFLICT: NTSTATUS = -1073741387i32;
pub const STATUS_CHECKING_FILE_SYSTEM: NTSTATUS = 1073741844i32;
pub const STATUS_CHECKOUT_REQUIRED: NTSTATUS = -1073739518i32;
pub const STATUS_CHILD_MUST_BE_VOLATILE: NTSTATUS = -1073741439i32;
pub const STATUS_CHILD_PROCESS_BLOCKED: NTSTATUS = -1073740643i32;
pub const STATUS_CIMFS_IMAGE_CORRUPT: NTSTATUS = -1073692671i32;
pub const STATUS_CIMFS_IMAGE_VERSION_NOT_SUPPORTED: NTSTATUS = -1073692670i32;
pub const STATUS_CLEANER_CARTRIDGE_INSTALLED: NTSTATUS = -2147483609i32;
pub const STATUS_CLIENT_SERVER_PARAMETERS_INVALID: NTSTATUS = -1073741277i32;
pub const STATUS_CLIP_DEVICE_LICENSE_MISSING: NTSTATUS = -1058406397i32;
pub const STATUS_CLIP_KEYHOLDER_LICENSE_MISSING_OR_INVALID: NTSTATUS = -1058406395i32;
pub const STATUS_CLIP_LICENSE_DEVICE_ID_MISMATCH: NTSTATUS = -1058406390i32;
pub const STATUS_CLIP_LICENSE_EXPIRED: NTSTATUS = -1058406394i32;
pub const STATUS_CLIP_LICENSE_HARDWARE_ID_OUT_OF_TOLERANCE: NTSTATUS = -1058406391i32;
pub const STATUS_CLIP_LICENSE_INVALID_SIGNATURE: NTSTATUS = -1058406396i32;
pub const STATUS_CLIP_LICENSE_NOT_FOUND: NTSTATUS = -1058406398i32;
pub const STATUS_CLIP_LICENSE_NOT_SIGNED: NTSTATUS = -1058406392i32;
pub const STATUS_CLIP_LICENSE_SIGNED_BY_UNKNOWN_SOURCE: NTSTATUS = -1058406393i32;
pub const STATUS_CLOUD_FILE_ACCESS_DENIED: NTSTATUS = -1073688808i32;
pub const STATUS_CLOUD_FILE_ALREADY_CONNECTED: NTSTATUS = -1073688823i32;
pub const STATUS_CLOUD_FILE_AUTHENTICATION_FAILED: NTSTATUS = -1073688817i32;
pub const STATUS_CLOUD_FILE_CONNECTED_PROVIDER_ONLY: NTSTATUS = -1073688819i32;
pub const STATUS_CLOUD_FILE_DEHYDRATION_DISALLOWED: NTSTATUS = -1073688800i32;
pub const STATUS_CLOUD_FILE_INCOMPATIBLE_HARDLINKS: NTSTATUS = -1073688807i32;
pub const STATUS_CLOUD_FILE_INSUFFICIENT_RESOURCES: NTSTATUS = -1073688816i32;
pub const STATUS_CLOUD_FILE_INVALID_REQUEST: NTSTATUS = -1073688821i32;
pub const STATUS_CLOUD_FILE_IN_USE: NTSTATUS = -1073688812i32;
pub const STATUS_CLOUD_FILE_METADATA_CORRUPT: NTSTATUS = -1073688830i32;
pub const STATUS_CLOUD_FILE_METADATA_TOO_LARGE: NTSTATUS = -1073688829i32;
pub const STATUS_CLOUD_FILE_NETWORK_UNAVAILABLE: NTSTATUS = -1073688815i32;
pub const STATUS_CLOUD_FILE_NOT_IN_SYNC: NTSTATUS = -1073688824i32;
pub const STATUS_CLOUD_FILE_NOT_SUPPORTED: NTSTATUS = -1073688822i32;
pub const STATUS_CLOUD_FILE_NOT_UNDER_SYNC_ROOT: NTSTATUS = -1073688813i32;
pub const STATUS_CLOUD_FILE_PINNED: NTSTATUS = -1073688811i32;
pub const STATUS_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH: NTSTATUS = -2147430656i32;
pub const STATUS_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE: NTSTATUS = -2147430652i32;
pub const STATUS_CLOUD_FILE_PROPERTY_CORRUPT: NTSTATUS = -1073688809i32;
pub const STATUS_CLOUD_FILE_PROPERTY_LOCK_CONFLICT: NTSTATUS = -1073688806i32;
pub const STATUS_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED: NTSTATUS = -1073688826i32;
pub const STATUS_CLOUD_FILE_PROVIDER_NOT_RUNNING: NTSTATUS = -1073688831i32;
pub const STATUS_CLOUD_FILE_PROVIDER_TERMINATED: NTSTATUS = -1073688803i32;
pub const STATUS_CLOUD_FILE_READ_ONLY_VOLUME: NTSTATUS = -1073688820i32;
pub const STATUS_CLOUD_FILE_REQUEST_ABORTED: NTSTATUS = -1073688810i32;
pub const STATUS_CLOUD_FILE_REQUEST_CANCELED: NTSTATUS = -1073688805i32;
pub const STATUS_CLOUD_FILE_REQUEST_TIMEOUT: NTSTATUS = -1073688801i32;
pub const STATUS_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT: NTSTATUS = -1073688832i32;
pub const STATUS_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS: NTSTATUS = -2147430651i32;
pub const STATUS_CLOUD_FILE_UNSUCCESSFUL: NTSTATUS = -1073688814i32;
pub const STATUS_CLOUD_FILE_VALIDATION_FAILED: NTSTATUS = -1073688818i32;
pub const STATUS_CLUSTER_CAM_TICKET_REPLAY_DETECTED: NTSTATUS = -1072496591i32;
pub const STATUS_CLUSTER_CSV_AUTO_PAUSE_ERROR: NTSTATUS = -1072496607i32;
pub const STATUS_CLUSTER_CSV_INVALID_HANDLE: NTSTATUS = -1072496599i32;
pub const STATUS_CLUSTER_CSV_NOT_REDIRECTED: NTSTATUS = -1072496605i32;
pub const STATUS_CLUSTER_CSV_NO_SNAPSHOTS: NTSTATUS = -1072496601i32;
pub const STATUS_CLUSTER_CSV_READ_OPLOCK_BREAK_IN_PROGRESS: NTSTATUS = -1072496608i32;
pub const STATUS_CLUSTER_CSV_REDIRECTED: NTSTATUS = -1072496606i32;
pub const STATUS_CLUSTER_CSV_SNAPSHOT_CREATION_IN_PROGRESS: NTSTATUS = -1072496603i32;
pub const STATUS_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR: NTSTATUS = -1072496592i32;
pub const STATUS_CLUSTER_CSV_VOLUME_DRAINING: NTSTATUS = -1072496604i32;
pub const STATUS_CLUSTER_CSV_VOLUME_DRAINING_SUCCEEDED_DOWNLEVEL: NTSTATUS = -1072496602i32;
pub const STATUS_CLUSTER_CSV_VOLUME_NOT_LOCAL: NTSTATUS = -1072496615i32;
pub const STATUS_CLUSTER_INVALID_NETWORK: NTSTATUS = -1072496624i32;
pub const STATUS_CLUSTER_INVALID_NETWORK_PROVIDER: NTSTATUS = -1072496629i32;
pub const STATUS_CLUSTER_INVALID_NODE: NTSTATUS = -1072496639i32;
pub const STATUS_CLUSTER_INVALID_REQUEST: NTSTATUS = -1072496630i32;
pub const STATUS_CLUSTER_JOIN_IN_PROGRESS: NTSTATUS = -1072496637i32;
pub const STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS: NTSTATUS = -1072496625i32;
pub const STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND: NTSTATUS = -1072496635i32;
pub const STATUS_CLUSTER_NETINTERFACE_EXISTS: NTSTATUS = -1072496632i32;
pub const STATUS_CLUSTER_NETINTERFACE_NOT_FOUND: NTSTATUS = -1072496631i32;
pub const STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE: NTSTATUS = -2146238460i32;
pub const STATUS_CLUSTER_NETWORK_ALREADY_ONLINE: NTSTATUS = -2146238461i32;
pub const STATUS_CLUSTER_NETWORK_EXISTS: NTSTATUS = -1072496634i32;
pub const STATUS_CLUSTER_NETWORK_NOT_FOUND: NTSTATUS = -1072496633i32;
pub const STATUS_CLUSTER_NETWORK_NOT_INTERNAL: NTSTATUS = -1072496618i32;
pub const STATUS_CLUSTER_NODE_ALREADY_DOWN: NTSTATUS = -2146238462i32;
pub const STATUS_CLUSTER_NODE_ALREADY_MEMBER: NTSTATUS = -2146238459i32;
pub const STATUS_CLUSTER_NODE_ALREADY_UP: NTSTATUS = -2146238463i32;
pub const STATUS_CLUSTER_NODE_DOWN: NTSTATUS = -1072496628i32;
pub const STATUS_CLUSTER_NODE_EXISTS: NTSTATUS = -1072496638i32;
pub const STATUS_CLUSTER_NODE_NOT_FOUND: NTSTATUS = -1072496636i32;
pub const STATUS_CLUSTER_NODE_NOT_MEMBER: NTSTATUS = -1072496626i32;
pub const STATUS_CLUSTER_NODE_NOT_PAUSED: NTSTATUS = -1072496620i32;
pub const STATUS_CLUSTER_NODE_PAUSED: NTSTATUS = -1072496621i32;
pub const STATUS_CLUSTER_NODE_UNREACHABLE: NTSTATUS = -1072496627i32;
pub const STATUS_CLUSTER_NODE_UP: NTSTATUS = -1072496622i32;
pub const STATUS_CLUSTER_NON_CSV_PATH: NTSTATUS = -1072496616i32;
pub const STATUS_CLUSTER_NO_NET_ADAPTERS: NTSTATUS = -1072496623i32;
pub const STATUS_CLUSTER_NO_SECURITY_CONTEXT: NTSTATUS = -1072496619i32;
pub const STATUS_CLUSTER_POISONED: NTSTATUS = -1072496617i32;
pub const STATUS_COMMITMENT_LIMIT: NTSTATUS = -1073741523i32;
pub const STATUS_COMMITMENT_MINIMUM: NTSTATUS = -1073741112i32;
pub const STATUS_COMPRESSED_FILE_NOT_SUPPORTED: NTSTATUS = -1073740677i32;
pub const STATUS_COMPRESSION_DISABLED: NTSTATUS = -1073740762i32;
pub const STATUS_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION: NTSTATUS = -1072103338i32;
pub const STATUS_COMPRESSION_NOT_BENEFICIAL: NTSTATUS = -1073740689i32;
pub const STATUS_CONFLICTING_ADDRESSES: NTSTATUS = -1073741800i32;
pub const STATUS_CONNECTION_ABORTED: NTSTATUS = -1073741247i32;
pub const STATUS_CONNECTION_ACTIVE: NTSTATUS = -1073741253i32;
pub const STATUS_CONNECTION_COUNT_LIMIT: NTSTATUS = -1073741242i32;
pub const STATUS_CONNECTION_DISCONNECTED: NTSTATUS = -1073741300i32;
pub const STATUS_CONNECTION_INVALID: NTSTATUS = -1073741254i32;
pub const STATUS_CONNECTION_IN_USE: NTSTATUS = -1073741560i32;
pub const STATUS_CONNECTION_REFUSED: NTSTATUS = -1073741258i32;
pub const STATUS_CONNECTION_RESET: NTSTATUS = -1073741299i32;
pub const STATUS_CONTAINER_ASSIGNED: NTSTATUS = -1073740536i32;
pub const STATUS_CONTENT_BLOCKED: NTSTATUS = -1073739772i32;
pub const STATUS_CONTEXT_MISMATCH: NTSTATUS = -1073740007i32;
pub const STATUS_CONTEXT_STOWED_EXCEPTION: NTSTATUS = -1073741188i32;
pub const STATUS_CONTROL_C_EXIT: NTSTATUS = -1073741510i32;
pub const STATUS_CONTROL_STACK_VIOLATION: NTSTATUS = -1073741390i32;
pub const STATUS_CONVERT_TO_LARGE: NTSTATUS = -1073741268i32;
pub const STATUS_COPY_PROTECTION_FAILURE: NTSTATUS = -1073741051i32;
pub const STATUS_CORRUPT_LOG_CLEARED: NTSTATUS = -1073739763i32;
pub const STATUS_CORRUPT_LOG_CORRUPTED: NTSTATUS = -1073739766i32;
pub const STATUS_CORRUPT_LOG_DELETED_FULL: NTSTATUS = -1073739764i32;
pub const STATUS_CORRUPT_LOG_OVERFULL: NTSTATUS = -1073739767i32;
pub const STATUS_CORRUPT_LOG_UNAVAILABLE: NTSTATUS = -1073739765i32;
pub const STATUS_CORRUPT_LOG_UPLEVEL_RECORDS: NTSTATUS = -1073739759i32;
pub const STATUS_CORRUPT_SYSTEM_FILE: NTSTATUS = -1073741116i32;
pub const STATUS_COULD_NOT_INTERPRET: NTSTATUS = -1073741639i32;
pub const STATUS_COULD_NOT_RESIZE_LOG: NTSTATUS = -2145845239i32;
pub const STATUS_CPU_SET_INVALID: NTSTATUS = -1073741393i32;
pub const STATUS_CRASH_DUMP: NTSTATUS = 278i32;
pub const STATUS_CRC_ERROR: NTSTATUS = -1073741761i32;
pub const STATUS_CRED_REQUIRES_CONFIRMATION: NTSTATUS = -1073740736i32;
pub const STATUS_CRM_PROTOCOL_ALREADY_EXISTS: NTSTATUS = -1072103409i32;
pub const STATUS_CRM_PROTOCOL_NOT_FOUND: NTSTATUS = -1072103407i32;
pub const STATUS_CROSSREALM_DELEGATION_FAILURE: NTSTATUS = -1073740789i32;
pub const STATUS_CROSS_PARTITION_VIOLATION: NTSTATUS = -1073740277i32;
pub const STATUS_CRYPTO_SYSTEM_INVALID: NTSTATUS = -1073741069i32;
pub const STATUS_CSS_AUTHENTICATION_FAILURE: NTSTATUS = -1073741050i32;
pub const STATUS_CSS_KEY_NOT_ESTABLISHED: NTSTATUS = -1073741048i32;
pub const STATUS_CSS_KEY_NOT_PRESENT: NTSTATUS = -1073741049i32;
pub const STATUS_CSS_REGION_MISMATCH: NTSTATUS = -1073741046i32;
pub const STATUS_CSS_RESETS_EXHAUSTED: NTSTATUS = -1073741045i32;
pub const STATUS_CSS_SCRAMBLED_SECTOR: NTSTATUS = -1073741047i32;
pub const STATUS_CSV_IO_PAUSE_TIMEOUT: NTSTATUS = -1072496600i32;
pub const STATUS_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE: NTSTATUS = -1073740733i32;
pub const STATUS_CS_ENCRYPTION_FILE_NOT_CSE: NTSTATUS = -1073740731i32;
pub const STATUS_CS_ENCRYPTION_INVALID_SERVER_RESPONSE: NTSTATUS = -1073740735i32;
pub const STATUS_CS_ENCRYPTION_NEW_ENCRYPTED_FILE: NTSTATUS = -1073740732i32;
pub const STATUS_CS_ENCRYPTION_UNSUPPORTED_SERVER: NTSTATUS = -1073740734i32;
pub const STATUS_CTLOG_INCONSISTENT_TRACKING_FILE: NTSTATUS = -1069940700i32;
pub const STATUS_CTLOG_INVALID_TRACKING_STATE: NTSTATUS = -1069940701i32;
pub const STATUS_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE: NTSTATUS = -1069940703i32;
pub const STATUS_CTLOG_TRACKING_NOT_INITIALIZED: NTSTATUS = -1069940704i32;
pub const STATUS_CTLOG_VHD_CHANGED_OFFLINE: NTSTATUS = -1069940702i32;
pub const STATUS_CTL_FILE_NOT_SUPPORTED: NTSTATUS = -1073741737i32;
pub const STATUS_CTX_BAD_VIDEO_MODE: NTSTATUS = -1073086440i32;
pub const STATUS_CTX_CDM_CONNECT: NTSTATUS = 1074397188i32;
pub const STATUS_CTX_CDM_DISCONNECT: NTSTATUS = 1074397189i32;
pub const STATUS_CTX_CLIENT_LICENSE_IN_USE: NTSTATUS = -1073086412i32;
pub const STATUS_CTX_CLIENT_LICENSE_NOT_SET: NTSTATUS = -1073086413i32;
pub const STATUS_CTX_CLIENT_QUERY_TIMEOUT: NTSTATUS = -1073086426i32;
pub const STATUS_CTX_CLOSE_PENDING: NTSTATUS = -1073086458i32;
pub const STATUS_CTX_CONSOLE_CONNECT: NTSTATUS = -1073086424i32;
pub const STATUS_CTX_CONSOLE_DISCONNECT: NTSTATUS = -1073086425i32;
pub const STATUS_CTX_GRAPHICS_INVALID: NTSTATUS = -1073086430i32;
pub const STATUS_CTX_INVALID_MODEMNAME: NTSTATUS = -1073086455i32;
pub const STATUS_CTX_INVALID_PD: NTSTATUS = -1073086462i32;
pub const STATUS_CTX_INVALID_WD: NTSTATUS = -1073086418i32;
pub const STATUS_CTX_LICENSE_CLIENT_INVALID: NTSTATUS = -1073086446i32;
pub const STATUS_CTX_LICENSE_EXPIRED: NTSTATUS = -1073086444i32;
pub const STATUS_CTX_LICENSE_NOT_AVAILABLE: NTSTATUS = -1073086445i32;
pub const STATUS_CTX_LOGON_DISABLED: NTSTATUS = -1073086409i32;
pub const STATUS_CTX_MODEM_INF_NOT_FOUND: NTSTATUS = -1073086456i32;
pub const STATUS_CTX_MODEM_RESPONSE_BUSY: NTSTATUS = -1073086450i32;
pub const STATUS_CTX_MODEM_RESPONSE_NO_CARRIER: NTSTATUS = -1073086452i32;
pub const STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE: NTSTATUS = -1073086451i32;
pub const STATUS_CTX_MODEM_RESPONSE_TIMEOUT: NTSTATUS = -1073086453i32;
pub const STATUS_CTX_MODEM_RESPONSE_VOICE: NTSTATUS = -1073086449i32;
pub const STATUS_CTX_NOT_CONSOLE: NTSTATUS = -1073086428i32;
pub const STATUS_CTX_NO_OUTBUF: NTSTATUS = -1073086457i32;
pub const STATUS_CTX_PD_NOT_FOUND: NTSTATUS = -1073086461i32;
pub const STATUS_CTX_RESPONSE_ERROR: NTSTATUS = -1073086454i32;
pub const STATUS_CTX_SECURITY_LAYER_ERROR: NTSTATUS = -1073086408i32;
pub const STATUS_CTX_SHADOW_DENIED: NTSTATUS = -1073086422i32;
pub const STATUS_CTX_SHADOW_DISABLED: NTSTATUS = -1073086415i32;
pub const STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE: NTSTATUS = -1073086411i32;
pub const STATUS_CTX_SHADOW_INVALID: NTSTATUS = -1073086416i32;
pub const STATUS_CTX_SHADOW_NOT_RUNNING: NTSTATUS = -1073086410i32;
pub const STATUS_CTX_TD_ERROR: NTSTATUS = -1073086448i32;
pub const STATUS_CTX_WD_NOT_FOUND: NTSTATUS = -1073086417i32;
pub const STATUS_CTX_WINSTATION_ACCESS_DENIED: NTSTATUS = -1073086421i32;
pub const STATUS_CTX_WINSTATION_BUSY: NTSTATUS = -1073086441i32;
pub const STATUS_CTX_WINSTATION_NAME_COLLISION: NTSTATUS = -1073086442i32;
pub const STATUS_CTX_WINSTATION_NAME_INVALID: NTSTATUS = -1073086463i32;
pub const STATUS_CTX_WINSTATION_NOT_FOUND: NTSTATUS = -1073086443i32;
pub const STATUS_CURRENT_DOMAIN_NOT_ALLOWED: NTSTATUS = -1073741079i32;
pub const STATUS_CURRENT_TRANSACTION_NOT_VALID: NTSTATUS = -1072103400i32;
pub const STATUS_DATATYPE_MISALIGNMENT: NTSTATUS = -2147483646i32;
pub const STATUS_DATATYPE_MISALIGNMENT_ERROR: NTSTATUS = -1073741115i32;
pub const STATUS_DATA_CHECKSUM_ERROR: NTSTATUS = -1073740688i32;
pub const STATUS_DATA_ERROR: NTSTATUS = -1073741762i32;
pub const STATUS_DATA_LATE_ERROR: NTSTATUS = -1073741763i32;
pub const STATUS_DATA_LOST_REPAIR: NTSTATUS = -2147481597i32;
pub const STATUS_DATA_NOT_ACCEPTED: NTSTATUS = -1073741285i32;
pub const STATUS_DATA_OVERRUN: NTSTATUS = -1073741764i32;
pub const STATUS_DATA_OVERWRITTEN: NTSTATUS = 304i32;
pub const STATUS_DAX_MAPPING_EXISTS: NTSTATUS = -1073740644i32;
pub const STATUS_DEBUGGER_INACTIVE: NTSTATUS = -1073740972i32;
pub const STATUS_DEBUG_ATTACH_FAILED: NTSTATUS = -1073741287i32;
pub const STATUS_DECRYPTION_FAILED: NTSTATUS = -1073741173i32;
pub const STATUS_DELAY_LOAD_FAILED: NTSTATUS = -1073740782i32;
pub const STATUS_DELETE_PENDING: NTSTATUS = -1073741738i32;
pub const STATUS_DESTINATION_ELEMENT_FULL: NTSTATUS = -1073741180i32;
pub const STATUS_DEVICE_ALREADY_ATTACHED: NTSTATUS = -1073741768i32;
pub const STATUS_DEVICE_BUSY: NTSTATUS = -2147483631i32;
pub const STATUS_DEVICE_CONFIGURATION_ERROR: NTSTATUS = -1073741438i32;
pub const STATUS_DEVICE_DATA_ERROR: NTSTATUS = -1073741668i32;
pub const STATUS_DEVICE_DOES_NOT_EXIST: NTSTATUS = -1073741632i32;
pub const STATUS_DEVICE_DOOR_OPEN: NTSTATUS = -2147482999i32;
pub const STATUS_DEVICE_ENUMERATION_ERROR: NTSTATUS = -1073740954i32;
pub const STATUS_DEVICE_FEATURE_NOT_SUPPORTED: NTSTATUS = -1073740701i32;
pub const STATUS_DEVICE_HARDWARE_ERROR: NTSTATUS = -1073740669i32;
pub const STATUS_DEVICE_HINT_NAME_BUFFER_TOO_SMALL: NTSTATUS = -1073740650i32;
pub const STATUS_DEVICE_HUNG: NTSTATUS = -1073740537i32;
pub const STATUS_DEVICE_INSUFFICIENT_RESOURCES: NTSTATUS = -1073740696i32;
pub const STATUS_DEVICE_IN_MAINTENANCE: NTSTATUS = -1073740647i32;
pub const STATUS_DEVICE_NOT_CONNECTED: NTSTATUS = -1073741667i32;
pub const STATUS_DEVICE_NOT_PARTITIONED: NTSTATUS = -1073741452i32;
pub const STATUS_DEVICE_NOT_READY: NTSTATUS = -1073741661i32;
pub const STATUS_DEVICE_OFF_LINE: NTSTATUS = -2147483632i32;
pub const STATUS_DEVICE_PAPER_EMPTY: NTSTATUS = -2147483634i32;
pub const STATUS_DEVICE_POWERED_OFF: NTSTATUS = -2147483633i32;
pub const STATUS_DEVICE_POWER_CYCLE_REQUIRED: NTSTATUS = -2147483599i32;
pub const STATUS_DEVICE_POWER_FAILURE: NTSTATUS = -1073741666i32;
pub const STATUS_DEVICE_PROTOCOL_ERROR: NTSTATUS = -1073741434i32;
pub const STATUS_DEVICE_REMOVED: NTSTATUS = -1073741130i32;
pub const STATUS_DEVICE_REQUIRES_CLEANING: NTSTATUS = -2147483000i32;
pub const STATUS_DEVICE_RESET_REQUIRED: NTSTATUS = -2147483210i32;
pub const STATUS_DEVICE_SUPPORT_IN_PROGRESS: NTSTATUS = -2147483600i32;
pub const STATUS_DEVICE_UNREACHABLE: NTSTATUS = -1073740700i32;
pub const STATUS_DEVICE_UNRESPONSIVE: NTSTATUS = -1073740534i32;
pub const STATUS_DFS_EXIT_PATH_FOUND: NTSTATUS = -1073741669i32;
pub const STATUS_DFS_UNAVAILABLE: NTSTATUS = -1073741203i32;
pub const STATUS_DIF_BINDING_API_NOT_FOUND: NTSTATUS = -1073738625i32;
pub const STATUS_DIF_IOCALLBACK_NOT_REPLACED: NTSTATUS = -1073738634i32;
pub const STATUS_DIF_LIVEDUMP_LIMIT_EXCEEDED: NTSTATUS = -1073738633i32;
pub const STATUS_DIF_VOLATILE_DRIVER_HOTPATCHED: NTSTATUS = -1073738631i32;
pub const STATUS_DIF_VOLATILE_DRIVER_IS_NOT_RUNNING: NTSTATUS = -1073738629i32;
pub const STATUS_DIF_VOLATILE_INVALID_INFO: NTSTATUS = -1073738630i32;
pub const STATUS_DIF_VOLATILE_NOT_ALLOWED: NTSTATUS = -1073738626i32;
pub const STATUS_DIF_VOLATILE_PLUGIN_CHANGE_NOT_ALLOWED: NTSTATUS = -1073738627i32;
pub const STATUS_DIF_VOLATILE_PLUGIN_IS_NOT_RUNNING: NTSTATUS = -1073738628i32;
pub const STATUS_DIF_VOLATILE_SECTION_NOT_LOCKED: NTSTATUS = -1073738632i32;
pub const STATUS_DIRECTORY_IS_A_REPARSE_POINT: NTSTATUS = -1073741183i32;
pub const STATUS_DIRECTORY_NOT_EMPTY: NTSTATUS = -1073741567i32;
pub const STATUS_DIRECTORY_NOT_RM: NTSTATUS = -1072103416i32;
pub const STATUS_DIRECTORY_NOT_SUPPORTED: NTSTATUS = -1073740676i32;
pub const STATUS_DIRECTORY_SERVICE_REQUIRED: NTSTATUS = -1073741135i32;
pub const STATUS_DISK_CORRUPT_ERROR: NTSTATUS = -1073741774i32;
pub const STATUS_DISK_FULL: NTSTATUS = -1073741697i32;
pub const STATUS_DISK_OPERATION_FAILED: NTSTATUS = -1073741462i32;
pub const STATUS_DISK_QUOTA_EXCEEDED: NTSTATUS = -1073739774i32;
pub const STATUS_DISK_RECALIBRATE_FAILED: NTSTATUS = -1073741463i32;
pub const STATUS_DISK_REPAIR_DISABLED: NTSTATUS = -1073739776i32;
pub const STATUS_DISK_REPAIR_REDIRECTED: NTSTATUS = 1073743879i32;
pub const STATUS_DISK_REPAIR_UNSUCCESSFUL: NTSTATUS = -1073739768i32;
pub const STATUS_DISK_RESET_FAILED: NTSTATUS = -1073741461i32;
pub const STATUS_DISK_RESOURCES_EXHAUSTED: NTSTATUS = -1073740703i32;
pub const STATUS_DLL_INIT_FAILED: NTSTATUS = -1073741502i32;
pub const STATUS_DLL_INIT_FAILED_LOGOFF: NTSTATUS = -1073741205i32;
pub const STATUS_DLL_MIGHT_BE_INCOMPATIBLE: NTSTATUS = -2147483604i32;
pub const STATUS_DLL_MIGHT_BE_INSECURE: NTSTATUS = -2147483605i32;
pub const STATUS_DLL_NOT_FOUND: NTSTATUS = -1073741515i32;
pub const STATUS_DOMAIN_CONTROLLER_NOT_FOUND: NTSTATUS = -1073741261i32;
pub const STATUS_DOMAIN_CTRLR_CONFIG_ERROR: NTSTATUS = -1073741474i32;
pub const STATUS_DOMAIN_EXISTS: NTSTATUS = -1073741600i32;
pub const STATUS_DOMAIN_LIMIT_EXCEEDED: NTSTATUS = -1073741599i32;
pub const STATUS_DOMAIN_TRUST_INCONSISTENT: NTSTATUS = -1073741413i32;
pub const STATUS_DRIVERS_LEAKING_LOCKED_PAGES: NTSTATUS = 1073741869i32;
pub const STATUS_DRIVER_BLOCKED: NTSTATUS = -1073740948i32;
pub const STATUS_DRIVER_BLOCKED_CRITICAL: NTSTATUS = -1073740949i32;
pub const STATUS_DRIVER_CANCEL_TIMEOUT: NTSTATUS = -1073741282i32;
pub const STATUS_DRIVER_DATABASE_ERROR: NTSTATUS = -1073740947i32;
pub const STATUS_DRIVER_ENTRYPOINT_NOT_FOUND: NTSTATUS = -1073741213i32;
pub const STATUS_DRIVER_FAILED_PRIOR_UNLOAD: NTSTATUS = -1073740914i32;
pub const STATUS_DRIVER_FAILED_SLEEP: NTSTATUS = -1073741118i32;
pub const STATUS_DRIVER_INTERNAL_ERROR: NTSTATUS = -1073741437i32;
pub const STATUS_DRIVER_ORDINAL_NOT_FOUND: NTSTATUS = -1073741214i32;
pub const STATUS_DRIVER_PROCESS_TERMINATED: NTSTATUS = -1073740720i32;
pub const STATUS_DRIVER_UNABLE_TO_LOAD: NTSTATUS = -1073741204i32;
pub const STATUS_DS_ADMIN_LIMIT_EXCEEDED: NTSTATUS = -1073741119i32;
pub const STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER: NTSTATUS = -1073740968i32;
pub const STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS: NTSTATUS = -1073741148i32;
pub const STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED: NTSTATUS = -1073741149i32;
pub const STATUS_DS_BUSY: NTSTATUS = -1073741147i32;
pub const STATUS_DS_CANT_MOD_OBJ_CLASS: NTSTATUS = -1073741138i32;
pub const STATUS_DS_CANT_MOD_PRIMARYGROUPID: NTSTATUS = -1073741104i32;
pub const STATUS_DS_CANT_ON_NON_LEAF: NTSTATUS = -1073741140i32;
pub const STATUS_DS_CANT_ON_RDN: NTSTATUS = -1073741139i32;
pub const STATUS_DS_CANT_START: NTSTATUS = -1073741087i32;
pub const STATUS_DS_CROSS_DOM_MOVE_FAILED: NTSTATUS = -1073741137i32;
pub const STATUS_DS_DOMAIN_NAME_EXISTS_IN_FOREST: NTSTATUS = -1073740774i32;
pub const STATUS_DS_DOMAIN_RENAME_IN_PROGRESS: NTSTATUS = -1073739775i32;
pub const STATUS_DS_DUPLICATE_ID_FOUND: NTSTATUS = -1073740795i32;
pub const STATUS_DS_FLAT_NAME_EXISTS_IN_FOREST: NTSTATUS = -1073740773i32;
pub const STATUS_DS_GC_NOT_AVAILABLE: NTSTATUS = -1073741136i32;
pub const STATUS_DS_GC_REQUIRED: NTSTATUS = -1073741084i32;
pub const STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER: NTSTATUS = -1073741094i32;
pub const STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER: NTSTATUS = -1073741097i32;
pub const STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER: NTSTATUS = -1073741096i32;
pub const STATUS_DS_GROUP_CONVERSION_ERROR: NTSTATUS = -1073740794i32;
pub const STATUS_DS_HAVE_PRIMARY_MEMBERS: NTSTATUS = -1073741092i32;
pub const STATUS_DS_INCORRECT_ROLE_OWNER: NTSTATUS = -1073741143i32;
pub const STATUS_DS_INIT_FAILURE: NTSTATUS = -1073741086i32;
pub const STATUS_DS_INIT_FAILURE_CONSOLE: NTSTATUS = -1073741076i32;
pub const STATUS_DS_INVALID_ATTRIBUTE_SYNTAX: NTSTATUS = -1073741150i32;
pub const STATUS_DS_INVALID_GROUP_TYPE: NTSTATUS = -1073741100i32;
pub const STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER: NTSTATUS = -1073741093i32;
pub const STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY: NTSTATUS = -1073741083i32;
pub const STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED: NTSTATUS = -1073741081i32;
pub const STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY: NTSTATUS = 289i32;
pub const STATUS_DS_NAME_NOT_UNIQUE: NTSTATUS = -1073740796i32;
pub const STATUS_DS_NO_ATTRIBUTE_OR_VALUE: NTSTATUS = -1073741151i32;
pub const STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS: NTSTATUS = -1073741082i32;
pub const STATUS_DS_NO_MORE_RIDS: NTSTATUS = -1073741144i32;
pub const STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN: NTSTATUS = -1073741099i32;
pub const STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN: NTSTATUS = -1073741098i32;
pub const STATUS_DS_NO_RIDS_ALLOCATED: NTSTATUS = -1073741145i32;
pub const STATUS_DS_OBJ_CLASS_VIOLATION: NTSTATUS = -1073741141i32;
pub const STATUS_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS: NTSTATUS = -1073700729i32;
pub const STATUS_DS_OID_NOT_FOUND: NTSTATUS = -1073700728i32;
pub const STATUS_DS_RIDMGR_DISABLED: NTSTATUS = -1073741126i32;
pub const STATUS_DS_RIDMGR_INIT_ERROR: NTSTATUS = -1073741142i32;
pub const STATUS_DS_SAM_INIT_FAILURE: NTSTATUS = -1073741109i32;
pub const STATUS_DS_SAM_INIT_FAILURE_CONSOLE: NTSTATUS = -1073741075i32;
pub const STATUS_DS_SENSITIVE_GROUP_VIOLATION: NTSTATUS = -1073741107i32;
pub const STATUS_DS_SHUTTING_DOWN: NTSTATUS = 1073742704i32;
pub const STATUS_DS_SRC_SID_EXISTS_IN_FOREST: NTSTATUS = -1073740775i32;
pub const STATUS_DS_UNAVAILABLE: NTSTATUS = -1073741146i32;
pub const STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER: NTSTATUS = -1073741095i32;
pub const STATUS_DS_VERSION_CHECK_FAILURE: NTSTATUS = -1073740971i32;
pub const STATUS_DUPLICATE_NAME: NTSTATUS = -1073741635i32;
pub const STATUS_DUPLICATE_OBJECTID: NTSTATUS = -1073741270i32;
pub const STATUS_DUPLICATE_PRIVILEGES: NTSTATUS = -1073741402i32;
pub const STATUS_DYNAMIC_CODE_BLOCKED: NTSTATUS = -1073740284i32;
pub const STATUS_EAS_NOT_SUPPORTED: NTSTATUS = -1073741745i32;
pub const STATUS_EA_CORRUPT_ERROR: NTSTATUS = -1073741741i32;
pub const STATUS_EA_LIST_INCONSISTENT: NTSTATUS = -2147483628i32;
pub const STATUS_EA_TOO_LARGE: NTSTATUS = -1073741744i32;
pub const STATUS_EFS_ALG_BLOB_TOO_BIG: NTSTATUS = -1073740974i32;
pub const STATUS_EFS_NOT_ALLOWED_IN_TRANSACTION: NTSTATUS = -1072103362i32;
pub const STATUS_ELEVATION_REQUIRED: NTSTATUS = -1073740756i32;
pub const STATUS_EMULATION_BREAKPOINT: NTSTATUS = 1073741880i32;
pub const STATUS_EMULATION_SYSCALL: NTSTATUS = 1073741881i32;
pub const STATUS_ENCLAVE_FAILURE: NTSTATUS = -1073740657i32;
pub const STATUS_ENCLAVE_IS_TERMINATING: NTSTATUS = -1073740526i32;
pub const STATUS_ENCLAVE_NOT_TERMINATED: NTSTATUS = -1073740527i32;
pub const STATUS_ENCLAVE_VIOLATION: NTSTATUS = -1073740638i32;
pub const STATUS_ENCOUNTERED_WRITE_IN_PROGRESS: NTSTATUS = -1073740749i32;
pub const STATUS_ENCRYPTED_FILE_NOT_SUPPORTED: NTSTATUS = -1073740605i32;
pub const STATUS_ENCRYPTED_IO_NOT_POSSIBLE: NTSTATUS = -1073739760i32;
pub const STATUS_ENCRYPTING_METADATA_DISALLOWED: NTSTATUS = -1073740617i32;
pub const STATUS_ENCRYPTION_DISABLED: NTSTATUS = -1073740618i32;
pub const STATUS_ENCRYPTION_FAILED: NTSTATUS = -1073741174i32;
pub const STATUS_END_OF_FILE: NTSTATUS = -1073741807i32;
pub const STATUS_END_OF_MEDIA: NTSTATUS = -2147483618i32;
pub const STATUS_ENLISTMENT_NOT_FOUND: NTSTATUS = -1072103344i32;
pub const STATUS_ENLISTMENT_NOT_SUPERIOR: NTSTATUS = -1072103373i32;
pub const STATUS_ENTRYPOINT_NOT_FOUND: NTSTATUS = -1073741511i32;
pub const STATUS_EOF_ON_GHOSTED_RANGE: NTSTATUS = -1073700857i32;
pub const STATUS_EOM_OVERFLOW: NTSTATUS = -1073741449i32;
pub const STATUS_ERROR_PROCESS_NOT_IN_JOB: NTSTATUS = -1073741394i32;
pub const STATUS_EVALUATION_EXPIRATION: NTSTATUS = -1073741208i32;
pub const STATUS_EVENTLOG_CANT_START: NTSTATUS = -1073741425i32;
pub const STATUS_EVENTLOG_FILE_CHANGED: NTSTATUS = -1073741417i32;
pub const STATUS_EVENTLOG_FILE_CORRUPT: NTSTATUS = -1073741426i32;
pub const STATUS_EVENT_DONE: NTSTATUS = 1073741842i32;
pub const STATUS_EVENT_PENDING: NTSTATUS = 1073741843i32;
pub const STATUS_EXECUTABLE_MEMORY_WRITE: NTSTATUS = -1073739997i32;
pub const STATUS_EXPIRED_HANDLE: NTSTATUS = -1072103328i32;
pub const STATUS_EXTERNAL_BACKING_PROVIDER_UNKNOWN: NTSTATUS = -1073740690i32;
pub const STATUS_EXTERNAL_SYSKEY_NOT_SUPPORTED: NTSTATUS = -1073740639i32;
pub const STATUS_EXTRANEOUS_INFORMATION: NTSTATUS = -2147483625i32;
pub const STATUS_FAILED_DRIVER_ENTRY: NTSTATUS = -1073740955i32;
pub const STATUS_FAILED_STACK_SWITCH: NTSTATUS = -1073740941i32;
pub const STATUS_FAIL_CHECK: NTSTATUS = -1073741271i32;
pub const STATUS_FAIL_FAST_EXCEPTION: NTSTATUS = -1073740286i32;
pub const STATUS_FASTPATH_REJECTED: NTSTATUS = -1073700844i32;
pub const STATUS_FATAL_APP_EXIT: NTSTATUS = 1073741845i32;
pub const STATUS_FATAL_MEMORY_EXHAUSTION: NTSTATUS = -1073741395i32;
pub const STATUS_FATAL_USER_CALLBACK_EXCEPTION: NTSTATUS = -1073740771i32;
pub const STATUS_FILEMARK_DETECTED: NTSTATUS = -2147483621i32;
pub const STATUS_FILES_OPEN: NTSTATUS = -1073741561i32;
pub const STATUS_FILE_CHECKED_OUT: NTSTATUS = -1073739519i32;
pub const STATUS_FILE_CLOSED: NTSTATUS = -1073741528i32;
pub const STATUS_FILE_CORRUPT_ERROR: NTSTATUS = -1073741566i32;
pub const STATUS_FILE_DELETED: NTSTATUS = -1073741533i32;
pub const STATUS_FILE_ENCRYPTED: NTSTATUS = -1073741165i32;
pub const STATUS_FILE_FORCED_CLOSED: NTSTATUS = -1073741642i32;
pub const STATUS_FILE_HANDLE_REVOKED: NTSTATUS = -1073739504i32;
pub const STATUS_FILE_IDENTITY_NOT_PERSISTENT: NTSTATUS = -1072103370i32;
pub const STATUS_FILE_INVALID: NTSTATUS = -1073741672i32;
pub const STATUS_FILE_IS_A_DIRECTORY: NTSTATUS = -1073741638i32;
pub const STATUS_FILE_IS_OFFLINE: NTSTATUS = -1073741209i32;
pub const STATUS_FILE_LOCKED_WITH_ONLY_READERS: NTSTATUS = 298i32;
pub const STATUS_FILE_LOCKED_WITH_WRITERS: NTSTATUS = 299i32;
pub const STATUS_FILE_LOCK_CONFLICT: NTSTATUS = -1073741740i32;
pub const STATUS_FILE_METADATA_OPTIMIZATION_IN_PROGRESS: NTSTATUS = -1073741397i32;
pub const STATUS_FILE_NOT_AVAILABLE: NTSTATUS = -1073740697i32;
pub const STATUS_FILE_NOT_ENCRYPTED: NTSTATUS = -1073741167i32;
pub const STATUS_FILE_NOT_SUPPORTED: NTSTATUS = -1073740620i32;
pub const STATUS_FILE_PROTECTED_UNDER_DPL: NTSTATUS = -1073740637i32;
pub const STATUS_FILE_RENAMED: NTSTATUS = -1073741611i32;
pub const STATUS_FILE_SNAP_INVALID_PARAMETER: NTSTATUS = -1073679099i32;
pub const STATUS_FILE_SNAP_IN_PROGRESS: NTSTATUS = -1073679104i32;
pub const STATUS_FILE_SNAP_IO_NOT_COORDINATED: NTSTATUS = -1073679101i32;
pub const STATUS_FILE_SNAP_MODIFY_NOT_SUPPORTED: NTSTATUS = -1073679102i32;
pub const STATUS_FILE_SNAP_UNEXPECTED_ERROR: NTSTATUS = -1073679100i32;
pub const STATUS_FILE_SNAP_USER_SECTION_NOT_SUPPORTED: NTSTATUS = -1073679103i32;
pub const STATUS_FILE_SYSTEM_LIMITATION: NTSTATUS = -1073740761i32;
pub const STATUS_FILE_SYSTEM_VIRTUALIZATION_BUSY: NTSTATUS = -1073689085i32;
pub const STATUS_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION: NTSTATUS = -1073689083i32;
pub const STATUS_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT: NTSTATUS = -1073689086i32;
pub const STATUS_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN: NTSTATUS = -1073689084i32;
pub const STATUS_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE: NTSTATUS = -1073689087i32;
pub const STATUS_FILE_TOO_LARGE: NTSTATUS = -1073739516i32;
pub const STATUS_FIRMWARE_IMAGE_INVALID: NTSTATUS = -1073740667i32;
pub const STATUS_FIRMWARE_SLOT_INVALID: NTSTATUS = -1073740668i32;
pub const STATUS_FIRMWARE_UPDATED: NTSTATUS = 1073741868i32;
pub const STATUS_FLOATED_SECTION: NTSTATUS = -1072103349i32;
pub const STATUS_FLOAT_DENORMAL_OPERAND: NTSTATUS = -1073741683i32;
pub const STATUS_FLOAT_DIVIDE_BY_ZERO: NTSTATUS = -1073741682i32;
pub const STATUS_FLOAT_INEXACT_RESULT: NTSTATUS = -1073741681i32;
pub const STATUS_FLOAT_INVALID_OPERATION: NTSTATUS = -1073741680i32;
pub const STATUS_FLOAT_MULTIPLE_FAULTS: NTSTATUS = -1073741132i32;
pub const STATUS_FLOAT_MULTIPLE_TRAPS: NTSTATUS = -1073741131i32;
pub const STATUS_FLOAT_OVERFLOW: NTSTATUS = -1073741679i32;
pub const STATUS_FLOAT_STACK_CHECK: NTSTATUS = -1073741678i32;
pub const STATUS_FLOAT_UNDERFLOW: NTSTATUS = -1073741677i32;
pub const STATUS_FLOPPY_BAD_REGISTERS: NTSTATUS = -1073741464i32;
pub const STATUS_FLOPPY_ID_MARK_NOT_FOUND: NTSTATUS = -1073741467i32;
pub const STATUS_FLOPPY_UNKNOWN_ERROR: NTSTATUS = -1073741465i32;
pub const STATUS_FLOPPY_VOLUME: NTSTATUS = -1073741468i32;
pub const STATUS_FLOPPY_WRONG_CYLINDER: NTSTATUS = -1073741466i32;
pub const STATUS_FLT_ALREADY_ENLISTED: NTSTATUS = -1071906789i32;
pub const STATUS_FLT_BUFFER_TOO_SMALL: NTSTATUS = -2145648639i32;
pub const STATUS_FLT_CBDQ_DISABLED: NTSTATUS = -1071906802i32;
pub const STATUS_FLT_CONTEXT_ALLOCATION_NOT_FOUND: NTSTATUS = -1071906794i32;
pub const STATUS_FLT_CONTEXT_ALREADY_DEFINED: NTSTATUS = -1071906814i32;
pub const STATUS_FLT_CONTEXT_ALREADY_LINKED: NTSTATUS = -1071906788i32;
pub const STATUS_FLT_DELETING_OBJECT: NTSTATUS = -1071906805i32;
pub const STATUS_FLT_DISALLOW_FAST_IO: NTSTATUS = -1071906812i32;
pub const STATUS_FLT_DISALLOW_FSFILTER_IO: i32 = -1071906812i32;
pub const STATUS_FLT_DO_NOT_ATTACH: NTSTATUS = -1071906801i32;
pub const STATUS_FLT_DO_NOT_DETACH: NTSTATUS = -1071906800i32;
pub const STATUS_FLT_DUPLICATE_ENTRY: NTSTATUS = -1071906803i32;
pub const STATUS_FLT_FILTER_NOT_FOUND: NTSTATUS = -1071906797i32;
pub const STATUS_FLT_FILTER_NOT_READY: NTSTATUS = -1071906808i32;
pub const STATUS_FLT_INSTANCE_ALTITUDE_COLLISION: NTSTATUS = -1071906799i32;
pub const STATUS_FLT_INSTANCE_NAME_COLLISION: NTSTATUS = -1071906798i32;
pub const STATUS_FLT_INSTANCE_NOT_FOUND: NTSTATUS = -1071906795i32;
pub const STATUS_FLT_INTERNAL_ERROR: NTSTATUS = -1071906806i32;
pub const STATUS_FLT_INVALID_ASYNCHRONOUS_REQUEST: NTSTATUS = -1071906813i32;
pub const STATUS_FLT_INVALID_CONTEXT_REGISTRATION: NTSTATUS = -1071906793i32;
pub const STATUS_FLT_INVALID_NAME_REQUEST: NTSTATUS = -1071906811i32;
pub const STATUS_FLT_IO_COMPLETE: NTSTATUS = 1835009i32;
pub const STATUS_FLT_MUST_BE_NONPAGED_POOL: NTSTATUS = -1071906804i32;
pub const STATUS_FLT_NAME_CACHE_MISS: NTSTATUS = -1071906792i32;
pub const STATUS_FLT_NOT_INITIALIZED: NTSTATUS = -1071906809i32;
pub const STATUS_FLT_NOT_SAFE_TO_POST_OPERATION: NTSTATUS = -1071906810i32;
pub const STATUS_FLT_NO_DEVICE_OBJECT: NTSTATUS = -1071906791i32;
pub const STATUS_FLT_NO_HANDLER_DEFINED: NTSTATUS = -1071906815i32;
pub const STATUS_FLT_NO_WAITER_FOR_REPLY: NTSTATUS = -1071906784i32;
pub const STATUS_FLT_POST_OPERATION_CLEANUP: NTSTATUS = -1071906807i32;
pub const STATUS_FLT_REGISTRATION_BUSY: NTSTATUS = -1071906781i32;
pub const STATUS_FLT_VOLUME_ALREADY_MOUNTED: NTSTATUS = -1071906790i32;
pub const STATUS_FLT_VOLUME_NOT_FOUND: NTSTATUS = -1071906796i32;
pub const STATUS_FLT_WCOS_NOT_SUPPORTED: NTSTATUS = -1071906780i32;
pub const STATUS_FORMS_AUTH_REQUIRED: NTSTATUS = -1073739515i32;
pub const STATUS_FOUND_OUT_OF_SCOPE: NTSTATUS = -1073741266i32;
pub const STATUS_FREE_SPACE_TOO_FRAGMENTED: NTSTATUS = -1073740645i32;
pub const STATUS_FREE_VM_NOT_AT_BASE: NTSTATUS = -1073741665i32;
pub const STATUS_FSFILTER_OP_COMPLETED_SUCCESSFULLY: NTSTATUS = 294i32;
pub const STATUS_FS_DRIVER_REQUIRED: NTSTATUS = -1073741412i32;
pub const STATUS_FT_DI_SCAN_REQUIRED: NTSTATUS = -1073740692i32;
pub const STATUS_FT_MISSING_MEMBER: NTSTATUS = -1073741473i32;
pub const STATUS_FT_ORPHANING: NTSTATUS = -1073741459i32;
pub const STATUS_FT_READ_FAILURE: NTSTATUS = -1073740629i32;
pub const STATUS_FT_READ_FROM_COPY: NTSTATUS = 1073741877i32;
pub const STATUS_FT_READ_FROM_COPY_FAILURE: NTSTATUS = -1073740609i32;
pub const STATUS_FT_READ_RECOVERY_FROM_BACKUP: NTSTATUS = 1073741834i32;
pub const STATUS_FT_WRITE_FAILURE: NTSTATUS = -1073740693i32;
pub const STATUS_FT_WRITE_RECOVERY: NTSTATUS = 1073741835i32;
pub const STATUS_FULLSCREEN_MODE: NTSTATUS = -1073741479i32;
pub const STATUS_FVE_ACTION_NOT_ALLOWED: NTSTATUS = -1071579127i32;
pub const STATUS_FVE_AUTH_INVALID_APPLICATION: NTSTATUS = -1071579109i32;
pub const STATUS_FVE_AUTH_INVALID_CONFIG: NTSTATUS = -1071579108i32;
pub const STATUS_FVE_BAD_DATA: NTSTATUS = -1071579126i32;
pub const STATUS_FVE_BAD_INFORMATION: NTSTATUS = -1071579134i32;
pub const STATUS_FVE_BAD_METADATA_POINTER: NTSTATUS = -1071579105i32;
pub const STATUS_FVE_BAD_PARTITION_SIZE: NTSTATUS = -1071579131i32;
pub const STATUS_FVE_CONV_READ_ERROR: NTSTATUS = -1071579123i32;
pub const STATUS_FVE_CONV_RECOVERY_FAILED: NTSTATUS = -1071579096i32;
pub const STATUS_FVE_CONV_WRITE_ERROR: NTSTATUS = -1071579122i32;
pub const STATUS_FVE_DEBUGGER_ENABLED: NTSTATUS = -1071579107i32;
pub const STATUS_FVE_DEVICE_LOCKEDOUT: NTSTATUS = -1071579077i32;
pub const STATUS_FVE_DRY_RUN_FAILED: NTSTATUS = -1071579106i32;
pub const STATUS_FVE_EDRIVE_BAND_ENUMERATION_FAILED: NTSTATUS = -1071579071i32;
pub const STATUS_FVE_EDRIVE_DRY_RUN_FAILED: NTSTATUS = -1071579080i32;
pub const STATUS_FVE_ENH_PIN_INVALID: NTSTATUS = -1071579087i32;
pub const STATUS_FVE_FAILED_AUTHENTICATION: NTSTATUS = -1071579119i32;
pub const STATUS_FVE_FAILED_SECTOR_SIZE: NTSTATUS = -1071579120i32;
pub const STATUS_FVE_FAILED_WRONG_FS: NTSTATUS = -1071579132i32;
pub const STATUS_FVE_FS_MOUNTED: NTSTATUS = -1071579129i32;
pub const STATUS_FVE_FS_NOT_EXTENDED: NTSTATUS = -1071579130i32;
pub const STATUS_FVE_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE: NTSTATUS = -1071579086i32;
pub const STATUS_FVE_INVALID_DATUM_TYPE: NTSTATUS = -1071579094i32;
pub const STATUS_FVE_KEYFILE_INVALID: NTSTATUS = -1071579116i32;
pub const STATUS_FVE_KEYFILE_NOT_FOUND: NTSTATUS = -1071579117i32;
pub const STATUS_FVE_KEYFILE_NO_VMK: NTSTATUS = -1071579115i32;
pub const STATUS_FVE_LOCKED_VOLUME: NTSTATUS = -1071579136i32;
pub const STATUS_FVE_MOR_FAILED: NTSTATUS = -1071579099i32;
pub const STATUS_FVE_NOT_ALLOWED_ON_CLUSTER: NTSTATUS = -1071579083i32;
pub const STATUS_FVE_NOT_ALLOWED_ON_CSV_STACK: NTSTATUS = -1071579084i32;
pub const STATUS_FVE_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING: NTSTATUS = -1071579082i32;
pub const STATUS_FVE_NOT_DATA_VOLUME: NTSTATUS = -1071579124i32;
pub const STATUS_FVE_NOT_DE_VOLUME: NTSTATUS = -1071579075i32;
pub const STATUS_FVE_NOT_ENCRYPTED: NTSTATUS = -1071579135i32;
pub const STATUS_FVE_NOT_OS_VOLUME: NTSTATUS = -1071579118i32;
pub const STATUS_FVE_NO_AUTOUNLOCK_MASTER_KEY: NTSTATUS = -1071579100i32;
pub const STATUS_FVE_NO_FEATURE_LICENSE: NTSTATUS = -1071579098i32;
pub const STATUS_FVE_NO_LICENSE: NTSTATUS = -1071579128i32;
pub const STATUS_FVE_OLD_METADATA_COPY: NTSTATUS = -1071579104i32;
pub const STATUS_FVE_OSV_KSR_NOT_ALLOWED: NTSTATUS = -1071579072i32;
pub const STATUS_FVE_OVERLAPPED_UPDATE: NTSTATUS = -1071579121i32;
pub const STATUS_FVE_PARTIAL_METADATA: NTSTATUS = -2145320959i32;
pub const STATUS_FVE_PIN_INVALID: NTSTATUS = -1071579110i32;
pub const STATUS_FVE_POLICY_USER_DISABLE_RDV_NOT_ALLOWED: NTSTATUS = -1071579097i32;
pub const STATUS_FVE_PROTECTION_CANNOT_BE_DISABLED: NTSTATUS = -1071579073i32;
pub const STATUS_FVE_PROTECTION_DISABLED: NTSTATUS = -1071579074i32;
pub const STATUS_FVE_RAW_ACCESS: NTSTATUS = -1071579102i32;
pub const STATUS_FVE_RAW_BLOCKED: NTSTATUS = -1071579101i32;
pub const STATUS_FVE_REBOOT_REQUIRED: NTSTATUS = -1071579103i32;
pub const STATUS_FVE_SECUREBOOT_CONFIG_CHANGE: NTSTATUS = -1071579078i32;
pub const STATUS_FVE_SECUREBOOT_DISABLED: NTSTATUS = -1071579079i32;
pub const STATUS_FVE_TOO_SMALL: NTSTATUS = -1071579133i32;
pub const STATUS_FVE_TPM_DISABLED: NTSTATUS = -1071579114i32;
pub const STATUS_FVE_TPM_INVALID_PCR: NTSTATUS = -1071579112i32;
pub const STATUS_FVE_TPM_NO_VMK: NTSTATUS = -1071579111i32;
pub const STATUS_FVE_TPM_SRK_AUTH_NOT_ZERO: NTSTATUS = -1071579113i32;
pub const STATUS_FVE_TRANSIENT_STATE: NTSTATUS = -2145320958i32;
pub const STATUS_FVE_VIRTUALIZED_SPACE_TOO_BIG: NTSTATUS = -1071579095i32;
pub const STATUS_FVE_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT: NTSTATUS = -1071579076i32;
pub const STATUS_FVE_VOLUME_NOT_BOUND: NTSTATUS = -1071579125i32;
pub const STATUS_FVE_VOLUME_TOO_SMALL: NTSTATUS = -1071579088i32;
pub const STATUS_FVE_WIPE_CANCEL_NOT_APPLICABLE: NTSTATUS = -1071579081i32;
pub const STATUS_FVE_WIPE_NOT_ALLOWED_ON_TP_STORAGE: NTSTATUS = -1071579085i32;
pub const STATUS_FWP_ACTION_INCOMPATIBLE_WITH_LAYER: NTSTATUS = -1071513556i32;
pub const STATUS_FWP_ACTION_INCOMPATIBLE_WITH_SUBLAYER: NTSTATUS = -1071513555i32;
pub const STATUS_FWP_ALREADY_EXISTS: NTSTATUS = -1071513591i32;
pub const STATUS_FWP_BUILTIN_OBJECT: NTSTATUS = -1071513577i32;
pub const STATUS_FWP_CALLOUT_NOTIFICATION_FAILED: NTSTATUS = -1071513545i32;
pub const STATUS_FWP_CALLOUT_NOT_FOUND: NTSTATUS = -1071513599i32;
pub const STATUS_FWP_CANNOT_PEND: NTSTATUS = -1071513341i32;
pub const STATUS_FWP_CONDITION_NOT_FOUND: NTSTATUS = -1071513598i32;
pub const STATUS_FWP_CONNECTIONS_DISABLED: NTSTATUS = -1071513535i32;
pub const STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_CALLOUT: NTSTATUS = -1071513553i32;
pub const STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_LAYER: NTSTATUS = -1071513554i32;
pub const STATUS_FWP_DROP_NOICMP: NTSTATUS = -1071513340i32;
pub const STATUS_FWP_DUPLICATE_AUTH_METHOD: NTSTATUS = -1071513540i32;
pub const STATUS_FWP_DUPLICATE_CONDITION: NTSTATUS = -1071513558i32;
pub const STATUS_FWP_DUPLICATE_KEYMOD: NTSTATUS = -1071513557i32;
pub const STATUS_FWP_DYNAMIC_SESSION_IN_PROGRESS: NTSTATUS = -1071513589i32;
pub const STATUS_FWP_EM_NOT_SUPPORTED: NTSTATUS = -1071513550i32;
pub const STATUS_FWP_FILTER_NOT_FOUND: NTSTATUS = -1071513597i32;
pub const STATUS_FWP_IKEEXT_NOT_RUNNING: NTSTATUS = -1071513532i32;
pub const STATUS_FWP_INCOMPATIBLE_AUTH_METHOD: NTSTATUS = -1071513552i32;
pub const STATUS_FWP_INCOMPATIBLE_CIPHER_TRANSFORM: NTSTATUS = -1071513542i32;
pub const STATUS_FWP_INCOMPATIBLE_DH_GROUP: NTSTATUS = -1071513551i32;
pub const STATUS_FWP_INCOMPATIBLE_LAYER: NTSTATUS = -1071513580i32;
pub const STATUS_FWP_INCOMPATIBLE_SA_STATE: NTSTATUS = -1071513573i32;
pub const STATUS_FWP_INCOMPATIBLE_TXN: NTSTATUS = -1071513583i32;
pub const STATUS_FWP_INJECT_HANDLE_CLOSING: NTSTATUS = -1071513343i32;
pub const STATUS_FWP_INJECT_HANDLE_STALE: NTSTATUS = -1071513342i32;
pub const STATUS_FWP_INVALID_ACTION_TYPE: NTSTATUS = -1071513564i32;
pub const STATUS_FWP_INVALID_AUTH_TRANSFORM: NTSTATUS = -1071513544i32;
pub const STATUS_FWP_INVALID_CIPHER_TRANSFORM: NTSTATUS = -1071513543i32;
pub const STATUS_FWP_INVALID_DNS_NAME: NTSTATUS = -1071513534i32;
pub const STATUS_FWP_INVALID_ENUMERATOR: NTSTATUS = -1071513571i32;
pub const STATUS_FWP_INVALID_FLAGS: NTSTATUS = -1071513570i32;
pub const STATUS_FWP_INVALID_INTERVAL: NTSTATUS = -1071513567i32;
pub const STATUS_FWP_INVALID_NET_MASK: NTSTATUS = -1071513569i32;
pub const STATUS_FWP_INVALID_PARAMETER: NTSTATUS = -1071513547i32;
pub const STATUS_FWP_INVALID_RANGE: NTSTATUS = -1071513568i32;
pub const STATUS_FWP_INVALID_TRANSFORM_COMBINATION: NTSTATUS = -1071513541i32;
pub const STATUS_FWP_INVALID_TUNNEL_ENDPOINT: NTSTATUS = -1071513539i32;
pub const STATUS_FWP_INVALID_WEIGHT: NTSTATUS = -1071513563i32;
pub const STATUS_FWP_IN_USE: NTSTATUS = -1071513590i32;
pub const STATUS_FWP_KEY_DICTATION_INVALID_KEYING_MATERIAL: NTSTATUS = -1071513536i32;
pub const STATUS_FWP_KEY_DICTATOR_ALREADY_REGISTERED: NTSTATUS = -1071513537i32;
pub const STATUS_FWP_KM_CLIENTS_ONLY: NTSTATUS = -1071513579i32;
pub const STATUS_FWP_L2_DRIVER_NOT_READY: NTSTATUS = -1071513538i32;
pub const STATUS_FWP_LAYER_NOT_FOUND: NTSTATUS = -1071513596i32;
pub const STATUS_FWP_LIFETIME_MISMATCH: NTSTATUS = -1071513578i32;
pub const STATUS_FWP_MATCH_TYPE_MISMATCH: NTSTATUS = -1071513562i32;
pub const STATUS_FWP_NET_EVENTS_DISABLED: NTSTATUS = -1071513581i32;
pub const STATUS_FWP_NEVER_MATCH: NTSTATUS = -1071513549i32;
pub const STATUS_FWP_NOTIFICATION_DROPPED: NTSTATUS = -1071513575i32;
pub const STATUS_FWP_NOT_FOUND: NTSTATUS = -1071513592i32;
pub const STATUS_FWP_NO_TXN_IN_PROGRESS: NTSTATUS = -1071513587i32;
pub const STATUS_FWP_NULL_DISPLAY_NAME: NTSTATUS = -1071513565i32;
pub const STATUS_FWP_NULL_POINTER: NTSTATUS = -1071513572i32;
pub const STATUS_FWP_OUT_OF_BOUNDS: NTSTATUS = -1071513560i32;
pub const STATUS_FWP_PROVIDER_CONTEXT_MISMATCH: NTSTATUS = -1071513548i32;
pub const STATUS_FWP_PROVIDER_CONTEXT_NOT_FOUND: NTSTATUS = -1071513594i32;
pub const STATUS_FWP_PROVIDER_NOT_FOUND: NTSTATUS = -1071513595i32;
pub const STATUS_FWP_RESERVED: NTSTATUS = -1071513559i32;
pub const STATUS_FWP_SESSION_ABORTED: NTSTATUS = -1071513584i32;
pub const STATUS_FWP_STILL_ON: NTSTATUS = -1071513533i32;
pub const STATUS_FWP_SUBLAYER_NOT_FOUND: NTSTATUS = -1071513593i32;
pub const STATUS_FWP_TCPIP_NOT_READY: NTSTATUS = -1071513344i32;
pub const STATUS_FWP_TIMEOUT: NTSTATUS = -1071513582i32;
pub const STATUS_FWP_TOO_MANY_CALLOUTS: NTSTATUS = -1071513576i32;
pub const STATUS_FWP_TOO_MANY_SUBLAYERS: NTSTATUS = -1071513546i32;
pub const STATUS_FWP_TRAFFIC_MISMATCH: NTSTATUS = -1071513574i32;
pub const STATUS_FWP_TXN_ABORTED: NTSTATUS = -1071513585i32;
pub const STATUS_FWP_TXN_IN_PROGRESS: NTSTATUS = -1071513586i32;
pub const STATUS_FWP_TYPE_MISMATCH: NTSTATUS = -1071513561i32;
pub const STATUS_FWP_WRONG_SESSION: NTSTATUS = -1071513588i32;
pub const STATUS_FWP_ZERO_LENGTH_ARRAY: NTSTATUS = -1071513566i32;
pub const STATUS_GDI_HANDLE_LEAK: NTSTATUS = -2143354879i32;
pub const STATUS_GENERIC_COMMAND_FAILED: NTSTATUS = -1072365530i32;
pub const STATUS_GENERIC_NOT_MAPPED: NTSTATUS = -1073741594i32;
pub const STATUS_GHOSTED: NTSTATUS = 303i32;
pub const STATUS_GPIO_CLIENT_INFORMATION_INVALID: NTSTATUS = -1073700574i32;
pub const STATUS_GPIO_INCOMPATIBLE_CONNECT_MODE: NTSTATUS = -1073700570i32;
pub const STATUS_GPIO_INTERRUPT_ALREADY_UNMASKED: NTSTATUS = -2147442393i32;
pub const STATUS_GPIO_INVALID_REGISTRATION_PACKET: NTSTATUS = -1073700572i32;
pub const STATUS_GPIO_OPERATION_DENIED: NTSTATUS = -1073700571i32;
pub const STATUS_GPIO_VERSION_NOT_SUPPORTED: NTSTATUS = -1073700573i32;
pub const STATUS_GRACEFUL_DISCONNECT: NTSTATUS = -1073741257i32;
pub const STATUS_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED: NTSTATUS = -1071774661i32;
pub const STATUS_GRAPHICS_ADAPTER_CHAIN_NOT_READY: NTSTATUS = -1071774669i32;
pub const STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE: NTSTATUS = -1071774936i32;
pub const STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET: NTSTATUS = -1071774935i32;
pub const STATUS_GRAPHICS_ADAPTER_WAS_RESET: NTSTATUS = -1071775741i32;
pub const STATUS_GRAPHICS_ALLOCATION_BUSY: NTSTATUS = -1071775486i32;
pub const STATUS_GRAPHICS_ALLOCATION_CLOSED: NTSTATUS = -1071775470i32;
pub const STATUS_GRAPHICS_ALLOCATION_CONTENT_LOST: NTSTATUS = -1071775466i32;
pub const STATUS_GRAPHICS_ALLOCATION_INVALID: NTSTATUS = -1071775482i32;
pub const STATUS_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION: NTSTATUS = -1071774886i32;
pub const STATUS_GRAPHICS_CANNOTCOLORCONVERT: NTSTATUS = -1071775736i32;
pub const STATUS_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN: NTSTATUS = -1071774909i32;
pub const STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION: NTSTATUS = -1071775479i32;
pub const STATUS_GRAPHICS_CANT_LOCK_MEMORY: NTSTATUS = -1071775487i32;
pub const STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION: NTSTATUS = -1071775471i32;
pub const STATUS_GRAPHICS_CHAINLINKS_NOT_ENUMERATED: NTSTATUS = -1071774670i32;
pub const STATUS_GRAPHICS_CHAINLINKS_NOT_POWERED_ON: NTSTATUS = -1071774667i32;
pub const STATUS_GRAPHICS_CHAINLINKS_NOT_STARTED: NTSTATUS = -1071774668i32;
pub const STATUS_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED: NTSTATUS = -1071774719i32;
pub const STATUS_GRAPHICS_CLIENTVIDPN_NOT_SET: NTSTATUS = -1071774884i32;
pub const STATUS_GRAPHICS_COPP_NOT_SUPPORTED: NTSTATUS = -1071774463i32;
pub const STATUS_GRAPHICS_DATASET_IS_EMPTY: NTSTATUS = 1075708747i32;
pub const STATUS_GRAPHICS_DDCCI_INVALID_CAPABILITIES_STRING: NTSTATUS = -1071774329i32;
pub const STATUS_GRAPHICS_DDCCI_INVALID_DATA: NTSTATUS = -1071774331i32;
pub const STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM: NTSTATUS = -1071774325i32;
pub const STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND: NTSTATUS = -1071774327i32;
pub const STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH: NTSTATUS = -1071774326i32;
pub const STATUS_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE: NTSTATUS = -1071774330i32;
pub const STATUS_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED: NTSTATUS = -1071774332i32;
pub const STATUS_GRAPHICS_DEPENDABLE_CHILD_STATUS: NTSTATUS = 1075708988i32;
pub const STATUS_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP: NTSTATUS = -1071774238i32;
pub const STATUS_GRAPHICS_DRIVER_MISMATCH: NTSTATUS = -1071775735i32;
pub const STATUS_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION: NTSTATUS = -1071774939i32;
pub const STATUS_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET: NTSTATUS = -1071774945i32;
pub const STATUS_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET: NTSTATUS = -1071774947i32;
pub const STATUS_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED: NTSTATUS = -1071774904i32;
pub const STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE: NTSTATUS = -1071775232i32;
pub const STATUS_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST: NTSTATUS = -1071774335i32;
pub const STATUS_GRAPHICS_I2C_ERROR_RECEIVING_DATA: NTSTATUS = -1071774333i32;
pub const STATUS_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA: NTSTATUS = -1071774334i32;
pub const STATUS_GRAPHICS_I2C_NOT_SUPPORTED: NTSTATUS = -1071774336i32;
pub const STATUS_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT: NTSTATUS = -1071774891i32;
pub const STATUS_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE: NTSTATUS = -1071774666i32;
pub const STATUS_GRAPHICS_INDIRECT_DISPLAY_ABANDON_SWAPCHAIN: NTSTATUS = -1071775726i32;
pub const STATUS_GRAPHICS_INDIRECT_DISPLAY_DEVICE_STOPPED: NTSTATUS = -1071775725i32;
pub const STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER: NTSTATUS = -1071775743i32;
pub const STATUS_GRAPHICS_INTERNAL_ERROR: NTSTATUS = -1071774233i32;
pub const STATUS_GRAPHICS_INVALID_ACTIVE_REGION: NTSTATUS = -1071774965i32;
pub const STATUS_GRAPHICS_INVALID_ALLOCATION_HANDLE: NTSTATUS = -1071775468i32;
pub const STATUS_GRAPHICS_INVALID_ALLOCATION_INSTANCE: NTSTATUS = -1071775469i32;
pub const STATUS_GRAPHICS_INVALID_ALLOCATION_USAGE: NTSTATUS = -1071775472i32;
pub const STATUS_GRAPHICS_INVALID_CLIENT_TYPE: NTSTATUS = -1071774885i32;
pub const STATUS_GRAPHICS_INVALID_COLORBASIS: NTSTATUS = -1071774914i32;
pub const STATUS_GRAPHICS_INVALID_COPYPROTECTION_TYPE: NTSTATUS = -1071774897i32;
pub const STATUS_GRAPHICS_INVALID_DISPLAY_ADAPTER: NTSTATUS = -1071775742i32;
pub const STATUS_GRAPHICS_INVALID_DRIVER_MODEL: NTSTATUS = -1071775740i32;
pub const STATUS_GRAPHICS_INVALID_FREQUENCY: NTSTATUS = -1071774966i32;
pub const STATUS_GRAPHICS_INVALID_GAMMA_RAMP: NTSTATUS = -1071774905i32;
pub const STATUS_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM: NTSTATUS = -1071774890i32;
pub const STATUS_GRAPHICS_INVALID_MONITORDESCRIPTOR: NTSTATUS = -1071774933i32;
pub const STATUS_GRAPHICS_INVALID_MONITORDESCRIPTORSET: NTSTATUS = -1071774934i32;
pub const STATUS_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN: NTSTATUS = -1071774889i32;
pub const STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE: NTSTATUS = -1071774948i32;
pub const STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET: NTSTATUS = -1071774949i32;
pub const STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT: NTSTATUS = -1071774888i32;
pub const STATUS_GRAPHICS_INVALID_MONITOR_SOURCEMODESET: NTSTATUS = -1071774943i32;
pub const STATUS_GRAPHICS_INVALID_MONITOR_SOURCE_MODE: NTSTATUS = -1071774942i32;
pub const STATUS_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION: NTSTATUS = -1071774907i32;
pub const STATUS_GRAPHICS_INVALID_PATH_CONTENT_TYPE: NTSTATUS = -1071774898i32;
pub const STATUS_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL: NTSTATUS = -1071774908i32;
pub const STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE: NTSTATUS = -1071774324i32;
pub const STATUS_GRAPHICS_INVALID_PIXELFORMAT: NTSTATUS = -1071774915i32;
pub const STATUS_GRAPHICS_INVALID_PIXELVALUEACCESSMODE: NTSTATUS = -1071774913i32;
pub const STATUS_GRAPHICS_INVALID_POINTER: NTSTATUS = -1071774236i32;
pub const STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE: NTSTATUS = -1071774918i32;
pub const STATUS_GRAPHICS_INVALID_SCANLINE_ORDERING: NTSTATUS = -1071774894i32;
pub const STATUS_GRAPHICS_INVALID_STRIDE: NTSTATUS = -1071774916i32;
pub const STATUS_GRAPHICS_INVALID_TOTAL_REGION: NTSTATUS = -1071774964i32;
pub const STATUS_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET: NTSTATUS = -1071774955i32;
pub const STATUS_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET: NTSTATUS = -1071774954i32;
pub const STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE: NTSTATUS = -1071774972i32;
pub const STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE: NTSTATUS = -1071774960i32;
pub const STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET: NTSTATUS = -1071774971i32;
pub const STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE: NTSTATUS = -1071774959i32;
pub const STATUS_GRAPHICS_INVALID_VIDPN: NTSTATUS = -1071774973i32;
pub const STATUS_GRAPHICS_INVALID_VIDPN_PRESENT_PATH: NTSTATUS = -1071774951i32;
pub const STATUS_GRAPHICS_INVALID_VIDPN_SOURCEMODESET: NTSTATUS = -1071774968i32;
pub const STATUS_GRAPHICS_INVALID_VIDPN_TARGETMODESET: NTSTATUS = -1071774967i32;
pub const STATUS_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE: NTSTATUS = -1071774929i32;
pub const STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY: NTSTATUS = -1071774976i32;
pub const STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON: NTSTATUS = -1071774899i32;
pub const STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE: NTSTATUS = -1071774917i32;
pub const STATUS_GRAPHICS_LEADLINK_NOT_ENUMERATED: NTSTATUS = -1071774671i32;
pub const STATUS_GRAPHICS_LEADLINK_START_DEFERRED: NTSTATUS = 1075708983i32;
pub const STATUS_GRAPHICS_MAX_NUM_PATHS_REACHED: NTSTATUS = -1071774887i32;
pub const STATUS_GRAPHICS_MCA_INTERNAL_ERROR: NTSTATUS = -1071774328i32;
pub const STATUS_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED: NTSTATUS = -1071774237i32;
pub const STATUS_GRAPHICS_MODE_ALREADY_IN_MODESET: NTSTATUS = -1071774956i32;
pub const STATUS_GRAPHICS_MODE_ID_MUST_BE_UNIQUE: NTSTATUS = -1071774940i32;
pub const STATUS_GRAPHICS_MODE_NOT_IN_MODESET: NTSTATUS = -1071774902i32;
pub const STATUS_GRAPHICS_MODE_NOT_PINNED: NTSTATUS = 1075708679i32;
pub const STATUS_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET: NTSTATUS = -1071774931i32;
pub const STATUS_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE: NTSTATUS = -1071774930i32;
pub const STATUS_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET: NTSTATUS = -1071774932i32;
pub const STATUS_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER: NTSTATUS = -1071774924i32;
pub const STATUS_GRAPHICS_MONITOR_NOT_CONNECTED: NTSTATUS = -1071774920i32;
pub const STATUS_GRAPHICS_MONITOR_NO_LONGER_EXISTS: NTSTATUS = -1071774323i32;
pub const STATUS_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED: NTSTATUS = -1071774903i32;
pub const STATUS_GRAPHICS_NOT_A_LINKED_ADAPTER: NTSTATUS = -1071774672i32;
pub const STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER: NTSTATUS = -1071775744i32;
pub const STATUS_GRAPHICS_NOT_POST_DEVICE_DRIVER: NTSTATUS = -1071774664i32;
pub const STATUS_GRAPHICS_NO_ACTIVE_VIDPN: NTSTATUS = -1071774922i32;
pub const STATUS_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS: NTSTATUS = -1071774892i32;
pub const STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET: NTSTATUS = -1071774925i32;
pub const STATUS_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME: NTSTATUS = -1071774239i32;
pub const STATUS_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT: NTSTATUS = -1071774911i32;
pub const STATUS_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE: NTSTATUS = -1071774235i32;
pub const STATUS_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET: NTSTATUS = 1075708748i32;
pub const STATUS_GRAPHICS_NO_PREFERRED_MODE: NTSTATUS = 1075708702i32;
pub const STATUS_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN: NTSTATUS = -1071774941i32;
pub const STATUS_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY: NTSTATUS = -1071774950i32;
pub const STATUS_GRAPHICS_NO_VIDEO_MEMORY: NTSTATUS = -1071775488i32;
pub const STATUS_GRAPHICS_NO_VIDPNMGR: NTSTATUS = -1071774923i32;
pub const STATUS_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED: NTSTATUS = -1071774240i32;
pub const STATUS_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE: NTSTATUS = -1071774440i32;
pub const STATUS_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR: NTSTATUS = -1071774434i32;
pub const STATUS_GRAPHICS_OPM_HDCP_SRM_NEVER_SET: NTSTATUS = -1071774442i32;
pub const STATUS_GRAPHICS_OPM_INTERNAL_ERROR: NTSTATUS = -1071774453i32;
pub const STATUS_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST: NTSTATUS = -1071774431i32;
pub const STATUS_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS: NTSTATUS = -1071774461i32;
pub const STATUS_GRAPHICS_OPM_INVALID_HANDLE: NTSTATUS = -1071774452i32;
pub const STATUS_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST: NTSTATUS = -1071774435i32;
pub const STATUS_GRAPHICS_OPM_INVALID_SRM: NTSTATUS = -1071774446i32;
pub const STATUS_GRAPHICS_OPM_NOT_SUPPORTED: NTSTATUS = -1071774464i32;
pub const STATUS_GRAPHICS_OPM_NO_PROTECTED_OUTPUTS_EXIST: NTSTATUS = -1071774459i32;
pub const STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP: NTSTATUS = -1071774444i32;
pub const STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA: NTSTATUS = -1071774443i32;
pub const STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP: NTSTATUS = -1071774445i32;
pub const STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS: NTSTATUS = -1071774436i32;
pub const STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS: NTSTATUS = -1071774433i32;
pub const STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_NO_LONGER_EXISTS: NTSTATUS = -1071774438i32;
pub const STATUS_GRAPHICS_OPM_RESOLUTION_TOO_HIGH: NTSTATUS = -1071774441i32;
pub const STATUS_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED: NTSTATUS = -1071774432i32;
pub const STATUS_GRAPHICS_OPM_SPANNING_MODE_ENABLED: NTSTATUS = -1071774449i32;
pub const STATUS_GRAPHICS_OPM_THEATER_MODE_ENABLED: NTSTATUS = -1071774448i32;
pub const STATUS_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL: NTSTATUS = -1071774234i32;
pub const STATUS_GRAPHICS_PARTIAL_DATA_POPULATED: NTSTATUS = 1075707914i32;
pub const STATUS_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY: NTSTATUS = -1071774957i32;
pub const STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED: NTSTATUS = 1075708753i32;
pub const STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED: NTSTATUS = -1071774906i32;
pub const STATUS_GRAPHICS_PATH_NOT_IN_TOPOLOGY: NTSTATUS = -1071774937i32;
pub const STATUS_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET: NTSTATUS = -1071774958i32;
pub const STATUS_GRAPHICS_POLLING_TOO_FREQUENTLY: NTSTATUS = 1075708985i32;
pub const STATUS_GRAPHICS_PRESENT_BUFFER_NOT_BOUND: NTSTATUS = -1071775728i32;
pub const STATUS_GRAPHICS_PRESENT_DENIED: NTSTATUS = -1071775737i32;
pub const STATUS_GRAPHICS_PRESENT_INVALID_WINDOW: NTSTATUS = -1071775729i32;
pub const STATUS_GRAPHICS_PRESENT_MODE_CHANGED: NTSTATUS = -1071775739i32;
pub const STATUS_GRAPHICS_PRESENT_OCCLUDED: NTSTATUS = -1071775738i32;
pub const STATUS_GRAPHICS_PRESENT_REDIRECTION_DISABLED: NTSTATUS = -1071775733i32;
pub const STATUS_GRAPHICS_PRESENT_UNOCCLUDED: NTSTATUS = -1071775732i32;
pub const STATUS_GRAPHICS_PVP_HFS_FAILED: NTSTATUS = -1071774447i32;
pub const STATUS_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH: NTSTATUS = -1071774450i32;
pub const STATUS_GRAPHICS_RESOURCES_NOT_RELATED: NTSTATUS = -1071774928i32;
pub const STATUS_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS: NTSTATUS = -1071774232i32;
pub const STATUS_GRAPHICS_SKIP_ALLOCATION_PREPARATION: NTSTATUS = 1075708417i32;
pub const STATUS_GRAPHICS_SOURCE_ALREADY_IN_SET: NTSTATUS = -1071774953i32;
pub const STATUS_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE: NTSTATUS = -1071774927i32;
pub const STATUS_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY: NTSTATUS = -1071774919i32;
pub const STATUS_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED: NTSTATUS = -1071774720i32;
pub const STATUS_GRAPHICS_STALE_MODESET: NTSTATUS = -1071774944i32;
pub const STATUS_GRAPHICS_STALE_VIDPN_TOPOLOGY: NTSTATUS = -1071774921i32;
pub const STATUS_GRAPHICS_START_DEFERRED: NTSTATUS = 1075708986i32;
pub const STATUS_GRAPHICS_TARGET_ALREADY_IN_SET: NTSTATUS = -1071774952i32;
pub const STATUS_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE: NTSTATUS = -1071774926i32;
pub const STATUS_GRAPHICS_TARGET_NOT_IN_TOPOLOGY: NTSTATUS = -1071774912i32;
pub const STATUS_GRAPHICS_TOO_MANY_REFERENCES: NTSTATUS = -1071775485i32;
pub const STATUS_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED: NTSTATUS = -1071774893i32;
pub const STATUS_GRAPHICS_TRY_AGAIN_LATER: NTSTATUS = -1071775484i32;
pub const STATUS_GRAPHICS_TRY_AGAIN_NOW: NTSTATUS = -1071775483i32;
pub const STATUS_GRAPHICS_UAB_NOT_SUPPORTED: NTSTATUS = -1071774462i32;
pub const STATUS_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS: NTSTATUS = -1071774896i32;
pub const STATUS_GRAPHICS_UNKNOWN_CHILD_STATUS: NTSTATUS = 1075708975i32;
pub const STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE: NTSTATUS = -1071775481i32;
pub const STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED: NTSTATUS = -1071775480i32;
pub const STATUS_GRAPHICS_VAIL_STATE_CHANGED: NTSTATUS = -1071775727i32;
pub const STATUS_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES: NTSTATUS = -1071774938i32;
pub const STATUS_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED: NTSTATUS = -1071774970i32;
pub const STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE: NTSTATUS = -1071774910i32;
pub const STATUS_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED: NTSTATUS = -1071774974i32;
pub const STATUS_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED: NTSTATUS = -1071774975i32;
pub const STATUS_GRAPHICS_WINDOWDC_NOT_AVAILABLE: NTSTATUS = -1071775731i32;
pub const STATUS_GRAPHICS_WINDOWLESS_PRESENT_DISABLED: NTSTATUS = -1071775730i32;
pub const STATUS_GRAPHICS_WRONG_ALLOCATION_DEVICE: NTSTATUS = -1071775467i32;
pub const STATUS_GROUP_EXISTS: NTSTATUS = -1073741723i32;
pub const STATUS_GUARD_PAGE_VIOLATION: NTSTATUS = -2147483647i32;
pub const STATUS_GUIDS_EXHAUSTED: NTSTATUS = -1073741693i32;
pub const STATUS_GUID_SUBSTITUTION_MADE: NTSTATUS = -2147483636i32;
pub const STATUS_HANDLES_CLOSED: NTSTATUS = -2147483638i32;
pub const STATUS_HANDLE_NOT_CLOSABLE: NTSTATUS = -1073741259i32;
pub const STATUS_HANDLE_NO_LONGER_VALID: NTSTATUS = -1072103384i32;
pub const STATUS_HANDLE_REVOKED: NTSTATUS = -1073700858i32;
pub const STATUS_HARDWARE_MEMORY_ERROR: NTSTATUS = -1073740023i32;
pub const STATUS_HASH_NOT_PRESENT: NTSTATUS = -1073700607i32;
pub const STATUS_HASH_NOT_SUPPORTED: NTSTATUS = -1073700608i32;
pub const STATUS_HAS_SYSTEM_CRITICAL_FILES: NTSTATUS = -1073740611i32;
pub const STATUS_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED: NTSTATUS = -1069285373i32;
pub const STATUS_HDAUDIO_EMPTY_CONNECTION_LIST: NTSTATUS = -1069285374i32;
pub const STATUS_HDAUDIO_NO_LOGICAL_DEVICES_CREATED: NTSTATUS = -1069285372i32;
pub const STATUS_HDAUDIO_NULL_LINKED_LIST_ENTRY: NTSTATUS = -1069285371i32;
pub const STATUS_HEAP_CORRUPTION: NTSTATUS = -1073740940i32;
pub const STATUS_HEURISTIC_DAMAGE_POSSIBLE: NTSTATUS = 1075380225i32;
pub const STATUS_HIBERNATED: NTSTATUS = 1073741866i32;
pub const STATUS_HIBERNATION_FAILURE: NTSTATUS = -1073740783i32;
pub const STATUS_HIVE_UNLOADED: NTSTATUS = -1073740763i32;
pub const STATUS_HMAC_NOT_SUPPORTED: NTSTATUS = -1073700863i32;
pub const STATUS_HOPLIMIT_EXCEEDED: NTSTATUS = -1073700846i32;
pub const STATUS_HOST_DOWN: NTSTATUS = -1073740976i32;
pub const STATUS_HOST_UNREACHABLE: NTSTATUS = -1073741251i32;
pub const STATUS_HUNG_DISPLAY_DRIVER_THREAD: NTSTATUS = -1073740779i32;
pub const STATUS_HV_ACCESS_DENIED: NTSTATUS = -1070268410i32;
pub const STATUS_HV_ACKNOWLEDGED: NTSTATUS = -1070268394i32;
pub const STATUS_HV_CALL_PENDING: NTSTATUS = -1070268295i32;
pub const STATUS_HV_CPUID_FEATURE_VALIDATION_ERROR: NTSTATUS = -1070268356i32;
pub const STATUS_HV_CPUID_XSAVE_FEATURE_VALIDATION_ERROR: NTSTATUS = -1070268355i32;
pub const STATUS_HV_DEVICE_NOT_IN_DOMAIN: NTSTATUS = -1070268298i32;
pub const STATUS_HV_EVENT_BUFFER_ALREADY_FREED: NTSTATUS = -1070268300i32;
pub const STATUS_HV_FEATURE_UNAVAILABLE: NTSTATUS = -1070268386i32;
pub const STATUS_HV_INACTIVE: NTSTATUS = -1070268388i32;
pub const STATUS_HV_INSUFFICIENT_BUFFER: NTSTATUS = -1070268365i32;
pub const STATUS_HV_INSUFFICIENT_BUFFERS: NTSTATUS = -1070268397i32;
pub const STATUS_HV_INSUFFICIENT_CONTIGUOUS_MEMORY: NTSTATUS = -1070268299i32;
pub const STATUS_HV_INSUFFICIENT_DEVICE_DOMAINS: NTSTATUS = -1070268360i32;
pub const STATUS_HV_INSUFFICIENT_MEMORY: NTSTATUS = -1070268405i32;
pub const STATUS_HV_INSUFFICIENT_ROOT_MEMORY: NTSTATUS = -1070268301i32;
pub const STATUS_HV_INVALID_ALIGNMENT: NTSTATUS = -1070268412i32;
pub const STATUS_HV_INVALID_CONNECTION_ID: NTSTATUS = -1070268398i32;
pub const STATUS_HV_INVALID_CPU_GROUP_ID: NTSTATUS = -1070268305i32;
pub const STATUS_HV_INVALID_CPU_GROUP_STATE: NTSTATUS = -1070268304i32;
pub const STATUS_HV_INVALID_DEVICE_ID: NTSTATUS = -1070268329i32;
pub const STATUS_HV_INVALID_DEVICE_STATE: NTSTATUS = -1070268328i32;
pub const STATUS_HV_INVALID_HYPERCALL_CODE: NTSTATUS = -1070268414i32;
pub const STATUS_HV_INVALID_HYPERCALL_INPUT: NTSTATUS = -1070268413i32;
pub const STATUS_HV_INVALID_LP_INDEX: NTSTATUS = -1070268351i32;
pub const STATUS_HV_INVALID_PARAMETER: NTSTATUS = -1070268411i32;
pub const STATUS_HV_INVALID_PARTITION_ID: NTSTATUS = -1070268403i32;
pub const STATUS_HV_INVALID_PARTITION_STATE: NTSTATUS = -1070268409i32;
pub const STATUS_HV_INVALID_PORT_ID: NTSTATUS = -1070268399i32;
pub const STATUS_HV_INVALID_PROXIMITY_DOMAIN_INFO: NTSTATUS = -1070268390i32;
pub const STATUS_HV_INVALID_REGISTER_VALUE: NTSTATUS = -1070268336i32;
pub const STATUS_HV_INVALID_SAVE_RESTORE_STATE: NTSTATUS = -1070268393i32;
pub const STATUS_HV_INVALID_SYNIC_STATE: NTSTATUS = -1070268392i32;
pub const STATUS_HV_INVALID_VP_INDEX: NTSTATUS = -1070268402i32;
pub const STATUS_HV_INVALID_VP_STATE: NTSTATUS = -1070268395i32;
pub const STATUS_HV_INVALID_VTL_STATE: NTSTATUS = -1070268335i32;
pub const STATUS_HV_MSR_ACCESS_FAILED: NTSTATUS = -1070268288i32;
pub const STATUS_HV_NESTED_VM_EXIT: NTSTATUS = -1070268297i32;
pub const STATUS_HV_NOT_ACKNOWLEDGED: NTSTATUS = -1070268396i32;
pub const STATUS_HV_NOT_ALLOWED_WITH_NESTED_VIRT_ACTIVE: NTSTATUS = -1070268302i32;
pub const STATUS_HV_NOT_PRESENT: NTSTATUS = -1070264320i32;
pub const STATUS_HV_NO_DATA: NTSTATUS = -1070268389i32;
pub const STATUS_HV_NO_RESOURCES: NTSTATUS = -1070268387i32;
pub const STATUS_HV_NX_NOT_DETECTED: NTSTATUS = -1070268331i32;
pub const STATUS_HV_OBJECT_IN_USE: NTSTATUS = -1070268391i32;
pub const STATUS_HV_OPERATION_DENIED: NTSTATUS = -1070268408i32;
pub const STATUS_HV_OPERATION_FAILED: NTSTATUS = -1070268303i32;
pub const STATUS_HV_PAGE_REQUEST_INVALID: NTSTATUS = -1070268320i32;
pub const STATUS_HV_PARTITION_TOO_DEEP: NTSTATUS = -1070268404i32;
pub const STATUS_HV_PENDING_PAGE_REQUESTS: NTSTATUS = 3473497i32;
pub const STATUS_HV_PROCESSOR_STARTUP_TIMEOUT: NTSTATUS = -1070268354i32;
pub const STATUS_HV_PROPERTY_VALUE_OUT_OF_RANGE: NTSTATUS = -1070268406i32;
pub const STATUS_HV_SMX_ENABLED: NTSTATUS = -1070268353i32;
pub const STATUS_HV_UNKNOWN_PROPERTY: NTSTATUS = -1070268407i32;
pub const STATUS_ILLEGAL_CHARACTER: NTSTATUS = -1073741471i32;
pub const STATUS_ILLEGAL_DLL_RELOCATION: NTSTATUS = -1073741207i32;
pub const STATUS_ILLEGAL_ELEMENT_ADDRESS: NTSTATUS = -1073741179i32;
pub const STATUS_ILLEGAL_FLOAT_CONTEXT: NTSTATUS = -1073741494i32;
pub const STATUS_ILLEGAL_FUNCTION: NTSTATUS = -1073741649i32;
pub const STATUS_ILLEGAL_INSTRUCTION: NTSTATUS = -1073741795i32;
pub const STATUS_ILL_FORMED_PASSWORD: NTSTATUS = -1073741717i32;
pub const STATUS_ILL_FORMED_SERVICE_ENTRY: NTSTATUS = -1073741472i32;
pub const STATUS_IMAGE_ALREADY_LOADED: NTSTATUS = -1073741554i32;
pub const STATUS_IMAGE_ALREADY_LOADED_AS_DLL: NTSTATUS = -1073741411i32;
pub const STATUS_IMAGE_AT_DIFFERENT_BASE: NTSTATUS = 1073741878i32;
pub const STATUS_IMAGE_CERT_EXPIRED: NTSTATUS = -1073740283i32;
pub const STATUS_IMAGE_CERT_REVOKED: NTSTATUS = -1073740285i32;
pub const STATUS_IMAGE_CHECKSUM_MISMATCH: NTSTATUS = -1073741279i32;
pub const STATUS_IMAGE_LOADED_AS_PATCH_IMAGE: NTSTATUS = -1073740608i32;
pub const STATUS_IMAGE_MACHINE_TYPE_MISMATCH: NTSTATUS = 1073741838i32;
pub const STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE: NTSTATUS = 1073741859i32;
pub const STATUS_IMAGE_MP_UP_MISMATCH: NTSTATUS = -1073741239i32;
pub const STATUS_IMAGE_NOT_AT_BASE: NTSTATUS = 1073741827i32;
pub const STATUS_IMAGE_SUBSYSTEM_NOT_PRESENT: NTSTATUS = -1073741405i32;
pub const STATUS_IMPLEMENTATION_LIMIT: NTSTATUS = -1073740757i32;
pub const STATUS_INCOMPATIBLE_DRIVER_BLOCKED: NTSTATUS = -1073740764i32;
pub const STATUS_INCOMPATIBLE_FILE_MAP: NTSTATUS = -1073741747i32;
pub const STATUS_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING: NTSTATUS = -1073741410i32;
pub const STATUS_INCORRECT_ACCOUNT_TYPE: NTSTATUS = -1073700727i32;
pub const STATUS_INDEX_OUT_OF_BOUNDS: NTSTATUS = -1073740591i32;
pub const STATUS_INDOUBT_TRANSACTIONS_EXIST: NTSTATUS = -1072103366i32;
pub const STATUS_INFO_LENGTH_MISMATCH: NTSTATUS = -1073741820i32;
pub const STATUS_INSTANCE_NOT_AVAILABLE: NTSTATUS = -1073741653i32;
pub const STATUS_INSTRUCTION_MISALIGNMENT: NTSTATUS = -1073741654i32;
pub const STATUS_INSUFFICIENT_LOGON_INFO: NTSTATUS = -1073741232i32;
pub const STATUS_INSUFFICIENT_NVRAM_RESOURCES: NTSTATUS = -1073740716i32;
pub const STATUS_INSUFFICIENT_POWER: NTSTATUS = -1073741090i32;
pub const STATUS_INSUFFICIENT_RESOURCES: NTSTATUS = -1073741670i32;
pub const STATUS_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE: NTSTATUS = -1073740778i32;
pub const STATUS_INSUFFICIENT_VIRTUAL_ADDR_RESOURCES: NTSTATUS = -1073740606i32;
pub const STATUS_INSUFF_SERVER_RESOURCES: NTSTATUS = -1073741307i32;
pub const STATUS_INTEGER_DIVIDE_BY_ZERO: NTSTATUS = -1073741676i32;
pub const STATUS_INTEGER_OVERFLOW: NTSTATUS = -1073741675i32;
pub const STATUS_INTERMIXED_KERNEL_EA_OPERATION: NTSTATUS = -1073740687i32;
pub const STATUS_INTERNAL_DB_CORRUPTION: NTSTATUS = -1073741596i32;
pub const STATUS_INTERNAL_DB_ERROR: NTSTATUS = -1073741480i32;
pub const STATUS_INTERNAL_ERROR: NTSTATUS = -1073741595i32;
pub const STATUS_INTERRUPTED: NTSTATUS = -1073740523i32;
pub const STATUS_INTERRUPT_STILL_CONNECTED: NTSTATUS = 296i32;
pub const STATUS_INTERRUPT_VECTOR_ALREADY_CONNECTED: NTSTATUS = 295i32;
pub const STATUS_INVALID_ACCOUNT_NAME: NTSTATUS = -1073741726i32;
pub const STATUS_INVALID_ACE_CONDITION: NTSTATUS = -1073741406i32;
pub const STATUS_INVALID_ACL: NTSTATUS = -1073741705i32;
pub const STATUS_INVALID_ADDRESS: NTSTATUS = -1073741503i32;
pub const STATUS_INVALID_ADDRESS_COMPONENT: NTSTATUS = -1073741305i32;
pub const STATUS_INVALID_ADDRESS_WILDCARD: NTSTATUS = -1073741304i32;
pub const STATUS_INVALID_BLOCK_LENGTH: NTSTATUS = -1073741453i32;
pub const STATUS_INVALID_BUFFER_SIZE: NTSTATUS = -1073741306i32;
pub const STATUS_INVALID_CAP: NTSTATUS = -1073740539i32;
pub const STATUS_INVALID_CID: NTSTATUS = -1073741813i32;
pub const STATUS_INVALID_COMPUTER_NAME: NTSTATUS = -1073741534i32;
pub const STATUS_INVALID_CONNECTION: NTSTATUS = -1073741504i32;
pub const STATUS_INVALID_CRUNTIME_PARAMETER: NTSTATUS = -1073740777i32;
pub const STATUS_INVALID_DEVICE_OBJECT_PARAMETER: NTSTATUS = -1073740951i32;
pub const STATUS_INVALID_DEVICE_REQUEST: NTSTATUS = -1073741808i32;
pub const STATUS_INVALID_DEVICE_STATE: NTSTATUS = -1073741436i32;
pub const STATUS_INVALID_DISPOSITION: NTSTATUS = -1073741786i32;
pub const STATUS_INVALID_DOMAIN_ROLE: NTSTATUS = -1073741602i32;
pub const STATUS_INVALID_DOMAIN_STATE: NTSTATUS = -1073741603i32;
pub const STATUS_INVALID_EA_FLAG: NTSTATUS = -2147483627i32;
pub const STATUS_INVALID_EA_NAME: NTSTATUS = -2147483629i32;
pub const STATUS_INVALID_EXCEPTION_HANDLER: NTSTATUS = -1073741403i32;
pub const STATUS_INVALID_FIELD_IN_PARAMETER_LIST: NTSTATUS = -1073740683i32;
pub const STATUS_INVALID_FILE_FOR_SECTION: NTSTATUS = -1073741792i32;
pub const STATUS_INVALID_GROUP_ATTRIBUTES: NTSTATUS = -1073741660i32;
pub const STATUS_INVALID_HANDLE: NTSTATUS = -1073741816i32;
pub const STATUS_INVALID_HW_PROFILE: NTSTATUS = -1073741216i32;
pub const STATUS_INVALID_IDN_NORMALIZATION: NTSTATUS = -1073740010i32;
pub const STATUS_INVALID_ID_AUTHORITY: NTSTATUS = -1073741692i32;
pub const STATUS_INVALID_IMAGE_FORMAT: NTSTATUS = -1073741701i32;
pub const STATUS_INVALID_IMAGE_HASH: NTSTATUS = -1073740760i32;
pub const STATUS_INVALID_IMAGE_LE_FORMAT: NTSTATUS = -1073741522i32;
pub const STATUS_INVALID_IMAGE_NE_FORMAT: NTSTATUS = -1073741541i32;
pub const STATUS_INVALID_IMAGE_NOT_MZ: NTSTATUS = -1073741521i32;
pub const STATUS_INVALID_IMAGE_PROTECT: NTSTATUS = -1073741520i32;
pub const STATUS_INVALID_IMAGE_WIN_16: NTSTATUS = -1073741519i32;
pub const STATUS_INVALID_IMAGE_WIN_32: NTSTATUS = -1073740967i32;
pub const STATUS_INVALID_IMAGE_WIN_64: NTSTATUS = -1073740966i32;
pub const STATUS_INVALID_IMPORT_OF_NON_DLL: NTSTATUS = -1073740945i32;
pub const STATUS_INVALID_INFO_CLASS: NTSTATUS = -1073741821i32;
pub const STATUS_INVALID_INITIATOR_TARGET_PATH: NTSTATUS = -1073740681i32;
pub const STATUS_INVALID_KERNEL_INFO_VERSION: NTSTATUS = -1073700860i32;
pub const STATUS_INVALID_LABEL: NTSTATUS = -1073740730i32;
pub const STATUS_INVALID_LDT_DESCRIPTOR: NTSTATUS = -1073741542i32;
pub const STATUS_INVALID_LDT_OFFSET: NTSTATUS = -1073741543i32;
pub const STATUS_INVALID_LDT_SIZE: NTSTATUS = -1073741544i32;
pub const STATUS_INVALID_LEVEL: NTSTATUS = -1073741496i32;
pub const STATUS_INVALID_LOCK_RANGE: NTSTATUS = -1073741407i32;
pub const STATUS_INVALID_LOCK_SEQUENCE: NTSTATUS = -1073741794i32;
pub const STATUS_INVALID_LOGON_HOURS: NTSTATUS = -1073741713i32;
pub const STATUS_INVALID_LOGON_TYPE: NTSTATUS = -1073741557i32;
pub const STATUS_INVALID_MEMBER: NTSTATUS = -1073741445i32;
pub const STATUS_INVALID_MESSAGE: NTSTATUS = -1073740030i32;
pub const STATUS_INVALID_NETWORK_RESPONSE: NTSTATUS = -1073741629i32;
pub const STATUS_INVALID_OFFSET_ALIGNMENT: NTSTATUS = -1073740684i32;
pub const STATUS_INVALID_OPLOCK_PROTOCOL: NTSTATUS = -1073741597i32;
pub const STATUS_INVALID_OWNER: NTSTATUS = -1073741734i32;
pub const STATUS_INVALID_PACKAGE_SID_LENGTH: NTSTATUS = -1073700350i32;
pub const STATUS_INVALID_PAGE_PROTECTION: NTSTATUS = -1073741755i32;
pub const STATUS_INVALID_PARAMETER: NTSTATUS = -1073741811i32;
pub const STATUS_INVALID_PARAMETER_1: NTSTATUS = -1073741585i32;
pub const STATUS_INVALID_PARAMETER_10: NTSTATUS = -1073741576i32;
pub const STATUS_INVALID_PARAMETER_11: NTSTATUS = -1073741575i32;
pub const STATUS_INVALID_PARAMETER_12: NTSTATUS = -1073741574i32;
pub const STATUS_INVALID_PARAMETER_2: NTSTATUS = -1073741584i32;
pub const STATUS_INVALID_PARAMETER_3: NTSTATUS = -1073741583i32;
pub const STATUS_INVALID_PARAMETER_4: NTSTATUS = -1073741582i32;
pub const STATUS_INVALID_PARAMETER_5: NTSTATUS = -1073741581i32;
pub const STATUS_INVALID_PARAMETER_6: NTSTATUS = -1073741580i32;
pub const STATUS_INVALID_PARAMETER_7: NTSTATUS = -1073741579i32;
pub const STATUS_INVALID_PARAMETER_8: NTSTATUS = -1073741578i32;
pub const STATUS_INVALID_PARAMETER_9: NTSTATUS = -1073741577i32;
pub const STATUS_INVALID_PARAMETER_MIX: NTSTATUS = -1073741776i32;
pub const STATUS_INVALID_PEP_INFO_VERSION: NTSTATUS = -1073700859i32;
pub const STATUS_INVALID_PIPE_STATE: NTSTATUS = -1073741651i32;
pub const STATUS_INVALID_PLUGPLAY_DEVICE_PATH: NTSTATUS = -1073741215i32;
pub const STATUS_INVALID_PORT_ATTRIBUTES: NTSTATUS = -1073741778i32;
pub const STATUS_INVALID_PORT_HANDLE: NTSTATUS = -1073741758i32;
pub const STATUS_INVALID_PRIMARY_GROUP: NTSTATUS = -1073741733i32;
pub const STATUS_INVALID_QUOTA_LOWER: NTSTATUS = -1073741775i32;
pub const STATUS_INVALID_READ_MODE: NTSTATUS = -1073741644i32;
pub const STATUS_INVALID_RUNLEVEL_SETTING: NTSTATUS = -1073700542i32;
pub const STATUS_INVALID_SECURITY_DESCR: NTSTATUS = -1073741703i32;
pub const STATUS_INVALID_SERVER_STATE: NTSTATUS = -1073741604i32;
pub const STATUS_INVALID_SESSION: NTSTATUS = -1073740715i32;
pub const STATUS_INVALID_SID: NTSTATUS = -1073741704i32;
pub const STATUS_INVALID_SIGNATURE: NTSTATUS = -1073700864i32;
pub const STATUS_INVALID_STATE_TRANSITION: NTSTATUS = -1073700861i32;
pub const STATUS_INVALID_SUB_AUTHORITY: NTSTATUS = -1073741706i32;
pub const STATUS_INVALID_SYSTEM_SERVICE: NTSTATUS = -1073741796i32;
pub const STATUS_INVALID_TASK_INDEX: NTSTATUS = -1073740543i32;
pub const STATUS_INVALID_TASK_NAME: NTSTATUS = -1073740544i32;
pub const STATUS_INVALID_THREAD: NTSTATUS = -1073740004i32;
pub const STATUS_INVALID_TOKEN: NTSTATUS = -1073740699i32;
pub const STATUS_INVALID_TRANSACTION: NTSTATUS = -1072103422i32;
pub const STATUS_INVALID_UNWIND_TARGET: NTSTATUS = -1073741783i32;
pub const STATUS_INVALID_USER_BUFFER: NTSTATUS = -1073741592i32;
pub const STATUS_INVALID_USER_PRINCIPAL_NAME: NTSTATUS = -1073740772i32;
pub const STATUS_INVALID_VARIANT: NTSTATUS = -1073741262i32;
pub const STATUS_INVALID_VIEW_SIZE: NTSTATUS = -1073741793i32;
pub const STATUS_INVALID_VOLUME_LABEL: NTSTATUS = -1073741690i32;
pub const STATUS_INVALID_WEIGHT: NTSTATUS = -1073740712i32;
pub const STATUS_INVALID_WORKSTATION: NTSTATUS = -1073741712i32;
pub const STATUS_IN_PAGE_ERROR: NTSTATUS = -1073741818i32;
pub const STATUS_IORING_COMPLETION_QUEUE_TOO_BIG: NTSTATUS = -1069154299i32;
pub const STATUS_IORING_CORRUPT: NTSTATUS = -1069154297i32;
pub const STATUS_IORING_REQUIRED_FLAG_NOT_SUPPORTED: NTSTATUS = -1069154303i32;
pub const STATUS_IORING_SUBMISSION_QUEUE_FULL: NTSTATUS = -1069154302i32;
pub const STATUS_IORING_SUBMISSION_QUEUE_TOO_BIG: NTSTATUS = -1069154300i32;
pub const STATUS_IORING_SUBMIT_IN_PROGRESS: NTSTATUS = -1069154298i32;
pub const STATUS_IORING_VERSION_NOT_SUPPORTED: NTSTATUS = -1069154301i32;
pub const STATUS_IO_DEVICE_ERROR: NTSTATUS = -1073741435i32;
pub const STATUS_IO_DEVICE_INVALID_DATA: NTSTATUS = -1073741392i32;
pub const STATUS_IO_OPERATION_TIMEOUT: NTSTATUS = -1073740675i32;
pub const STATUS_IO_PREEMPTED: NTSTATUS = -1068433407i32;
pub const STATUS_IO_PRIVILEGE_FAILED: NTSTATUS = -1073741513i32;
pub const STATUS_IO_REISSUE_AS_CACHED: NTSTATUS = -1073479623i32;
pub const STATUS_IO_REPARSE_DATA_INVALID: NTSTATUS = -1073741192i32;
pub const STATUS_IO_REPARSE_TAG_INVALID: NTSTATUS = -1073741194i32;
pub const STATUS_IO_REPARSE_TAG_MISMATCH: NTSTATUS = -1073741193i32;
pub const STATUS_IO_REPARSE_TAG_NOT_HANDLED: NTSTATUS = -1073741191i32;
pub const STATUS_IO_TIMEOUT: NTSTATUS = -1073741643i32;
pub const STATUS_IO_UNALIGNED_WRITE: NTSTATUS = -1073741391i32;
pub const STATUS_IPSEC_AUTH_FIREWALL_DROP: NTSTATUS = -1070202872i32;
pub const STATUS_IPSEC_BAD_SPI: NTSTATUS = -1070202879i32;
pub const STATUS_IPSEC_CLEAR_TEXT_DROP: NTSTATUS = -1070202873i32;
pub const STATUS_IPSEC_DOSP_BLOCK: NTSTATUS = -1070170112i32;
pub const STATUS_IPSEC_DOSP_INVALID_PACKET: NTSTATUS = -1070170110i32;
pub const STATUS_IPSEC_DOSP_KEYMOD_NOT_ALLOWED: NTSTATUS = -1070170107i32;
pub const STATUS_IPSEC_DOSP_MAX_ENTRIES: NTSTATUS = -1070170108i32;
pub const STATUS_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES: NTSTATUS = -1070170106i32;
pub const STATUS_IPSEC_DOSP_RECEIVED_MULTICAST: NTSTATUS = -1070170111i32;
pub const STATUS_IPSEC_DOSP_STATE_LOOKUP_FAILED: NTSTATUS = -1070170109i32;
pub const STATUS_IPSEC_INTEGRITY_CHECK_FAILED: NTSTATUS = -1070202874i32;
pub const STATUS_IPSEC_INVALID_PACKET: NTSTATUS = -1070202875i32;
pub const STATUS_IPSEC_QUEUE_OVERFLOW: NTSTATUS = -1073700848i32;
pub const STATUS_IPSEC_REPLAY_CHECK_FAILED: NTSTATUS = -1070202876i32;
pub const STATUS_IPSEC_SA_LIFETIME_EXPIRED: NTSTATUS = -1070202878i32;
pub const STATUS_IPSEC_THROTTLE_DROP: NTSTATUS = -1070202871i32;
pub const STATUS_IPSEC_WRONG_SA: NTSTATUS = -1070202877i32;
pub const STATUS_IP_ADDRESS_CONFLICT1: NTSTATUS = -1073741228i32;
pub const STATUS_IP_ADDRESS_CONFLICT2: NTSTATUS = -1073741227i32;
pub const STATUS_ISSUING_CA_UNTRUSTED: NTSTATUS = -1073740918i32;
pub const STATUS_ISSUING_CA_UNTRUSTED_KDC: NTSTATUS = -1073740787i32;
pub const STATUS_JOB_NOT_EMPTY: NTSTATUS = -1073740529i32;
pub const STATUS_JOB_NO_CONTAINER: NTSTATUS = -1073740535i32;
pub const STATUS_JOURNAL_DELETE_IN_PROGRESS: NTSTATUS = -1073741129i32;
pub const STATUS_JOURNAL_ENTRY_DELETED: NTSTATUS = -1073741105i32;
pub const STATUS_JOURNAL_NOT_ACTIVE: NTSTATUS = -1073741128i32;
pub const STATUS_KDC_CERT_EXPIRED: NTSTATUS = -1073740786i32;
pub const STATUS_KDC_CERT_REVOKED: NTSTATUS = -1073740785i32;
pub const STATUS_KDC_INVALID_REQUEST: NTSTATUS = -1073741061i32;
pub const STATUS_KDC_UNABLE_TO_REFER: NTSTATUS = -1073741060i32;
pub const STATUS_KDC_UNKNOWN_ETYPE: NTSTATUS = -1073741059i32;
pub const STATUS_KERNEL_APC: NTSTATUS = 256i32;
pub const STATUS_KERNEL_EXECUTABLE_MEMORY_WRITE: NTSTATUS = -1073739996i32;
pub const STATUS_KEY_DELETED: NTSTATUS = -1073741444i32;
pub const STATUS_KEY_HAS_CHILDREN: NTSTATUS = -1073741440i32;
pub const STATUS_LAST_ADMIN: NTSTATUS = -1073741719i32;
pub const STATUS_LICENSE_QUOTA_EXCEEDED: NTSTATUS = -1073741223i32;
pub const STATUS_LICENSE_VIOLATION: NTSTATUS = -1073741206i32;
pub const STATUS_LINK_FAILED: NTSTATUS = -1073741506i32;
pub const STATUS_LINK_TIMEOUT: NTSTATUS = -1073741505i32;
pub const STATUS_LM_CROSS_ENCRYPTION_REQUIRED: NTSTATUS = -1073741441i32;
pub const STATUS_LOCAL_DISCONNECT: NTSTATUS = -1073741509i32;
pub const STATUS_LOCAL_USER_SESSION_KEY: NTSTATUS = 1073741830i32;
pub const STATUS_LOCK_NOT_GRANTED: NTSTATUS = -1073741739i32;
pub const STATUS_LOGIN_TIME_RESTRICTION: NTSTATUS = -1073741241i32;
pub const STATUS_LOGIN_WKSTA_RESTRICTION: NTSTATUS = -1073741240i32;
pub const STATUS_LOGON_NOT_GRANTED: NTSTATUS = -1073741483i32;
pub const STATUS_LOGON_SERVER_CONFLICT: NTSTATUS = -1073741518i32;
pub const STATUS_LOGON_SESSION_COLLISION: NTSTATUS = -1073741563i32;
pub const STATUS_LOGON_SESSION_EXISTS: NTSTATUS = -1073741586i32;
pub const STATUS_LOG_APPENDED_FLUSH_FAILED: NTSTATUS = -1072037841i32;
pub const STATUS_LOG_ARCHIVE_IN_PROGRESS: NTSTATUS = -1072037855i32;
pub const STATUS_LOG_ARCHIVE_NOT_IN_PROGRESS: NTSTATUS = -1072037856i32;
pub const STATUS_LOG_BLOCKS_EXHAUSTED: NTSTATUS = -1072037882i32;
pub const STATUS_LOG_BLOCK_INCOMPLETE: NTSTATUS = -1072037884i32;
pub const STATUS_LOG_BLOCK_INVALID: NTSTATUS = -1072037878i32;
pub const STATUS_LOG_BLOCK_VERSION: NTSTATUS = -1072037879i32;
pub const STATUS_LOG_CANT_DELETE: NTSTATUS = -1072037871i32;
pub const STATUS_LOG_CLIENT_ALREADY_REGISTERED: NTSTATUS = -1072037852i32;
pub const STATUS_LOG_CLIENT_NOT_REGISTERED: NTSTATUS = -1072037851i32;
pub const STATUS_LOG_CONTAINER_LIMIT_EXCEEDED: NTSTATUS = -1072037870i32;
pub const STATUS_LOG_CONTAINER_OPEN_FAILED: NTSTATUS = -1072037847i32;
pub const STATUS_LOG_CONTAINER_READ_FAILED: NTSTATUS = -1072037849i32;
pub const STATUS_LOG_CONTAINER_STATE_INVALID: NTSTATUS = -1072037846i32;
pub const STATUS_LOG_CONTAINER_WRITE_FAILED: NTSTATUS = -1072037848i32;
pub const STATUS_LOG_CORRUPTION_DETECTED: NTSTATUS = -1072103376i32;
pub const STATUS_LOG_DEDICATED: NTSTATUS = -1072037857i32;
pub const STATUS_LOG_EPHEMERAL: NTSTATUS = -1072037854i32;
pub const STATUS_LOG_FILE_FULL: NTSTATUS = -1073741432i32;
pub const STATUS_LOG_FULL: NTSTATUS = -1072037859i32;
pub const STATUS_LOG_FULL_HANDLER_IN_PROGRESS: NTSTATUS = -1072037850i32;
pub const STATUS_LOG_GROWTH_FAILED: NTSTATUS = -1072103399i32;
pub const STATUS_LOG_HARD_ERROR: NTSTATUS = 1073741850i32;
pub const STATUS_LOG_INCONSISTENT_SECURITY: NTSTATUS = -1072037842i32;
pub const STATUS_LOG_INVALID_RANGE: NTSTATUS = -1072037883i32;
pub const STATUS_LOG_METADATA_CORRUPT: NTSTATUS = -1072037875i32;
pub const STATUS_LOG_METADATA_FLUSH_FAILED: NTSTATUS = -1072037843i32;
pub const STATUS_LOG_METADATA_INCONSISTENT: NTSTATUS = -1072037873i32;
pub const STATUS_LOG_METADATA_INVALID: NTSTATUS = -1072037874i32;
pub const STATUS_LOG_MULTIPLEXED: NTSTATUS = -1072037858i32;
pub const STATUS_LOG_NOT_ENOUGH_CONTAINERS: NTSTATUS = -1072037853i32;
pub const STATUS_LOG_NO_RESTART: NTSTATUS = 1075445772i32;
pub const STATUS_LOG_PINNED: NTSTATUS = -1072037844i32;
pub const STATUS_LOG_PINNED_ARCHIVE_TAIL: NTSTATUS = -1072037864i32;
pub const STATUS_LOG_PINNED_RESERVATION: NTSTATUS = -1072037840i32;
pub const STATUS_LOG_POLICY_ALREADY_INSTALLED: NTSTATUS = -1072037868i32;
pub const STATUS_LOG_POLICY_CONFLICT: NTSTATUS = -1072037865i32;
pub const STATUS_LOG_POLICY_INVALID: NTSTATUS = -1072037866i32;
pub const STATUS_LOG_POLICY_NOT_INSTALLED: NTSTATUS = -1072037867i32;
pub const STATUS_LOG_READ_CONTEXT_INVALID: NTSTATUS = -1072037881i32;
pub const STATUS_LOG_READ_MODE_INVALID: NTSTATUS = -1072037877i32;
pub const STATUS_LOG_RECORDS_RESERVED_INVALID: NTSTATUS = -1072037862i32;
pub const STATUS_LOG_RECORD_NONEXISTENT: NTSTATUS = -1072037863i32;
pub const STATUS_LOG_RESERVATION_INVALID: NTSTATUS = -1072037872i32;
pub const STATUS_LOG_RESIZE_INVALID_SIZE: NTSTATUS = -1072103413i32;
pub const STATUS_LOG_RESTART_INVALID: NTSTATUS = -1072037880i32;
pub const STATUS_LOG_SECTOR_INVALID: NTSTATUS = -1072037887i32;
pub const STATUS_LOG_SECTOR_PARITY_INVALID: NTSTATUS = -1072037886i32;
pub const STATUS_LOG_SECTOR_REMAPPED: NTSTATUS = -1072037885i32;
pub const STATUS_LOG_SPACE_RESERVED_INVALID: NTSTATUS = -1072037861i32;
pub const STATUS_LOG_START_OF_LOG: NTSTATUS = -1072037869i32;
pub const STATUS_LOG_STATE_INVALID: NTSTATUS = -1072037845i32;
pub const STATUS_LOG_TAIL_INVALID: NTSTATUS = -1072037860i32;
pub const STATUS_LONGJUMP: NTSTATUS = -2147483610i32;
pub const STATUS_LOST_MODE_LOGON_RESTRICTION: NTSTATUS = -1073741043i32;
pub const STATUS_LOST_WRITEBEHIND_DATA: NTSTATUS = -1073741278i32;
pub const STATUS_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR: NTSTATUS = -1073700734i32;
pub const STATUS_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED: NTSTATUS = -1073700736i32;
pub const STATUS_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR: NTSTATUS = -1073700735i32;
pub const STATUS_LPAC_ACCESS_DENIED: NTSTATUS = -1073700349i32;
pub const STATUS_LPC_HANDLE_COUNT_EXCEEDED: NTSTATUS = -1073739998i32;
pub const STATUS_LPC_INVALID_CONNECTION_USAGE: NTSTATUS = -1073740026i32;
pub const STATUS_LPC_RECEIVE_BUFFER_EXPECTED: NTSTATUS = -1073740027i32;
pub const STATUS_LPC_REPLY_LOST: NTSTATUS = -1073741229i32;
pub const STATUS_LPC_REQUESTS_NOT_ALLOWED: NTSTATUS = -1073740025i32;
pub const STATUS_LUIDS_EXHAUSTED: NTSTATUS = -1073741707i32;
pub const STATUS_MAGAZINE_NOT_PRESENT: NTSTATUS = -1073741178i32;
pub const STATUS_MAPPED_ALIGNMENT: NTSTATUS = -1073741280i32;
pub const STATUS_MAPPED_FILE_SIZE_ZERO: NTSTATUS = -1073741538i32;
pub const STATUS_MARKED_TO_DISALLOW_WRITES: NTSTATUS = -1073740659i32;
pub const STATUS_MARSHALL_OVERFLOW: NTSTATUS = -1073741263i32;
pub const STATUS_MAX_REFERRALS_EXCEEDED: NTSTATUS = -1073741068i32;
pub const STATUS_MCA_EXCEPTION: NTSTATUS = -1073740013i32;
pub const STATUS_MCA_OCCURED: NTSTATUS = -1073740950i32;
pub const STATUS_MEDIA_CHANGED: NTSTATUS = -2147483620i32;
pub const STATUS_MEDIA_CHECK: NTSTATUS = -2147483616i32;
pub const STATUS_MEDIA_WRITE_PROTECTED: NTSTATUS = -1073741662i32;
pub const STATUS_MEMBERS_PRIMARY_GROUP: NTSTATUS = -1073741529i32;
pub const STATUS_MEMBER_IN_ALIAS: NTSTATUS = -1073741485i32;
pub const STATUS_MEMBER_IN_GROUP: NTSTATUS = -1073741721i32;
pub const STATUS_MEMBER_NOT_IN_ALIAS: NTSTATUS = -1073741486i32;
pub const STATUS_MEMBER_NOT_IN_GROUP: NTSTATUS = -1073741720i32;
pub const STATUS_MEMORY_NOT_ALLOCATED: NTSTATUS = -1073741664i32;
pub const STATUS_MESSAGE_LOST: NTSTATUS = -1073740031i32;
pub const STATUS_MESSAGE_NOT_FOUND: NTSTATUS = -1073741559i32;
pub const STATUS_MESSAGE_RETRIEVED: NTSTATUS = 1073741870i32;
pub const STATUS_MFT_TOO_FRAGMENTED: NTSTATUS = -1073741052i32;
pub const STATUS_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION: NTSTATUS = -1072103388i32;
pub const STATUS_MISSING_SYSTEMFILE: NTSTATUS = -1073741501i32;
pub const STATUS_MONITOR_INVALID_DESCRIPTOR_CHECKSUM: NTSTATUS = -1071841277i32;
pub const STATUS_MONITOR_INVALID_DETAILED_TIMING_BLOCK: NTSTATUS = -1071841271i32;
pub const STATUS_MONITOR_INVALID_MANUFACTURE_DATE: NTSTATUS = -1071841270i32;
pub const STATUS_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK: NTSTATUS = -1071841274i32;
pub const STATUS_MONITOR_INVALID_STANDARD_TIMING_BLOCK: NTSTATUS = -1071841276i32;
pub const STATUS_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK: NTSTATUS = -1071841273i32;
pub const STATUS_MONITOR_NO_DESCRIPTOR: NTSTATUS = -1071841279i32;
pub const STATUS_MONITOR_NO_MORE_DESCRIPTOR_DATA: NTSTATUS = -1071841272i32;
pub const STATUS_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT: NTSTATUS = -1071841278i32;
pub const STATUS_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED: NTSTATUS = -1071841275i32;
pub const STATUS_MORE_ENTRIES: NTSTATUS = 261i32;
pub const STATUS_MORE_PROCESSING_REQUIRED: NTSTATUS = -1073741802i32;
pub const STATUS_MOUNT_POINT_NOT_RESOLVED: NTSTATUS = -1073740952i32;
pub const STATUS_MP_PROCESSOR_MISMATCH: NTSTATUS = 1073741865i32;
pub const STATUS_MUI_FILE_NOT_FOUND: NTSTATUS = -1073020927i32;
pub const STATUS_MUI_FILE_NOT_LOADED: NTSTATUS = -1073020922i32;
pub const STATUS_MUI_INVALID_FILE: NTSTATUS = -1073020926i32;
pub const STATUS_MUI_INVALID_LOCALE_NAME: NTSTATUS = -1073020924i32;
pub const STATUS_MUI_INVALID_RC_CONFIG: NTSTATUS = -1073020925i32;
pub const STATUS_MUI_INVALID_ULTIMATEFALLBACK_NAME: NTSTATUS = -1073020923i32;
pub const STATUS_MULTIPLE_FAULT_VIOLATION: NTSTATUS = -1073741080i32;
pub const STATUS_MUST_BE_KDC: NTSTATUS = -1073741067i32;
pub const STATUS_MUTANT_LIMIT_EXCEEDED: NTSTATUS = -1073741423i32;
pub const STATUS_MUTANT_NOT_OWNED: NTSTATUS = -1073741754i32;
pub const STATUS_MUTUAL_AUTHENTICATION_FAILED: NTSTATUS = -1073741117i32;
pub const STATUS_NAME_TOO_LONG: NTSTATUS = -1073741562i32;
pub const STATUS_NDIS_ADAPTER_NOT_FOUND: NTSTATUS = -1071448058i32;
pub const STATUS_NDIS_ADAPTER_NOT_READY: NTSTATUS = -1071448047i32;
pub const STATUS_NDIS_ADAPTER_REMOVED: NTSTATUS = -1071448040i32;
pub const STATUS_NDIS_ALREADY_MAPPED: NTSTATUS = -1071448035i32;
pub const STATUS_NDIS_BAD_CHARACTERISTICS: NTSTATUS = -1071448059i32;
pub const STATUS_NDIS_BAD_VERSION: NTSTATUS = -1071448060i32;
pub const STATUS_NDIS_BUFFER_TOO_SHORT: NTSTATUS = -1071448042i32;
pub const STATUS_NDIS_CLOSING: NTSTATUS = -1071448062i32;
pub const STATUS_NDIS_DEVICE_FAILED: NTSTATUS = -1071448056i32;
pub const STATUS_NDIS_DOT11_AP_BAND_CURRENTLY_NOT_AVAILABLE: NTSTATUS = -1071439866i32;
pub const STATUS_NDIS_DOT11_AP_BAND_NOT_ALLOWED: NTSTATUS = -1071439864i32;
pub const STATUS_NDIS_DOT11_AP_CHANNEL_CURRENTLY_NOT_AVAILABLE: NTSTATUS = -1071439867i32;
pub const STATUS_NDIS_DOT11_AP_CHANNEL_NOT_ALLOWED: NTSTATUS = -1071439865i32;
pub const STATUS_NDIS_DOT11_AUTO_CONFIG_ENABLED: NTSTATUS = -1071439872i32;
pub const STATUS_NDIS_DOT11_MEDIA_IN_USE: NTSTATUS = -1071439871i32;
pub const STATUS_NDIS_DOT11_POWER_STATE_INVALID: NTSTATUS = -1071439870i32;
pub const STATUS_NDIS_ERROR_READING_FILE: NTSTATUS = -1071448036i32;
pub const STATUS_NDIS_FILE_NOT_FOUND: NTSTATUS = -1071448037i32;
pub const STATUS_NDIS_GROUP_ADDRESS_IN_USE: NTSTATUS = -1071448038i32;
pub const STATUS_NDIS_INDICATION_REQUIRED: NTSTATUS = 1076035585i32;
pub const STATUS_NDIS_INTERFACE_NOT_FOUND: NTSTATUS = -1071448021i32;
pub const STATUS_NDIS_INVALID_ADDRESS: NTSTATUS = -1071448030i32;
pub const STATUS_NDIS_INVALID_DATA: NTSTATUS = -1071448043i32;
pub const STATUS_NDIS_INVALID_DEVICE_REQUEST: NTSTATUS = -1071448048i32;
pub const STATUS_NDIS_INVALID_LENGTH: NTSTATUS = -1071448044i32;
pub const STATUS_NDIS_INVALID_OID: NTSTATUS = -1071448041i32;
pub const STATUS_NDIS_INVALID_PACKET: NTSTATUS = -1071448049i32;
pub const STATUS_NDIS_INVALID_PORT: NTSTATUS = -1071448019i32;
pub const STATUS_NDIS_INVALID_PORT_STATE: NTSTATUS = -1071448018i32;
pub const STATUS_NDIS_LOW_POWER_STATE: NTSTATUS = -1071448017i32;
pub const STATUS_NDIS_MEDIA_DISCONNECTED: NTSTATUS = -1071448033i32;
pub const STATUS_NDIS_MULTICAST_EXISTS: NTSTATUS = -1071448054i32;
pub const STATUS_NDIS_MULTICAST_FULL: NTSTATUS = -1071448055i32;
pub const STATUS_NDIS_MULTICAST_NOT_FOUND: NTSTATUS = -1071448053i32;
pub const STATUS_NDIS_NOT_SUPPORTED: NTSTATUS = -1071447877i32;
pub const STATUS_NDIS_NO_QUEUES: NTSTATUS = -1071448015i32;
pub const STATUS_NDIS_OFFLOAD_CONNECTION_REJECTED: NTSTATUS = -1071443950i32;
pub const STATUS_NDIS_OFFLOAD_PATH_REJECTED: NTSTATUS = -1071443949i32;
pub const STATUS_NDIS_OFFLOAD_POLICY: NTSTATUS = -1071443953i32;
pub const STATUS_NDIS_OPEN_FAILED: NTSTATUS = -1071448057i32;
pub const STATUS_NDIS_PAUSED: NTSTATUS = -1071448022i32;
pub const STATUS_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL: NTSTATUS = -1071439868i32;
pub const STATUS_NDIS_PM_WOL_PATTERN_LIST_FULL: NTSTATUS = -1071439869i32;
pub const STATUS_NDIS_REINIT_REQUIRED: NTSTATUS = -1071448016i32;
pub const STATUS_NDIS_REQUEST_ABORTED: NTSTATUS = -1071448052i32;
pub const STATUS_NDIS_RESET_IN_PROGRESS: NTSTATUS = -1071448051i32;
pub const STATUS_NDIS_RESOURCE_CONFLICT: NTSTATUS = -1071448034i32;
pub const STATUS_NDIS_UNSUPPORTED_MEDIA: NTSTATUS = -1071448039i32;
pub const STATUS_NDIS_UNSUPPORTED_REVISION: NTSTATUS = -1071448020i32;
pub const STATUS_ND_QUEUE_OVERFLOW: NTSTATUS = -1073700847i32;
pub const STATUS_NEEDS_REGISTRATION: NTSTATUS = -1073740663i32;
pub const STATUS_NEEDS_REMEDIATION: NTSTATUS = -1073740702i32;
pub const STATUS_NETLOGON_NOT_STARTED: NTSTATUS = -1073741422i32;
pub const STATUS_NETWORK_ACCESS_DENIED: NTSTATUS = -1073741622i32;
pub const STATUS_NETWORK_ACCESS_DENIED_EDP: NTSTATUS = -1073740658i32;
pub const STATUS_NETWORK_BUSY: NTSTATUS = -1073741633i32;
pub const STATUS_NETWORK_CREDENTIAL_CONFLICT: NTSTATUS = -1073741419i32;
pub const STATUS_NETWORK_NAME_DELETED: NTSTATUS = -1073741623i32;
pub const STATUS_NETWORK_OPEN_RESTRICTION: NTSTATUS = -1073741311i32;
pub const STATUS_NETWORK_SESSION_EXPIRED: NTSTATUS = -1073740964i32;
pub const STATUS_NETWORK_UNREACHABLE: NTSTATUS = -1073741252i32;
pub const STATUS_NET_WRITE_FAULT: NTSTATUS = -1073741614i32;
pub const STATUS_NOINTERFACE: NTSTATUS = -1073741127i32;
pub const STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT: NTSTATUS = -1073741416i32;
pub const STATUS_NOLOGON_SERVER_TRUST_ACCOUNT: NTSTATUS = -1073741414i32;
pub const STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT: NTSTATUS = -1073741415i32;
pub const STATUS_NONCONTINUABLE_EXCEPTION: NTSTATUS = -1073741787i32;
pub const STATUS_NONEXISTENT_EA_ENTRY: NTSTATUS = -1073741743i32;
pub const STATUS_NONEXISTENT_SECTOR: NTSTATUS = -1073741803i32;
pub const STATUS_NONE_MAPPED: NTSTATUS = -1073741709i32;
pub const STATUS_NOTHING_TO_TERMINATE: NTSTATUS = 290i32;
pub const STATUS_NOTIFICATION_GUID_ALREADY_DEFINED: NTSTATUS = -1073741404i32;
pub const STATUS_NOTIFY_CLEANUP: NTSTATUS = 267i32;
pub const STATUS_NOTIFY_ENUM_DIR: NTSTATUS = 268i32;
pub const STATUS_NOT_ALLOWED_ON_SYSTEM_FILE: NTSTATUS = -1073741401i32;
pub const STATUS_NOT_ALL_ASSIGNED: NTSTATUS = 262i32;
pub const STATUS_NOT_APPCONTAINER: NTSTATUS = -1073700352i32;
pub const STATUS_NOT_A_CLOUD_FILE: NTSTATUS = -1073688825i32;
pub const STATUS_NOT_A_CLOUD_SYNC_ROOT: NTSTATUS = -1073688802i32;
pub const STATUS_NOT_A_DAX_VOLUME: NTSTATUS = -1073740623i32;
pub const STATUS_NOT_A_DIRECTORY: NTSTATUS = -1073741565i32;
pub const STATUS_NOT_A_REPARSE_POINT: NTSTATUS = -1073741195i32;
pub const STATUS_NOT_A_TIERED_VOLUME: NTSTATUS = -1073740531i32;
pub const STATUS_NOT_CAPABLE: NTSTATUS = -1073740759i32;
pub const STATUS_NOT_CLIENT_SESSION: NTSTATUS = -1073741289i32;
pub const STATUS_NOT_COMMITTED: NTSTATUS = -1073741779i32;
pub const STATUS_NOT_DAX_MAPPABLE: NTSTATUS = -1073740622i32;
pub const STATUS_NOT_EXPORT_FORMAT: NTSTATUS = -1073741166i32;
pub const STATUS_NOT_FOUND: NTSTATUS = -1073741275i32;
pub const STATUS_NOT_GUI_PROCESS: NTSTATUS = -1073740538i32;
pub const STATUS_NOT_IMPLEMENTED: NTSTATUS = -1073741822i32;
pub const STATUS_NOT_LOCKED: NTSTATUS = -1073741782i32;
pub const STATUS_NOT_LOGON_PROCESS: NTSTATUS = -1073741587i32;
pub const STATUS_NOT_MAPPED_DATA: NTSTATUS = -1073741688i32;
pub const STATUS_NOT_MAPPED_VIEW: NTSTATUS = -1073741799i32;
pub const STATUS_NOT_READ_FROM_COPY: NTSTATUS = -1073740694i32;
pub const STATUS_NOT_REDUNDANT_STORAGE: NTSTATUS = -1073740679i32;
pub const STATUS_NOT_REGISTRY_FILE: NTSTATUS = -1073741476i32;
pub const STATUS_NOT_SAFE_MODE_DRIVER: NTSTATUS = -1073740961i32;
pub const STATUS_NOT_SAME_DEVICE: NTSTATUS = -1073741612i32;
pub const STATUS_NOT_SAME_OBJECT: NTSTATUS = -1073741396i32;
pub const STATUS_NOT_SERVER_SESSION: NTSTATUS = -1073741290i32;
pub const STATUS_NOT_SNAPSHOT_VOLUME: NTSTATUS = -1072103353i32;
pub const STATUS_NOT_SUPPORTED: NTSTATUS = -1073741637i32;
pub const STATUS_NOT_SUPPORTED_IN_APPCONTAINER: NTSTATUS = -1073700351i32;
pub const STATUS_NOT_SUPPORTED_ON_DAX: NTSTATUS = -1073740646i32;
pub const STATUS_NOT_SUPPORTED_ON_SBS: NTSTATUS = -1073741056i32;
pub const STATUS_NOT_SUPPORTED_WITH_AUDITING: NTSTATUS = -1073740595i32;
pub const STATUS_NOT_SUPPORTED_WITH_BTT: NTSTATUS = -1073740619i32;
pub const STATUS_NOT_SUPPORTED_WITH_BYPASSIO: NTSTATUS = -1073740601i32;
pub const STATUS_NOT_SUPPORTED_WITH_COMPRESSION: NTSTATUS = -1073740598i32;
pub const STATUS_NOT_SUPPORTED_WITH_DEDUPLICATION: NTSTATUS = -1073740596i32;
pub const STATUS_NOT_SUPPORTED_WITH_ENCRYPTION: NTSTATUS = -1073740599i32;
pub const STATUS_NOT_SUPPORTED_WITH_MONITORING: NTSTATUS = -1073740594i32;
pub const STATUS_NOT_SUPPORTED_WITH_REPLICATION: NTSTATUS = -1073740597i32;
pub const STATUS_NOT_SUPPORTED_WITH_SNAPSHOT: NTSTATUS = -1073740593i32;
pub const STATUS_NOT_SUPPORTED_WITH_VIRTUALIZATION: NTSTATUS = -1073740592i32;
pub const STATUS_NOT_TINY_STREAM: NTSTATUS = -1073741274i32;
pub const STATUS_NO_ACE_CONDITION: NTSTATUS = -2147483601i32;
pub const STATUS_NO_APPLICABLE_APP_LICENSES_FOUND: NTSTATUS = -1058406399i32;
pub const STATUS_NO_APPLICATION_PACKAGE: NTSTATUS = -1073741398i32;
pub const STATUS_NO_BROWSER_SERVERS_FOUND: NTSTATUS = -1073741284i32;
pub const STATUS_NO_BYPASSIO_DRIVER_SUPPORT: NTSTATUS = -1073740600i32;
pub const STATUS_NO_CALLBACK_ACTIVE: NTSTATUS = -1073741224i32;
pub const STATUS_NO_DATA_DETECTED: NTSTATUS = -2147483614i32;
pub const STATUS_NO_EAS_ON_FILE: NTSTATUS = -1073741742i32;
pub const STATUS_NO_EFS: NTSTATUS = -1073741170i32;
pub const STATUS_NO_EVENT_PAIR: NTSTATUS = -1073741490i32;
pub const STATUS_NO_GUID_TRANSLATION: NTSTATUS = -1073741556i32;
pub const STATUS_NO_IMPERSONATION_TOKEN: NTSTATUS = -1073741732i32;
pub const STATUS_NO_INHERITANCE: NTSTATUS = -2147483637i32;
pub const STATUS_NO_IP_ADDRESSES: NTSTATUS = -1073741071i32;
pub const STATUS_NO_KERB_KEY: NTSTATUS = -1073741022i32;
pub const STATUS_NO_KEY: NTSTATUS = -1073739508i32;
pub const STATUS_NO_LDT: NTSTATUS = -1073741545i32;
pub const STATUS_NO_LINK_TRACKING_IN_TRANSACTION: NTSTATUS = -1072103335i32;
pub const STATUS_NO_LOGON_SERVERS: NTSTATUS = -1073741730i32;
pub const STATUS_NO_LOG_SPACE: NTSTATUS = -1073741443i32;
pub const STATUS_NO_MATCH: NTSTATUS = -1073741198i32;
pub const STATUS_NO_MEDIA: NTSTATUS = -1073741448i32;
pub const STATUS_NO_MEDIA_IN_DEVICE: NTSTATUS = -1073741805i32;
pub const STATUS_NO_MEMORY: NTSTATUS = -1073741801i32;
pub const STATUS_NO_MORE_EAS: NTSTATUS = -2147483630i32;
pub const STATUS_NO_MORE_ENTRIES: NTSTATUS = -2147483622i32;
pub const STATUS_NO_MORE_FILES: NTSTATUS = -2147483642i32;
pub const STATUS_NO_MORE_MATCHES: NTSTATUS = -1073741197i32;
pub const STATUS_NO_PAGEFILE: NTSTATUS = -1073741497i32;
pub const STATUS_NO_PA_DATA: NTSTATUS = -1073741064i32;
pub const STATUS_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND: NTSTATUS = -1073740635i32;
pub const STATUS_NO_QUOTAS_FOR_ACCOUNT: NTSTATUS = 269i32;
pub const STATUS_NO_RANGES_PROCESSED: NTSTATUS = -1073740704i32;
pub const STATUS_NO_RECOVERY_POLICY: NTSTATUS = -1073741171i32;
pub const STATUS_NO_S4U_PROT_SUPPORT: NTSTATUS = -1073740790i32;
pub const STATUS_NO_SAVEPOINT_WITH_OPEN_FILES: NTSTATUS = -1072103352i32;
pub const STATUS_NO_SECRETS: NTSTATUS = -1073740943i32;
pub const STATUS_NO_SECURITY_CONTEXT: NTSTATUS = -1073740755i32;
pub const STATUS_NO_SECURITY_ON_OBJECT: NTSTATUS = -1073741609i32;
pub const STATUS_NO_SPOOL_SPACE: NTSTATUS = -1073741625i32;
pub const STATUS_NO_SUCH_ALIAS: NTSTATUS = -1073741487i32;
pub const STATUS_NO_SUCH_DEVICE: NTSTATUS = -1073741810i32;
pub const STATUS_NO_SUCH_DOMAIN: NTSTATUS = -1073741601i32;
pub const STATUS_NO_SUCH_FILE: NTSTATUS = -1073741809i32;
pub const STATUS_NO_SUCH_GROUP: NTSTATUS = -1073741722i32;
pub const STATUS_NO_SUCH_MEMBER: NTSTATUS = -1073741446i32;
pub const STATUS_NO_SUCH_PACKAGE: NTSTATUS = -1073741570i32;
pub const STATUS_NO_SUCH_PRIVILEGE: NTSTATUS = -1073741728i32;
pub const STATUS_NO_TGT_REPLY: NTSTATUS = -1073741073i32;
pub const STATUS_NO_TOKEN: NTSTATUS = -1073741700i32;
pub const STATUS_NO_TRACKING_SERVICE: NTSTATUS = -1073741153i32;
pub const STATUS_NO_TRUST_LSA_SECRET: NTSTATUS = -1073741430i32;
pub const STATUS_NO_TRUST_SAM_ACCOUNT: NTSTATUS = -1073741429i32;
pub const STATUS_NO_TXF_METADATA: NTSTATUS = -2145845207i32;
pub const STATUS_NO_UNICODE_TRANSLATION: NTSTATUS = -1073740009i32;
pub const STATUS_NO_USER_KEYS: NTSTATUS = -1073741168i32;
pub const STATUS_NO_USER_SESSION_KEY: NTSTATUS = -1073741310i32;
pub const STATUS_NO_WORK_DONE: NTSTATUS = -2147483598i32;
pub const STATUS_NO_YIELD_PERFORMED: NTSTATUS = 1073741860i32;
pub const STATUS_NTLM_BLOCKED: NTSTATUS = -1073740776i32;
pub const STATUS_NT_CROSS_ENCRYPTION_REQUIRED: NTSTATUS = -1073741475i32;
pub const STATUS_NULL_LM_PASSWORD: NTSTATUS = 1073741837i32;
pub const STATUS_OBJECTID_EXISTS: NTSTATUS = -1073741269i32;
pub const STATUS_OBJECTID_NOT_FOUND: NTSTATUS = -1073741072i32;
pub const STATUS_OBJECT_IS_IMMUTABLE: NTSTATUS = -1073740610i32;
pub const STATUS_OBJECT_NAME_COLLISION: NTSTATUS = -1073741771i32;
pub const STATUS_OBJECT_NAME_EXISTS: NTSTATUS = 1073741824i32;
pub const STATUS_OBJECT_NAME_INVALID: NTSTATUS = -1073741773i32;
pub const STATUS_OBJECT_NAME_NOT_FOUND: NTSTATUS = -1073741772i32;
pub const STATUS_OBJECT_NOT_EXTERNALLY_BACKED: NTSTATUS = -1073740691i32;
pub const STATUS_OBJECT_NO_LONGER_EXISTS: NTSTATUS = -1072103391i32;
pub const STATUS_OBJECT_PATH_INVALID: NTSTATUS = -1073741767i32;
pub const STATUS_OBJECT_PATH_NOT_FOUND: NTSTATUS = -1073741766i32;
pub const STATUS_OBJECT_PATH_SYNTAX_BAD: NTSTATUS = -1073741765i32;
pub const STATUS_OBJECT_TYPE_MISMATCH: NTSTATUS = -1073741788i32;
pub const STATUS_OFFLOAD_READ_FILE_NOT_SUPPORTED: NTSTATUS = -1073700189i32;
pub const STATUS_OFFLOAD_READ_FLT_NOT_SUPPORTED: NTSTATUS = -1073700191i32;
pub const STATUS_OFFLOAD_WRITE_FILE_NOT_SUPPORTED: NTSTATUS = -1073700188i32;
pub const STATUS_OFFLOAD_WRITE_FLT_NOT_SUPPORTED: NTSTATUS = -1073700190i32;
pub const STATUS_ONLY_IF_CONNECTED: NTSTATUS = -1073741108i32;
pub const STATUS_OPEN_FAILED: NTSTATUS = -1073741514i32;
pub const STATUS_OPERATION_IN_PROGRESS: NTSTATUS = -1073740682i32;
pub const STATUS_OPERATION_NOT_SUPPORTED_IN_TRANSACTION: NTSTATUS = -1072103334i32;
pub const STATUS_OPLOCK_BREAK_IN_PROGRESS: NTSTATUS = 264i32;
pub const STATUS_OPLOCK_HANDLE_CLOSED: NTSTATUS = 534i32;
pub const STATUS_OPLOCK_NOT_GRANTED: NTSTATUS = -1073741598i32;
pub const STATUS_OPLOCK_SWITCHED_TO_NEW_HANDLE: NTSTATUS = 533i32;
pub const STATUS_ORDINAL_NOT_FOUND: NTSTATUS = -1073741512i32;
pub const STATUS_ORPHAN_NAME_EXHAUSTED: NTSTATUS = -1073739762i32;
pub const STATUS_PACKAGE_NOT_AVAILABLE: NTSTATUS = -1073740649i32;
pub const STATUS_PACKAGE_UPDATING: NTSTATUS = -1073740695i32;
pub const STATUS_PAGEFILE_CREATE_FAILED: NTSTATUS = -1073741498i32;
pub const STATUS_PAGEFILE_NOT_SUPPORTED: NTSTATUS = -1073740603i32;
pub const STATUS_PAGEFILE_QUOTA: NTSTATUS = -1073741817i32;
pub const STATUS_PAGEFILE_QUOTA_EXCEEDED: NTSTATUS = -1073741524i32;
pub const STATUS_PAGE_FAULT_COPY_ON_WRITE: NTSTATUS = 274i32;
pub const STATUS_PAGE_FAULT_DEMAND_ZERO: NTSTATUS = 273i32;
pub const STATUS_PAGE_FAULT_GUARD_PAGE: NTSTATUS = 275i32;
pub const STATUS_PAGE_FAULT_PAGING_FILE: NTSTATUS = 276i32;
pub const STATUS_PAGE_FAULT_TRANSITION: NTSTATUS = 272i32;
pub const STATUS_PARAMETER_QUOTA_EXCEEDED: NTSTATUS = -1073740784i32;
pub const STATUS_PARITY_ERROR: NTSTATUS = -1073741781i32;
pub const STATUS_PARTIAL_COPY: NTSTATUS = -2147483635i32;
pub const STATUS_PARTITION_FAILURE: NTSTATUS = -1073741454i32;
pub const STATUS_PARTITION_TERMINATING: NTSTATUS = -1073740640i32;
pub const STATUS_PASSWORD_CHANGE_REQUIRED: NTSTATUS = -1073741044i32;
pub const STATUS_PASSWORD_RESTRICTION: NTSTATUS = -1073741716i32;
pub const STATUS_PATCH_CONFLICT: NTSTATUS = -1073740628i32;
pub const STATUS_PATCH_DEFERRED: NTSTATUS = 1073741879i32;
pub const STATUS_PATH_NOT_COVERED: NTSTATUS = -1073741225i32;
pub const STATUS_PCP_ATTESTATION_CHALLENGE_NOT_SET: NTSTATUS = -1071046638i32;
pub const STATUS_PCP_AUTHENTICATION_FAILED: NTSTATUS = -1071046648i32;
pub const STATUS_PCP_AUTHENTICATION_IGNORED: NTSTATUS = -1071046647i32;
pub const STATUS_PCP_BUFFER_LENGTH_MISMATCH: NTSTATUS = -1071046626i32;
pub const STATUS_PCP_BUFFER_TOO_SMALL: NTSTATUS = -1071046650i32;
pub const STATUS_PCP_CLAIM_TYPE_NOT_SUPPORTED: NTSTATUS = -1071046628i32;
pub const STATUS_PCP_DEVICE_NOT_FOUND: NTSTATUS = -1071046643i32;
pub const STATUS_PCP_DEVICE_NOT_READY: NTSTATUS = -1071046655i32;
pub const STATUS_PCP_ERROR_MASK: NTSTATUS = -1071046656i32;
pub const STATUS_PCP_FLAG_NOT_SUPPORTED: NTSTATUS = -1071046652i32;
pub const STATUS_PCP_IFX_RSA_KEY_CREATION_BLOCKED: NTSTATUS = -1071046625i32;
pub const STATUS_PCP_INTERNAL_ERROR: NTSTATUS = -1071046649i32;
pub const STATUS_PCP_INVALID_HANDLE: NTSTATUS = -1071046654i32;
pub const STATUS_PCP_INVALID_PARAMETER: NTSTATUS = -1071046653i32;
pub const STATUS_PCP_KEY_ALREADY_FINALIZED: NTSTATUS = -1071046636i32;
pub const STATUS_PCP_KEY_HANDLE_INVALIDATED: NTSTATUS = -1071046622i32;
pub const STATUS_PCP_KEY_NOT_AIK: NTSTATUS = -1071046631i32;
pub const STATUS_PCP_KEY_NOT_AUTHENTICATED: NTSTATUS = -1071046632i32;
pub const STATUS_PCP_KEY_NOT_FINALIZED: NTSTATUS = -1071046639i32;
pub const STATUS_PCP_KEY_NOT_LOADED: NTSTATUS = -1071046641i32;
pub const STATUS_PCP_KEY_NOT_SIGNING_KEY: NTSTATUS = -1071046630i32;
pub const STATUS_PCP_KEY_USAGE_POLICY_INVALID: NTSTATUS = -1071046634i32;
pub const STATUS_PCP_KEY_USAGE_POLICY_NOT_SUPPORTED: NTSTATUS = -1071046635i32;
pub const STATUS_PCP_LOCKED_OUT: NTSTATUS = -1071046629i32;
pub const STATUS_PCP_NOT_PCR_BOUND: NTSTATUS = -1071046637i32;
pub const STATUS_PCP_NOT_SUPPORTED: NTSTATUS = -1071046651i32;
pub const STATUS_PCP_NO_KEY_CERTIFICATION: NTSTATUS = -1071046640i32;
pub const STATUS_PCP_POLICY_NOT_FOUND: NTSTATUS = -1071046646i32;
pub const STATUS_PCP_PROFILE_NOT_FOUND: NTSTATUS = -1071046645i32;
pub const STATUS_PCP_RAW_POLICY_NOT_SUPPORTED: NTSTATUS = -1071046623i32;
pub const STATUS_PCP_SOFT_KEY_ERROR: NTSTATUS = -1071046633i32;
pub const STATUS_PCP_TICKET_MISSING: NTSTATUS = -1071046624i32;
pub const STATUS_PCP_TPM_VERSION_NOT_SUPPORTED: NTSTATUS = -1071046627i32;
pub const STATUS_PCP_UNSUPPORTED_PSS_SALT: NTSTATUS = 1076437027i32;
pub const STATUS_PCP_VALIDATION_FAILED: NTSTATUS = -1071046644i32;
pub const STATUS_PCP_WRONG_PARENT: NTSTATUS = -1071046642i32;
pub const STATUS_PENDING: NTSTATUS = 259i32;
pub const STATUS_PER_USER_TRUST_QUOTA_EXCEEDED: NTSTATUS = -1073740799i32;
pub const STATUS_PIPE_BROKEN: NTSTATUS = -1073741493i32;
pub const STATUS_PIPE_BUSY: NTSTATUS = -1073741650i32;
pub const STATUS_PIPE_CLOSING: NTSTATUS = -1073741647i32;
pub const STATUS_PIPE_CONNECTED: NTSTATUS = -1073741646i32;
pub const STATUS_PIPE_DISCONNECTED: NTSTATUS = -1073741648i32;
pub const STATUS_PIPE_EMPTY: NTSTATUS = -1073741607i32;
pub const STATUS_PIPE_LISTENING: NTSTATUS = -1073741645i32;
pub const STATUS_PIPE_NOT_AVAILABLE: NTSTATUS = -1073741652i32;
pub const STATUS_PKINIT_CLIENT_FAILURE: NTSTATUS = -1073740916i32;
pub const STATUS_PKINIT_FAILURE: NTSTATUS = -1073741024i32;
pub const STATUS_PKINIT_NAME_MISMATCH: NTSTATUS = -1073741063i32;
pub const STATUS_PKU2U_CERT_FAILURE: NTSTATUS = -1073740753i32;
pub const STATUS_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND: NTSTATUS = -1058340859i32;
pub const STATUS_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED: NTSTATUS = -1058340860i32;
pub const STATUS_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED: NTSTATUS = -1058340861i32;
pub const STATUS_PLATFORM_MANIFEST_INVALID: NTSTATUS = -1058340862i32;
pub const STATUS_PLATFORM_MANIFEST_NOT_ACTIVE: NTSTATUS = -1058340858i32;
pub const STATUS_PLATFORM_MANIFEST_NOT_AUTHORIZED: NTSTATUS = -1058340863i32;
pub const STATUS_PLATFORM_MANIFEST_NOT_SIGNED: NTSTATUS = -1058340857i32;
pub const STATUS_PLUGPLAY_NO_DEVICE: NTSTATUS = -1073741218i32;
pub const STATUS_PLUGPLAY_QUERY_VETOED: NTSTATUS = -2147483608i32;
pub const STATUS_PNP_BAD_MPS_TABLE: NTSTATUS = -1073479627i32;
pub const STATUS_PNP_DEVICE_CONFIGURATION_PENDING: NTSTATUS = -1073740651i32;
pub const STATUS_PNP_DRIVER_CONFIGURATION_INCOMPLETE: NTSTATUS = -1073740653i32;
pub const STATUS_PNP_DRIVER_CONFIGURATION_NOT_FOUND: NTSTATUS = -1073740654i32;
pub const STATUS_PNP_DRIVER_PACKAGE_NOT_FOUND: NTSTATUS = -1073740655i32;
pub const STATUS_PNP_FUNCTION_DRIVER_REQUIRED: NTSTATUS = -1073740652i32;
pub const STATUS_PNP_INVALID_ID: NTSTATUS = -1073479624i32;
pub const STATUS_PNP_IRQ_TRANSLATION_FAILED: NTSTATUS = -1073479625i32;
pub const STATUS_PNP_NO_COMPAT_DRIVERS: NTSTATUS = -1073740656i32;
pub const STATUS_PNP_REBOOT_REQUIRED: NTSTATUS = -1073741102i32;
pub const STATUS_PNP_RESTART_ENUMERATION: NTSTATUS = -1073741106i32;
pub const STATUS_PNP_TRANSLATION_FAILED: NTSTATUS = -1073479626i32;
pub const STATUS_POLICY_OBJECT_NOT_FOUND: NTSTATUS = -1073741158i32;
pub const STATUS_POLICY_ONLY_IN_DS: NTSTATUS = -1073741157i32;
pub const STATUS_PORT_ALREADY_HAS_COMPLETION_LIST: NTSTATUS = -1073740006i32;
pub const STATUS_PORT_ALREADY_SET: NTSTATUS = -1073741752i32;
pub const STATUS_PORT_CLOSED: NTSTATUS = -1073740032i32;
pub const STATUS_PORT_CONNECTION_REFUSED: NTSTATUS = -1073741759i32;
pub const STATUS_PORT_DISCONNECTED: NTSTATUS = -1073741769i32;
pub const STATUS_PORT_DO_NOT_DISTURB: NTSTATUS = -1073741770i32;
pub const STATUS_PORT_MESSAGE_TOO_LONG: NTSTATUS = -1073741777i32;
pub const STATUS_PORT_NOT_SET: NTSTATUS = -1073740973i32;
pub const STATUS_PORT_UNREACHABLE: NTSTATUS = -1073741249i32;
pub const STATUS_POSSIBLE_DEADLOCK: NTSTATUS = -1073741420i32;
pub const STATUS_POWER_STATE_INVALID: NTSTATUS = -1073741101i32;
pub const STATUS_PREDEFINED_HANDLE: NTSTATUS = 1073741846i32;
pub const STATUS_PRENT4_MACHINE_ACCOUNT: NTSTATUS = -1073740969i32;
pub const STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED: NTSTATUS = 270i32;
pub const STATUS_PRINT_CANCELLED: NTSTATUS = -1073741624i32;
pub const STATUS_PRINT_QUEUE_FULL: NTSTATUS = -1073741626i32;
pub const STATUS_PRIVILEGED_INSTRUCTION: NTSTATUS = -1073741674i32;
pub const STATUS_PRIVILEGE_NOT_HELD: NTSTATUS = -1073741727i32;
pub const STATUS_PROACTIVE_SCAN_IN_PROGRESS: NTSTATUS = -1073739761i32;
pub const STATUS_PROCEDURE_NOT_FOUND: NTSTATUS = -1073741702i32;
pub const STATUS_PROCESS_CLONED: NTSTATUS = 297i32;
pub const STATUS_PROCESS_IN_JOB: NTSTATUS = 292i32;
pub const STATUS_PROCESS_IS_PROTECTED: NTSTATUS = -1073740014i32;
pub const STATUS_PROCESS_IS_TERMINATING: NTSTATUS = -1073741558i32;
pub const STATUS_PROCESS_NOT_IN_JOB: NTSTATUS = 291i32;
pub const STATUS_PROFILING_AT_LIMIT: NTSTATUS = -1073741613i32;
pub const STATUS_PROFILING_NOT_STARTED: NTSTATUS = -1073741641i32;
pub const STATUS_PROFILING_NOT_STOPPED: NTSTATUS = -1073741640i32;
pub const STATUS_PROPSET_NOT_FOUND: NTSTATUS = -1073741264i32;
pub const STATUS_PROTOCOL_NOT_SUPPORTED: NTSTATUS = -1073700845i32;
pub const STATUS_PROTOCOL_UNREACHABLE: NTSTATUS = -1073741250i32;
pub const STATUS_PTE_CHANGED: NTSTATUS = -1073740748i32;
pub const STATUS_PURGE_FAILED: NTSTATUS = -1073740747i32;
pub const STATUS_PWD_HISTORY_CONFLICT: NTSTATUS = -1073741220i32;
pub const STATUS_PWD_TOO_LONG: NTSTATUS = -1073741190i32;
pub const STATUS_PWD_TOO_RECENT: NTSTATUS = -1073741221i32;
pub const STATUS_PWD_TOO_SHORT: NTSTATUS = -1073741222i32;
pub const STATUS_QUERY_STORAGE_ERROR: NTSTATUS = -2143682559i32;
pub const STATUS_QUIC_ALPN_NEG_FAILURE: NTSTATUS = -1071382521i32;
pub const STATUS_QUIC_CONNECTION_IDLE: NTSTATUS = -1071382523i32;
pub const STATUS_QUIC_CONNECTION_TIMEOUT: NTSTATUS = -1071382522i32;
pub const STATUS_QUIC_HANDSHAKE_FAILURE: NTSTATUS = -1071382528i32;
pub const STATUS_QUIC_INTERNAL_ERROR: NTSTATUS = -1071382525i32;
pub const STATUS_QUIC_PROTOCOL_VIOLATION: NTSTATUS = -1071382524i32;
pub const STATUS_QUIC_USER_CANCELED: NTSTATUS = -1071382526i32;
pub const STATUS_QUIC_VER_NEG_FAILURE: NTSTATUS = -1071382527i32;
pub const STATUS_QUOTA_ACTIVITY: NTSTATUS = -1073740662i32;
pub const STATUS_QUOTA_EXCEEDED: NTSTATUS = -1073741756i32;
pub const STATUS_QUOTA_LIST_INCONSISTENT: NTSTATUS = -1073741210i32;
pub const STATUS_QUOTA_NOT_ENABLED: NTSTATUS = -1073741399i32;
pub const STATUS_RANGE_LIST_CONFLICT: NTSTATUS = -1073741182i32;
pub const STATUS_RANGE_NOT_FOUND: NTSTATUS = -1073741172i32;
pub const STATUS_RANGE_NOT_LOCKED: NTSTATUS = -1073741698i32;
pub const STATUS_RDBSS_CONTINUE_OPERATION: NTSTATUS = -1069481982i32;
pub const STATUS_RDBSS_POST_OPERATION: NTSTATUS = -1069481981i32;
pub const STATUS_RDBSS_RESTART_OPERATION: NTSTATUS = -1069481983i32;
pub const STATUS_RDBSS_RETRY_LOOKUP: NTSTATUS = -1069481980i32;
pub const STATUS_RDP_PROTOCOL_ERROR: NTSTATUS = -1073086414i32;
pub const STATUS_RECEIVE_EXPEDITED: NTSTATUS = 1073741840i32;
pub const STATUS_RECEIVE_PARTIAL: NTSTATUS = 1073741839i32;
pub const STATUS_RECEIVE_PARTIAL_EXPEDITED: NTSTATUS = 1073741841i32;
pub const STATUS_RECOVERABLE_BUGCHECK: NTSTATUS = -2147483596i32;
pub const STATUS_RECOVERY_FAILURE: NTSTATUS = -1073741273i32;
pub const STATUS_RECOVERY_NOT_NEEDED: NTSTATUS = 1075380276i32;
pub const STATUS_RECURSIVE_DISPATCH: NTSTATUS = -1073740028i32;
pub const STATUS_REDIRECTOR_HAS_OPEN_HANDLES: NTSTATUS = -2147483613i32;
pub const STATUS_REDIRECTOR_NOT_STARTED: NTSTATUS = -1073741573i32;
pub const STATUS_REDIRECTOR_PAUSED: NTSTATUS = -1073741615i32;
pub const STATUS_REDIRECTOR_STARTED: NTSTATUS = -1073741572i32;
pub const STATUS_REGISTRY_CORRUPT: NTSTATUS = -1073741492i32;
pub const STATUS_REGISTRY_HIVE_RECOVERED: NTSTATUS = -2147483606i32;
pub const STATUS_REGISTRY_IO_FAILED: NTSTATUS = -1073741491i32;
pub const STATUS_REGISTRY_QUOTA_LIMIT: NTSTATUS = -1073741226i32;
pub const STATUS_REGISTRY_RECOVERED: NTSTATUS = 1073741833i32;
pub const STATUS_REG_NAT_CONSUMPTION: NTSTATUS = -1073741111i32;
pub const STATUS_REINITIALIZATION_NEEDED: NTSTATUS = -1073741177i32;
pub const STATUS_REMOTE_DISCONNECT: NTSTATUS = -1073741508i32;
pub const STATUS_REMOTE_FILE_VERSION_MISMATCH: NTSTATUS = -1072103412i32;
pub const STATUS_REMOTE_NOT_LISTENING: NTSTATUS = -1073741636i32;
pub const STATUS_REMOTE_RESOURCES: NTSTATUS = -1073741507i32;
pub const STATUS_REMOTE_SESSION_LIMIT: NTSTATUS = -1073741418i32;
pub const STATUS_REMOTE_STORAGE_MEDIA_ERROR: NTSTATUS = -1073741154i32;
pub const STATUS_REMOTE_STORAGE_NOT_ACTIVE: NTSTATUS = -1073741155i32;
pub const STATUS_REPAIR_NEEDED: NTSTATUS = -1073741400i32;
pub const STATUS_REPARSE: NTSTATUS = 260i32;
pub const STATUS_REPARSE_ATTRIBUTE_CONFLICT: NTSTATUS = -1073741134i32;
pub const STATUS_REPARSE_GLOBAL: NTSTATUS = 872i32;
pub const STATUS_REPARSE_OBJECT: NTSTATUS = 280i32;
pub const STATUS_REPARSE_POINT_ENCOUNTERED: NTSTATUS = -1073740533i32;
pub const STATUS_REPARSE_POINT_NOT_RESOLVED: NTSTATUS = -1073741184i32;
pub const STATUS_REPLY_MESSAGE_MISMATCH: NTSTATUS = -1073741281i32;
pub const STATUS_REQUEST_ABORTED: NTSTATUS = -1073741248i32;
pub const STATUS_REQUEST_CANCELED: NTSTATUS = -1073740029i32;
pub const STATUS_REQUEST_NOT_ACCEPTED: NTSTATUS = -1073741616i32;
pub const STATUS_REQUEST_OUT_OF_SEQUENCE: NTSTATUS = -1073740758i32;
pub const STATUS_REQUEST_PAUSED: NTSTATUS = -1073740711i32;
pub const STATUS_RESIDENT_FILE_NOT_SUPPORTED: NTSTATUS = -1073740678i32;
pub const STATUS_RESOURCEMANAGER_NOT_FOUND: NTSTATUS = -1072103345i32;
pub const STATUS_RESOURCEMANAGER_READ_ONLY: NTSTATUS = 514i32;
pub const STATUS_RESOURCE_DATA_NOT_FOUND: NTSTATUS = -1073741687i32;
pub const STATUS_RESOURCE_ENUM_USER_STOP: NTSTATUS = -1073020921i32;
pub const STATUS_RESOURCE_IN_USE: NTSTATUS = -1073740024i32;
pub const STATUS_RESOURCE_LANG_NOT_FOUND: NTSTATUS = -1073741308i32;
pub const STATUS_RESOURCE_NAME_NOT_FOUND: NTSTATUS = -1073741685i32;
pub const STATUS_RESOURCE_NOT_OWNED: NTSTATUS = -1073741212i32;
pub const STATUS_RESOURCE_REQUIREMENTS_CHANGED: NTSTATUS = 281i32;
pub const STATUS_RESOURCE_TYPE_NOT_FOUND: NTSTATUS = -1073741686i32;
pub const STATUS_RESTART_BOOT_APPLICATION: NTSTATUS = -1073740717i32;
pub const STATUS_RESUME_HIBERNATION: NTSTATUS = 1073741867i32;
pub const STATUS_RETRY: NTSTATUS = -1073741267i32;
pub const STATUS_RETURN_ADDRESS_HIJACK_ATTEMPT: NTSTATUS = -2147483597i32;
pub const STATUS_REVISION_MISMATCH: NTSTATUS = -1073741735i32;
pub const STATUS_REVOCATION_OFFLINE_C: NTSTATUS = -1073740917i32;
pub const STATUS_REVOCATION_OFFLINE_KDC: NTSTATUS = -1073740788i32;
pub const STATUS_RING_NEWLY_EMPTY: NTSTATUS = 531i32;
pub const STATUS_RING_PREVIOUSLY_ABOVE_QUOTA: NTSTATUS = 530i32;
pub const STATUS_RING_PREVIOUSLY_EMPTY: NTSTATUS = 528i32;
pub const STATUS_RING_PREVIOUSLY_FULL: NTSTATUS = 529i32;
pub const STATUS_RING_SIGNAL_OPPOSITE_ENDPOINT: NTSTATUS = 532i32;
pub const STATUS_RKF_ACTIVE_KEY: NTSTATUS = -1069547514i32;
pub const STATUS_RKF_BLOB_FULL: NTSTATUS = -1069547517i32;
pub const STATUS_RKF_DUPLICATE_KEY: NTSTATUS = -1069547518i32;
pub const STATUS_RKF_FILE_BLOCKED: NTSTATUS = -1069547515i32;
pub const STATUS_RKF_KEY_NOT_FOUND: NTSTATUS = -1069547519i32;
pub const STATUS_RKF_STORE_FULL: NTSTATUS = -1069547516i32;
pub const STATUS_RM_ALREADY_STARTED: NTSTATUS = 1075380277i32;
pub const STATUS_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT: NTSTATUS = -1072103331i32;
pub const STATUS_RM_DISCONNECTED: NTSTATUS = -1072103374i32;
pub const STATUS_RM_METADATA_CORRUPT: NTSTATUS = -1072103418i32;
pub const STATUS_RM_NOT_ACTIVE: NTSTATUS = -1072103419i32;
pub const STATUS_ROLLBACK_TIMER_EXPIRED: NTSTATUS = -1072103364i32;
pub const STATUS_RTPM_CONTEXT_COMPLETE: NTSTATUS = 2699265i32;
pub const STATUS_RTPM_CONTEXT_CONTINUE: NTSTATUS = 2699264i32;
pub const STATUS_RTPM_INVALID_CONTEXT: NTSTATUS = -1071042556i32;
pub const STATUS_RTPM_NO_RESULT: NTSTATUS = -1071042558i32;
pub const STATUS_RTPM_PCR_READ_INCOMPLETE: NTSTATUS = -1071042557i32;
pub const STATUS_RTPM_UNSUPPORTED_CMD: NTSTATUS = -1071042555i32;
pub const STATUS_RUNLEVEL_SWITCH_AGENT_TIMEOUT: NTSTATUS = -1073700539i32;
pub const STATUS_RUNLEVEL_SWITCH_IN_PROGRESS: NTSTATUS = -1073700538i32;
pub const STATUS_RUNLEVEL_SWITCH_TIMEOUT: NTSTATUS = -1073700541i32;
pub const STATUS_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED: NTSTATUS = -1073740633i32;
pub const STATUS_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET: NTSTATUS = -1073740632i32;
pub const STATUS_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE: NTSTATUS = -1073740631i32;
pub const STATUS_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER: NTSTATUS = -1073740630i32;
pub const STATUS_RXACT_COMMITTED: NTSTATUS = 266i32;
pub const STATUS_RXACT_COMMIT_FAILURE: NTSTATUS = -1073741539i32;
pub const STATUS_RXACT_COMMIT_NECESSARY: NTSTATUS = -2147483624i32;
pub const STATUS_RXACT_INVALID_STATE: NTSTATUS = -1073741540i32;
pub const STATUS_RXACT_STATE_CREATED: NTSTATUS = 1073741828i32;
pub const STATUS_SAM_INIT_FAILURE: NTSTATUS = -1073741085i32;
pub const STATUS_SAM_NEED_BOOTKEY_FLOPPY: NTSTATUS = -1073741088i32;
pub const STATUS_SAM_NEED_BOOTKEY_PASSWORD: NTSTATUS = -1073741089i32;
pub const STATUS_SCRUB_DATA_DISABLED: NTSTATUS = -1073740680i32;
pub const STATUS_SECCORE_INVALID_COMMAND: NTSTATUS = -1058537472i32;
pub const STATUS_SECONDARY_IC_PROVIDER_NOT_REGISTERED: NTSTATUS = -1073700575i32;
pub const STATUS_SECRET_TOO_LONG: NTSTATUS = -1073741481i32;
pub const STATUS_SECTION_DIRECT_MAP_ONLY: NTSTATUS = -1073739503i32;
pub const STATUS_SECTION_NOT_EXTENDED: NTSTATUS = -1073741689i32;
pub const STATUS_SECTION_NOT_IMAGE: NTSTATUS = -1073741751i32;
pub const STATUS_SECTION_PROTECTION: NTSTATUS = -1073741746i32;
pub const STATUS_SECTION_TOO_BIG: NTSTATUS = -1073741760i32;
pub const STATUS_SECUREBOOT_FILE_REPLACED: NTSTATUS = -1069350905i32;
pub const STATUS_SECUREBOOT_INVALID_POLICY: NTSTATUS = -1069350909i32;
pub const STATUS_SECUREBOOT_NOT_BASE_POLICY: NTSTATUS = -1069350897i32;
pub const STATUS_SECUREBOOT_NOT_ENABLED: NTSTATUS = -2143092730i32;
pub const STATUS_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY: NTSTATUS = -1069350896i32;
pub const STATUS_SECUREBOOT_PLATFORM_ID_MISMATCH: NTSTATUS = -1069350901i32;
pub const STATUS_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION: NTSTATUS = -1069350902i32;
pub const STATUS_SECUREBOOT_POLICY_NOT_AUTHORIZED: NTSTATUS = -1069350904i32;
pub const STATUS_SECUREBOOT_POLICY_NOT_SIGNED: NTSTATUS = -1069350907i32;
pub const STATUS_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND: NTSTATUS = -1069350908i32;
pub const STATUS_SECUREBOOT_POLICY_ROLLBACK_DETECTED: NTSTATUS = -1069350900i32;
pub const STATUS_SECUREBOOT_POLICY_UNKNOWN: NTSTATUS = -1069350903i32;
pub const STATUS_SECUREBOOT_POLICY_UPGRADE_MISMATCH: NTSTATUS = -1069350899i32;
pub const STATUS_SECUREBOOT_POLICY_VIOLATION: NTSTATUS = -1069350910i32;
pub const STATUS_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING: NTSTATUS = -1069350898i32;
pub const STATUS_SECUREBOOT_ROLLBACK_DETECTED: NTSTATUS = -1069350911i32;
pub const STATUS_SECURITY_STREAM_IS_INCONSISTENT: NTSTATUS = -1073741408i32;
pub const STATUS_SEGMENT_NOTIFICATION: NTSTATUS = 1073741829i32;
pub const STATUS_SEMAPHORE_LIMIT_EXCEEDED: NTSTATUS = -1073741753i32;
pub const STATUS_SERIAL_COUNTER_TIMEOUT: NTSTATUS = 1073741836i32;
pub const STATUS_SERIAL_MORE_WRITES: NTSTATUS = 1073741832i32;
pub const STATUS_SERIAL_NO_DEVICE_INITED: NTSTATUS = -1073741488i32;
pub const STATUS_SERVER_DISABLED: NTSTATUS = -1073741696i32;
pub const STATUS_SERVER_HAS_OPEN_HANDLES: NTSTATUS = -2147483612i32;
pub const STATUS_SERVER_NOT_DISABLED: NTSTATUS = -1073741695i32;
pub const STATUS_SERVER_SHUTDOWN_IN_PROGRESS: NTSTATUS = -1073741057i32;
pub const STATUS_SERVER_SID_MISMATCH: NTSTATUS = -1073741152i32;
pub const STATUS_SERVER_TRANSPORT_CONFLICT: NTSTATUS = -1073741388i32;
pub const STATUS_SERVER_UNAVAILABLE: NTSTATUS = -1073740698i32;
pub const STATUS_SERVICES_FAILED_AUTOSTART: NTSTATUS = 1073783108i32;
pub const STATUS_SERVICE_NOTIFICATION: NTSTATUS = 1073741848i32;
pub const STATUS_SESSION_KEY_TOO_SHORT: NTSTATUS = -1073740521i32;
pub const STATUS_SETMARK_DETECTED: NTSTATUS = -2147483615i32;
pub const STATUS_SET_CONTEXT_DENIED: NTSTATUS = -1073740278i32;
pub const STATUS_SEVERITY_COERROR: u32 = 2u32;
pub const STATUS_SEVERITY_COFAIL: u32 = 3u32;
pub const STATUS_SHARED_IRQ_BUSY: NTSTATUS = -1073741460i32;
pub const STATUS_SHARED_POLICY: NTSTATUS = -1073741159i32;
pub const STATUS_SHARE_UNAVAILABLE: NTSTATUS = -1073740672i32;
pub const STATUS_SHARING_PAUSED: NTSTATUS = -1073741617i32;
pub const STATUS_SHARING_VIOLATION: NTSTATUS = -1073741757i32;
pub const STATUS_SHORT_NAMES_NOT_ENABLED_ON_VOLUME: NTSTATUS = -1073741409i32;
pub const STATUS_SHUTDOWN_IN_PROGRESS: NTSTATUS = -1073741058i32;
pub const STATUS_SINGLE_STEP: NTSTATUS = -2147483644i32;
pub const STATUS_SMARTCARD_CARD_BLOCKED: NTSTATUS = -1073740927i32;
pub const STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED: NTSTATUS = -1073740926i32;
pub const STATUS_SMARTCARD_CERT_EXPIRED: NTSTATUS = -1073740915i32;
pub const STATUS_SMARTCARD_CERT_REVOKED: NTSTATUS = -1073740919i32;
pub const STATUS_SMARTCARD_IO_ERROR: NTSTATUS = -1073740921i32;
pub const STATUS_SMARTCARD_LOGON_REQUIRED: NTSTATUS = -1073741062i32;
pub const STATUS_SMARTCARD_NO_CARD: NTSTATUS = -1073740925i32;
pub const STATUS_SMARTCARD_NO_CERTIFICATE: NTSTATUS = -1073740923i32;
pub const STATUS_SMARTCARD_NO_KEYSET: NTSTATUS = -1073740922i32;
pub const STATUS_SMARTCARD_NO_KEY_CONTAINER: NTSTATUS = -1073740924i32;
pub const STATUS_SMARTCARD_SILENT_CONTEXT: NTSTATUS = -1073740913i32;
pub const STATUS_SMARTCARD_SUBSYSTEM_FAILURE: NTSTATUS = -1073741023i32;
pub const STATUS_SMARTCARD_WRONG_PIN: NTSTATUS = -1073740928i32;
pub const STATUS_SMB1_NOT_AVAILABLE: NTSTATUS = -1073740525i32;
pub const STATUS_SMB_BAD_CLUSTER_DIALECT: NTSTATUS = -1067646975i32;
pub const STATUS_SMB_GUEST_LOGON_BLOCKED: NTSTATUS = -1067646974i32;
pub const STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP: NTSTATUS = -1067646976i32;
pub const STATUS_SMB_NO_SIGNING_ALGORITHM_OVERLAP: NTSTATUS = -1067646973i32;
pub const STATUS_SMI_PRIMITIVE_INSTALLER_FAILED: NTSTATUS = -1072365531i32;
pub const STATUS_SMR_GARBAGE_COLLECTION_REQUIRED: NTSTATUS = -1073740524i32;
pub const STATUS_SOME_NOT_MAPPED: NTSTATUS = 263i32;
pub const STATUS_SOURCE_ELEMENT_EMPTY: NTSTATUS = -1073741181i32;
pub const STATUS_SPACES_ALLOCATION_SIZE_INVALID: NTSTATUS = -1058602994i32;
pub const STATUS_SPACES_CACHE_FULL: NTSTATUS = -1058602970i32;
pub const STATUS_SPACES_COMPLETE: NTSTATUS = 15138818i32;
pub const STATUS_SPACES_CORRUPT_METADATA: NTSTATUS = -1058602986i32;
pub const STATUS_SPACES_DRIVE_LOST_DATA: NTSTATUS = -1058602979i32;
pub const STATUS_SPACES_DRIVE_NOT_READY: NTSTATUS = -1058602981i32;
pub const STATUS_SPACES_DRIVE_OPERATIONAL_STATE_INVALID: NTSTATUS = -1058602990i32;
pub const STATUS_SPACES_DRIVE_REDUNDANCY_INVALID: NTSTATUS = -1058603002i32;
pub const STATUS_SPACES_DRIVE_SECTOR_SIZE_INVALID: NTSTATUS = -1058603004i32;
pub const STATUS_SPACES_DRIVE_SPLIT: NTSTATUS = -1058602980i32;
pub const STATUS_SPACES_DRT_FULL: NTSTATUS = -1058602985i32;
pub const STATUS_SPACES_ENCLOSURE_AWARE_INVALID: NTSTATUS = -1058602993i32;
pub const STATUS_SPACES_ENTRY_INCOMPLETE: NTSTATUS = -1058602978i32;
pub const STATUS_SPACES_ENTRY_INVALID: NTSTATUS = -1058602977i32;
pub const STATUS_SPACES_EXTENDED_ERROR: NTSTATUS = -1058602996i32;
pub const STATUS_SPACES_FAULT_DOMAIN_TYPE_INVALID: NTSTATUS = -1058603007i32;
pub const STATUS_SPACES_FLUSH_METADATA: NTSTATUS = -1058602971i32;
pub const STATUS_SPACES_INCONSISTENCY: NTSTATUS = -1058602984i32;
pub const STATUS_SPACES_INTERLEAVE_LENGTH_INVALID: NTSTATUS = -1058602999i32;
pub const STATUS_SPACES_LOG_NOT_READY: NTSTATUS = -1058602983i32;
pub const STATUS_SPACES_MAP_REQUIRED: NTSTATUS = -1058602988i32;
pub const STATUS_SPACES_MARK_DIRTY: NTSTATUS = -1058602976i32;
pub const STATUS_SPACES_NOT_ENOUGH_DRIVES: NTSTATUS = -1058602997i32;
pub const STATUS_SPACES_NO_REDUNDANCY: NTSTATUS = -1058602982i32;
pub const STATUS_SPACES_NUMBER_OF_COLUMNS_INVALID: NTSTATUS = -1058602998i32;
pub const STATUS_SPACES_NUMBER_OF_DATA_COPIES_INVALID: NTSTATUS = -1058603001i32;
pub const STATUS_SPACES_NUMBER_OF_GROUPS_INVALID: NTSTATUS = -1058602991i32;
pub const STATUS_SPACES_PAUSE: NTSTATUS = 15138817i32;
pub const STATUS_SPACES_PD_INVALID_DATA: NTSTATUS = -1058602972i32;
pub const STATUS_SPACES_PD_LENGTH_MISMATCH: NTSTATUS = -1058602974i32;
pub const STATUS_SPACES_PD_NOT_FOUND: NTSTATUS = -1058602975i32;
pub const STATUS_SPACES_PD_UNSUPPORTED_VERSION: NTSTATUS = -1058602973i32;
pub const STATUS_SPACES_PROVISIONING_TYPE_INVALID: NTSTATUS = -1058602995i32;
pub const STATUS_SPACES_REDIRECT: NTSTATUS = 15138819i32;
pub const STATUS_SPACES_REPAIRED: NTSTATUS = 15138816i32;
pub const STATUS_SPACES_RESILIENCY_TYPE_INVALID: NTSTATUS = -1058603005i32;
pub const STATUS_SPACES_UNSUPPORTED_VERSION: NTSTATUS = -1058602987i32;
pub const STATUS_SPACES_UPDATE_COLUMN_STATE: NTSTATUS = -1058602989i32;
pub const STATUS_SPACES_WRITE_CACHE_SIZE_INVALID: NTSTATUS = -1058602992i32;
pub const STATUS_SPARSE_FILE_NOT_SUPPORTED: NTSTATUS = -1073740604i32;
pub const STATUS_SPARSE_NOT_ALLOWED_IN_TRANSACTION: NTSTATUS = -1072103351i32;
pub const STATUS_SPECIAL_ACCOUNT: NTSTATUS = -1073741532i32;
pub const STATUS_SPECIAL_GROUP: NTSTATUS = -1073741531i32;
pub const STATUS_SPECIAL_USER: NTSTATUS = -1073741530i32;
pub const STATUS_STACK_BUFFER_OVERRUN: NTSTATUS = -1073740791i32;
pub const STATUS_STACK_OVERFLOW: NTSTATUS = -1073741571i32;
pub const STATUS_STACK_OVERFLOW_READ: NTSTATUS = -1073741272i32;
pub const STATUS_STOPPED_ON_SYMLINK: NTSTATUS = -2147483603i32;
pub const STATUS_STORAGE_LOST_DATA_PERSISTENCE: NTSTATUS = -1073740642i32;
pub const STATUS_STORAGE_RESERVE_ALREADY_EXISTS: NTSTATUS = -1073740625i32;
pub const STATUS_STORAGE_RESERVE_DOES_NOT_EXIST: NTSTATUS = -1073740626i32;
pub const STATUS_STORAGE_RESERVE_ID_INVALID: NTSTATUS = -1073740627i32;
pub const STATUS_STORAGE_RESERVE_NOT_EMPTY: NTSTATUS = -1073740624i32;
pub const STATUS_STORAGE_STACK_ACCESS_DENIED: NTSTATUS = -1073740607i32;
pub const STATUS_STORAGE_TOPOLOGY_ID_MISMATCH: NTSTATUS = -1073740666i32;
pub const STATUS_STOWED_EXCEPTION: NTSTATUS = -1073741189i32;
pub const STATUS_STREAM_MINIVERSION_NOT_FOUND: NTSTATUS = -1072103390i32;
pub const STATUS_STREAM_MINIVERSION_NOT_VALID: NTSTATUS = -1072103389i32;
pub const STATUS_STRICT_CFG_VIOLATION: NTSTATUS = -1073740282i32;
pub const STATUS_STRONG_CRYPTO_NOT_SUPPORTED: NTSTATUS = -1073741066i32;
pub const STATUS_SUCCESS: NTSTATUS = 0i32;
pub const STATUS_SUSPEND_COUNT_EXCEEDED: NTSTATUS = -1073741750i32;
pub const STATUS_SVHDX_ERROR_NOT_AVAILABLE: NTSTATUS = -1067647232i32;
pub const STATUS_SVHDX_ERROR_STORED: NTSTATUS = -1067712512i32;
pub const STATUS_SVHDX_NO_INITIATOR: NTSTATUS = -1067647221i32;
pub const STATUS_SVHDX_RESERVATION_CONFLICT: NTSTATUS = -1067647225i32;
pub const STATUS_SVHDX_UNIT_ATTENTION_AVAILABLE: NTSTATUS = -1067647231i32;
pub const STATUS_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED: NTSTATUS = -1067647230i32;
pub const STATUS_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED: NTSTATUS = -1067647226i32;
pub const STATUS_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED: NTSTATUS = -1067647227i32;
pub const STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED: NTSTATUS = -1067647229i32;
pub const STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED: NTSTATUS = -1067647228i32;
pub const STATUS_SVHDX_VERSION_MISMATCH: NTSTATUS = -1067647223i32;
pub const STATUS_SVHDX_WRONG_FILE_TYPE: NTSTATUS = -1067647224i32;
pub const STATUS_SXS_ACTIVATION_CONTEXT_DISABLED: NTSTATUS = -1072365561i32;
pub const STATUS_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT: NTSTATUS = -1072365538i32;
pub const STATUS_SXS_ASSEMBLY_MISSING: NTSTATUS = -1072365556i32;
pub const STATUS_SXS_ASSEMBLY_NOT_FOUND: NTSTATUS = -1072365564i32;
pub const STATUS_SXS_CANT_GEN_ACTCTX: NTSTATUS = -1072365566i32;
pub const STATUS_SXS_COMPONENT_STORE_CORRUPT: NTSTATUS = -1072365542i32;
pub const STATUS_SXS_CORRUPTION: NTSTATUS = -1072365547i32;
pub const STATUS_SXS_CORRUPT_ACTIVATION_STACK: NTSTATUS = -1072365548i32;
pub const STATUS_SXS_EARLY_DEACTIVATION: NTSTATUS = -1072365553i32;
pub const STATUS_SXS_FILE_HASH_MISMATCH: NTSTATUS = -1072365541i32;
pub const STATUS_SXS_FILE_HASH_MISSING: NTSTATUS = -1072365529i32;
pub const STATUS_SXS_FILE_NOT_PART_OF_ASSEMBLY: NTSTATUS = -1072365537i32;
pub const STATUS_SXS_IDENTITIES_DIFFERENT: NTSTATUS = -1072365539i32;
pub const STATUS_SXS_IDENTITY_DUPLICATE_ATTRIBUTE: NTSTATUS = -1072365544i32;
pub const STATUS_SXS_IDENTITY_PARSE_ERROR: NTSTATUS = -1072365543i32;
pub const STATUS_SXS_INVALID_ACTCTXDATA_FORMAT: NTSTATUS = -1072365565i32;
pub const STATUS_SXS_INVALID_DEACTIVATION: NTSTATUS = -1072365552i32;
pub const STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME: NTSTATUS = -1072365545i32;
pub const STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE: NTSTATUS = -1072365546i32;
pub const STATUS_SXS_KEY_NOT_FOUND: NTSTATUS = -1072365560i32;
pub const STATUS_SXS_MANIFEST_FORMAT_ERROR: NTSTATUS = -1072365563i32;
pub const STATUS_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT: NTSTATUS = -1072365540i32;
pub const STATUS_SXS_MANIFEST_PARSE_ERROR: NTSTATUS = -1072365562i32;
pub const STATUS_SXS_MANIFEST_TOO_BIG: NTSTATUS = -1072365534i32;
pub const STATUS_SXS_MULTIPLE_DEACTIVATION: NTSTATUS = -1072365551i32;
pub const STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET: NTSTATUS = -1072365554i32;
pub const STATUS_SXS_PROCESS_TERMINATION_REQUESTED: NTSTATUS = -1072365549i32;
pub const STATUS_SXS_RELEASE_ACTIVATION_CONTEXT: NTSTATUS = 1075118093i32;
pub const STATUS_SXS_SECTION_NOT_FOUND: NTSTATUS = -1072365567i32;
pub const STATUS_SXS_SETTING_NOT_REGISTERED: NTSTATUS = -1072365533i32;
pub const STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY: NTSTATUS = -1072365550i32;
pub const STATUS_SXS_THREAD_QUERIES_DISABLED: NTSTATUS = -1072365557i32;
pub const STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE: NTSTATUS = -1072365532i32;
pub const STATUS_SXS_VERSION_CONFLICT: NTSTATUS = -1072365559i32;
pub const STATUS_SXS_WRONG_SECTION_TYPE: NTSTATUS = -1072365558i32;
pub const STATUS_SYMLINK_CLASS_DISABLED: NTSTATUS = -1073740011i32;
pub const STATUS_SYNCHRONIZATION_REQUIRED: NTSTATUS = -1073741516i32;
pub const STATUS_SYSTEM_DEVICE_NOT_FOUND: NTSTATUS = -1073740718i32;
pub const STATUS_SYSTEM_HIVE_TOO_LARGE: NTSTATUS = -1073740946i32;
pub const STATUS_SYSTEM_IMAGE_BAD_SIGNATURE: NTSTATUS = -1073741103i32;
pub const STATUS_SYSTEM_INTEGRITY_INVALID_POLICY: NTSTATUS = -1058471933i32;
pub const STATUS_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED: NTSTATUS = -1058471932i32;
pub const STATUS_SYSTEM_INTEGRITY_POLICY_VIOLATION: NTSTATUS = -1058471934i32;
pub const STATUS_SYSTEM_INTEGRITY_REPUTATION_DANGEROUS_EXT: NTSTATUS = -1058471927i32;
pub const STATUS_SYSTEM_INTEGRITY_REPUTATION_MALICIOUS: NTSTATUS = -1058471929i32;
pub const STATUS_SYSTEM_INTEGRITY_REPUTATION_OFFLINE: NTSTATUS = -1058471926i32;
pub const STATUS_SYSTEM_INTEGRITY_REPUTATION_PUA: NTSTATUS = -1058471928i32;
pub const STATUS_SYSTEM_INTEGRITY_ROLLBACK_DETECTED: NTSTATUS = -1058471935i32;
pub const STATUS_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED: NTSTATUS = -1058471930i32;
pub const STATUS_SYSTEM_INTEGRITY_TOO_MANY_POLICIES: NTSTATUS = -1058471931i32;
pub const STATUS_SYSTEM_NEEDS_REMEDIATION: NTSTATUS = -1073740674i32;
pub const STATUS_SYSTEM_POWERSTATE_COMPLEX_TRANSITION: NTSTATUS = 1073741873i32;
pub const STATUS_SYSTEM_POWERSTATE_TRANSITION: NTSTATUS = 1073741871i32;
pub const STATUS_SYSTEM_PROCESS_TERMINATED: NTSTATUS = -1073741286i32;
pub const STATUS_SYSTEM_SHUTDOWN: NTSTATUS = -1073741077i32;
pub const STATUS_THREADPOOL_FREE_LIBRARY_ON_COMPLETION_FAILED: NTSTATUS = -1073740018i32;
pub const STATUS_THREADPOOL_HANDLE_EXCEPTION: NTSTATUS = -1073740022i32;
pub const STATUS_THREADPOOL_RELEASED_DURING_OPERATION: NTSTATUS = -1073740017i32;
pub const STATUS_THREADPOOL_RELEASE_MUTEX_ON_COMPLETION_FAILED: NTSTATUS = -1073740019i32;
pub const STATUS_THREADPOOL_RELEASE_SEMAPHORE_ON_COMPLETION_FAILED: NTSTATUS = -1073740020i32;
pub const STATUS_THREADPOOL_SET_EVENT_ON_COMPLETION_FAILED: NTSTATUS = -1073740021i32;
pub const STATUS_THREAD_ALREADY_IN_SESSION: NTSTATUS = -1073740714i32;
pub const STATUS_THREAD_ALREADY_IN_TASK: NTSTATUS = -1073740542i32;
pub const STATUS_THREAD_IS_TERMINATING: NTSTATUS = -1073741749i32;
pub const STATUS_THREAD_NOT_IN_PROCESS: NTSTATUS = -1073741526i32;
pub const STATUS_THREAD_NOT_IN_SESSION: NTSTATUS = -1073740713i32;
pub const STATUS_THREAD_NOT_RUNNING: NTSTATUS = -1073740522i32;
pub const STATUS_THREAD_WAS_SUSPENDED: NTSTATUS = 1073741825i32;
pub const STATUS_TIMEOUT: NTSTATUS = 258i32;
pub const STATUS_TIMER_NOT_CANCELED: NTSTATUS = -1073741812i32;
pub const STATUS_TIMER_RESOLUTION_NOT_SET: NTSTATUS = -1073741243i32;
pub const STATUS_TIMER_RESUME_IGNORED: NTSTATUS = 1073741861i32;
pub const STATUS_TIME_DIFFERENCE_AT_DC: NTSTATUS = -1073741517i32;
pub const STATUS_TM_IDENTITY_MISMATCH: NTSTATUS = -1072103350i32;
pub const STATUS_TM_INITIALIZATION_FAILED: NTSTATUS = -1072103420i32;
pub const STATUS_TM_VOLATILE: NTSTATUS = -1072103365i32;
pub const STATUS_TOKEN_ALREADY_IN_USE: NTSTATUS = -1073741525i32;
pub const STATUS_TOO_LATE: NTSTATUS = -1073741431i32;
pub const STATUS_TOO_MANY_ADDRESSES: NTSTATUS = -1073741303i32;
pub const STATUS_TOO_MANY_COMMANDS: NTSTATUS = -1073741631i32;
pub const STATUS_TOO_MANY_CONTEXT_IDS: NTSTATUS = -1073741478i32;
pub const STATUS_TOO_MANY_GUIDS_REQUESTED: NTSTATUS = -1073741694i32;
pub const STATUS_TOO_MANY_LINKS: NTSTATUS = -1073741211i32;
pub const STATUS_TOO_MANY_LUIDS_REQUESTED: NTSTATUS = -1073741708i32;
pub const STATUS_TOO_MANY_NAMES: NTSTATUS = -1073741619i32;
pub const STATUS_TOO_MANY_NODES: NTSTATUS = -1073741298i32;
pub const STATUS_TOO_MANY_OPENED_FILES: NTSTATUS = -1073741537i32;
pub const STATUS_TOO_MANY_PAGING_FILES: NTSTATUS = -1073741673i32;
pub const STATUS_TOO_MANY_PRINCIPALS: NTSTATUS = -1073741065i32;
pub const STATUS_TOO_MANY_SECRETS: NTSTATUS = -1073741482i32;
pub const STATUS_TOO_MANY_SEGMENT_DESCRIPTORS: NTSTATUS = -1073740685i32;
pub const STATUS_TOO_MANY_SESSIONS: NTSTATUS = -1073741618i32;
pub const STATUS_TOO_MANY_SIDS: NTSTATUS = -1073741442i32;
pub const STATUS_TOO_MANY_THREADS: NTSTATUS = -1073741527i32;
pub const STATUS_TPM_20_E_ASYMMETRIC: NTSTATUS = -1071054719i32;
pub const STATUS_TPM_20_E_ATTRIBUTES: NTSTATUS = -1071054718i32;
pub const STATUS_TPM_20_E_AUTHSIZE: NTSTATUS = -1071054524i32;
pub const STATUS_TPM_20_E_AUTH_CONTEXT: NTSTATUS = -1071054523i32;
pub const STATUS_TPM_20_E_AUTH_FAIL: NTSTATUS = -1071054706i32;
pub const STATUS_TPM_20_E_AUTH_MISSING: NTSTATUS = -1071054555i32;
pub const STATUS_TPM_20_E_AUTH_TYPE: NTSTATUS = -1071054556i32;
pub const STATUS_TPM_20_E_AUTH_UNAVAILABLE: NTSTATUS = -1071054545i32;
pub const STATUS_TPM_20_E_BAD_AUTH: NTSTATUS = -1071054686i32;
pub const STATUS_TPM_20_E_BAD_CONTEXT: NTSTATUS = -1071054512i32;
pub const STATUS_TPM_20_E_BINDING: NTSTATUS = -1071054683i32;
pub const STATUS_TPM_20_E_COMMAND_CODE: NTSTATUS = -1071054525i32;
pub const STATUS_TPM_20_E_COMMAND_SIZE: NTSTATUS = -1071054526i32;
pub const STATUS_TPM_20_E_CPHASH: NTSTATUS = -1071054511i32;
pub const STATUS_TPM_20_E_CURVE: NTSTATUS = -1071054682i32;
pub const STATUS_TPM_20_E_DISABLED: NTSTATUS = -1071054560i32;
pub const STATUS_TPM_20_E_ECC_CURVE: NTSTATUS = -1071054557i32;
pub const STATUS_TPM_20_E_ECC_POINT: NTSTATUS = -1071054681i32;
pub const STATUS_TPM_20_E_EXCLUSIVE: NTSTATUS = -1071054559i32;
pub const STATUS_TPM_20_E_EXPIRED: NTSTATUS = -1071054685i32;
pub const STATUS_TPM_20_E_FAILURE: NTSTATUS = -1071054591i32;
pub const STATUS_TPM_20_E_HANDLE: NTSTATUS = -1071054709i32;
pub const STATUS_TPM_20_E_HASH: NTSTATUS = -1071054717i32;
pub const STATUS_TPM_20_E_HIERARCHY: NTSTATUS = -1071054715i32;
pub const STATUS_TPM_20_E_HMAC: NTSTATUS = -1071054567i32;
pub const STATUS_TPM_20_E_INITIALIZE: NTSTATUS = -1071054592i32;
pub const STATUS_TPM_20_E_INSUFFICIENT: NTSTATUS = -1071054694i32;
pub const STATUS_TPM_20_E_INTEGRITY: NTSTATUS = -1071054689i32;
pub const STATUS_TPM_20_E_KDF: NTSTATUS = -1071054708i32;
pub const STATUS_TPM_20_E_KEY: NTSTATUS = -1071054692i32;
pub const STATUS_TPM_20_E_KEY_SIZE: NTSTATUS = -1071054713i32;
pub const STATUS_TPM_20_E_MGF: NTSTATUS = -1071054712i32;
pub const STATUS_TPM_20_E_MODE: NTSTATUS = -1071054711i32;
pub const STATUS_TPM_20_E_NEEDS_TEST: NTSTATUS = -1071054509i32;
pub const STATUS_TPM_20_E_NONCE: NTSTATUS = -1071054705i32;
pub const STATUS_TPM_20_E_NO_RESULT: NTSTATUS = -1071054508i32;
pub const STATUS_TPM_20_E_NV_AUTHORIZATION: NTSTATUS = -1071054519i32;
pub const STATUS_TPM_20_E_NV_DEFINED: NTSTATUS = -1071054516i32;
pub const STATUS_TPM_20_E_NV_LOCKED: NTSTATUS = -1071054520i32;
pub const STATUS_TPM_20_E_NV_RANGE: NTSTATUS = -1071054522i32;
pub const STATUS_TPM_20_E_NV_SIZE: NTSTATUS = -1071054521i32;
pub const STATUS_TPM_20_E_NV_SPACE: NTSTATUS = -1071054517i32;
pub const STATUS_TPM_20_E_NV_UNINITIALIZED: NTSTATUS = -1071054518i32;
pub const STATUS_TPM_20_E_PARENT: NTSTATUS = -1071054510i32;
pub const STATUS_TPM_20_E_PCR: NTSTATUS = -1071054553i32;
pub const STATUS_TPM_20_E_PCR_CHANGED: NTSTATUS = -1071054552i32;
pub const STATUS_TPM_20_E_POLICY: NTSTATUS = -1071054554i32;
pub const STATUS_TPM_20_E_POLICY_CC: NTSTATUS = -1071054684i32;
pub const STATUS_TPM_20_E_POLICY_FAIL: NTSTATUS = -1071054691i32;
pub const STATUS_TPM_20_E_PP: NTSTATUS = -1071054704i32;
pub const STATUS_TPM_20_E_PRIVATE: NTSTATUS = -1071054581i32;
pub const STATUS_TPM_20_E_RANGE: NTSTATUS = -1071054707i32;
pub const STATUS_TPM_20_E_REBOOT: NTSTATUS = -1071054544i32;
pub const STATUS_TPM_20_E_RESERVED_BITS: NTSTATUS = -1071054687i32;
pub const STATUS_TPM_20_E_SCHEME: NTSTATUS = -1071054702i32;
pub const STATUS_TPM_20_E_SELECTOR: NTSTATUS = -1071054696i32;
pub const STATUS_TPM_20_E_SENSITIVE: NTSTATUS = -1071054507i32;
pub const STATUS_TPM_20_E_SEQUENCE: NTSTATUS = -1071054589i32;
pub const STATUS_TPM_20_E_SIGNATURE: NTSTATUS = -1071054693i32;
pub const STATUS_TPM_20_E_SIZE: NTSTATUS = -1071054699i32;
pub const STATUS_TPM_20_E_SYMMETRIC: NTSTATUS = -1071054698i32;
pub const STATUS_TPM_20_E_TAG: NTSTATUS = -1071054697i32;
pub const STATUS_TPM_20_E_TICKET: NTSTATUS = -1071054688i32;
pub const STATUS_TPM_20_E_TOO_MANY_CONTEXTS: NTSTATUS = -1071054546i32;
pub const STATUS_TPM_20_E_TYPE: NTSTATUS = -1071054710i32;
pub const STATUS_TPM_20_E_UNBALANCED: NTSTATUS = -1071054543i32;
pub const STATUS_TPM_20_E_UPGRADE: NTSTATUS = -1071054547i32;
pub const STATUS_TPM_20_E_VALUE: NTSTATUS = -1071054716i32;
pub const STATUS_TPM_ACCESS_DENIED: NTSTATUS = -1071050748i32;
pub const STATUS_TPM_AREA_LOCKED: NTSTATUS = -1071054788i32;
pub const STATUS_TPM_AUDITFAILURE: NTSTATUS = -1071054844i32;
pub const STATUS_TPM_AUDITFAIL_SUCCESSFUL: NTSTATUS = -1071054799i32;
pub const STATUS_TPM_AUDITFAIL_UNSUCCESSFUL: NTSTATUS = -1071054800i32;
pub const STATUS_TPM_AUTH2FAIL: NTSTATUS = -1071054819i32;
pub const STATUS_TPM_AUTHFAIL: NTSTATUS = -1071054847i32;
pub const STATUS_TPM_AUTH_CONFLICT: NTSTATUS = -1071054789i32;
pub const STATUS_TPM_BADCONTEXT: NTSTATUS = -1071054758i32;
pub const STATUS_TPM_BADINDEX: NTSTATUS = -1071054846i32;
pub const STATUS_TPM_BADTAG: NTSTATUS = -1071054818i32;
pub const STATUS_TPM_BAD_ATTRIBUTES: NTSTATUS = -1071054782i32;
pub const STATUS_TPM_BAD_COUNTER: NTSTATUS = -1071054779i32;
pub const STATUS_TPM_BAD_DATASIZE: NTSTATUS = -1071054805i32;
pub const STATUS_TPM_BAD_DELEGATE: NTSTATUS = -1071054759i32;
pub const STATUS_TPM_BAD_HANDLE: NTSTATUS = -1071054760i32;
pub const STATUS_TPM_BAD_KEY_PROPERTY: NTSTATUS = -1071054808i32;
pub const STATUS_TPM_BAD_LOCALITY: NTSTATUS = -1071054787i32;
pub const STATUS_TPM_BAD_MIGRATION: NTSTATUS = -1071054807i32;
pub const STATUS_TPM_BAD_MODE: NTSTATUS = -1071054804i32;
pub const STATUS_TPM_BAD_ORDINAL: NTSTATUS = -1071054838i32;
pub const STATUS_TPM_BAD_PARAMETER: NTSTATUS = -1071054845i32;
pub const STATUS_TPM_BAD_PARAM_SIZE: NTSTATUS = -1071054823i32;
pub const STATUS_TPM_BAD_PRESENCE: NTSTATUS = -1071054803i32;
pub const STATUS_TPM_BAD_SCHEME: NTSTATUS = -1071054806i32;
pub const STATUS_TPM_BAD_SIGNATURE: NTSTATUS = -1071054750i32;
pub const STATUS_TPM_BAD_TYPE: NTSTATUS = -1071054796i32;
pub const STATUS_TPM_BAD_VERSION: NTSTATUS = -1071054802i32;
pub const STATUS_TPM_CLEAR_DISABLED: NTSTATUS = -1071054843i32;
pub const STATUS_TPM_COMMAND_BLOCKED: NTSTATUS = -1071053824i32;
pub const STATUS_TPM_COMMAND_CANCELED: NTSTATUS = -1071050751i32;
pub const STATUS_TPM_CONTEXT_GAP: NTSTATUS = -1071054777i32;
pub const STATUS_TPM_DAA_INPUT_DATA0: NTSTATUS = -1071054767i32;
pub const STATUS_TPM_DAA_INPUT_DATA1: NTSTATUS = -1071054766i32;
pub const STATUS_TPM_DAA_ISSUER_SETTINGS: NTSTATUS = -1071054765i32;
pub const STATUS_TPM_DAA_ISSUER_VALIDITY: NTSTATUS = -1071054762i32;
pub const STATUS_TPM_DAA_RESOURCES: NTSTATUS = -1071054768i32;
pub const STATUS_TPM_DAA_STAGE: NTSTATUS = -1071054763i32;
pub const STATUS_TPM_DAA_TPM_SETTINGS: NTSTATUS = -1071054764i32;
pub const STATUS_TPM_DAA_WRONG_W: NTSTATUS = -1071054761i32;
pub const STATUS_TPM_DEACTIVATED: NTSTATUS = -1071054842i32;
pub const STATUS_TPM_DECRYPT_ERROR: NTSTATUS = -1071054815i32;
pub const STATUS_TPM_DEFEND_LOCK_RUNNING: NTSTATUS = -1071052797i32;
pub const STATUS_TPM_DELEGATE_ADMIN: NTSTATUS = -1071054771i32;
pub const STATUS_TPM_DELEGATE_FAMILY: NTSTATUS = -1071054772i32;
pub const STATUS_TPM_DELEGATE_LOCK: NTSTATUS = -1071054773i32;
pub const STATUS_TPM_DISABLED: NTSTATUS = -1071054841i32;
pub const STATUS_TPM_DISABLED_CMD: NTSTATUS = -1071054840i32;
pub const STATUS_TPM_DOING_SELFTEST: NTSTATUS = -1071052798i32;
pub const STATUS_TPM_DUPLICATE_VHANDLE: NTSTATUS = -1071053822i32;
pub const STATUS_TPM_EMBEDDED_COMMAND_BLOCKED: NTSTATUS = -1071053821i32;
pub const STATUS_TPM_EMBEDDED_COMMAND_UNSUPPORTED: NTSTATUS = -1071053820i32;
pub const STATUS_TPM_ENCRYPT_ERROR: NTSTATUS = -1071054816i32;
pub const STATUS_TPM_ERROR_MASK: NTSTATUS = -1071054848i32;
pub const STATUS_TPM_FAIL: NTSTATUS = -1071054839i32;
pub const STATUS_TPM_FAILEDSELFTEST: NTSTATUS = -1071054820i32;
pub const STATUS_TPM_FAMILYCOUNT: NTSTATUS = -1071054784i32;
pub const STATUS_TPM_INAPPROPRIATE_ENC: NTSTATUS = -1071054834i32;
pub const STATUS_TPM_INAPPROPRIATE_SIG: NTSTATUS = -1071054809i32;
pub const STATUS_TPM_INSTALL_DISABLED: NTSTATUS = -1071054837i32;
pub const STATUS_TPM_INSUFFICIENT_BUFFER: NTSTATUS = -1071050747i32;
pub const STATUS_TPM_INVALID_AUTHHANDLE: NTSTATUS = -1071054814i32;
pub const STATUS_TPM_INVALID_FAMILY: NTSTATUS = -1071054793i32;
pub const STATUS_TPM_INVALID_HANDLE: NTSTATUS = -1071053823i32;
pub const STATUS_TPM_INVALID_KEYHANDLE: NTSTATUS = -1071054836i32;
pub const STATUS_TPM_INVALID_KEYUSAGE: NTSTATUS = -1071054812i32;
pub const STATUS_TPM_INVALID_PCR_INFO: NTSTATUS = -1071054832i32;
pub const STATUS_TPM_INVALID_POSTINIT: NTSTATUS = -1071054810i32;
pub const STATUS_TPM_INVALID_RESOURCE: NTSTATUS = -1071054795i32;
pub const STATUS_TPM_INVALID_STRUCTURE: NTSTATUS = -1071054781i32;
pub const STATUS_TPM_IOERROR: NTSTATUS = -1071054817i32;
pub const STATUS_TPM_KEYNOTFOUND: NTSTATUS = -1071054835i32;
pub const STATUS_TPM_KEY_NOTSUPPORTED: NTSTATUS = -1071054790i32;
pub const STATUS_TPM_KEY_OWNER_CONTROL: NTSTATUS = -1071054780i32;
pub const STATUS_TPM_MAXNVWRITES: NTSTATUS = -1071054776i32;
pub const STATUS_TPM_MA_AUTHORITY: NTSTATUS = -1071054753i32;
pub const STATUS_TPM_MA_DESTINATION: NTSTATUS = -1071054755i32;
pub const STATUS_TPM_MA_SOURCE: NTSTATUS = -1071054754i32;
pub const STATUS_TPM_MA_TICKET_SIGNATURE: NTSTATUS = -1071054756i32;
pub const STATUS_TPM_MIGRATEFAIL: NTSTATUS = -1071054833i32;
pub const STATUS_TPM_NEEDS_SELFTEST: NTSTATUS = -1071052799i32;
pub const STATUS_TPM_NOCONTEXTSPACE: NTSTATUS = -1071054749i32;
pub const STATUS_TPM_NOOPERATOR: NTSTATUS = -1071054775i32;
pub const STATUS_TPM_NOSPACE: NTSTATUS = -1071054831i32;
pub const STATUS_TPM_NOSRK: NTSTATUS = -1071054830i32;
pub const STATUS_TPM_NOTFIPS: NTSTATUS = -1071054794i32;
pub const STATUS_TPM_NOTLOCAL: NTSTATUS = -1071054797i32;
pub const STATUS_TPM_NOTRESETABLE: NTSTATUS = -1071054798i32;
pub const STATUS_TPM_NOTSEALED_BLOB: NTSTATUS = -1071054829i32;
pub const STATUS_TPM_NOT_FOUND: NTSTATUS = -1071050749i32;
pub const STATUS_TPM_NOT_FULLWRITE: NTSTATUS = -1071054778i32;
pub const STATUS_TPM_NO_ENDORSEMENT: NTSTATUS = -1071054813i32;
pub const STATUS_TPM_NO_NV_PERMISSION: NTSTATUS = -1071054792i32;
pub const STATUS_TPM_NO_WRAP_TRANSPORT: NTSTATUS = -1071054801i32;
pub const STATUS_TPM_OWNER_CONTROL: NTSTATUS = -1071054769i32;
pub const STATUS_TPM_OWNER_SET: NTSTATUS = -1071054828i32;
pub const STATUS_TPM_PERMANENTEK: NTSTATUS = -1071054751i32;
pub const STATUS_TPM_PER_NOWRITE: NTSTATUS = -1071054785i32;
pub const STATUS_TPM_PPI_FUNCTION_UNSUPPORTED: NTSTATUS = -1071050746i32;
pub const STATUS_TPM_READ_ONLY: NTSTATUS = -1071054786i32;
pub const STATUS_TPM_REQUIRES_SIGN: NTSTATUS = -1071054791i32;
pub const STATUS_TPM_RESOURCEMISSING: NTSTATUS = -1071054774i32;
pub const STATUS_TPM_RESOURCES: NTSTATUS = -1071054827i32;
pub const STATUS_TPM_RETRY: NTSTATUS = -1071052800i32;
pub const STATUS_TPM_SHA_ERROR: NTSTATUS = -1071054821i32;
pub const STATUS_TPM_SHA_THREAD: NTSTATUS = -1071054822i32;
pub const STATUS_TPM_SHORTRANDOM: NTSTATUS = -1071054826i32;
pub const STATUS_TPM_SIZE: NTSTATUS = -1071054825i32;
pub const STATUS_TPM_TOOMANYCONTEXTS: NTSTATUS = -1071054757i32;
pub const STATUS_TPM_TOO_MANY_CONTEXTS: NTSTATUS = -1071050750i32;
pub const STATUS_TPM_TRANSPORT_NOTEXCLUSIVE: NTSTATUS = -1071054770i32;
pub const STATUS_TPM_WRITE_LOCKED: NTSTATUS = -1071054783i32;
pub const STATUS_TPM_WRONGPCRVAL: NTSTATUS = -1071054824i32;
pub const STATUS_TPM_WRONG_ENTITYTYPE: NTSTATUS = -1071054811i32;
pub const STATUS_TPM_ZERO_EXHAUST_ENABLED: NTSTATUS = -1071038464i32;
pub const STATUS_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE: NTSTATUS = -1072103360i32;
pub const STATUS_TRANSACTIONAL_CONFLICT: NTSTATUS = -1072103423i32;
pub const STATUS_TRANSACTIONAL_OPEN_NOT_ALLOWED: NTSTATUS = -1072103361i32;
pub const STATUS_TRANSACTIONMANAGER_IDENTITY_MISMATCH: NTSTATUS = -1072103332i32;
pub const STATUS_TRANSACTIONMANAGER_NOT_FOUND: NTSTATUS = -1072103343i32;
pub const STATUS_TRANSACTIONMANAGER_NOT_ONLINE: NTSTATUS = -1072103342i32;
pub const STATUS_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION: NTSTATUS = -1072103341i32;
pub const STATUS_TRANSACTIONS_NOT_FROZEN: NTSTATUS = -1072103355i32;
pub const STATUS_TRANSACTIONS_UNSUPPORTED_REMOTE: NTSTATUS = -1072103414i32;
pub const STATUS_TRANSACTION_ABORTED: NTSTATUS = -1073741297i32;
pub const STATUS_TRANSACTION_ALREADY_ABORTED: NTSTATUS = -1072103403i32;
pub const STATUS_TRANSACTION_ALREADY_COMMITTED: NTSTATUS = -1072103402i32;
pub const STATUS_TRANSACTION_FREEZE_IN_PROGRESS: NTSTATUS = -1072103354i32;
pub const STATUS_TRANSACTION_INTEGRITY_VIOLATED: NTSTATUS = -1072103333i32;
pub const STATUS_TRANSACTION_INVALID_ID: NTSTATUS = -1073741292i32;
pub const STATUS_TRANSACTION_INVALID_MARSHALL_BUFFER: NTSTATUS = -1072103401i32;
pub const STATUS_TRANSACTION_INVALID_TYPE: NTSTATUS = -1073741291i32;
pub const STATUS_TRANSACTION_MUST_WRITETHROUGH: NTSTATUS = -1072103330i32;
pub const STATUS_TRANSACTION_NOT_ACTIVE: NTSTATUS = -1072103421i32;
pub const STATUS_TRANSACTION_NOT_ENLISTED: NTSTATUS = -1072103327i32;
pub const STATUS_TRANSACTION_NOT_FOUND: NTSTATUS = -1072103346i32;
pub const STATUS_TRANSACTION_NOT_JOINED: NTSTATUS = -1072103417i32;
pub const STATUS_TRANSACTION_NOT_REQUESTED: NTSTATUS = -1072103404i32;
pub const STATUS_TRANSACTION_NOT_ROOT: NTSTATUS = -1072103340i32;
pub const STATUS_TRANSACTION_NO_MATCH: NTSTATUS = -1073741294i32;
pub const STATUS_TRANSACTION_NO_RELEASE: NTSTATUS = -1073741295i32;
pub const STATUS_TRANSACTION_NO_SUPERIOR: NTSTATUS = -1072103329i32;
pub const STATUS_TRANSACTION_OBJECT_EXPIRED: NTSTATUS = -1072103339i32;
pub const STATUS_TRANSACTION_PROPAGATION_FAILED: NTSTATUS = -1072103408i32;
pub const STATUS_TRANSACTION_RECORD_TOO_LONG: NTSTATUS = -1072103336i32;
pub const STATUS_TRANSACTION_REQUEST_NOT_VALID: NTSTATUS = -1072103405i32;
pub const STATUS_TRANSACTION_REQUIRED_PROMOTION: NTSTATUS = -1072103357i32;
pub const STATUS_TRANSACTION_RESPONDED: NTSTATUS = -1073741293i32;
pub const STATUS_TRANSACTION_RESPONSE_NOT_ENLISTED: NTSTATUS = -1072103337i32;
pub const STATUS_TRANSACTION_SCOPE_CALLBACKS_NOT_SET: NTSTATUS = -2145845182i32;
pub const STATUS_TRANSACTION_SUPERIOR_EXISTS: NTSTATUS = -1072103406i32;
pub const STATUS_TRANSACTION_TIMED_OUT: NTSTATUS = -1073741296i32;
pub const STATUS_TRANSLATION_COMPLETE: NTSTATUS = 288i32;
pub const STATUS_TRANSPORT_FULL: NTSTATUS = -1073741110i32;
pub const STATUS_TRIGGERED_EXECUTABLE_MEMORY_WRITE: NTSTATUS = -1073739994i32;
pub const STATUS_TRIM_READ_ZERO_NOT_SUPPORTED: NTSTATUS = -1073740686i32;
pub const STATUS_TRUSTED_DOMAIN_FAILURE: NTSTATUS = -1073741428i32;
pub const STATUS_TRUSTED_RELATIONSHIP_FAILURE: NTSTATUS = -1073741427i32;
pub const STATUS_TRUST_FAILURE: NTSTATUS = -1073741424i32;
pub const STATUS_TS_INCOMPATIBLE_SESSIONS: NTSTATUS = -1073086407i32;
pub const STATUS_TS_VIDEO_SUBSYSTEM_ERROR: NTSTATUS = -1073086406i32;
pub const STATUS_TXF_ATTRIBUTE_CORRUPT: NTSTATUS = -1072103363i32;
pub const STATUS_TXF_DIR_NOT_EMPTY: NTSTATUS = -1072103367i32;
pub const STATUS_TXF_METADATA_ALREADY_PRESENT: NTSTATUS = -2145845183i32;
pub const STATUS_UNABLE_TO_DECOMMIT_VM: NTSTATUS = -1073741780i32;
pub const STATUS_UNABLE_TO_DELETE_SECTION: NTSTATUS = -1073741797i32;
pub const STATUS_UNABLE_TO_FREE_VM: NTSTATUS = -1073741798i32;
pub const STATUS_UNABLE_TO_LOCK_MEDIA: NTSTATUS = -1073741451i32;
pub const STATUS_UNABLE_TO_UNLOAD_MEDIA: NTSTATUS = -1073741450i32;
pub const STATUS_UNDEFINED_CHARACTER: NTSTATUS = -1073741469i32;
pub const STATUS_UNDEFINED_SCOPE: NTSTATUS = -1073740540i32;
pub const STATUS_UNEXPECTED_IO_ERROR: NTSTATUS = -1073741591i32;
pub const STATUS_UNEXPECTED_MM_CREATE_ERR: NTSTATUS = -1073741590i32;
pub const STATUS_UNEXPECTED_MM_EXTEND_ERR: NTSTATUS = -1073741588i32;
pub const STATUS_UNEXPECTED_MM_MAP_ERROR: NTSTATUS = -1073741589i32;
pub const STATUS_UNEXPECTED_NETWORK_ERROR: NTSTATUS = -1073741628i32;
pub const STATUS_UNFINISHED_CONTEXT_DELETED: NTSTATUS = -1073741074i32;
pub const STATUS_UNHANDLED_EXCEPTION: NTSTATUS = -1073741500i32;
pub const STATUS_UNKNOWN_REVISION: NTSTATUS = -1073741736i32;
pub const STATUS_UNMAPPABLE_CHARACTER: NTSTATUS = -1073741470i32;
pub const STATUS_UNRECOGNIZED_MEDIA: NTSTATUS = -1073741804i32;
pub const STATUS_UNRECOGNIZED_VOLUME: NTSTATUS = -1073741489i32;
pub const STATUS_UNSATISFIED_DEPENDENCIES: NTSTATUS = -1073740615i32;
pub const STATUS_UNSUCCESSFUL: NTSTATUS = -1073741823i32;
pub const STATUS_UNSUPPORTED_COMPRESSION: NTSTATUS = -1073741217i32;
pub const STATUS_UNSUPPORTED_PAGING_MODE: NTSTATUS = -1073740613i32;
pub const STATUS_UNSUPPORTED_PREAUTH: NTSTATUS = -1073740975i32;
pub const STATUS_UNTRUSTED_MOUNT_POINT: NTSTATUS = -1073740612i32;
pub const STATUS_UNWIND: NTSTATUS = -1073741785i32;
pub const STATUS_UNWIND_CONSOLIDATE: NTSTATUS = -2147483607i32;
pub const STATUS_USER2USER_REQUIRED: NTSTATUS = -1073740792i32;
pub const STATUS_USER_APC: NTSTATUS = 192i32;
pub const STATUS_USER_DELETE_TRUST_QUOTA_EXCEEDED: NTSTATUS = -1073740797i32;
pub const STATUS_USER_EXISTS: NTSTATUS = -1073741725i32;
pub const STATUS_USER_MAPPED_FILE: NTSTATUS = -1073741245i32;
pub const STATUS_USER_SESSION_DELETED: NTSTATUS = -1073741309i32;
pub const STATUS_VALIDATE_CONTINUE: NTSTATUS = -1073741199i32;
pub const STATUS_VALID_CATALOG_HASH: NTSTATUS = 301i32;
pub const STATUS_VALID_IMAGE_HASH: NTSTATUS = 300i32;
pub const STATUS_VALID_STRONG_CODE_HASH: NTSTATUS = 302i32;
pub const STATUS_VARIABLE_NOT_FOUND: NTSTATUS = -1073741568i32;
pub const STATUS_VDM_DISALLOWED: NTSTATUS = -1073740780i32;
pub const STATUS_VDM_HARD_ERROR: NTSTATUS = -1073741283i32;
pub const STATUS_VERIFIER_STOP: NTSTATUS = -1073740767i32;
pub const STATUS_VERIFY_REQUIRED: NTSTATUS = -2147483626i32;
pub const STATUS_VHDSET_BACKING_STORAGE_NOT_FOUND: NTSTATUS = -1067647220i32;
pub const STATUS_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE: NTSTATUS = -1069940685i32;
pub const STATUS_VHD_BITMAP_MISMATCH: NTSTATUS = -1069940724i32;
pub const STATUS_VHD_BLOCK_ALLOCATION_FAILURE: NTSTATUS = -1069940727i32;
pub const STATUS_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT: NTSTATUS = -1069940726i32;
pub const STATUS_VHD_CHANGE_TRACKING_DISABLED: NTSTATUS = -1069940694i32;
pub const STATUS_VHD_CHILD_PARENT_ID_MISMATCH: NTSTATUS = -1069940722i32;
pub const STATUS_VHD_CHILD_PARENT_SIZE_MISMATCH: NTSTATUS = -1069940713i32;
pub const STATUS_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH: NTSTATUS = -1069940721i32;
pub const STATUS_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE: NTSTATUS = -1069940686i32;
pub const STATUS_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED: NTSTATUS = -1069940712i32;
pub const STATUS_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT: NTSTATUS = -1069940711i32;
pub const STATUS_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH: NTSTATUS = -1069940734i32;
pub const STATUS_VHD_DRIVE_FOOTER_CORRUPT: NTSTATUS = -1069940733i32;
pub const STATUS_VHD_DRIVE_FOOTER_MISSING: NTSTATUS = -1069940735i32;
pub const STATUS_VHD_FORMAT_UNKNOWN: NTSTATUS = -1069940732i32;
pub const STATUS_VHD_FORMAT_UNSUPPORTED_VERSION: NTSTATUS = -1069940731i32;
pub const STATUS_VHD_INVALID_BLOCK_SIZE: NTSTATUS = -1069940725i32;
pub const STATUS_VHD_INVALID_CHANGE_TRACKING_ID: NTSTATUS = -1069940695i32;
pub const STATUS_VHD_INVALID_FILE_SIZE: NTSTATUS = -1069940717i32;
pub const STATUS_VHD_INVALID_SIZE: NTSTATUS = -1069940718i32;
pub const STATUS_VHD_INVALID_STATE: NTSTATUS = -1069940708i32;
pub const STATUS_VHD_INVALID_TYPE: NTSTATUS = -1069940709i32;
pub const STATUS_VHD_METADATA_FULL: NTSTATUS = -1069940696i32;
pub const STATUS_VHD_METADATA_READ_FAILURE: NTSTATUS = -1069940720i32;
pub const STATUS_VHD_METADATA_WRITE_FAILURE: NTSTATUS = -1069940719i32;
pub const STATUS_VHD_MISSING_CHANGE_TRACKING_INFORMATION: NTSTATUS = -1069940688i32;
pub const STATUS_VHD_PARENT_VHD_ACCESS_DENIED: NTSTATUS = -1069940714i32;
pub const STATUS_VHD_PARENT_VHD_NOT_FOUND: NTSTATUS = -1069940723i32;
pub const STATUS_VHD_RESIZE_WOULD_TRUNCATE_DATA: NTSTATUS = -1069940687i32;
pub const STATUS_VHD_SHARED: NTSTATUS = -1067647222i32;
pub const STATUS_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH: NTSTATUS = -1069940730i32;
pub const STATUS_VHD_SPARSE_HEADER_CORRUPT: NTSTATUS = -1069940728i32;
pub const STATUS_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION: NTSTATUS = -1069940729i32;
pub const STATUS_VIDEO_DRIVER_DEBUG_REPORT_REQUEST: NTSTATUS = 1075511532i32;
pub const STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD: NTSTATUS = -1071972118i32;
pub const STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD_RECOVERED: NTSTATUS = -2145713941i32;
pub const STATUS_VID_CHILD_GPA_PAGE_SET_CORRUPTED: NTSTATUS = -1070137330i32;
pub const STATUS_VID_DUPLICATE_HANDLER: NTSTATUS = -1070137343i32;
pub const STATUS_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT: NTSTATUS = -1070137314i32;
pub const STATUS_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT: NTSTATUS = -1070137332i32;
pub const STATUS_VID_HANDLER_NOT_PRESENT: NTSTATUS = -1070137340i32;
pub const STATUS_VID_INVALID_CHILD_GPA_PAGE_SET: NTSTATUS = -1070137310i32;
pub const STATUS_VID_INVALID_GPA_RANGE_HANDLE: NTSTATUS = -1070137323i32;
pub const STATUS_VID_INVALID_MEMORY_BLOCK_HANDLE: NTSTATUS = -1070137326i32;
pub const STATUS_VID_INVALID_MESSAGE_QUEUE_HANDLE: NTSTATUS = -1070137324i32;
pub const STATUS_VID_INVALID_NUMA_NODE_INDEX: NTSTATUS = -1070137328i32;
pub const STATUS_VID_INVALID_NUMA_SETTINGS: NTSTATUS = -1070137329i32;
pub const STATUS_VID_INVALID_OBJECT_NAME: NTSTATUS = -1070137339i32;
pub const STATUS_VID_INVALID_PPM_HANDLE: NTSTATUS = -1070137320i32;
pub const STATUS_VID_INVALID_PROCESSOR_STATE: NTSTATUS = -1070137315i32;
pub const STATUS_VID_KM_INTERFACE_ALREADY_INITIALIZED: NTSTATUS = -1070137313i32;
pub const STATUS_VID_MBPS_ARE_LOCKED: NTSTATUS = -1070137319i32;
pub const STATUS_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE: NTSTATUS = -1070137307i32;
pub const STATUS_VID_MBP_COUNT_EXCEEDED_LIMIT: NTSTATUS = -1070137306i32;
pub const STATUS_VID_MB_PROPERTY_ALREADY_SET_RESET: NTSTATUS = -1070137312i32;
pub const STATUS_VID_MB_STILL_REFERENCED: NTSTATUS = -1070137331i32;
pub const STATUS_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED: NTSTATUS = -1070137321i32;
pub const STATUS_VID_MESSAGE_QUEUE_ALREADY_EXISTS: NTSTATUS = -1070137333i32;
pub const STATUS_VID_MESSAGE_QUEUE_CLOSED: NTSTATUS = -1070137318i32;
pub const STATUS_VID_MESSAGE_QUEUE_NAME_TOO_LONG: NTSTATUS = -1070137337i32;
pub const STATUS_VID_MMIO_RANGE_DESTROYED: NTSTATUS = -1070137311i32;
pub const STATUS_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED: NTSTATUS = -1070137327i32;
pub const STATUS_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE: NTSTATUS = -1070137322i32;
pub const STATUS_VID_PAGE_RANGE_OVERFLOW: NTSTATUS = -1070137325i32;
pub const STATUS_VID_PARTITION_ALREADY_EXISTS: NTSTATUS = -1070137336i32;
pub const STATUS_VID_PARTITION_DOES_NOT_EXIST: NTSTATUS = -1070137335i32;
pub const STATUS_VID_PARTITION_NAME_NOT_FOUND: NTSTATUS = -1070137334i32;
pub const STATUS_VID_PARTITION_NAME_TOO_LONG: NTSTATUS = -1070137338i32;
pub const STATUS_VID_QUEUE_FULL: NTSTATUS = -1070137341i32;
pub const STATUS_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED: NTSTATUS = -2143879167i32;
pub const STATUS_VID_RESERVE_PAGE_SET_IS_BEING_USED: NTSTATUS = -1070137309i32;
pub const STATUS_VID_RESERVE_PAGE_SET_TOO_SMALL: NTSTATUS = -1070137308i32;
pub const STATUS_VID_SAVED_STATE_CORRUPT: NTSTATUS = -1070137305i32;
pub const STATUS_VID_SAVED_STATE_INCOMPATIBLE: NTSTATUS = -1070137303i32;
pub const STATUS_VID_SAVED_STATE_UNRECOGNIZED_ITEM: NTSTATUS = -1070137304i32;
pub const STATUS_VID_STOP_PENDING: NTSTATUS = -1070137316i32;
pub const STATUS_VID_TOO_MANY_HANDLERS: NTSTATUS = -1070137342i32;
pub const STATUS_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED: NTSTATUS = -1070137317i32;
pub const STATUS_VID_VTL_ACCESS_DENIED: NTSTATUS = -1070137302i32;
pub const STATUS_VIRTDISK_DISK_ALREADY_OWNED: NTSTATUS = -1069940706i32;
pub const STATUS_VIRTDISK_DISK_ONLINE_AND_WRITABLE: NTSTATUS = -1069940705i32;
pub const STATUS_VIRTDISK_NOT_VIRTUAL_DISK: NTSTATUS = -1069940715i32;
pub const STATUS_VIRTDISK_PROVIDER_NOT_FOUND: NTSTATUS = -1069940716i32;
pub const STATUS_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE: NTSTATUS = -1069940707i32;
pub const STATUS_VIRTUAL_CIRCUIT_CLOSED: NTSTATUS = -1073741610i32;
pub const STATUS_VIRTUAL_DISK_LIMITATION: NTSTATUS = -1069940710i32;
pub const STATUS_VIRUS_DELETED: NTSTATUS = -1073739513i32;
pub const STATUS_VIRUS_INFECTED: NTSTATUS = -1073739514i32;
pub const STATUS_VOLMGR_ALL_DISKS_FAILED: NTSTATUS = -1070071767i32;
pub const STATUS_VOLMGR_BAD_BOOT_DISK: NTSTATUS = -1070071729i32;
pub const STATUS_VOLMGR_DATABASE_FULL: NTSTATUS = -1070071807i32;
pub const STATUS_VOLMGR_DIFFERENT_SECTOR_SIZE: NTSTATUS = -1070071730i32;
pub const STATUS_VOLMGR_DISK_CONFIGURATION_CORRUPTED: NTSTATUS = -1070071806i32;
pub const STATUS_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC: NTSTATUS = -1070071805i32;
pub const STATUS_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME: NTSTATUS = -1070071803i32;
pub const STATUS_VOLMGR_DISK_DUPLICATE: NTSTATUS = -1070071802i32;
pub const STATUS_VOLMGR_DISK_DYNAMIC: NTSTATUS = -1070071801i32;
pub const STATUS_VOLMGR_DISK_ID_INVALID: NTSTATUS = -1070071800i32;
pub const STATUS_VOLMGR_DISK_INVALID: NTSTATUS = -1070071799i32;
pub const STATUS_VOLMGR_DISK_LAST_VOTER: NTSTATUS = -1070071798i32;
pub const STATUS_VOLMGR_DISK_LAYOUT_INVALID: NTSTATUS = -1070071797i32;
pub const STATUS_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS: NTSTATUS = -1070071796i32;
pub const STATUS_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED: NTSTATUS = -1070071795i32;
pub const STATUS_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL: NTSTATUS = -1070071794i32;
pub const STATUS_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS: NTSTATUS = -1070071793i32;
pub const STATUS_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS: NTSTATUS = -1070071792i32;
pub const STATUS_VOLMGR_DISK_MISSING: NTSTATUS = -1070071791i32;
pub const STATUS_VOLMGR_DISK_NOT_EMPTY: NTSTATUS = -1070071790i32;
pub const STATUS_VOLMGR_DISK_NOT_ENOUGH_SPACE: NTSTATUS = -1070071789i32;
pub const STATUS_VOLMGR_DISK_REVECTORING_FAILED: NTSTATUS = -1070071788i32;
pub const STATUS_VOLMGR_DISK_SECTOR_SIZE_INVALID: NTSTATUS = -1070071787i32;
pub const STATUS_VOLMGR_DISK_SET_NOT_CONTAINED: NTSTATUS = -1070071786i32;
pub const STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS: NTSTATUS = -1070071785i32;
pub const STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES: NTSTATUS = -1070071784i32;
pub const STATUS_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED: NTSTATUS = -1070071783i32;
pub const STATUS_VOLMGR_EXTENT_ALREADY_USED: NTSTATUS = -1070071782i32;
pub const STATUS_VOLMGR_EXTENT_NOT_CONTIGUOUS: NTSTATUS = -1070071781i32;
pub const STATUS_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION: NTSTATUS = -1070071780i32;
pub const STATUS_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED: NTSTATUS = -1070071779i32;
pub const STATUS_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION: NTSTATUS = -1070071778i32;
pub const STATUS_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH: NTSTATUS = -1070071777i32;
pub const STATUS_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED: NTSTATUS = -1070071776i32;
pub const STATUS_VOLMGR_INCOMPLETE_DISK_MIGRATION: NTSTATUS = -2143813630i32;
pub const STATUS_VOLMGR_INCOMPLETE_REGENERATION: NTSTATUS = -2143813631i32;
pub const STATUS_VOLMGR_INTERLEAVE_LENGTH_INVALID: NTSTATUS = -1070071775i32;
pub const STATUS_VOLMGR_MAXIMUM_REGISTERED_USERS: NTSTATUS = -1070071774i32;
pub const STATUS_VOLMGR_MEMBER_INDEX_DUPLICATE: NTSTATUS = -1070071772i32;
pub const STATUS_VOLMGR_MEMBER_INDEX_INVALID: NTSTATUS = -1070071771i32;
pub const STATUS_VOLMGR_MEMBER_IN_SYNC: NTSTATUS = -1070071773i32;
pub const STATUS_VOLMGR_MEMBER_MISSING: NTSTATUS = -1070071770i32;
pub const STATUS_VOLMGR_MEMBER_NOT_DETACHED: NTSTATUS = -1070071769i32;
pub const STATUS_VOLMGR_MEMBER_REGENERATING: NTSTATUS = -1070071768i32;
pub const STATUS_VOLMGR_MIRROR_NOT_SUPPORTED: NTSTATUS = -1070071717i32;
pub const STATUS_VOLMGR_NOTIFICATION_RESET: NTSTATUS = -1070071764i32;
pub const STATUS_VOLMGR_NOT_PRIMARY_PACK: NTSTATUS = -1070071726i32;
pub const STATUS_VOLMGR_NO_REGISTERED_USERS: NTSTATUS = -1070071766i32;
pub const STATUS_VOLMGR_NO_SUCH_USER: NTSTATUS = -1070071765i32;
pub const STATUS_VOLMGR_NO_VALID_LOG_COPIES: NTSTATUS = -1070071720i32;
pub const STATUS_VOLMGR_NUMBER_OF_DISKS_INVALID: NTSTATUS = -1070071718i32;
pub const STATUS_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID: NTSTATUS = -1070071723i32;
pub const STATUS_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID: NTSTATUS = -1070071724i32;
pub const STATUS_VOLMGR_NUMBER_OF_EXTENTS_INVALID: NTSTATUS = -1070071731i32;
pub const STATUS_VOLMGR_NUMBER_OF_MEMBERS_INVALID: NTSTATUS = -1070071763i32;
pub const STATUS_VOLMGR_NUMBER_OF_PLEXES_INVALID: NTSTATUS = -1070071762i32;
pub const STATUS_VOLMGR_PACK_CONFIG_OFFLINE: NTSTATUS = -1070071728i32;
pub const STATUS_VOLMGR_PACK_CONFIG_ONLINE: NTSTATUS = -1070071727i32;
pub const STATUS_VOLMGR_PACK_CONFIG_UPDATE_FAILED: NTSTATUS = -1070071804i32;
pub const STATUS_VOLMGR_PACK_DUPLICATE: NTSTATUS = -1070071761i32;
pub const STATUS_VOLMGR_PACK_HAS_QUORUM: NTSTATUS = -1070071756i32;
pub const STATUS_VOLMGR_PACK_ID_INVALID: NTSTATUS = -1070071760i32;
pub const STATUS_VOLMGR_PACK_INVALID: NTSTATUS = -1070071759i32;
pub const STATUS_VOLMGR_PACK_LOG_UPDATE_FAILED: NTSTATUS = -1070071725i32;
pub const STATUS_VOLMGR_PACK_NAME_INVALID: NTSTATUS = -1070071758i32;
pub const STATUS_VOLMGR_PACK_OFFLINE: NTSTATUS = -1070071757i32;
pub const STATUS_VOLMGR_PACK_WITHOUT_QUORUM: NTSTATUS = -1070071755i32;
pub const STATUS_VOLMGR_PARTITION_STYLE_INVALID: NTSTATUS = -1070071754i32;
pub const STATUS_VOLMGR_PARTITION_UPDATE_FAILED: NTSTATUS = -1070071753i32;
pub const STATUS_VOLMGR_PLEX_INDEX_DUPLICATE: NTSTATUS = -1070071751i32;
pub const STATUS_VOLMGR_PLEX_INDEX_INVALID: NTSTATUS = -1070071750i32;
pub const STATUS_VOLMGR_PLEX_IN_SYNC: NTSTATUS = -1070071752i32;
pub const STATUS_VOLMGR_PLEX_LAST_ACTIVE: NTSTATUS = -1070071749i32;
pub const STATUS_VOLMGR_PLEX_MISSING: NTSTATUS = -1070071748i32;
pub const STATUS_VOLMGR_PLEX_NOT_RAID5: NTSTATUS = -1070071745i32;
pub const STATUS_VOLMGR_PLEX_NOT_SIMPLE: NTSTATUS = -1070071744i32;
pub const STATUS_VOLMGR_PLEX_NOT_SIMPLE_SPANNED: NTSTATUS = -1070071721i32;
pub const STATUS_VOLMGR_PLEX_REGENERATING: NTSTATUS = -1070071747i32;
pub const STATUS_VOLMGR_PLEX_TYPE_INVALID: NTSTATUS = -1070071746i32;
pub const STATUS_VOLMGR_PRIMARY_PACK_PRESENT: NTSTATUS = -1070071719i32;
pub const STATUS_VOLMGR_RAID5_NOT_SUPPORTED: NTSTATUS = -1070071716i32;
pub const STATUS_VOLMGR_STRUCTURE_SIZE_INVALID: NTSTATUS = -1070071743i32;
pub const STATUS_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS: NTSTATUS = -1070071742i32;
pub const STATUS_VOLMGR_TRANSACTION_IN_PROGRESS: NTSTATUS = -1070071741i32;
pub const STATUS_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE: NTSTATUS = -1070071740i32;
pub const STATUS_VOLMGR_VOLUME_CONTAINS_MISSING_DISK: NTSTATUS = -1070071739i32;
pub const STATUS_VOLMGR_VOLUME_ID_INVALID: NTSTATUS = -1070071738i32;
pub const STATUS_VOLMGR_VOLUME_LENGTH_INVALID: NTSTATUS = -1070071737i32;
pub const STATUS_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE: NTSTATUS = -1070071736i32;
pub const STATUS_VOLMGR_VOLUME_MIRRORED: NTSTATUS = -1070071722i32;
pub const STATUS_VOLMGR_VOLUME_NOT_MIRRORED: NTSTATUS = -1070071735i32;
pub const STATUS_VOLMGR_VOLUME_NOT_RETAINED: NTSTATUS = -1070071734i32;
pub const STATUS_VOLMGR_VOLUME_OFFLINE: NTSTATUS = -1070071733i32;
pub const STATUS_VOLMGR_VOLUME_RETAINED: NTSTATUS = -1070071732i32;
pub const STATUS_VOLSNAP_ACTIVATION_TIMEOUT: NTSTATUS = -1068498940i32;
pub const STATUS_VOLSNAP_BOOTFILE_NOT_VALID: NTSTATUS = -1068498941i32;
pub const STATUS_VOLSNAP_HIBERNATE_READY: NTSTATUS = 293i32;
pub const STATUS_VOLSNAP_NO_BYPASSIO_WITH_SNAPSHOT: NTSTATUS = -1068498939i32;
pub const STATUS_VOLSNAP_PREPARE_HIBERNATE: NTSTATUS = -1073740793i32;
pub const STATUS_VOLUME_DIRTY: NTSTATUS = -1073739770i32;
pub const STATUS_VOLUME_DISMOUNTED: NTSTATUS = -1073741202i32;
pub const STATUS_VOLUME_MOUNTED: NTSTATUS = 265i32;
pub const STATUS_VOLUME_NOT_CLUSTER_ALIGNED: NTSTATUS = -1073740636i32;
pub const STATUS_VOLUME_NOT_SUPPORTED: NTSTATUS = -1073740602i32;
pub const STATUS_VOLUME_NOT_UPGRADED: NTSTATUS = -1073741156i32;
pub const STATUS_VOLUME_WRITE_ACCESS_DENIED: NTSTATUS = -1073740589i32;
pub const STATUS_VRF_VOLATILE_CFG_AND_IO_ENABLED: NTSTATUS = -1073738744i32;
pub const STATUS_VRF_VOLATILE_NMI_REGISTERED: NTSTATUS = -1073738738i32;
pub const STATUS_VRF_VOLATILE_NOT_RUNNABLE_SYSTEM: NTSTATUS = -1073738741i32;
pub const STATUS_VRF_VOLATILE_NOT_STOPPABLE: NTSTATUS = -1073738743i32;
pub const STATUS_VRF_VOLATILE_NOT_SUPPORTED_RULECLASS: NTSTATUS = -1073738740i32;
pub const STATUS_VRF_VOLATILE_PROTECTED_DRIVER: NTSTATUS = -1073738739i32;
pub const STATUS_VRF_VOLATILE_SAFE_MODE: NTSTATUS = -1073738742i32;
pub const STATUS_VRF_VOLATILE_SETTINGS_CONFLICT: NTSTATUS = -1073738737i32;
pub const STATUS_VSM_DMA_PROTECTION_NOT_IN_USE: NTSTATUS = -1069219839i32;
pub const STATUS_VSM_NOT_INITIALIZED: NTSTATUS = -1069219840i32;
pub const STATUS_WAIT_0: NTSTATUS = 0i32;
pub const STATUS_WAIT_1: NTSTATUS = 1i32;
pub const STATUS_WAIT_2: NTSTATUS = 2i32;
pub const STATUS_WAIT_3: NTSTATUS = 3i32;
pub const STATUS_WAIT_63: NTSTATUS = 63i32;
pub const STATUS_WAIT_FOR_OPLOCK: NTSTATUS = 871i32;
pub const STATUS_WAKE_SYSTEM: NTSTATUS = 1073742484i32;
pub const STATUS_WAKE_SYSTEM_DEBUGGER: NTSTATUS = -2147483641i32;
pub const STATUS_WAS_LOCKED: NTSTATUS = 1073741849i32;
pub const STATUS_WAS_UNLOCKED: NTSTATUS = 1073741847i32;
pub const STATUS_WEAK_WHFBKEY_BLOCKED: NTSTATUS = -1073741389i32;
pub const STATUS_WIM_NOT_BOOTABLE: NTSTATUS = -1073740665i32;
pub const STATUS_WMI_ALREADY_DISABLED: NTSTATUS = -1073741054i32;
pub const STATUS_WMI_ALREADY_ENABLED: NTSTATUS = -1073741053i32;
pub const STATUS_WMI_GUID_DISCONNECTED: NTSTATUS = -1073741055i32;
pub const STATUS_WMI_GUID_NOT_FOUND: NTSTATUS = -1073741163i32;
pub const STATUS_WMI_INSTANCE_NOT_FOUND: NTSTATUS = -1073741162i32;
pub const STATUS_WMI_ITEMID_NOT_FOUND: NTSTATUS = -1073741161i32;
pub const STATUS_WMI_NOT_SUPPORTED: NTSTATUS = -1073741091i32;
pub const STATUS_WMI_READ_ONLY: NTSTATUS = -1073741114i32;
pub const STATUS_WMI_SET_FAILURE: NTSTATUS = -1073741113i32;
pub const STATUS_WMI_TRY_AGAIN: NTSTATUS = -1073741160i32;
pub const STATUS_WOF_FILE_RESOURCE_TABLE_CORRUPT: NTSTATUS = -1073700185i32;
pub const STATUS_WOF_WIM_HEADER_CORRUPT: NTSTATUS = -1073700187i32;
pub const STATUS_WOF_WIM_RESOURCE_TABLE_CORRUPT: NTSTATUS = -1073700186i32;
pub const STATUS_WORKING_SET_LIMIT_RANGE: NTSTATUS = 1073741826i32;
pub const STATUS_WORKING_SET_QUOTA: NTSTATUS = -1073741663i32;
pub const STATUS_WOW_ASSERTION: NTSTATUS = -1073702760i32;
pub const STATUS_WRONG_COMPARTMENT: NTSTATUS = -1073700731i32;
pub const STATUS_WRONG_CREDENTIAL_HANDLE: NTSTATUS = -1073741070i32;
pub const STATUS_WRONG_EFS: NTSTATUS = -1073741169i32;
pub const STATUS_WRONG_PASSWORD_CORE: NTSTATUS = -1073741495i32;
pub const STATUS_WRONG_VOLUME: NTSTATUS = -1073741806i32;
pub const STATUS_WX86_BREAKPOINT: NTSTATUS = 1073741855i32;
pub const STATUS_WX86_CONTINUE: NTSTATUS = 1073741853i32;
pub const STATUS_WX86_CREATEWX86TIB: NTSTATUS = 1073741864i32;
pub const STATUS_WX86_EXCEPTION_CHAIN: NTSTATUS = 1073741858i32;
pub const STATUS_WX86_EXCEPTION_CONTINUE: NTSTATUS = 1073741856i32;
pub const STATUS_WX86_EXCEPTION_LASTCHANCE: NTSTATUS = 1073741857i32;
pub const STATUS_WX86_FLOAT_STACK_CHECK: NTSTATUS = -1073741200i32;
pub const STATUS_WX86_INTERNAL_ERROR: NTSTATUS = -1073741201i32;
pub const STATUS_WX86_SINGLE_STEP: NTSTATUS = 1073741854i32;
pub const STATUS_WX86_UNSIMULATE: NTSTATUS = 1073741852i32;
pub const STATUS_XMLDSIG_ERROR: NTSTATUS = -1073700732i32;
pub const STATUS_XML_ENCODING_MISMATCH: NTSTATUS = -1072365535i32;
pub const STATUS_XML_PARSE_ERROR: NTSTATUS = -1073700733i32;
pub const STG_E_ABNORMALAPIEXIT: ::windows_sys::core::HRESULT = -2147286790i32;
pub const STG_E_ACCESSDENIED: ::windows_sys::core::HRESULT = -2147287035i32;
pub const STG_E_BADBASEADDRESS: ::windows_sys::core::HRESULT = -2147286768i32;
pub const STG_E_CANTSAVE: ::windows_sys::core::HRESULT = -2147286781i32;
pub const STG_E_CSS_AUTHENTICATION_FAILURE: ::windows_sys::core::HRESULT = -2147286266i32;
pub const STG_E_CSS_KEY_NOT_ESTABLISHED: ::windows_sys::core::HRESULT = -2147286264i32;
pub const STG_E_CSS_KEY_NOT_PRESENT: ::windows_sys::core::HRESULT = -2147286265i32;
pub const STG_E_CSS_REGION_MISMATCH: ::windows_sys::core::HRESULT = -2147286262i32;
pub const STG_E_CSS_SCRAMBLED_SECTOR: ::windows_sys::core::HRESULT = -2147286263i32;
pub const STG_E_DEVICE_UNRESPONSIVE: ::windows_sys::core::HRESULT = -2147286518i32;
pub const STG_E_DISKISWRITEPROTECTED: ::windows_sys::core::HRESULT = -2147287021i32;
pub const STG_E_DOCFILECORRUPT: ::windows_sys::core::HRESULT = -2147286775i32;
pub const STG_E_DOCFILETOOLARGE: ::windows_sys::core::HRESULT = -2147286767i32;
pub const STG_E_EXTANTMARSHALLINGS: ::windows_sys::core::HRESULT = -2147286776i32;
pub const STG_E_FILEALREADYEXISTS: ::windows_sys::core::HRESULT = -2147286960i32;
pub const STG_E_FILENOTFOUND: ::windows_sys::core::HRESULT = -2147287038i32;
pub const STG_E_FIRMWARE_IMAGE_INVALID: ::windows_sys::core::HRESULT = -2147286519i32;
pub const STG_E_FIRMWARE_SLOT_INVALID: ::windows_sys::core::HRESULT = -2147286520i32;
pub const STG_E_INCOMPLETE: ::windows_sys::core::HRESULT = -2147286527i32;
pub const STG_E_INSUFFICIENTMEMORY: ::windows_sys::core::HRESULT = -2147287032i32;
pub const STG_E_INUSE: ::windows_sys::core::HRESULT = -2147286784i32;
pub const STG_E_INVALIDFLAG: ::windows_sys::core::HRESULT = -2147286785i32;
pub const STG_E_INVALIDFUNCTION: ::windows_sys::core::HRESULT = -2147287039i32;
pub const STG_E_INVALIDHANDLE: ::windows_sys::core::HRESULT = -2147287034i32;
pub const STG_E_INVALIDHEADER: ::windows_sys::core::HRESULT = -2147286789i32;
pub const STG_E_INVALIDNAME: ::windows_sys::core::HRESULT = -2147286788i32;
pub const STG_E_INVALIDPARAMETER: ::windows_sys::core::HRESULT = -2147286953i32;
pub const STG_E_INVALIDPOINTER: ::windows_sys::core::HRESULT = -2147287031i32;
pub const STG_E_LOCKVIOLATION: ::windows_sys::core::HRESULT = -2147287007i32;
pub const STG_E_MEDIUMFULL: ::windows_sys::core::HRESULT = -2147286928i32;
pub const STG_E_NOMOREFILES: ::windows_sys::core::HRESULT = -2147287022i32;
pub const STG_E_NOTCURRENT: ::windows_sys::core::HRESULT = -2147286783i32;
pub const STG_E_NOTFILEBASEDSTORAGE: ::windows_sys::core::HRESULT = -2147286777i32;
pub const STG_E_NOTSIMPLEFORMAT: ::windows_sys::core::HRESULT = -2147286766i32;
pub const STG_E_OLDDLL: ::windows_sys::core::HRESULT = -2147286779i32;
pub const STG_E_OLDFORMAT: ::windows_sys::core::HRESULT = -2147286780i32;
pub const STG_E_PATHNOTFOUND: ::windows_sys::core::HRESULT = -2147287037i32;
pub const STG_E_PROPSETMISMATCHED: ::windows_sys::core::HRESULT = -2147286800i32;
pub const STG_E_READFAULT: ::windows_sys::core::HRESULT = -2147287010i32;
pub const STG_E_RESETS_EXHAUSTED: ::windows_sys::core::HRESULT = -2147286261i32;
pub const STG_E_REVERTED: ::windows_sys::core::HRESULT = -2147286782i32;
pub const STG_E_SEEKERROR: ::windows_sys::core::HRESULT = -2147287015i32;
pub const STG_E_SHAREREQUIRED: ::windows_sys::core::HRESULT = -2147286778i32;
pub const STG_E_SHAREVIOLATION: ::windows_sys::core::HRESULT = -2147287008i32;
pub const STG_E_STATUS_COPY_PROTECTION_FAILURE: ::windows_sys::core::HRESULT = -2147286267i32;
pub const STG_E_TERMINATED: ::windows_sys::core::HRESULT = -2147286526i32;
pub const STG_E_TOOMANYOPENFILES: ::windows_sys::core::HRESULT = -2147287036i32;
pub const STG_E_UNIMPLEMENTEDFUNCTION: ::windows_sys::core::HRESULT = -2147286786i32;
pub const STG_E_UNKNOWN: ::windows_sys::core::HRESULT = -2147286787i32;
pub const STG_E_WRITEFAULT: ::windows_sys::core::HRESULT = -2147287011i32;
pub const STG_S_BLOCK: ::windows_sys::core::HRESULT = 197121i32;
pub const STG_S_CANNOTCONSOLIDATE: ::windows_sys::core::HRESULT = 197126i32;
pub const STG_S_CONSOLIDATIONFAILED: ::windows_sys::core::HRESULT = 197125i32;
pub const STG_S_CONVERTED: ::windows_sys::core::HRESULT = 197120i32;
pub const STG_S_MONITORING: ::windows_sys::core::HRESULT = 197123i32;
pub const STG_S_MULTIPLEOPENS: ::windows_sys::core::HRESULT = 197124i32;
pub const STG_S_POWER_CYCLE_REQUIRED: ::windows_sys::core::HRESULT = 197127i32;
pub const STG_S_RETRYNOW: ::windows_sys::core::HRESULT = 197122i32;
pub const STORE_ERROR_LICENSE_REVOKED: i32 = 15864i32;
pub const STORE_ERROR_PENDING_COM_TRANSACTION: i32 = 15863i32;
pub const STORE_ERROR_UNLICENSED: i32 = 15861i32;
pub const STORE_ERROR_UNLICENSED_USER: i32 = 15862i32;
pub const STRICT: u32 = 1u32;
pub const SUCCESS: u32 = 0u32;
#[repr(C)]
pub struct SYSTEMTIME {
pub wYear: u16,
pub wMonth: u16,
pub wDayOfWeek: u16,
pub wDay: u16,
pub wHour: u16,
pub wMinute: u16,
pub wSecond: u16,
pub wMilliseconds: u16,
}
impl ::core::marker::Copy for SYSTEMTIME {}
impl ::core::clone::Clone for SYSTEMTIME {
fn clone(&self) -> Self {
*self
}
}
pub const S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG: ::windows_sys::core::HRESULT = 2556505i32;
pub const S_FALSE: ::windows_sys::core::HRESULT = 1i32;
pub const S_OK: ::windows_sys::core::HRESULT = 0i32;
pub const S_STORE_LAUNCHED_FOR_REMEDIATION: ::windows_sys::core::HRESULT = 2556504i32;
pub const TBSIMP_E_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2144796160i32;
pub const TBSIMP_E_CLEANUP_FAILED: ::windows_sys::core::HRESULT = -2144796159i32;
pub const TBSIMP_E_COMMAND_CANCELED: ::windows_sys::core::HRESULT = -2144796149i32;
pub const TBSIMP_E_COMMAND_FAILED: ::windows_sys::core::HRESULT = -2144796143i32;
pub const TBSIMP_E_DUPLICATE_VHANDLE: ::windows_sys::core::HRESULT = -2144796154i32;
pub const TBSIMP_E_HASH_BAD_KEY: ::windows_sys::core::HRESULT = -2144796155i32;
pub const TBSIMP_E_HASH_TABLE_FULL: ::windows_sys::core::HRESULT = -2144796138i32;
pub const TBSIMP_E_INVALID_CONTEXT_HANDLE: ::windows_sys::core::HRESULT = -2144796158i32;
pub const TBSIMP_E_INVALID_CONTEXT_PARAM: ::windows_sys::core::HRESULT = -2144796157i32;
pub const TBSIMP_E_INVALID_OUTPUT_POINTER: ::windows_sys::core::HRESULT = -2144796153i32;
pub const TBSIMP_E_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2144796152i32;
pub const TBSIMP_E_INVALID_RESOURCE: ::windows_sys::core::HRESULT = -2144796140i32;
pub const TBSIMP_E_LIST_NOT_FOUND: ::windows_sys::core::HRESULT = -2144796146i32;
pub const TBSIMP_E_LIST_NO_MORE_ITEMS: ::windows_sys::core::HRESULT = -2144796147i32;
pub const TBSIMP_E_NOTHING_TO_UNLOAD: ::windows_sys::core::HRESULT = -2144796139i32;
pub const TBSIMP_E_NOT_ENOUGH_SPACE: ::windows_sys::core::HRESULT = -2144796145i32;
pub const TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS: ::windows_sys::core::HRESULT = -2144796144i32;
pub const TBSIMP_E_NO_EVENT_LOG: ::windows_sys::core::HRESULT = -2144796133i32;
pub const TBSIMP_E_OUT_OF_MEMORY: ::windows_sys::core::HRESULT = -2144796148i32;
pub const TBSIMP_E_PPI_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144796135i32;
pub const TBSIMP_E_RESOURCE_EXPIRED: ::windows_sys::core::HRESULT = -2144796141i32;
pub const TBSIMP_E_RPC_INIT_FAILED: ::windows_sys::core::HRESULT = -2144796151i32;
pub const TBSIMP_E_SCHEDULER_NOT_RUNNING: ::windows_sys::core::HRESULT = -2144796150i32;
pub const TBSIMP_E_TOO_MANY_RESOURCES: ::windows_sys::core::HRESULT = -2144796136i32;
pub const TBSIMP_E_TOO_MANY_TBS_CONTEXTS: ::windows_sys::core::HRESULT = -2144796137i32;
pub const TBSIMP_E_TPM_ERROR: ::windows_sys::core::HRESULT = -2144796156i32;
pub const TBSIMP_E_TPM_INCOMPATIBLE: ::windows_sys::core::HRESULT = -2144796134i32;
pub const TBSIMP_E_UNKNOWN_ORDINAL: ::windows_sys::core::HRESULT = -2144796142i32;
pub const TBS_E_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2144845806i32;
pub const TBS_E_BAD_PARAMETER: ::windows_sys::core::HRESULT = -2144845822i32;
pub const TBS_E_BUFFER_TOO_LARGE: ::windows_sys::core::HRESULT = -2144845810i32;
pub const TBS_E_COMMAND_CANCELED: ::windows_sys::core::HRESULT = -2144845811i32;
pub const TBS_E_INSUFFICIENT_BUFFER: ::windows_sys::core::HRESULT = -2144845819i32;
pub const TBS_E_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2144845823i32;
pub const TBS_E_INVALID_CONTEXT: ::windows_sys::core::HRESULT = -2144845820i32;
pub const TBS_E_INVALID_CONTEXT_PARAM: ::windows_sys::core::HRESULT = -2144845817i32;
pub const TBS_E_INVALID_OUTPUT_POINTER: ::windows_sys::core::HRESULT = -2144845821i32;
pub const TBS_E_IOERROR: ::windows_sys::core::HRESULT = -2144845818i32;
pub const TBS_E_NO_EVENT_LOG: ::windows_sys::core::HRESULT = -2144845807i32;
pub const TBS_E_OWNERAUTH_NOT_FOUND: ::windows_sys::core::HRESULT = -2144845803i32;
pub const TBS_E_PPI_FUNCTION_UNSUPPORTED: ::windows_sys::core::HRESULT = -2144845804i32;
pub const TBS_E_PPI_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144845812i32;
pub const TBS_E_PROVISIONING_INCOMPLETE: ::windows_sys::core::HRESULT = -2144845802i32;
pub const TBS_E_PROVISIONING_NOT_ALLOWED: ::windows_sys::core::HRESULT = -2144845805i32;
pub const TBS_E_SERVICE_DISABLED: ::windows_sys::core::HRESULT = -2144845808i32;
pub const TBS_E_SERVICE_NOT_RUNNING: ::windows_sys::core::HRESULT = -2144845816i32;
pub const TBS_E_SERVICE_START_PENDING: ::windows_sys::core::HRESULT = -2144845813i32;
pub const TBS_E_TOO_MANY_RESOURCES: ::windows_sys::core::HRESULT = -2144845814i32;
pub const TBS_E_TOO_MANY_TBS_CONTEXTS: ::windows_sys::core::HRESULT = -2144845815i32;
pub const TBS_E_TPM_NOT_FOUND: ::windows_sys::core::HRESULT = -2144845809i32;
pub const TPC_E_INITIALIZE_FAIL: ::windows_sys::core::HRESULT = -2147220957i32;
pub const TPC_E_INVALID_CONFIGURATION: ::windows_sys::core::HRESULT = -2147220935i32;
pub const TPC_E_INVALID_DATA_FROM_RECOGNIZER: ::windows_sys::core::HRESULT = -2147220934i32;
pub const TPC_E_INVALID_INPUT_RECT: ::windows_sys::core::HRESULT = -2147220967i32;
pub const TPC_E_INVALID_PACKET_DESCRIPTION: ::windows_sys::core::HRESULT = -2147220941i32;
pub const TPC_E_INVALID_PROPERTY: ::windows_sys::core::HRESULT = -2147220927i32;
pub const TPC_E_INVALID_RIGHTS: ::windows_sys::core::HRESULT = -2147220938i32;
pub const TPC_E_INVALID_STROKE: ::windows_sys::core::HRESULT = -2147220958i32;
pub const TPC_E_NOT_RELEVANT: ::windows_sys::core::HRESULT = -2147220942i32;
pub const TPC_E_NO_DEFAULT_TABLET: ::windows_sys::core::HRESULT = -2147220974i32;
pub const TPC_E_OUT_OF_ORDER_CALL: ::windows_sys::core::HRESULT = -2147220937i32;
pub const TPC_E_QUEUE_FULL: ::windows_sys::core::HRESULT = -2147220936i32;
pub const TPC_E_RECOGNIZER_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2147220939i32;
pub const TPC_E_UNKNOWN_PROPERTY: ::windows_sys::core::HRESULT = -2147220965i32;
pub const TPC_S_INTERRUPTED: ::windows_sys::core::HRESULT = 262739i32;
pub const TPC_S_NO_DATA_TO_PROCESS: ::windows_sys::core::HRESULT = 262740i32;
pub const TPC_S_TRUNCATED: ::windows_sys::core::HRESULT = 262738i32;
pub const TPMAPI_E_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2144796408i32;
pub const TPMAPI_E_AUTHORIZATION_FAILED: ::windows_sys::core::HRESULT = -2144796407i32;
pub const TPMAPI_E_AUTHORIZATION_REVOKED: ::windows_sys::core::HRESULT = -2144796378i32;
pub const TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144796376i32;
pub const TPMAPI_E_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2144796410i32;
pub const TPMAPI_E_EMPTY_TCG_LOG: ::windows_sys::core::HRESULT = -2144796390i32;
pub const TPMAPI_E_ENCRYPTION_FAILED: ::windows_sys::core::HRESULT = -2144796400i32;
pub const TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL: ::windows_sys::core::HRESULT = -2144796379i32;
pub const TPMAPI_E_FIPS_RNG_CHECK_FAILED: ::windows_sys::core::HRESULT = -2144796391i32;
pub const TPMAPI_E_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2144796409i32;
pub const TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE: ::windows_sys::core::HRESULT = -2144796375i32;
pub const TPMAPI_E_INVALID_CONTEXT_HANDLE: ::windows_sys::core::HRESULT = -2144796406i32;
pub const TPMAPI_E_INVALID_CONTEXT_PARAMS: ::windows_sys::core::HRESULT = -2144796395i32;
pub const TPMAPI_E_INVALID_DELEGATE_BLOB: ::windows_sys::core::HRESULT = -2144796396i32;
pub const TPMAPI_E_INVALID_ENCODING: ::windows_sys::core::HRESULT = -2144796402i32;
pub const TPMAPI_E_INVALID_KEY_BLOB: ::windows_sys::core::HRESULT = -2144796394i32;
pub const TPMAPI_E_INVALID_KEY_PARAMS: ::windows_sys::core::HRESULT = -2144796399i32;
pub const TPMAPI_E_INVALID_KEY_SIZE: ::windows_sys::core::HRESULT = -2144796401i32;
pub const TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB: ::windows_sys::core::HRESULT = -2144796398i32;
pub const TPMAPI_E_INVALID_OUTPUT_POINTER: ::windows_sys::core::HRESULT = -2144796413i32;
pub const TPMAPI_E_INVALID_OWNER_AUTH: ::windows_sys::core::HRESULT = -2144796392i32;
pub const TPMAPI_E_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2144796412i32;
pub const TPMAPI_E_INVALID_PCR_DATA: ::windows_sys::core::HRESULT = -2144796393i32;
pub const TPMAPI_E_INVALID_PCR_INDEX: ::windows_sys::core::HRESULT = -2144796397i32;
pub const TPMAPI_E_INVALID_POLICYAUTH_BLOB_TYPE: ::windows_sys::core::HRESULT = -2144796370i32;
pub const TPMAPI_E_INVALID_STATE: ::windows_sys::core::HRESULT = -2144796416i32;
pub const TPMAPI_E_INVALID_TCG_LOG_ENTRY: ::windows_sys::core::HRESULT = -2144796389i32;
pub const TPMAPI_E_INVALID_TPM_VERSION: ::windows_sys::core::HRESULT = -2144796371i32;
pub const TPMAPI_E_MALFORMED_AUTHORIZATION_KEY: ::windows_sys::core::HRESULT = -2144796377i32;
pub const TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER: ::windows_sys::core::HRESULT = -2144796373i32;
pub const TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY: ::windows_sys::core::HRESULT = -2144796374i32;
pub const TPMAPI_E_MESSAGE_TOO_LARGE: ::windows_sys::core::HRESULT = -2144796403i32;
pub const TPMAPI_E_NOT_ENOUGH_DATA: ::windows_sys::core::HRESULT = -2144796415i32;
pub const TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND: ::windows_sys::core::HRESULT = -2144796382i32;
pub const TPMAPI_E_NV_BITS_NOT_DEFINED: ::windows_sys::core::HRESULT = -2144796385i32;
pub const TPMAPI_E_NV_BITS_NOT_READY: ::windows_sys::core::HRESULT = -2144796384i32;
pub const TPMAPI_E_OUT_OF_MEMORY: ::windows_sys::core::HRESULT = -2144796411i32;
pub const TPMAPI_E_OWNER_AUTH_NOT_NULL: ::windows_sys::core::HRESULT = -2144796380i32;
pub const TPMAPI_E_POLICY_DENIES_OPERATION: ::windows_sys::core::HRESULT = -2144796386i32;
pub const TPMAPI_E_SEALING_KEY_CHANGED: ::windows_sys::core::HRESULT = -2144796372i32;
pub const TPMAPI_E_SEALING_KEY_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2144796383i32;
pub const TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2144796381i32;
pub const TPMAPI_E_TBS_COMMUNICATION_ERROR: ::windows_sys::core::HRESULT = -2144796405i32;
pub const TPMAPI_E_TCG_INVALID_DIGEST_ENTRY: ::windows_sys::core::HRESULT = -2144796387i32;
pub const TPMAPI_E_TCG_SEPARATOR_ABSENT: ::windows_sys::core::HRESULT = -2144796388i32;
pub const TPMAPI_E_TOO_MUCH_DATA: ::windows_sys::core::HRESULT = -2144796414i32;
pub const TPMAPI_E_TPM_COMMAND_ERROR: ::windows_sys::core::HRESULT = -2144796404i32;
pub const TPM_20_E_ASYMMETRIC: ::windows_sys::core::HRESULT = -2144862079i32;
pub const TPM_20_E_ATTRIBUTES: ::windows_sys::core::HRESULT = -2144862078i32;
pub const TPM_20_E_AUTHSIZE: ::windows_sys::core::HRESULT = -2144861884i32;
pub const TPM_20_E_AUTH_CONTEXT: ::windows_sys::core::HRESULT = -2144861883i32;
pub const TPM_20_E_AUTH_FAIL: ::windows_sys::core::HRESULT = -2144862066i32;
pub const TPM_20_E_AUTH_MISSING: ::windows_sys::core::HRESULT = -2144861915i32;
pub const TPM_20_E_AUTH_TYPE: ::windows_sys::core::HRESULT = -2144861916i32;
pub const TPM_20_E_AUTH_UNAVAILABLE: ::windows_sys::core::HRESULT = -2144861905i32;
pub const TPM_20_E_BAD_AUTH: ::windows_sys::core::HRESULT = -2144862046i32;
pub const TPM_20_E_BAD_CONTEXT: ::windows_sys::core::HRESULT = -2144861872i32;
pub const TPM_20_E_BINDING: ::windows_sys::core::HRESULT = -2144862043i32;
pub const TPM_20_E_CANCELED: ::windows_sys::core::HRESULT = -2144859895i32;
pub const TPM_20_E_COMMAND_CODE: ::windows_sys::core::HRESULT = -2144861885i32;
pub const TPM_20_E_COMMAND_SIZE: ::windows_sys::core::HRESULT = -2144861886i32;
pub const TPM_20_E_CONTEXT_GAP: ::windows_sys::core::HRESULT = -2144859903i32;
pub const TPM_20_E_CPHASH: ::windows_sys::core::HRESULT = -2144861871i32;
pub const TPM_20_E_CURVE: ::windows_sys::core::HRESULT = -2144862042i32;
pub const TPM_20_E_DISABLED: ::windows_sys::core::HRESULT = -2144861920i32;
pub const TPM_20_E_ECC_CURVE: ::windows_sys::core::HRESULT = -2144861917i32;
pub const TPM_20_E_ECC_POINT: ::windows_sys::core::HRESULT = -2144862041i32;
pub const TPM_20_E_EXCLUSIVE: ::windows_sys::core::HRESULT = -2144861919i32;
pub const TPM_20_E_EXPIRED: ::windows_sys::core::HRESULT = -2144862045i32;
pub const TPM_20_E_FAILURE: ::windows_sys::core::HRESULT = -2144861951i32;
pub const TPM_20_E_HANDLE: ::windows_sys::core::HRESULT = -2144862069i32;
pub const TPM_20_E_HASH: ::windows_sys::core::HRESULT = -2144862077i32;
pub const TPM_20_E_HIERARCHY: ::windows_sys::core::HRESULT = -2144862075i32;
pub const TPM_20_E_HMAC: ::windows_sys::core::HRESULT = -2144861927i32;
pub const TPM_20_E_INITIALIZE: ::windows_sys::core::HRESULT = -2144861952i32;
pub const TPM_20_E_INSUFFICIENT: ::windows_sys::core::HRESULT = -2144862054i32;
pub const TPM_20_E_INTEGRITY: ::windows_sys::core::HRESULT = -2144862049i32;
pub const TPM_20_E_KDF: ::windows_sys::core::HRESULT = -2144862068i32;
pub const TPM_20_E_KEY: ::windows_sys::core::HRESULT = -2144862052i32;
pub const TPM_20_E_KEY_SIZE: ::windows_sys::core::HRESULT = -2144862073i32;
pub const TPM_20_E_LOCALITY: ::windows_sys::core::HRESULT = -2144859897i32;
pub const TPM_20_E_LOCKOUT: ::windows_sys::core::HRESULT = -2144859871i32;
pub const TPM_20_E_MEMORY: ::windows_sys::core::HRESULT = -2144859900i32;
pub const TPM_20_E_MGF: ::windows_sys::core::HRESULT = -2144862072i32;
pub const TPM_20_E_MODE: ::windows_sys::core::HRESULT = -2144862071i32;
pub const TPM_20_E_NEEDS_TEST: ::windows_sys::core::HRESULT = -2144861869i32;
pub const TPM_20_E_NONCE: ::windows_sys::core::HRESULT = -2144862065i32;
pub const TPM_20_E_NO_RESULT: ::windows_sys::core::HRESULT = -2144861868i32;
pub const TPM_20_E_NV_AUTHORIZATION: ::windows_sys::core::HRESULT = -2144861879i32;
pub const TPM_20_E_NV_DEFINED: ::windows_sys::core::HRESULT = -2144861876i32;
pub const TPM_20_E_NV_LOCKED: ::windows_sys::core::HRESULT = -2144861880i32;
pub const TPM_20_E_NV_RANGE: ::windows_sys::core::HRESULT = -2144861882i32;
pub const TPM_20_E_NV_RATE: ::windows_sys::core::HRESULT = -2144859872i32;
pub const TPM_20_E_NV_SIZE: ::windows_sys::core::HRESULT = -2144861881i32;
pub const TPM_20_E_NV_SPACE: ::windows_sys::core::HRESULT = -2144861877i32;
pub const TPM_20_E_NV_UNAVAILABLE: ::windows_sys::core::HRESULT = -2144859869i32;
pub const TPM_20_E_NV_UNINITIALIZED: ::windows_sys::core::HRESULT = -2144861878i32;
pub const TPM_20_E_OBJECT_HANDLES: ::windows_sys::core::HRESULT = -2144859898i32;
pub const TPM_20_E_OBJECT_MEMORY: ::windows_sys::core::HRESULT = -2144859902i32;
pub const TPM_20_E_PARENT: ::windows_sys::core::HRESULT = -2144861870i32;
pub const TPM_20_E_PCR: ::windows_sys::core::HRESULT = -2144861913i32;
pub const TPM_20_E_PCR_CHANGED: ::windows_sys::core::HRESULT = -2144861912i32;
pub const TPM_20_E_POLICY: ::windows_sys::core::HRESULT = -2144861914i32;
pub const TPM_20_E_POLICY_CC: ::windows_sys::core::HRESULT = -2144862044i32;
pub const TPM_20_E_POLICY_FAIL: ::windows_sys::core::HRESULT = -2144862051i32;
pub const TPM_20_E_PP: ::windows_sys::core::HRESULT = -2144862064i32;
pub const TPM_20_E_PRIVATE: ::windows_sys::core::HRESULT = -2144861941i32;
pub const TPM_20_E_RANGE: ::windows_sys::core::HRESULT = -2144862067i32;
pub const TPM_20_E_REBOOT: ::windows_sys::core::HRESULT = -2144861904i32;
pub const TPM_20_E_RESERVED_BITS: ::windows_sys::core::HRESULT = -2144862047i32;
pub const TPM_20_E_RETRY: ::windows_sys::core::HRESULT = -2144859870i32;
pub const TPM_20_E_SCHEME: ::windows_sys::core::HRESULT = -2144862062i32;
pub const TPM_20_E_SELECTOR: ::windows_sys::core::HRESULT = -2144862056i32;
pub const TPM_20_E_SENSITIVE: ::windows_sys::core::HRESULT = -2144861867i32;
pub const TPM_20_E_SEQUENCE: ::windows_sys::core::HRESULT = -2144861949i32;
pub const TPM_20_E_SESSION_HANDLES: ::windows_sys::core::HRESULT = -2144859899i32;
pub const TPM_20_E_SESSION_MEMORY: ::windows_sys::core::HRESULT = -2144859901i32;
pub const TPM_20_E_SIGNATURE: ::windows_sys::core::HRESULT = -2144862053i32;
pub const TPM_20_E_SIZE: ::windows_sys::core::HRESULT = -2144862059i32;
pub const TPM_20_E_SYMMETRIC: ::windows_sys::core::HRESULT = -2144862058i32;
pub const TPM_20_E_TAG: ::windows_sys::core::HRESULT = -2144862057i32;
pub const TPM_20_E_TESTING: ::windows_sys::core::HRESULT = -2144859894i32;
pub const TPM_20_E_TICKET: ::windows_sys::core::HRESULT = -2144862048i32;
pub const TPM_20_E_TOO_MANY_CONTEXTS: ::windows_sys::core::HRESULT = -2144861906i32;
pub const TPM_20_E_TYPE: ::windows_sys::core::HRESULT = -2144862070i32;
pub const TPM_20_E_UNBALANCED: ::windows_sys::core::HRESULT = -2144861903i32;
pub const TPM_20_E_UPGRADE: ::windows_sys::core::HRESULT = -2144861907i32;
pub const TPM_20_E_VALUE: ::windows_sys::core::HRESULT = -2144862076i32;
pub const TPM_20_E_YIELDED: ::windows_sys::core::HRESULT = -2144859896i32;
pub const TPM_E_AREA_LOCKED: ::windows_sys::core::HRESULT = -2144862148i32;
pub const TPM_E_ATTESTATION_CHALLENGE_NOT_SET: ::windows_sys::core::HRESULT = -2144795630i32;
pub const TPM_E_AUDITFAILURE: ::windows_sys::core::HRESULT = -2144862204i32;
pub const TPM_E_AUDITFAIL_SUCCESSFUL: ::windows_sys::core::HRESULT = -2144862159i32;
pub const TPM_E_AUDITFAIL_UNSUCCESSFUL: ::windows_sys::core::HRESULT = -2144862160i32;
pub const TPM_E_AUTH2FAIL: ::windows_sys::core::HRESULT = -2144862179i32;
pub const TPM_E_AUTHFAIL: ::windows_sys::core::HRESULT = -2144862207i32;
pub const TPM_E_AUTH_CONFLICT: ::windows_sys::core::HRESULT = -2144862149i32;
pub const TPM_E_BADCONTEXT: ::windows_sys::core::HRESULT = -2144862118i32;
pub const TPM_E_BADINDEX: ::windows_sys::core::HRESULT = -2144862206i32;
pub const TPM_E_BADTAG: ::windows_sys::core::HRESULT = -2144862178i32;
pub const TPM_E_BAD_ATTRIBUTES: ::windows_sys::core::HRESULT = -2144862142i32;
pub const TPM_E_BAD_COUNTER: ::windows_sys::core::HRESULT = -2144862139i32;
pub const TPM_E_BAD_DATASIZE: ::windows_sys::core::HRESULT = -2144862165i32;
pub const TPM_E_BAD_DELEGATE: ::windows_sys::core::HRESULT = -2144862119i32;
pub const TPM_E_BAD_HANDLE: ::windows_sys::core::HRESULT = -2144862120i32;
pub const TPM_E_BAD_KEY_PROPERTY: ::windows_sys::core::HRESULT = -2144862168i32;
pub const TPM_E_BAD_LOCALITY: ::windows_sys::core::HRESULT = -2144862147i32;
pub const TPM_E_BAD_MIGRATION: ::windows_sys::core::HRESULT = -2144862167i32;
pub const TPM_E_BAD_MODE: ::windows_sys::core::HRESULT = -2144862164i32;
pub const TPM_E_BAD_ORDINAL: ::windows_sys::core::HRESULT = -2144862198i32;
pub const TPM_E_BAD_PARAMETER: ::windows_sys::core::HRESULT = -2144862205i32;
pub const TPM_E_BAD_PARAM_SIZE: ::windows_sys::core::HRESULT = -2144862183i32;
pub const TPM_E_BAD_PRESENCE: ::windows_sys::core::HRESULT = -2144862163i32;
pub const TPM_E_BAD_SCHEME: ::windows_sys::core::HRESULT = -2144862166i32;
pub const TPM_E_BAD_SIGNATURE: ::windows_sys::core::HRESULT = -2144862110i32;
pub const TPM_E_BAD_TYPE: ::windows_sys::core::HRESULT = -2144862156i32;
pub const TPM_E_BAD_VERSION: ::windows_sys::core::HRESULT = -2144862162i32;
pub const TPM_E_BUFFER_LENGTH_MISMATCH: ::windows_sys::core::HRESULT = -2144795618i32;
pub const TPM_E_CLAIM_TYPE_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144795620i32;
pub const TPM_E_CLEAR_DISABLED: ::windows_sys::core::HRESULT = -2144862203i32;
pub const TPM_E_COMMAND_BLOCKED: ::windows_sys::core::HRESULT = -2144861184i32;
pub const TPM_E_CONTEXT_GAP: ::windows_sys::core::HRESULT = -2144862137i32;
pub const TPM_E_DAA_INPUT_DATA0: ::windows_sys::core::HRESULT = -2144862127i32;
pub const TPM_E_DAA_INPUT_DATA1: ::windows_sys::core::HRESULT = -2144862126i32;
pub const TPM_E_DAA_ISSUER_SETTINGS: ::windows_sys::core::HRESULT = -2144862125i32;
pub const TPM_E_DAA_ISSUER_VALIDITY: ::windows_sys::core::HRESULT = -2144862122i32;
pub const TPM_E_DAA_RESOURCES: ::windows_sys::core::HRESULT = -2144862128i32;
pub const TPM_E_DAA_STAGE: ::windows_sys::core::HRESULT = -2144862123i32;
pub const TPM_E_DAA_TPM_SETTINGS: ::windows_sys::core::HRESULT = -2144862124i32;
pub const TPM_E_DAA_WRONG_W: ::windows_sys::core::HRESULT = -2144862121i32;
pub const TPM_E_DEACTIVATED: ::windows_sys::core::HRESULT = -2144862202i32;
pub const TPM_E_DECRYPT_ERROR: ::windows_sys::core::HRESULT = -2144862175i32;
pub const TPM_E_DEFEND_LOCK_RUNNING: ::windows_sys::core::HRESULT = -2144860157i32;
pub const TPM_E_DELEGATE_ADMIN: ::windows_sys::core::HRESULT = -2144862131i32;
pub const TPM_E_DELEGATE_FAMILY: ::windows_sys::core::HRESULT = -2144862132i32;
pub const TPM_E_DELEGATE_LOCK: ::windows_sys::core::HRESULT = -2144862133i32;
pub const TPM_E_DISABLED: ::windows_sys::core::HRESULT = -2144862201i32;
pub const TPM_E_DISABLED_CMD: ::windows_sys::core::HRESULT = -2144862200i32;
pub const TPM_E_DOING_SELFTEST: ::windows_sys::core::HRESULT = -2144860158i32;
pub const TPM_E_DUPLICATE_VHANDLE: ::windows_sys::core::HRESULT = -2144861182i32;
pub const TPM_E_EMBEDDED_COMMAND_BLOCKED: ::windows_sys::core::HRESULT = -2144861181i32;
pub const TPM_E_EMBEDDED_COMMAND_UNSUPPORTED: ::windows_sys::core::HRESULT = -2144861180i32;
pub const TPM_E_ENCRYPT_ERROR: ::windows_sys::core::HRESULT = -2144862176i32;
pub const TPM_E_ERROR_MASK: ::windows_sys::core::HRESULT = -2144862208i32;
pub const TPM_E_FAIL: ::windows_sys::core::HRESULT = -2144862199i32;
pub const TPM_E_FAILEDSELFTEST: ::windows_sys::core::HRESULT = -2144862180i32;
pub const TPM_E_FAMILYCOUNT: ::windows_sys::core::HRESULT = -2144862144i32;
pub const TPM_E_INAPPROPRIATE_ENC: ::windows_sys::core::HRESULT = -2144862194i32;
pub const TPM_E_INAPPROPRIATE_SIG: ::windows_sys::core::HRESULT = -2144862169i32;
pub const TPM_E_INSTALL_DISABLED: ::windows_sys::core::HRESULT = -2144862197i32;
pub const TPM_E_INVALID_AUTHHANDLE: ::windows_sys::core::HRESULT = -2144862174i32;
pub const TPM_E_INVALID_FAMILY: ::windows_sys::core::HRESULT = -2144862153i32;
pub const TPM_E_INVALID_HANDLE: ::windows_sys::core::HRESULT = -2144861183i32;
pub const TPM_E_INVALID_KEYHANDLE: ::windows_sys::core::HRESULT = -2144862196i32;
pub const TPM_E_INVALID_KEYUSAGE: ::windows_sys::core::HRESULT = -2144862172i32;
pub const TPM_E_INVALID_OWNER_AUTH: ::windows_sys::core::HRESULT = -2144795135i32;
pub const TPM_E_INVALID_PCR_INFO: ::windows_sys::core::HRESULT = -2144862192i32;
pub const TPM_E_INVALID_POSTINIT: ::windows_sys::core::HRESULT = -2144862170i32;
pub const TPM_E_INVALID_RESOURCE: ::windows_sys::core::HRESULT = -2144862155i32;
pub const TPM_E_INVALID_STRUCTURE: ::windows_sys::core::HRESULT = -2144862141i32;
pub const TPM_E_IOERROR: ::windows_sys::core::HRESULT = -2144862177i32;
pub const TPM_E_KEYNOTFOUND: ::windows_sys::core::HRESULT = -2144862195i32;
pub const TPM_E_KEY_ALREADY_FINALIZED: ::windows_sys::core::HRESULT = -2144795628i32;
pub const TPM_E_KEY_NOTSUPPORTED: ::windows_sys::core::HRESULT = -2144862150i32;
pub const TPM_E_KEY_NOT_AUTHENTICATED: ::windows_sys::core::HRESULT = -2144795624i32;
pub const TPM_E_KEY_NOT_FINALIZED: ::windows_sys::core::HRESULT = -2144795631i32;
pub const TPM_E_KEY_NOT_LOADED: ::windows_sys::core::HRESULT = -2144795633i32;
pub const TPM_E_KEY_NOT_SIGNING_KEY: ::windows_sys::core::HRESULT = -2144795622i32;
pub const TPM_E_KEY_OWNER_CONTROL: ::windows_sys::core::HRESULT = -2144862140i32;
pub const TPM_E_KEY_USAGE_POLICY_INVALID: ::windows_sys::core::HRESULT = -2144795626i32;
pub const TPM_E_KEY_USAGE_POLICY_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144795627i32;
pub const TPM_E_LOCKED_OUT: ::windows_sys::core::HRESULT = -2144795621i32;
pub const TPM_E_MAXNVWRITES: ::windows_sys::core::HRESULT = -2144862136i32;
pub const TPM_E_MA_AUTHORITY: ::windows_sys::core::HRESULT = -2144862113i32;
pub const TPM_E_MA_DESTINATION: ::windows_sys::core::HRESULT = -2144862115i32;
pub const TPM_E_MA_SOURCE: ::windows_sys::core::HRESULT = -2144862114i32;
pub const TPM_E_MA_TICKET_SIGNATURE: ::windows_sys::core::HRESULT = -2144862116i32;
pub const TPM_E_MIGRATEFAIL: ::windows_sys::core::HRESULT = -2144862193i32;
pub const TPM_E_NEEDS_SELFTEST: ::windows_sys::core::HRESULT = -2144860159i32;
pub const TPM_E_NOCONTEXTSPACE: ::windows_sys::core::HRESULT = -2144862109i32;
pub const TPM_E_NOOPERATOR: ::windows_sys::core::HRESULT = -2144862135i32;
pub const TPM_E_NOSPACE: ::windows_sys::core::HRESULT = -2144862191i32;
pub const TPM_E_NOSRK: ::windows_sys::core::HRESULT = -2144862190i32;
pub const TPM_E_NOTFIPS: ::windows_sys::core::HRESULT = -2144862154i32;
pub const TPM_E_NOTLOCAL: ::windows_sys::core::HRESULT = -2144862157i32;
pub const TPM_E_NOTRESETABLE: ::windows_sys::core::HRESULT = -2144862158i32;
pub const TPM_E_NOTSEALED_BLOB: ::windows_sys::core::HRESULT = -2144862189i32;
pub const TPM_E_NOT_FULLWRITE: ::windows_sys::core::HRESULT = -2144862138i32;
pub const TPM_E_NOT_PCR_BOUND: ::windows_sys::core::HRESULT = -2144795629i32;
pub const TPM_E_NO_ENDORSEMENT: ::windows_sys::core::HRESULT = -2144862173i32;
pub const TPM_E_NO_KEY_CERTIFICATION: ::windows_sys::core::HRESULT = -2144795632i32;
pub const TPM_E_NO_NV_PERMISSION: ::windows_sys::core::HRESULT = -2144862152i32;
pub const TPM_E_NO_WRAP_TRANSPORT: ::windows_sys::core::HRESULT = -2144862161i32;
pub const TPM_E_OWNER_CONTROL: ::windows_sys::core::HRESULT = -2144862129i32;
pub const TPM_E_OWNER_SET: ::windows_sys::core::HRESULT = -2144862188i32;
pub const TPM_E_PCP_AUTHENTICATION_FAILED: ::windows_sys::core::HRESULT = -2144795640i32;
pub const TPM_E_PCP_AUTHENTICATION_IGNORED: ::windows_sys::core::HRESULT = -2144795639i32;
pub const TPM_E_PCP_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2144795642i32;
pub const TPM_E_PCP_DEVICE_NOT_READY: ::windows_sys::core::HRESULT = -2144795647i32;
pub const TPM_E_PCP_ERROR_MASK: ::windows_sys::core::HRESULT = -2144795648i32;
pub const TPM_E_PCP_FLAG_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144795644i32;
pub const TPM_E_PCP_IFX_RSA_KEY_CREATION_BLOCKED: ::windows_sys::core::HRESULT = -2144795617i32;
pub const TPM_E_PCP_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2144795641i32;
pub const TPM_E_PCP_INVALID_HANDLE: ::windows_sys::core::HRESULT = -2144795646i32;
pub const TPM_E_PCP_INVALID_PARAMETER: ::windows_sys::core::HRESULT = -2144795645i32;
pub const TPM_E_PCP_KEY_HANDLE_INVALIDATED: ::windows_sys::core::HRESULT = -2144795614i32;
pub const TPM_E_PCP_KEY_NOT_AIK: ::windows_sys::core::HRESULT = -2144795623i32;
pub const TPM_E_PCP_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144795643i32;
pub const TPM_E_PCP_PLATFORM_CLAIM_MAY_BE_OUTDATED: ::windows_sys::core::HRESULT = 1076429860i32;
pub const TPM_E_PCP_PLATFORM_CLAIM_OUTDATED: ::windows_sys::core::HRESULT = 1076429861i32;
pub const TPM_E_PCP_PLATFORM_CLAIM_REBOOT: ::windows_sys::core::HRESULT = 1076429862i32;
pub const TPM_E_PCP_POLICY_NOT_FOUND: ::windows_sys::core::HRESULT = -2144795638i32;
pub const TPM_E_PCP_PROFILE_NOT_FOUND: ::windows_sys::core::HRESULT = -2144795637i32;
pub const TPM_E_PCP_RAW_POLICY_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144795615i32;
pub const TPM_E_PCP_TICKET_MISSING: ::windows_sys::core::HRESULT = -2144795616i32;
pub const TPM_E_PCP_UNSUPPORTED_PSS_SALT: ::windows_sys::core::HRESULT = 1076429859i32;
pub const TPM_E_PCP_VALIDATION_FAILED: ::windows_sys::core::HRESULT = -2144795636i32;
pub const TPM_E_PCP_WRONG_PARENT: ::windows_sys::core::HRESULT = -2144795634i32;
pub const TPM_E_PERMANENTEK: ::windows_sys::core::HRESULT = -2144862111i32;
pub const TPM_E_PER_NOWRITE: ::windows_sys::core::HRESULT = -2144862145i32;
pub const TPM_E_PPI_ACPI_FAILURE: ::windows_sys::core::HRESULT = -2144795904i32;
pub const TPM_E_PPI_BIOS_FAILURE: ::windows_sys::core::HRESULT = -2144795902i32;
pub const TPM_E_PPI_BLOCKED_IN_BIOS: ::windows_sys::core::HRESULT = -2144795900i32;
pub const TPM_E_PPI_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144795901i32;
pub const TPM_E_PPI_USER_ABORT: ::windows_sys::core::HRESULT = -2144795903i32;
pub const TPM_E_PROVISIONING_INCOMPLETE: ::windows_sys::core::HRESULT = -2144795136i32;
pub const TPM_E_READ_ONLY: ::windows_sys::core::HRESULT = -2144862146i32;
pub const TPM_E_REQUIRES_SIGN: ::windows_sys::core::HRESULT = -2144862151i32;
pub const TPM_E_RESOURCEMISSING: ::windows_sys::core::HRESULT = -2144862134i32;
pub const TPM_E_RESOURCES: ::windows_sys::core::HRESULT = -2144862187i32;
pub const TPM_E_RETRY: ::windows_sys::core::HRESULT = -2144860160i32;
pub const TPM_E_SHA_ERROR: ::windows_sys::core::HRESULT = -2144862181i32;
pub const TPM_E_SHA_THREAD: ::windows_sys::core::HRESULT = -2144862182i32;
pub const TPM_E_SHORTRANDOM: ::windows_sys::core::HRESULT = -2144862186i32;
pub const TPM_E_SIZE: ::windows_sys::core::HRESULT = -2144862185i32;
pub const TPM_E_SOFT_KEY_ERROR: ::windows_sys::core::HRESULT = -2144795625i32;
pub const TPM_E_TOOMANYCONTEXTS: ::windows_sys::core::HRESULT = -2144862117i32;
pub const TPM_E_TOO_MUCH_DATA: ::windows_sys::core::HRESULT = -2144795134i32;
pub const TPM_E_TRANSPORT_NOTEXCLUSIVE: ::windows_sys::core::HRESULT = -2144862130i32;
pub const TPM_E_VERSION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144795619i32;
pub const TPM_E_WRITE_LOCKED: ::windows_sys::core::HRESULT = -2144862143i32;
pub const TPM_E_WRONGPCRVAL: ::windows_sys::core::HRESULT = -2144862184i32;
pub const TPM_E_WRONG_ENTITYTYPE: ::windows_sys::core::HRESULT = -2144862171i32;
pub const TPM_E_ZERO_EXHAUST_ENABLED: ::windows_sys::core::HRESULT = -2144795392i32;
pub const TRUST_E_ACTION_UNKNOWN: ::windows_sys::core::HRESULT = -2146762750i32;
pub const TRUST_E_BAD_DIGEST: ::windows_sys::core::HRESULT = -2146869232i32;
pub const TRUST_E_BASIC_CONSTRAINTS: ::windows_sys::core::HRESULT = -2146869223i32;
pub const TRUST_E_CERT_SIGNATURE: ::windows_sys::core::HRESULT = -2146869244i32;
pub const TRUST_E_COUNTER_SIGNER: ::windows_sys::core::HRESULT = -2146869245i32;
pub const TRUST_E_EXPLICIT_DISTRUST: ::windows_sys::core::HRESULT = -2146762479i32;
pub const TRUST_E_FAIL: ::windows_sys::core::HRESULT = -2146762485i32;
pub const TRUST_E_FINANCIAL_CRITERIA: ::windows_sys::core::HRESULT = -2146869218i32;
pub const TRUST_E_MALFORMED_SIGNATURE: ::windows_sys::core::HRESULT = -2146869231i32;
pub const TRUST_E_NOSIGNATURE: ::windows_sys::core::HRESULT = -2146762496i32;
pub const TRUST_E_NO_SIGNER_CERT: ::windows_sys::core::HRESULT = -2146869246i32;
pub const TRUST_E_PROVIDER_UNKNOWN: ::windows_sys::core::HRESULT = -2146762751i32;
pub const TRUST_E_SUBJECT_FORM_UNKNOWN: ::windows_sys::core::HRESULT = -2146762749i32;
pub const TRUST_E_SUBJECT_NOT_TRUSTED: ::windows_sys::core::HRESULT = -2146762748i32;
pub const TRUST_E_SYSTEM_ERROR: ::windows_sys::core::HRESULT = -2146869247i32;
pub const TRUST_E_TIME_STAMP: ::windows_sys::core::HRESULT = -2146869243i32;
pub const TYPE_E_AMBIGUOUSNAME: ::windows_sys::core::HRESULT = -2147319764i32;
pub const TYPE_E_BADMODULEKIND: ::windows_sys::core::HRESULT = -2147317571i32;
pub const TYPE_E_BUFFERTOOSMALL: ::windows_sys::core::HRESULT = -2147319786i32;
pub const TYPE_E_CANTCREATETMPFILE: ::windows_sys::core::HRESULT = -2147316573i32;
pub const TYPE_E_CANTLOADLIBRARY: ::windows_sys::core::HRESULT = -2147312566i32;
pub const TYPE_E_CIRCULARTYPE: ::windows_sys::core::HRESULT = -2147312508i32;
pub const TYPE_E_DLLFUNCTIONNOTFOUND: ::windows_sys::core::HRESULT = -2147319761i32;
pub const TYPE_E_DUPLICATEID: ::windows_sys::core::HRESULT = -2147317562i32;
pub const TYPE_E_ELEMENTNOTFOUND: ::windows_sys::core::HRESULT = -2147319765i32;
pub const TYPE_E_FIELDNOTFOUND: ::windows_sys::core::HRESULT = -2147319785i32;
pub const TYPE_E_INCONSISTENTPROPFUNCS: ::windows_sys::core::HRESULT = -2147312509i32;
pub const TYPE_E_INVALIDID: ::windows_sys::core::HRESULT = -2147317553i32;
pub const TYPE_E_INVALIDSTATE: ::windows_sys::core::HRESULT = -2147319767i32;
pub const TYPE_E_INVDATAREAD: ::windows_sys::core::HRESULT = -2147319784i32;
pub const TYPE_E_IOERROR: ::windows_sys::core::HRESULT = -2147316574i32;
pub const TYPE_E_LIBNOTREGISTERED: ::windows_sys::core::HRESULT = -2147319779i32;
pub const TYPE_E_NAMECONFLICT: ::windows_sys::core::HRESULT = -2147319763i32;
pub const TYPE_E_OUTOFBOUNDS: ::windows_sys::core::HRESULT = -2147316575i32;
pub const TYPE_E_QUALIFIEDNAMEDISALLOWED: ::windows_sys::core::HRESULT = -2147319768i32;
pub const TYPE_E_REGISTRYACCESS: ::windows_sys::core::HRESULT = -2147319780i32;
pub const TYPE_E_SIZETOOBIG: ::windows_sys::core::HRESULT = -2147317563i32;
pub const TYPE_E_TYPEMISMATCH: ::windows_sys::core::HRESULT = -2147316576i32;
pub const TYPE_E_UNDEFINEDTYPE: ::windows_sys::core::HRESULT = -2147319769i32;
pub const TYPE_E_UNKNOWNLCID: ::windows_sys::core::HRESULT = -2147319762i32;
pub const TYPE_E_UNSUPFORMAT: ::windows_sys::core::HRESULT = -2147319783i32;
pub const TYPE_E_WRONGTYPEKIND: ::windows_sys::core::HRESULT = -2147319766i32;
pub const UCEERR_BLOCKSFULL: ::windows_sys::core::HRESULT = -2003303415i32;
pub const UCEERR_CHANNELSYNCABANDONED: ::windows_sys::core::HRESULT = -2003303404i32;
pub const UCEERR_CHANNELSYNCTIMEDOUT: ::windows_sys::core::HRESULT = -2003303405i32;
pub const UCEERR_COMMANDTRANSPORTDENIED: ::windows_sys::core::HRESULT = -2003303400i32;
pub const UCEERR_CONNECTIONIDLOOKUPFAILED: ::windows_sys::core::HRESULT = -2003303416i32;
pub const UCEERR_CTXSTACKFRSTTARGETNULL: ::windows_sys::core::HRESULT = -2003303417i32;
pub const UCEERR_FEEDBACK_UNSUPPORTED: ::windows_sys::core::HRESULT = -2003303401i32;
pub const UCEERR_GRAPHICSSTREAMALREADYOPEN: ::windows_sys::core::HRESULT = -2003303392i32;
pub const UCEERR_GRAPHICSSTREAMUNAVAILABLE: ::windows_sys::core::HRESULT = -2003303399i32;
pub const UCEERR_HANDLELOOKUPFAILED: ::windows_sys::core::HRESULT = -2003303419i32;
pub const UCEERR_ILLEGALHANDLE: ::windows_sys::core::HRESULT = -2003303420i32;
pub const UCEERR_ILLEGALPACKET: ::windows_sys::core::HRESULT = -2003303422i32;
pub const UCEERR_ILLEGALRECORDTYPE: ::windows_sys::core::HRESULT = -2003303412i32;
pub const UCEERR_INVALIDPACKETHEADER: ::windows_sys::core::HRESULT = -2003303424i32;
pub const UCEERR_MALFORMEDPACKET: ::windows_sys::core::HRESULT = -2003303421i32;
pub const UCEERR_MEMORYFAILURE: ::windows_sys::core::HRESULT = -2003303414i32;
pub const UCEERR_MISSINGBEGINCOMMAND: ::windows_sys::core::HRESULT = -2003303406i32;
pub const UCEERR_MISSINGENDCOMMAND: ::windows_sys::core::HRESULT = -2003303407i32;
pub const UCEERR_NO_MULTIPLE_WORKER_THREADS: ::windows_sys::core::HRESULT = -2003303409i32;
pub const UCEERR_OUTOFHANDLES: ::windows_sys::core::HRESULT = -2003303411i32;
pub const UCEERR_PACKETRECORDOUTOFRANGE: ::windows_sys::core::HRESULT = -2003303413i32;
pub const UCEERR_PARTITION_ZOMBIED: ::windows_sys::core::HRESULT = -2003303389i32;
pub const UCEERR_REMOTINGNOTSUPPORTED: ::windows_sys::core::HRESULT = -2003303408i32;
pub const UCEERR_RENDERTHREADFAILURE: ::windows_sys::core::HRESULT = -2003303418i32;
pub const UCEERR_TRANSPORTDISCONNECTED: ::windows_sys::core::HRESULT = -2003303391i32;
pub const UCEERR_TRANSPORTOVERLOADED: ::windows_sys::core::HRESULT = -2003303390i32;
pub const UCEERR_TRANSPORTUNAVAILABLE: ::windows_sys::core::HRESULT = -2003303402i32;
pub const UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED: ::windows_sys::core::HRESULT = -2003303410i32;
pub const UCEERR_UNKNOWNPACKET: ::windows_sys::core::HRESULT = -2003303423i32;
pub const UCEERR_UNSUPPORTEDTRANSPORTVERSION: ::windows_sys::core::HRESULT = -2003303403i32;
pub const UI_E_AMBIGUOUS_MATCH: ::windows_sys::core::HRESULT = -2144731126i32;
pub const UI_E_BOOLEAN_EXPECTED: ::windows_sys::core::HRESULT = -2144731128i32;
pub const UI_E_CREATE_FAILED: ::windows_sys::core::HRESULT = -2144731135i32;
pub const UI_E_DIFFERENT_OWNER: ::windows_sys::core::HRESULT = -2144731127i32;
pub const UI_E_END_KEYFRAME_NOT_DETERMINED: ::windows_sys::core::HRESULT = -2144730876i32;
pub const UI_E_FP_OVERFLOW: ::windows_sys::core::HRESULT = -2144731125i32;
pub const UI_E_ILLEGAL_REENTRANCY: ::windows_sys::core::HRESULT = -2144731133i32;
pub const UI_E_INVALID_DIMENSION: ::windows_sys::core::HRESULT = -2144730869i32;
pub const UI_E_INVALID_OUTPUT: ::windows_sys::core::HRESULT = -2144731129i32;
pub const UI_E_LOOPS_OVERLAP: ::windows_sys::core::HRESULT = -2144730875i32;
pub const UI_E_OBJECT_SEALED: ::windows_sys::core::HRESULT = -2144731132i32;
pub const UI_E_PRIMITIVE_OUT_OF_BOUNDS: ::windows_sys::core::HRESULT = -2144730868i32;
pub const UI_E_SHUTDOWN_CALLED: ::windows_sys::core::HRESULT = -2144731134i32;
pub const UI_E_START_KEYFRAME_AFTER_END: ::windows_sys::core::HRESULT = -2144730877i32;
pub const UI_E_STORYBOARD_ACTIVE: ::windows_sys::core::HRESULT = -2144730879i32;
pub const UI_E_STORYBOARD_NOT_PLAYING: ::windows_sys::core::HRESULT = -2144730878i32;
pub const UI_E_TIMER_CLIENT_ALREADY_CONNECTED: ::windows_sys::core::HRESULT = -2144730870i32;
pub const UI_E_TIME_BEFORE_LAST_UPDATE: ::windows_sys::core::HRESULT = -2144730871i32;
pub const UI_E_TRANSITION_ALREADY_USED: ::windows_sys::core::HRESULT = -2144730874i32;
pub const UI_E_TRANSITION_ECLIPSED: ::windows_sys::core::HRESULT = -2144730872i32;
pub const UI_E_TRANSITION_NOT_IN_STORYBOARD: ::windows_sys::core::HRESULT = -2144730873i32;
pub const UI_E_VALUE_NOT_DETERMINED: ::windows_sys::core::HRESULT = -2144731130i32;
pub const UI_E_VALUE_NOT_SET: ::windows_sys::core::HRESULT = -2144731131i32;
pub const UI_E_WINDOW_CLOSED: ::windows_sys::core::HRESULT = -2144730623i32;
pub const UI_E_WRONG_THREAD: ::windows_sys::core::HRESULT = -2144731124i32;
#[repr(C)]
pub struct UNICODE_STRING {
pub Length: u16,
pub MaximumLength: u16,
pub Buffer: PWSTR,
}
impl ::core::marker::Copy for UNICODE_STRING {}
impl ::core::clone::Clone for UNICODE_STRING {
fn clone(&self) -> Self {
*self
}
}
pub const UTC_E_ACTION_NOT_SUPPORTED_IN_DESTINATION: ::windows_sys::core::HRESULT = -2017128380i32;
pub const UTC_E_AGENT_DIAGNOSTICS_TOO_LARGE: ::windows_sys::core::HRESULT = -2017128363i32;
pub const UTC_E_ALTERNATIVE_TRACE_CANNOT_PREEMPT: ::windows_sys::core::HRESULT = -2017128446i32;
pub const UTC_E_AOT_NOT_RUNNING: ::windows_sys::core::HRESULT = -2017128445i32;
pub const UTC_E_API_BUSY: ::windows_sys::core::HRESULT = -2017128405i32;
pub const UTC_E_API_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2017128388i32;
pub const UTC_E_API_RESULT_UNAVAILABLE: ::windows_sys::core::HRESULT = -2017128408i32;
pub const UTC_E_BINARY_MISSING: ::windows_sys::core::HRESULT = -2017128396i32;
pub const UTC_E_CANNOT_LOAD_SCENARIO_EDITOR_XML: ::windows_sys::core::HRESULT = -2017128417i32;
pub const UTC_E_CERT_REV_FAILED: ::windows_sys::core::HRESULT = -2017128385i32;
pub const UTC_E_CHILD_PROCESS_FAILED: ::windows_sys::core::HRESULT = -2017128419i32;
pub const UTC_E_COMMAND_LINE_NOT_AUTHORIZED: ::windows_sys::core::HRESULT = -2017128418i32;
pub const UTC_E_DELAY_TERMINATED: ::windows_sys::core::HRESULT = -2017128411i32;
pub const UTC_E_DEVICE_TICKET_ERROR: ::windows_sys::core::HRESULT = -2017128410i32;
pub const UTC_E_DIAGRULES_SCHEMAVERSION_MISMATCH: ::windows_sys::core::HRESULT = -2017128438i32;
pub const UTC_E_ESCALATION_ALREADY_RUNNING: ::windows_sys::core::HRESULT = -2017128433i32;
pub const UTC_E_ESCALATION_CANCELLED_AT_SHUTDOWN: ::windows_sys::core::HRESULT = -2017128358i32;
pub const UTC_E_ESCALATION_DIRECTORY_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2017128401i32;
pub const UTC_E_ESCALATION_NOT_AUTHORIZED: ::windows_sys::core::HRESULT = -2017128421i32;
pub const UTC_E_ESCALATION_TIMED_OUT: ::windows_sys::core::HRESULT = -2017128416i32;
pub const UTC_E_EVENTLOG_ENTRY_MALFORMED: ::windows_sys::core::HRESULT = -2017128439i32;
pub const UTC_E_EXCLUSIVITY_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2017128403i32;
pub const UTC_E_EXE_TERMINATED: ::windows_sys::core::HRESULT = -2017128422i32;
pub const UTC_E_FAILED_TO_RECEIVE_AGENT_DIAGNOSTICS: ::windows_sys::core::HRESULT = -2017128362i32;
pub const UTC_E_FAILED_TO_RESOLVE_CONTAINER_ID: ::windows_sys::core::HRESULT = -2017128394i32;
pub const UTC_E_FAILED_TO_START_NDISCAP: ::windows_sys::core::HRESULT = -2017128384i32;
pub const UTC_E_FILTER_FUNCTION_RESTRICTED: ::windows_sys::core::HRESULT = -2017128376i32;
pub const UTC_E_FILTER_ILLEGAL_EVAL: ::windows_sys::core::HRESULT = -2017128365i32;
pub const UTC_E_FILTER_INVALID_COMMAND: ::windows_sys::core::HRESULT = -2017128366i32;
pub const UTC_E_FILTER_INVALID_FUNCTION: ::windows_sys::core::HRESULT = -2017128368i32;
pub const UTC_E_FILTER_INVALID_FUNCTION_PARAMS: ::windows_sys::core::HRESULT = -2017128367i32;
pub const UTC_E_FILTER_INVALID_TYPE: ::windows_sys::core::HRESULT = -2017128378i32;
pub const UTC_E_FILTER_MISSING_ATTRIBUTE: ::windows_sys::core::HRESULT = -2017128379i32;
pub const UTC_E_FILTER_VARIABLE_NOT_FOUND: ::windows_sys::core::HRESULT = -2017128377i32;
pub const UTC_E_FILTER_VERSION_MISMATCH: ::windows_sys::core::HRESULT = -2017128375i32;
pub const UTC_E_FORWARDER_ALREADY_DISABLED: ::windows_sys::core::HRESULT = -2017128440i32;
pub const UTC_E_FORWARDER_ALREADY_ENABLED: ::windows_sys::core::HRESULT = -2017128441i32;
pub const UTC_E_FORWARDER_PRODUCER_MISMATCH: ::windows_sys::core::HRESULT = -2017128430i32;
pub const UTC_E_GETFILEINFOACTION_FILE_NOT_APPROVED: ::windows_sys::core::HRESULT = -2017128357i32;
pub const UTC_E_GETFILE_EXTERNAL_PATH_NOT_APPROVED: ::windows_sys::core::HRESULT = -2017128387i32;
pub const UTC_E_GETFILE_FILE_PATH_NOT_APPROVED: ::windows_sys::core::HRESULT = -2017128402i32;
pub const UTC_E_INSUFFICIENT_SPACE_TO_START_TRACE: ::windows_sys::core::HRESULT = -2017128359i32;
pub const UTC_E_INTENTIONAL_SCRIPT_FAILURE: ::windows_sys::core::HRESULT = -2017128429i32;
pub const UTC_E_INVALID_AGGREGATION_STRUCT: ::windows_sys::core::HRESULT = -2017128381i32;
pub const UTC_E_INVALID_CUSTOM_FILTER: ::windows_sys::core::HRESULT = -2017128436i32;
pub const UTC_E_INVALID_FILTER: ::windows_sys::core::HRESULT = -2017128423i32;
pub const UTC_E_KERNELDUMP_LIMIT_REACHED: ::windows_sys::core::HRESULT = -2017128383i32;
pub const UTC_E_MISSING_AGGREGATE_EVENT_TAG: ::windows_sys::core::HRESULT = -2017128382i32;
pub const UTC_E_MULTIPLE_TIME_TRIGGER_ON_SINGLE_STATE: ::windows_sys::core::HRESULT = -2017128397i32;
pub const UTC_E_NO_WER_LOGGER_SUPPORTED: ::windows_sys::core::HRESULT = -2017128427i32;
pub const UTC_E_PERFTRACK_ALREADY_TRACING: ::windows_sys::core::HRESULT = -2017128432i32;
pub const UTC_E_REACHED_MAX_ESCALATIONS: ::windows_sys::core::HRESULT = -2017128431i32;
pub const UTC_E_REESCALATED_TOO_QUICKLY: ::windows_sys::core::HRESULT = -2017128434i32;
pub const UTC_E_RPC_TIMEOUT: ::windows_sys::core::HRESULT = -2017128407i32;
pub const UTC_E_RPC_WAIT_FAILED: ::windows_sys::core::HRESULT = -2017128406i32;
pub const UTC_E_SCENARIODEF_NOT_FOUND: ::windows_sys::core::HRESULT = -2017128443i32;
pub const UTC_E_SCENARIODEF_SCHEMAVERSION_MISMATCH: ::windows_sys::core::HRESULT = -2017128424i32;
pub const UTC_E_SCENARIO_HAS_NO_ACTIONS: ::windows_sys::core::HRESULT = -2017128361i32;
pub const UTC_E_SCENARIO_THROTTLED: ::windows_sys::core::HRESULT = -2017128389i32;
pub const UTC_E_SCRIPT_MISSING: ::windows_sys::core::HRESULT = -2017128390i32;
pub const UTC_E_SCRIPT_TERMINATED: ::windows_sys::core::HRESULT = -2017128437i32;
pub const UTC_E_SCRIPT_TYPE_INVALID: ::windows_sys::core::HRESULT = -2017128444i32;
pub const UTC_E_SETREGKEYACTION_TYPE_NOT_APPROVED: ::windows_sys::core::HRESULT = -2017128356i32;
pub const UTC_E_SETUP_NOT_AUTHORIZED: ::windows_sys::core::HRESULT = -2017128420i32;
pub const UTC_E_SETUP_TIMED_OUT: ::windows_sys::core::HRESULT = -2017128415i32;
pub const UTC_E_SIF_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2017128412i32;
pub const UTC_E_SQM_INIT_FAILED: ::windows_sys::core::HRESULT = -2017128428i32;
pub const UTC_E_THROTTLED: ::windows_sys::core::HRESULT = -2017128392i32;
pub const UTC_E_TIME_TRIGGER_INVALID_TIME_RANGE: ::windows_sys::core::HRESULT = -2017128398i32;
pub const UTC_E_TIME_TRIGGER_ONLY_VALID_ON_SINGLE_TRANSITION: ::windows_sys::core::HRESULT = -2017128399i32;
pub const UTC_E_TIME_TRIGGER_ON_START_INVALID: ::windows_sys::core::HRESULT = -2017128400i32;
pub const UTC_E_TOGGLE_TRACE_STARTED: ::windows_sys::core::HRESULT = -2017128447i32;
pub const UTC_E_TRACEPROFILE_NOT_FOUND: ::windows_sys::core::HRESULT = -2017128442i32;
pub const UTC_E_TRACERS_DONT_EXIST: ::windows_sys::core::HRESULT = -2017128426i32;
pub const UTC_E_TRACE_BUFFER_LIMIT_EXCEEDED: ::windows_sys::core::HRESULT = -2017128409i32;
pub const UTC_E_TRACE_MIN_DURATION_REQUIREMENT_NOT_MET: ::windows_sys::core::HRESULT = -2017128404i32;
pub const UTC_E_TRACE_NOT_RUNNING: ::windows_sys::core::HRESULT = -2017128435i32;
pub const UTC_E_TRACE_THROTTLED: ::windows_sys::core::HRESULT = -2017128355i32;
pub const UTC_E_TRIGGER_MISMATCH: ::windows_sys::core::HRESULT = -2017128414i32;
pub const UTC_E_TRIGGER_NOT_FOUND: ::windows_sys::core::HRESULT = -2017128413i32;
pub const UTC_E_TRY_GET_SCENARIO_TIMEOUT_EXCEEDED: ::windows_sys::core::HRESULT = -2017128386i32;
pub const UTC_E_TTTRACER_RETURNED_ERROR: ::windows_sys::core::HRESULT = -2017128364i32;
pub const UTC_E_TTTRACER_STORAGE_FULL: ::windows_sys::core::HRESULT = -2017128360i32;
pub const UTC_E_UNABLE_TO_RESOLVE_SESSION: ::windows_sys::core::HRESULT = -2017128393i32;
pub const UTC_E_UNAPPROVED_SCRIPT: ::windows_sys::core::HRESULT = -2017128391i32;
pub const UTC_E_WINRT_INIT_FAILED: ::windows_sys::core::HRESULT = -2017128425i32;
pub const VIEW_E_DRAW: ::windows_sys::core::HRESULT = -2147221184i32;
pub const VIEW_E_FIRST: i32 = -2147221184i32;
pub const VIEW_E_LAST: i32 = -2147221169i32;
pub const VIEW_S_ALREADY_FROZEN: ::windows_sys::core::HRESULT = 262464i32;
pub const VIEW_S_FIRST: i32 = 262464i32;
pub const VIEW_S_LAST: i32 = 262479i32;
pub const VM_SAVED_STATE_DUMP_E_GUEST_MEMORY_NOT_FOUND: ::windows_sys::core::HRESULT = -1070136063i32;
pub const VM_SAVED_STATE_DUMP_E_INVALID_VP_STATE: ::windows_sys::core::HRESULT = -1070136058i32;
pub const VM_SAVED_STATE_DUMP_E_NESTED_VIRTUALIZATION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -1070136061i32;
pub const VM_SAVED_STATE_DUMP_E_NO_VP_FOUND_IN_PARTITION_STATE: ::windows_sys::core::HRESULT = -1070136062i32;
pub const VM_SAVED_STATE_DUMP_E_PARTITION_STATE_NOT_FOUND: ::windows_sys::core::HRESULT = -1070136064i32;
pub const VM_SAVED_STATE_DUMP_E_VA_NOT_MAPPED: ::windows_sys::core::HRESULT = -1070136059i32;
pub const VM_SAVED_STATE_DUMP_E_VP_VTL_NOT_ENABLED: ::windows_sys::core::HRESULT = -1070136055i32;
pub const VM_SAVED_STATE_DUMP_E_WINDOWS_KERNEL_IMAGE_NOT_FOUND: ::windows_sys::core::HRESULT = -1070136060i32;
pub const WARNING_IPSEC_MM_POLICY_PRUNED: i32 = 13024i32;
pub const WARNING_IPSEC_QM_POLICY_PRUNED: i32 = 13025i32;
pub const WARNING_NO_MD5_MIGRATION: u32 = 946u32;
pub const WBREAK_E_BUFFER_TOO_SMALL: ::windows_sys::core::HRESULT = -2147215485i32;
pub const WBREAK_E_END_OF_TEXT: ::windows_sys::core::HRESULT = -2147215488i32;
pub const WBREAK_E_INIT_FAILED: ::windows_sys::core::HRESULT = -2147215483i32;
pub const WBREAK_E_QUERY_ONLY: ::windows_sys::core::HRESULT = -2147215486i32;
pub const WEB_E_INVALID_JSON_NUMBER: ::windows_sys::core::HRESULT = -2089484280i32;
pub const WEB_E_INVALID_JSON_STRING: ::windows_sys::core::HRESULT = -2089484281i32;
pub const WEB_E_INVALID_XML: ::windows_sys::core::HRESULT = -2089484286i32;
pub const WEB_E_JSON_VALUE_NOT_FOUND: ::windows_sys::core::HRESULT = -2089484279i32;
pub const WEB_E_MISSING_REQUIRED_ATTRIBUTE: ::windows_sys::core::HRESULT = -2089484284i32;
pub const WEB_E_MISSING_REQUIRED_ELEMENT: ::windows_sys::core::HRESULT = -2089484285i32;
pub const WEB_E_RESOURCE_TOO_LARGE: ::windows_sys::core::HRESULT = -2089484282i32;
pub const WEB_E_UNEXPECTED_CONTENT: ::windows_sys::core::HRESULT = -2089484283i32;
pub const WEB_E_UNSUPPORTED_FORMAT: ::windows_sys::core::HRESULT = -2089484287i32;
pub const WEP_E_BUFFER_TOO_LARGE: ::windows_sys::core::HRESULT = -2013200375i32;
pub const WEP_E_FIXED_DATA_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2013200382i32;
pub const WEP_E_HARDWARE_NOT_COMPLIANT: ::windows_sys::core::HRESULT = -2013200381i32;
pub const WEP_E_LOCK_NOT_CONFIGURED: ::windows_sys::core::HRESULT = -2013200380i32;
pub const WEP_E_NOT_PROVISIONED_ON_ALL_VOLUMES: ::windows_sys::core::HRESULT = -2013200383i32;
pub const WEP_E_NO_LICENSE: ::windows_sys::core::HRESULT = -2013200378i32;
pub const WEP_E_OS_NOT_PROTECTED: ::windows_sys::core::HRESULT = -2013200377i32;
pub const WEP_E_PROTECTION_SUSPENDED: ::windows_sys::core::HRESULT = -2013200379i32;
pub const WEP_E_UNEXPECTED_FAIL: ::windows_sys::core::HRESULT = -2013200376i32;
pub const WER_E_ALREADY_REPORTING: ::windows_sys::core::HRESULT = -2145681404i32;
pub const WER_E_CANCELED: ::windows_sys::core::HRESULT = -2145681407i32;
pub const WER_E_CRASH_FAILURE: ::windows_sys::core::HRESULT = -2145681408i32;
pub const WER_E_DUMP_THROTTLED: ::windows_sys::core::HRESULT = -2145681403i32;
pub const WER_E_INSUFFICIENT_CONSENT: ::windows_sys::core::HRESULT = -2145681402i32;
pub const WER_E_NETWORK_FAILURE: ::windows_sys::core::HRESULT = -2145681406i32;
pub const WER_E_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2145681405i32;
pub const WER_E_TOO_HEAVY: ::windows_sys::core::HRESULT = -2145681401i32;
pub const WER_S_ASSERT_CONTINUE: ::windows_sys::core::HRESULT = 1769482i32;
pub const WER_S_DISABLED: ::windows_sys::core::HRESULT = 1769475i32;
pub const WER_S_DISABLED_ARCHIVE: ::windows_sys::core::HRESULT = 1769478i32;
pub const WER_S_DISABLED_QUEUE: ::windows_sys::core::HRESULT = 1769477i32;
pub const WER_S_IGNORE_ALL_ASSERTS: ::windows_sys::core::HRESULT = 1769481i32;
pub const WER_S_IGNORE_ASSERT_INSTANCE: ::windows_sys::core::HRESULT = 1769480i32;
pub const WER_S_REPORT_ASYNC: ::windows_sys::core::HRESULT = 1769479i32;
pub const WER_S_REPORT_DEBUG: ::windows_sys::core::HRESULT = 1769472i32;
pub const WER_S_REPORT_QUEUED: ::windows_sys::core::HRESULT = 1769474i32;
pub const WER_S_REPORT_UPLOADED: ::windows_sys::core::HRESULT = 1769473i32;
pub const WER_S_REPORT_UPLOADED_CAB: ::windows_sys::core::HRESULT = 1769484i32;
pub const WER_S_SUSPENDED_UPLOAD: ::windows_sys::core::HRESULT = 1769476i32;
pub const WER_S_THROTTLED: ::windows_sys::core::HRESULT = 1769483i32;
pub const WHV_E_GPA_RANGE_NOT_FOUND: ::windows_sys::core::HRESULT = -2143878395i32;
pub const WHV_E_INSUFFICIENT_BUFFER: ::windows_sys::core::HRESULT = -2143878399i32;
pub const WHV_E_INVALID_PARTITION_CONFIG: ::windows_sys::core::HRESULT = -2143878396i32;
pub const WHV_E_INVALID_VP_REGISTER_NAME: ::windows_sys::core::HRESULT = -2143878391i32;
pub const WHV_E_INVALID_VP_STATE: ::windows_sys::core::HRESULT = -2143878392i32;
pub const WHV_E_UNKNOWN_CAPABILITY: ::windows_sys::core::HRESULT = -2143878400i32;
pub const WHV_E_UNKNOWN_PROPERTY: ::windows_sys::core::HRESULT = -2143878398i32;
pub const WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG: ::windows_sys::core::HRESULT = -2143878397i32;
pub const WHV_E_UNSUPPORTED_PROCESSOR_CONFIG: ::windows_sys::core::HRESULT = -2143878384i32;
pub const WHV_E_VP_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2143878394i32;
pub const WHV_E_VP_DOES_NOT_EXIST: ::windows_sys::core::HRESULT = -2143878393i32;
pub type WIN32_ERROR = u32;
pub const NO_ERROR: WIN32_ERROR = 0u32;
pub const WAIT_TIMEOUT: WIN32_ERROR = 258u32;
pub const WAIT_FAILED: WIN32_ERROR = 4294967295u32;
pub const ERROR_SUCCESS: WIN32_ERROR = 0u32;
pub const ERROR_INVALID_FUNCTION: WIN32_ERROR = 1u32;
pub const ERROR_FILE_NOT_FOUND: WIN32_ERROR = 2u32;
pub const ERROR_PATH_NOT_FOUND: WIN32_ERROR = 3u32;
pub const ERROR_TOO_MANY_OPEN_FILES: WIN32_ERROR = 4u32;
pub const ERROR_ACCESS_DENIED: WIN32_ERROR = 5u32;
pub const ERROR_INVALID_HANDLE: WIN32_ERROR = 6u32;
pub const ERROR_ARENA_TRASHED: WIN32_ERROR = 7u32;
pub const ERROR_NOT_ENOUGH_MEMORY: WIN32_ERROR = 8u32;
pub const ERROR_INVALID_BLOCK: WIN32_ERROR = 9u32;
pub const ERROR_BAD_ENVIRONMENT: WIN32_ERROR = 10u32;
pub const ERROR_BAD_FORMAT: WIN32_ERROR = 11u32;
pub const ERROR_INVALID_ACCESS: WIN32_ERROR = 12u32;
pub const ERROR_INVALID_DATA: WIN32_ERROR = 13u32;
pub const ERROR_OUTOFMEMORY: WIN32_ERROR = 14u32;
pub const ERROR_INVALID_DRIVE: WIN32_ERROR = 15u32;
pub const ERROR_CURRENT_DIRECTORY: WIN32_ERROR = 16u32;
pub const ERROR_NOT_SAME_DEVICE: WIN32_ERROR = 17u32;
pub const ERROR_NO_MORE_FILES: WIN32_ERROR = 18u32;
pub const ERROR_WRITE_PROTECT: WIN32_ERROR = 19u32;
pub const ERROR_BAD_UNIT: WIN32_ERROR = 20u32;
pub const ERROR_NOT_READY: WIN32_ERROR = 21u32;
pub const ERROR_BAD_COMMAND: WIN32_ERROR = 22u32;
pub const ERROR_CRC: WIN32_ERROR = 23u32;
pub const ERROR_BAD_LENGTH: WIN32_ERROR = 24u32;
pub const ERROR_SEEK: WIN32_ERROR = 25u32;
pub const ERROR_NOT_DOS_DISK: WIN32_ERROR = 26u32;
pub const ERROR_SECTOR_NOT_FOUND: WIN32_ERROR = 27u32;
pub const ERROR_OUT_OF_PAPER: WIN32_ERROR = 28u32;
pub const ERROR_WRITE_FAULT: WIN32_ERROR = 29u32;
pub const ERROR_READ_FAULT: WIN32_ERROR = 30u32;
pub const ERROR_GEN_FAILURE: WIN32_ERROR = 31u32;
pub const ERROR_SHARING_VIOLATION: WIN32_ERROR = 32u32;
pub const ERROR_LOCK_VIOLATION: WIN32_ERROR = 33u32;
pub const ERROR_WRONG_DISK: WIN32_ERROR = 34u32;
pub const ERROR_SHARING_BUFFER_EXCEEDED: WIN32_ERROR = 36u32;
pub const ERROR_HANDLE_EOF: WIN32_ERROR = 38u32;
pub const ERROR_HANDLE_DISK_FULL: WIN32_ERROR = 39u32;
pub const ERROR_NOT_SUPPORTED: WIN32_ERROR = 50u32;
pub const ERROR_REM_NOT_LIST: WIN32_ERROR = 51u32;
pub const ERROR_DUP_NAME: WIN32_ERROR = 52u32;
pub const ERROR_BAD_NETPATH: WIN32_ERROR = 53u32;
pub const ERROR_NETWORK_BUSY: WIN32_ERROR = 54u32;
pub const ERROR_DEV_NOT_EXIST: WIN32_ERROR = 55u32;
pub const ERROR_TOO_MANY_CMDS: WIN32_ERROR = 56u32;
pub const ERROR_ADAP_HDW_ERR: WIN32_ERROR = 57u32;
pub const ERROR_BAD_NET_RESP: WIN32_ERROR = 58u32;
pub const ERROR_UNEXP_NET_ERR: WIN32_ERROR = 59u32;
pub const ERROR_BAD_REM_ADAP: WIN32_ERROR = 60u32;
pub const ERROR_PRINTQ_FULL: WIN32_ERROR = 61u32;
pub const ERROR_NO_SPOOL_SPACE: WIN32_ERROR = 62u32;
pub const ERROR_PRINT_CANCELLED: WIN32_ERROR = 63u32;
pub const ERROR_NETNAME_DELETED: WIN32_ERROR = 64u32;
pub const ERROR_NETWORK_ACCESS_DENIED: WIN32_ERROR = 65u32;
pub const ERROR_BAD_DEV_TYPE: WIN32_ERROR = 66u32;
pub const ERROR_BAD_NET_NAME: WIN32_ERROR = 67u32;
pub const ERROR_TOO_MANY_NAMES: WIN32_ERROR = 68u32;
pub const ERROR_TOO_MANY_SESS: WIN32_ERROR = 69u32;
pub const ERROR_SHARING_PAUSED: WIN32_ERROR = 70u32;
pub const ERROR_REQ_NOT_ACCEP: WIN32_ERROR = 71u32;
pub const ERROR_REDIR_PAUSED: WIN32_ERROR = 72u32;
pub const ERROR_FILE_EXISTS: WIN32_ERROR = 80u32;
pub const ERROR_CANNOT_MAKE: WIN32_ERROR = 82u32;
pub const ERROR_FAIL_I24: WIN32_ERROR = 83u32;
pub const ERROR_OUT_OF_STRUCTURES: WIN32_ERROR = 84u32;
pub const ERROR_ALREADY_ASSIGNED: WIN32_ERROR = 85u32;
pub const ERROR_INVALID_PASSWORD: WIN32_ERROR = 86u32;
pub const ERROR_INVALID_PARAMETER: WIN32_ERROR = 87u32;
pub const ERROR_NET_WRITE_FAULT: WIN32_ERROR = 88u32;
pub const ERROR_NO_PROC_SLOTS: WIN32_ERROR = 89u32;
pub const ERROR_TOO_MANY_SEMAPHORES: WIN32_ERROR = 100u32;
pub const ERROR_EXCL_SEM_ALREADY_OWNED: WIN32_ERROR = 101u32;
pub const ERROR_SEM_IS_SET: WIN32_ERROR = 102u32;
pub const ERROR_TOO_MANY_SEM_REQUESTS: WIN32_ERROR = 103u32;
pub const ERROR_INVALID_AT_INTERRUPT_TIME: WIN32_ERROR = 104u32;
pub const ERROR_SEM_OWNER_DIED: WIN32_ERROR = 105u32;
pub const ERROR_SEM_USER_LIMIT: WIN32_ERROR = 106u32;
pub const ERROR_DISK_CHANGE: WIN32_ERROR = 107u32;
pub const ERROR_DRIVE_LOCKED: WIN32_ERROR = 108u32;
pub const ERROR_BROKEN_PIPE: WIN32_ERROR = 109u32;
pub const ERROR_OPEN_FAILED: WIN32_ERROR = 110u32;
pub const ERROR_BUFFER_OVERFLOW: WIN32_ERROR = 111u32;
pub const ERROR_DISK_FULL: WIN32_ERROR = 112u32;
pub const ERROR_NO_MORE_SEARCH_HANDLES: WIN32_ERROR = 113u32;
pub const ERROR_INVALID_TARGET_HANDLE: WIN32_ERROR = 114u32;
pub const ERROR_INVALID_CATEGORY: WIN32_ERROR = 117u32;
pub const ERROR_INVALID_VERIFY_SWITCH: WIN32_ERROR = 118u32;
pub const ERROR_BAD_DRIVER_LEVEL: WIN32_ERROR = 119u32;
pub const ERROR_CALL_NOT_IMPLEMENTED: WIN32_ERROR = 120u32;
pub const ERROR_SEM_TIMEOUT: WIN32_ERROR = 121u32;
pub const ERROR_INSUFFICIENT_BUFFER: WIN32_ERROR = 122u32;
pub const ERROR_INVALID_NAME: WIN32_ERROR = 123u32;
pub const ERROR_INVALID_LEVEL: WIN32_ERROR = 124u32;
pub const ERROR_NO_VOLUME_LABEL: WIN32_ERROR = 125u32;
pub const ERROR_MOD_NOT_FOUND: WIN32_ERROR = 126u32;
pub const ERROR_PROC_NOT_FOUND: WIN32_ERROR = 127u32;
pub const ERROR_WAIT_NO_CHILDREN: WIN32_ERROR = 128u32;
pub const ERROR_CHILD_NOT_COMPLETE: WIN32_ERROR = 129u32;
pub const ERROR_DIRECT_ACCESS_HANDLE: WIN32_ERROR = 130u32;
pub const ERROR_NEGATIVE_SEEK: WIN32_ERROR = 131u32;
pub const ERROR_SEEK_ON_DEVICE: WIN32_ERROR = 132u32;
pub const ERROR_IS_JOIN_TARGET: WIN32_ERROR = 133u32;
pub const ERROR_IS_JOINED: WIN32_ERROR = 134u32;
pub const ERROR_IS_SUBSTED: WIN32_ERROR = 135u32;
pub const ERROR_NOT_JOINED: WIN32_ERROR = 136u32;
pub const ERROR_NOT_SUBSTED: WIN32_ERROR = 137u32;
pub const ERROR_JOIN_TO_JOIN: WIN32_ERROR = 138u32;
pub const ERROR_SUBST_TO_SUBST: WIN32_ERROR = 139u32;
pub const ERROR_JOIN_TO_SUBST: WIN32_ERROR = 140u32;
pub const ERROR_SUBST_TO_JOIN: WIN32_ERROR = 141u32;
pub const ERROR_BUSY_DRIVE: WIN32_ERROR = 142u32;
pub const ERROR_SAME_DRIVE: WIN32_ERROR = 143u32;
pub const ERROR_DIR_NOT_ROOT: WIN32_ERROR = 144u32;
pub const ERROR_DIR_NOT_EMPTY: WIN32_ERROR = 145u32;
pub const ERROR_IS_SUBST_PATH: WIN32_ERROR = 146u32;
pub const ERROR_IS_JOIN_PATH: WIN32_ERROR = 147u32;
pub const ERROR_PATH_BUSY: WIN32_ERROR = 148u32;
pub const ERROR_IS_SUBST_TARGET: WIN32_ERROR = 149u32;
pub const ERROR_SYSTEM_TRACE: WIN32_ERROR = 150u32;
pub const ERROR_INVALID_EVENT_COUNT: WIN32_ERROR = 151u32;
pub const ERROR_TOO_MANY_MUXWAITERS: WIN32_ERROR = 152u32;
pub const ERROR_INVALID_LIST_FORMAT: WIN32_ERROR = 153u32;
pub const ERROR_LABEL_TOO_LONG: WIN32_ERROR = 154u32;
pub const ERROR_TOO_MANY_TCBS: WIN32_ERROR = 155u32;
pub const ERROR_SIGNAL_REFUSED: WIN32_ERROR = 156u32;
pub const ERROR_DISCARDED: WIN32_ERROR = 157u32;
pub const ERROR_NOT_LOCKED: WIN32_ERROR = 158u32;
pub const ERROR_BAD_THREADID_ADDR: WIN32_ERROR = 159u32;
pub const ERROR_BAD_ARGUMENTS: WIN32_ERROR = 160u32;
pub const ERROR_BAD_PATHNAME: WIN32_ERROR = 161u32;
pub const ERROR_SIGNAL_PENDING: WIN32_ERROR = 162u32;
pub const ERROR_MAX_THRDS_REACHED: WIN32_ERROR = 164u32;
pub const ERROR_LOCK_FAILED: WIN32_ERROR = 167u32;
pub const ERROR_BUSY: WIN32_ERROR = 170u32;
pub const ERROR_DEVICE_SUPPORT_IN_PROGRESS: WIN32_ERROR = 171u32;
pub const ERROR_CANCEL_VIOLATION: WIN32_ERROR = 173u32;
pub const ERROR_ATOMIC_LOCKS_NOT_SUPPORTED: WIN32_ERROR = 174u32;
pub const ERROR_INVALID_SEGMENT_NUMBER: WIN32_ERROR = 180u32;
pub const ERROR_INVALID_ORDINAL: WIN32_ERROR = 182u32;
pub const ERROR_ALREADY_EXISTS: WIN32_ERROR = 183u32;
pub const ERROR_INVALID_FLAG_NUMBER: WIN32_ERROR = 186u32;
pub const ERROR_SEM_NOT_FOUND: WIN32_ERROR = 187u32;
pub const ERROR_INVALID_STARTING_CODESEG: WIN32_ERROR = 188u32;
pub const ERROR_INVALID_STACKSEG: WIN32_ERROR = 189u32;
pub const ERROR_INVALID_MODULETYPE: WIN32_ERROR = 190u32;
pub const ERROR_INVALID_EXE_SIGNATURE: WIN32_ERROR = 191u32;
pub const ERROR_EXE_MARKED_INVALID: WIN32_ERROR = 192u32;
pub const ERROR_BAD_EXE_FORMAT: WIN32_ERROR = 193u32;
pub const ERROR_ITERATED_DATA_EXCEEDS_64k: WIN32_ERROR = 194u32;
pub const ERROR_INVALID_MINALLOCSIZE: WIN32_ERROR = 195u32;
pub const ERROR_DYNLINK_FROM_INVALID_RING: WIN32_ERROR = 196u32;
pub const ERROR_IOPL_NOT_ENABLED: WIN32_ERROR = 197u32;
pub const ERROR_INVALID_SEGDPL: WIN32_ERROR = 198u32;
pub const ERROR_AUTODATASEG_EXCEEDS_64k: WIN32_ERROR = 199u32;
pub const ERROR_RING2SEG_MUST_BE_MOVABLE: WIN32_ERROR = 200u32;
pub const ERROR_RELOC_CHAIN_XEEDS_SEGLIM: WIN32_ERROR = 201u32;
pub const ERROR_INFLOOP_IN_RELOC_CHAIN: WIN32_ERROR = 202u32;
pub const ERROR_ENVVAR_NOT_FOUND: WIN32_ERROR = 203u32;
pub const ERROR_NO_SIGNAL_SENT: WIN32_ERROR = 205u32;
pub const ERROR_FILENAME_EXCED_RANGE: WIN32_ERROR = 206u32;
pub const ERROR_RING2_STACK_IN_USE: WIN32_ERROR = 207u32;
pub const ERROR_META_EXPANSION_TOO_LONG: WIN32_ERROR = 208u32;
pub const ERROR_INVALID_SIGNAL_NUMBER: WIN32_ERROR = 209u32;
pub const ERROR_THREAD_1_INACTIVE: WIN32_ERROR = 210u32;
pub const ERROR_LOCKED: WIN32_ERROR = 212u32;
pub const ERROR_TOO_MANY_MODULES: WIN32_ERROR = 214u32;
pub const ERROR_NESTING_NOT_ALLOWED: WIN32_ERROR = 215u32;
pub const ERROR_EXE_MACHINE_TYPE_MISMATCH: WIN32_ERROR = 216u32;
pub const ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY: WIN32_ERROR = 217u32;
pub const ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY: WIN32_ERROR = 218u32;
pub const ERROR_FILE_CHECKED_OUT: WIN32_ERROR = 220u32;
pub const ERROR_CHECKOUT_REQUIRED: WIN32_ERROR = 221u32;
pub const ERROR_BAD_FILE_TYPE: WIN32_ERROR = 222u32;
pub const ERROR_FILE_TOO_LARGE: WIN32_ERROR = 223u32;
pub const ERROR_FORMS_AUTH_REQUIRED: WIN32_ERROR = 224u32;
pub const ERROR_VIRUS_INFECTED: WIN32_ERROR = 225u32;
pub const ERROR_VIRUS_DELETED: WIN32_ERROR = 226u32;
pub const ERROR_PIPE_LOCAL: WIN32_ERROR = 229u32;
pub const ERROR_BAD_PIPE: WIN32_ERROR = 230u32;
pub const ERROR_PIPE_BUSY: WIN32_ERROR = 231u32;
pub const ERROR_NO_DATA: WIN32_ERROR = 232u32;
pub const ERROR_PIPE_NOT_CONNECTED: WIN32_ERROR = 233u32;
pub const ERROR_MORE_DATA: WIN32_ERROR = 234u32;
pub const ERROR_NO_WORK_DONE: WIN32_ERROR = 235u32;
pub const ERROR_VC_DISCONNECTED: WIN32_ERROR = 240u32;
pub const ERROR_INVALID_EA_NAME: WIN32_ERROR = 254u32;
pub const ERROR_EA_LIST_INCONSISTENT: WIN32_ERROR = 255u32;
pub const ERROR_NO_MORE_ITEMS: WIN32_ERROR = 259u32;
pub const ERROR_CANNOT_COPY: WIN32_ERROR = 266u32;
pub const ERROR_DIRECTORY: WIN32_ERROR = 267u32;
pub const ERROR_EAS_DIDNT_FIT: WIN32_ERROR = 275u32;
pub const ERROR_EA_FILE_CORRUPT: WIN32_ERROR = 276u32;
pub const ERROR_EA_TABLE_FULL: WIN32_ERROR = 277u32;
pub const ERROR_INVALID_EA_HANDLE: WIN32_ERROR = 278u32;
pub const ERROR_EAS_NOT_SUPPORTED: WIN32_ERROR = 282u32;
pub const ERROR_NOT_OWNER: WIN32_ERROR = 288u32;
pub const ERROR_TOO_MANY_POSTS: WIN32_ERROR = 298u32;
pub const ERROR_PARTIAL_COPY: WIN32_ERROR = 299u32;
pub const ERROR_OPLOCK_NOT_GRANTED: WIN32_ERROR = 300u32;
pub const ERROR_INVALID_OPLOCK_PROTOCOL: WIN32_ERROR = 301u32;
pub const ERROR_DISK_TOO_FRAGMENTED: WIN32_ERROR = 302u32;
pub const ERROR_DELETE_PENDING: WIN32_ERROR = 303u32;
pub const ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING: WIN32_ERROR = 304u32;
pub const ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME: WIN32_ERROR = 305u32;
pub const ERROR_SECURITY_STREAM_IS_INCONSISTENT: WIN32_ERROR = 306u32;
pub const ERROR_INVALID_LOCK_RANGE: WIN32_ERROR = 307u32;
pub const ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT: WIN32_ERROR = 308u32;
pub const ERROR_NOTIFICATION_GUID_ALREADY_DEFINED: WIN32_ERROR = 309u32;
pub const ERROR_INVALID_EXCEPTION_HANDLER: WIN32_ERROR = 310u32;
pub const ERROR_DUPLICATE_PRIVILEGES: WIN32_ERROR = 311u32;
pub const ERROR_NO_RANGES_PROCESSED: WIN32_ERROR = 312u32;
pub const ERROR_NOT_ALLOWED_ON_SYSTEM_FILE: WIN32_ERROR = 313u32;
pub const ERROR_DISK_RESOURCES_EXHAUSTED: WIN32_ERROR = 314u32;
pub const ERROR_INVALID_TOKEN: WIN32_ERROR = 315u32;
pub const ERROR_DEVICE_FEATURE_NOT_SUPPORTED: WIN32_ERROR = 316u32;
pub const ERROR_MR_MID_NOT_FOUND: WIN32_ERROR = 317u32;
pub const ERROR_SCOPE_NOT_FOUND: WIN32_ERROR = 318u32;
pub const ERROR_UNDEFINED_SCOPE: WIN32_ERROR = 319u32;
pub const ERROR_INVALID_CAP: WIN32_ERROR = 320u32;
pub const ERROR_DEVICE_UNREACHABLE: WIN32_ERROR = 321u32;
pub const ERROR_DEVICE_NO_RESOURCES: WIN32_ERROR = 322u32;
pub const ERROR_DATA_CHECKSUM_ERROR: WIN32_ERROR = 323u32;
pub const ERROR_INTERMIXED_KERNEL_EA_OPERATION: WIN32_ERROR = 324u32;
pub const ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED: WIN32_ERROR = 326u32;
pub const ERROR_OFFSET_ALIGNMENT_VIOLATION: WIN32_ERROR = 327u32;
pub const ERROR_INVALID_FIELD_IN_PARAMETER_LIST: WIN32_ERROR = 328u32;
pub const ERROR_OPERATION_IN_PROGRESS: WIN32_ERROR = 329u32;
pub const ERROR_BAD_DEVICE_PATH: WIN32_ERROR = 330u32;
pub const ERROR_TOO_MANY_DESCRIPTORS: WIN32_ERROR = 331u32;
pub const ERROR_SCRUB_DATA_DISABLED: WIN32_ERROR = 332u32;
pub const ERROR_NOT_REDUNDANT_STORAGE: WIN32_ERROR = 333u32;
pub const ERROR_RESIDENT_FILE_NOT_SUPPORTED: WIN32_ERROR = 334u32;
pub const ERROR_COMPRESSED_FILE_NOT_SUPPORTED: WIN32_ERROR = 335u32;
pub const ERROR_DIRECTORY_NOT_SUPPORTED: WIN32_ERROR = 336u32;
pub const ERROR_NOT_READ_FROM_COPY: WIN32_ERROR = 337u32;
pub const ERROR_FT_WRITE_FAILURE: WIN32_ERROR = 338u32;
pub const ERROR_FT_DI_SCAN_REQUIRED: WIN32_ERROR = 339u32;
pub const ERROR_INVALID_KERNEL_INFO_VERSION: WIN32_ERROR = 340u32;
pub const ERROR_INVALID_PEP_INFO_VERSION: WIN32_ERROR = 341u32;
pub const ERROR_OBJECT_NOT_EXTERNALLY_BACKED: WIN32_ERROR = 342u32;
pub const ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN: WIN32_ERROR = 343u32;
pub const ERROR_COMPRESSION_NOT_BENEFICIAL: WIN32_ERROR = 344u32;
pub const ERROR_STORAGE_TOPOLOGY_ID_MISMATCH: WIN32_ERROR = 345u32;
pub const ERROR_BLOCKED_BY_PARENTAL_CONTROLS: WIN32_ERROR = 346u32;
pub const ERROR_BLOCK_TOO_MANY_REFERENCES: WIN32_ERROR = 347u32;
pub const ERROR_MARKED_TO_DISALLOW_WRITES: WIN32_ERROR = 348u32;
pub const ERROR_ENCLAVE_FAILURE: WIN32_ERROR = 349u32;
pub const ERROR_FAIL_NOACTION_REBOOT: WIN32_ERROR = 350u32;
pub const ERROR_FAIL_SHUTDOWN: WIN32_ERROR = 351u32;
pub const ERROR_FAIL_RESTART: WIN32_ERROR = 352u32;
pub const ERROR_MAX_SESSIONS_REACHED: WIN32_ERROR = 353u32;
pub const ERROR_NETWORK_ACCESS_DENIED_EDP: WIN32_ERROR = 354u32;
pub const ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL: WIN32_ERROR = 355u32;
pub const ERROR_EDP_POLICY_DENIES_OPERATION: WIN32_ERROR = 356u32;
pub const ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED: WIN32_ERROR = 357u32;
pub const ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT: WIN32_ERROR = 358u32;
pub const ERROR_DEVICE_IN_MAINTENANCE: WIN32_ERROR = 359u32;
pub const ERROR_NOT_SUPPORTED_ON_DAX: WIN32_ERROR = 360u32;
pub const ERROR_DAX_MAPPING_EXISTS: WIN32_ERROR = 361u32;
pub const ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING: WIN32_ERROR = 362u32;
pub const ERROR_CLOUD_FILE_METADATA_CORRUPT: WIN32_ERROR = 363u32;
pub const ERROR_CLOUD_FILE_METADATA_TOO_LARGE: WIN32_ERROR = 364u32;
pub const ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE: WIN32_ERROR = 365u32;
pub const ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH: WIN32_ERROR = 366u32;
pub const ERROR_CHILD_PROCESS_BLOCKED: WIN32_ERROR = 367u32;
pub const ERROR_STORAGE_LOST_DATA_PERSISTENCE: WIN32_ERROR = 368u32;
pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE: WIN32_ERROR = 369u32;
pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT: WIN32_ERROR = 370u32;
pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY: WIN32_ERROR = 371u32;
pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN: WIN32_ERROR = 372u32;
pub const ERROR_GDI_HANDLE_LEAK: WIN32_ERROR = 373u32;
pub const ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS: WIN32_ERROR = 374u32;
pub const ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED: WIN32_ERROR = 375u32;
pub const ERROR_NOT_A_CLOUD_FILE: WIN32_ERROR = 376u32;
pub const ERROR_CLOUD_FILE_NOT_IN_SYNC: WIN32_ERROR = 377u32;
pub const ERROR_CLOUD_FILE_ALREADY_CONNECTED: WIN32_ERROR = 378u32;
pub const ERROR_CLOUD_FILE_NOT_SUPPORTED: WIN32_ERROR = 379u32;
pub const ERROR_CLOUD_FILE_INVALID_REQUEST: WIN32_ERROR = 380u32;
pub const ERROR_CLOUD_FILE_READ_ONLY_VOLUME: WIN32_ERROR = 381u32;
pub const ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY: WIN32_ERROR = 382u32;
pub const ERROR_CLOUD_FILE_VALIDATION_FAILED: WIN32_ERROR = 383u32;
pub const ERROR_SMB1_NOT_AVAILABLE: WIN32_ERROR = 384u32;
pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION: WIN32_ERROR = 385u32;
pub const ERROR_CLOUD_FILE_AUTHENTICATION_FAILED: WIN32_ERROR = 386u32;
pub const ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES: WIN32_ERROR = 387u32;
pub const ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE: WIN32_ERROR = 388u32;
pub const ERROR_CLOUD_FILE_UNSUCCESSFUL: WIN32_ERROR = 389u32;
pub const ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT: WIN32_ERROR = 390u32;
pub const ERROR_CLOUD_FILE_IN_USE: WIN32_ERROR = 391u32;
pub const ERROR_CLOUD_FILE_PINNED: WIN32_ERROR = 392u32;
pub const ERROR_CLOUD_FILE_REQUEST_ABORTED: WIN32_ERROR = 393u32;
pub const ERROR_CLOUD_FILE_PROPERTY_CORRUPT: WIN32_ERROR = 394u32;
pub const ERROR_CLOUD_FILE_ACCESS_DENIED: WIN32_ERROR = 395u32;
pub const ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS: WIN32_ERROR = 396u32;
pub const ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT: WIN32_ERROR = 397u32;
pub const ERROR_CLOUD_FILE_REQUEST_CANCELED: WIN32_ERROR = 398u32;
pub const ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED: WIN32_ERROR = 399u32;
pub const ERROR_THREAD_MODE_ALREADY_BACKGROUND: WIN32_ERROR = 400u32;
pub const ERROR_THREAD_MODE_NOT_BACKGROUND: WIN32_ERROR = 401u32;
pub const ERROR_PROCESS_MODE_ALREADY_BACKGROUND: WIN32_ERROR = 402u32;
pub const ERROR_PROCESS_MODE_NOT_BACKGROUND: WIN32_ERROR = 403u32;
pub const ERROR_CLOUD_FILE_PROVIDER_TERMINATED: WIN32_ERROR = 404u32;
pub const ERROR_NOT_A_CLOUD_SYNC_ROOT: WIN32_ERROR = 405u32;
pub const ERROR_FILE_PROTECTED_UNDER_DPL: WIN32_ERROR = 406u32;
pub const ERROR_VOLUME_NOT_CLUSTER_ALIGNED: WIN32_ERROR = 407u32;
pub const ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND: WIN32_ERROR = 408u32;
pub const ERROR_APPX_FILE_NOT_ENCRYPTED: WIN32_ERROR = 409u32;
pub const ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED: WIN32_ERROR = 410u32;
pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET: WIN32_ERROR = 411u32;
pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE: WIN32_ERROR = 412u32;
pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER: WIN32_ERROR = 413u32;
pub const ERROR_LINUX_SUBSYSTEM_NOT_PRESENT: WIN32_ERROR = 414u32;
pub const ERROR_FT_READ_FAILURE: WIN32_ERROR = 415u32;
pub const ERROR_STORAGE_RESERVE_ID_INVALID: WIN32_ERROR = 416u32;
pub const ERROR_STORAGE_RESERVE_DOES_NOT_EXIST: WIN32_ERROR = 417u32;
pub const ERROR_STORAGE_RESERVE_ALREADY_EXISTS: WIN32_ERROR = 418u32;
pub const ERROR_STORAGE_RESERVE_NOT_EMPTY: WIN32_ERROR = 419u32;
pub const ERROR_NOT_A_DAX_VOLUME: WIN32_ERROR = 420u32;
pub const ERROR_NOT_DAX_MAPPABLE: WIN32_ERROR = 421u32;
pub const ERROR_TIME_SENSITIVE_THREAD: WIN32_ERROR = 422u32;
pub const ERROR_DPL_NOT_SUPPORTED_FOR_USER: WIN32_ERROR = 423u32;
pub const ERROR_CASE_DIFFERING_NAMES_IN_DIR: WIN32_ERROR = 424u32;
pub const ERROR_FILE_NOT_SUPPORTED: WIN32_ERROR = 425u32;
pub const ERROR_CLOUD_FILE_REQUEST_TIMEOUT: WIN32_ERROR = 426u32;
pub const ERROR_NO_TASK_QUEUE: WIN32_ERROR = 427u32;
pub const ERROR_SRC_SRV_DLL_LOAD_FAILED: WIN32_ERROR = 428u32;
pub const ERROR_NOT_SUPPORTED_WITH_BTT: WIN32_ERROR = 429u32;
pub const ERROR_ENCRYPTION_DISABLED: WIN32_ERROR = 430u32;
pub const ERROR_ENCRYPTING_METADATA_DISALLOWED: WIN32_ERROR = 431u32;
pub const ERROR_CANT_CLEAR_ENCRYPTION_FLAG: WIN32_ERROR = 432u32;
pub const ERROR_NO_SUCH_DEVICE: WIN32_ERROR = 433u32;
pub const ERROR_CLOUD_FILE_DEHYDRATION_DISALLOWED: WIN32_ERROR = 434u32;
pub const ERROR_FILE_SNAP_IN_PROGRESS: WIN32_ERROR = 435u32;
pub const ERROR_FILE_SNAP_USER_SECTION_NOT_SUPPORTED: WIN32_ERROR = 436u32;
pub const ERROR_FILE_SNAP_MODIFY_NOT_SUPPORTED: WIN32_ERROR = 437u32;
pub const ERROR_FILE_SNAP_IO_NOT_COORDINATED: WIN32_ERROR = 438u32;
pub const ERROR_FILE_SNAP_UNEXPECTED_ERROR: WIN32_ERROR = 439u32;
pub const ERROR_FILE_SNAP_INVALID_PARAMETER: WIN32_ERROR = 440u32;
pub const ERROR_UNSATISFIED_DEPENDENCIES: WIN32_ERROR = 441u32;
pub const ERROR_CASE_SENSITIVE_PATH: WIN32_ERROR = 442u32;
pub const ERROR_UNEXPECTED_NTCACHEMANAGER_ERROR: WIN32_ERROR = 443u32;
pub const ERROR_LINUX_SUBSYSTEM_UPDATE_REQUIRED: WIN32_ERROR = 444u32;
pub const ERROR_DLP_POLICY_WARNS_AGAINST_OPERATION: WIN32_ERROR = 445u32;
pub const ERROR_DLP_POLICY_DENIES_OPERATION: WIN32_ERROR = 446u32;
pub const ERROR_SECURITY_DENIES_OPERATION: WIN32_ERROR = 447u32;
pub const ERROR_UNTRUSTED_MOUNT_POINT: WIN32_ERROR = 448u32;
pub const ERROR_DLP_POLICY_SILENTLY_FAIL: WIN32_ERROR = 449u32;
pub const ERROR_CAPAUTHZ_NOT_DEVUNLOCKED: WIN32_ERROR = 450u32;
pub const ERROR_CAPAUTHZ_CHANGE_TYPE: WIN32_ERROR = 451u32;
pub const ERROR_CAPAUTHZ_NOT_PROVISIONED: WIN32_ERROR = 452u32;
pub const ERROR_CAPAUTHZ_NOT_AUTHORIZED: WIN32_ERROR = 453u32;
pub const ERROR_CAPAUTHZ_NO_POLICY: WIN32_ERROR = 454u32;
pub const ERROR_CAPAUTHZ_DB_CORRUPTED: WIN32_ERROR = 455u32;
pub const ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG: WIN32_ERROR = 456u32;
pub const ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY: WIN32_ERROR = 457u32;
pub const ERROR_CAPAUTHZ_SCCD_PARSE_ERROR: WIN32_ERROR = 458u32;
pub const ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED: WIN32_ERROR = 459u32;
pub const ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH: WIN32_ERROR = 460u32;
pub const ERROR_CIMFS_IMAGE_CORRUPT: WIN32_ERROR = 470u32;
pub const ERROR_CIMFS_IMAGE_VERSION_NOT_SUPPORTED: WIN32_ERROR = 471u32;
pub const ERROR_STORAGE_STACK_ACCESS_DENIED: WIN32_ERROR = 472u32;
pub const ERROR_INSUFFICIENT_VIRTUAL_ADDR_RESOURCES: WIN32_ERROR = 473u32;
pub const ERROR_INDEX_OUT_OF_BOUNDS: WIN32_ERROR = 474u32;
pub const ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT: WIN32_ERROR = 480u32;
pub const ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT: WIN32_ERROR = 481u32;
pub const ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT: WIN32_ERROR = 482u32;
pub const ERROR_DEVICE_HARDWARE_ERROR: WIN32_ERROR = 483u32;
pub const ERROR_INVALID_ADDRESS: WIN32_ERROR = 487u32;
pub const ERROR_HAS_SYSTEM_CRITICAL_FILES: WIN32_ERROR = 488u32;
pub const ERROR_ENCRYPTED_FILE_NOT_SUPPORTED: WIN32_ERROR = 489u32;
pub const ERROR_SPARSE_FILE_NOT_SUPPORTED: WIN32_ERROR = 490u32;
pub const ERROR_PAGEFILE_NOT_SUPPORTED: WIN32_ERROR = 491u32;
pub const ERROR_VOLUME_NOT_SUPPORTED: WIN32_ERROR = 492u32;
pub const ERROR_NOT_SUPPORTED_WITH_BYPASSIO: WIN32_ERROR = 493u32;
pub const ERROR_NO_BYPASSIO_DRIVER_SUPPORT: WIN32_ERROR = 494u32;
pub const ERROR_NOT_SUPPORTED_WITH_ENCRYPTION: WIN32_ERROR = 495u32;
pub const ERROR_NOT_SUPPORTED_WITH_COMPRESSION: WIN32_ERROR = 496u32;
pub const ERROR_NOT_SUPPORTED_WITH_REPLICATION: WIN32_ERROR = 497u32;
pub const ERROR_NOT_SUPPORTED_WITH_DEDUPLICATION: WIN32_ERROR = 498u32;
pub const ERROR_NOT_SUPPORTED_WITH_AUDITING: WIN32_ERROR = 499u32;
pub const ERROR_USER_PROFILE_LOAD: WIN32_ERROR = 500u32;
pub const ERROR_SESSION_KEY_TOO_SHORT: WIN32_ERROR = 501u32;
pub const ERROR_ACCESS_DENIED_APPDATA: WIN32_ERROR = 502u32;
pub const ERROR_NOT_SUPPORTED_WITH_MONITORING: WIN32_ERROR = 503u32;
pub const ERROR_NOT_SUPPORTED_WITH_SNAPSHOT: WIN32_ERROR = 504u32;
pub const ERROR_NOT_SUPPORTED_WITH_VIRTUALIZATION: WIN32_ERROR = 505u32;
pub const ERROR_BYPASSIO_FLT_NOT_SUPPORTED: WIN32_ERROR = 506u32;
pub const ERROR_DEVICE_RESET_REQUIRED: WIN32_ERROR = 507u32;
pub const ERROR_VOLUME_WRITE_ACCESS_DENIED: WIN32_ERROR = 508u32;
pub const ERROR_ARITHMETIC_OVERFLOW: WIN32_ERROR = 534u32;
pub const ERROR_PIPE_CONNECTED: WIN32_ERROR = 535u32;
pub const ERROR_PIPE_LISTENING: WIN32_ERROR = 536u32;
pub const ERROR_VERIFIER_STOP: WIN32_ERROR = 537u32;
pub const ERROR_ABIOS_ERROR: WIN32_ERROR = 538u32;
pub const ERROR_WX86_WARNING: WIN32_ERROR = 539u32;
pub const ERROR_WX86_ERROR: WIN32_ERROR = 540u32;
pub const ERROR_TIMER_NOT_CANCELED: WIN32_ERROR = 541u32;
pub const ERROR_UNWIND: WIN32_ERROR = 542u32;
pub const ERROR_BAD_STACK: WIN32_ERROR = 543u32;
pub const ERROR_INVALID_UNWIND_TARGET: WIN32_ERROR = 544u32;
pub const ERROR_INVALID_PORT_ATTRIBUTES: WIN32_ERROR = 545u32;
pub const ERROR_PORT_MESSAGE_TOO_LONG: WIN32_ERROR = 546u32;
pub const ERROR_INVALID_QUOTA_LOWER: WIN32_ERROR = 547u32;
pub const ERROR_DEVICE_ALREADY_ATTACHED: WIN32_ERROR = 548u32;
pub const ERROR_INSTRUCTION_MISALIGNMENT: WIN32_ERROR = 549u32;
pub const ERROR_PROFILING_NOT_STARTED: WIN32_ERROR = 550u32;
pub const ERROR_PROFILING_NOT_STOPPED: WIN32_ERROR = 551u32;
pub const ERROR_COULD_NOT_INTERPRET: WIN32_ERROR = 552u32;
pub const ERROR_PROFILING_AT_LIMIT: WIN32_ERROR = 553u32;
pub const ERROR_CANT_WAIT: WIN32_ERROR = 554u32;
pub const ERROR_CANT_TERMINATE_SELF: WIN32_ERROR = 555u32;
pub const ERROR_UNEXPECTED_MM_CREATE_ERR: WIN32_ERROR = 556u32;
pub const ERROR_UNEXPECTED_MM_MAP_ERROR: WIN32_ERROR = 557u32;
pub const ERROR_UNEXPECTED_MM_EXTEND_ERR: WIN32_ERROR = 558u32;
pub const ERROR_BAD_FUNCTION_TABLE: WIN32_ERROR = 559u32;
pub const ERROR_NO_GUID_TRANSLATION: WIN32_ERROR = 560u32;
pub const ERROR_INVALID_LDT_SIZE: WIN32_ERROR = 561u32;
pub const ERROR_INVALID_LDT_OFFSET: WIN32_ERROR = 563u32;
pub const ERROR_INVALID_LDT_DESCRIPTOR: WIN32_ERROR = 564u32;
pub const ERROR_TOO_MANY_THREADS: WIN32_ERROR = 565u32;
pub const ERROR_THREAD_NOT_IN_PROCESS: WIN32_ERROR = 566u32;
pub const ERROR_PAGEFILE_QUOTA_EXCEEDED: WIN32_ERROR = 567u32;
pub const ERROR_LOGON_SERVER_CONFLICT: WIN32_ERROR = 568u32;
pub const ERROR_SYNCHRONIZATION_REQUIRED: WIN32_ERROR = 569u32;
pub const ERROR_NET_OPEN_FAILED: WIN32_ERROR = 570u32;
pub const ERROR_IO_PRIVILEGE_FAILED: WIN32_ERROR = 571u32;
pub const ERROR_CONTROL_C_EXIT: WIN32_ERROR = 572u32;
pub const ERROR_MISSING_SYSTEMFILE: WIN32_ERROR = 573u32;
pub const ERROR_UNHANDLED_EXCEPTION: WIN32_ERROR = 574u32;
pub const ERROR_APP_INIT_FAILURE: WIN32_ERROR = 575u32;
pub const ERROR_PAGEFILE_CREATE_FAILED: WIN32_ERROR = 576u32;
pub const ERROR_INVALID_IMAGE_HASH: WIN32_ERROR = 577u32;
pub const ERROR_NO_PAGEFILE: WIN32_ERROR = 578u32;
pub const ERROR_ILLEGAL_FLOAT_CONTEXT: WIN32_ERROR = 579u32;
pub const ERROR_NO_EVENT_PAIR: WIN32_ERROR = 580u32;
pub const ERROR_DOMAIN_CTRLR_CONFIG_ERROR: WIN32_ERROR = 581u32;
pub const ERROR_ILLEGAL_CHARACTER: WIN32_ERROR = 582u32;
pub const ERROR_UNDEFINED_CHARACTER: WIN32_ERROR = 583u32;
pub const ERROR_FLOPPY_VOLUME: WIN32_ERROR = 584u32;
pub const ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT: WIN32_ERROR = 585u32;
pub const ERROR_BACKUP_CONTROLLER: WIN32_ERROR = 586u32;
pub const ERROR_MUTANT_LIMIT_EXCEEDED: WIN32_ERROR = 587u32;
pub const ERROR_FS_DRIVER_REQUIRED: WIN32_ERROR = 588u32;
pub const ERROR_CANNOT_LOAD_REGISTRY_FILE: WIN32_ERROR = 589u32;
pub const ERROR_DEBUG_ATTACH_FAILED: WIN32_ERROR = 590u32;
pub const ERROR_SYSTEM_PROCESS_TERMINATED: WIN32_ERROR = 591u32;
pub const ERROR_DATA_NOT_ACCEPTED: WIN32_ERROR = 592u32;
pub const ERROR_VDM_HARD_ERROR: WIN32_ERROR = 593u32;
pub const ERROR_DRIVER_CANCEL_TIMEOUT: WIN32_ERROR = 594u32;
pub const ERROR_REPLY_MESSAGE_MISMATCH: WIN32_ERROR = 595u32;
pub const ERROR_LOST_WRITEBEHIND_DATA: WIN32_ERROR = 596u32;
pub const ERROR_CLIENT_SERVER_PARAMETERS_INVALID: WIN32_ERROR = 597u32;
pub const ERROR_NOT_TINY_STREAM: WIN32_ERROR = 598u32;
pub const ERROR_STACK_OVERFLOW_READ: WIN32_ERROR = 599u32;
pub const ERROR_CONVERT_TO_LARGE: WIN32_ERROR = 600u32;
pub const ERROR_FOUND_OUT_OF_SCOPE: WIN32_ERROR = 601u32;
pub const ERROR_ALLOCATE_BUCKET: WIN32_ERROR = 602u32;
pub const ERROR_MARSHALL_OVERFLOW: WIN32_ERROR = 603u32;
pub const ERROR_INVALID_VARIANT: WIN32_ERROR = 604u32;
pub const ERROR_BAD_COMPRESSION_BUFFER: WIN32_ERROR = 605u32;
pub const ERROR_AUDIT_FAILED: WIN32_ERROR = 606u32;
pub const ERROR_TIMER_RESOLUTION_NOT_SET: WIN32_ERROR = 607u32;
pub const ERROR_INSUFFICIENT_LOGON_INFO: WIN32_ERROR = 608u32;
pub const ERROR_BAD_DLL_ENTRYPOINT: WIN32_ERROR = 609u32;
pub const ERROR_BAD_SERVICE_ENTRYPOINT: WIN32_ERROR = 610u32;
pub const ERROR_IP_ADDRESS_CONFLICT1: WIN32_ERROR = 611u32;
pub const ERROR_IP_ADDRESS_CONFLICT2: WIN32_ERROR = 612u32;
pub const ERROR_REGISTRY_QUOTA_LIMIT: WIN32_ERROR = 613u32;
pub const ERROR_NO_CALLBACK_ACTIVE: WIN32_ERROR = 614u32;
pub const ERROR_PWD_TOO_SHORT: WIN32_ERROR = 615u32;
pub const ERROR_PWD_TOO_RECENT: WIN32_ERROR = 616u32;
pub const ERROR_PWD_HISTORY_CONFLICT: WIN32_ERROR = 617u32;
pub const ERROR_UNSUPPORTED_COMPRESSION: WIN32_ERROR = 618u32;
pub const ERROR_INVALID_HW_PROFILE: WIN32_ERROR = 619u32;
pub const ERROR_INVALID_PLUGPLAY_DEVICE_PATH: WIN32_ERROR = 620u32;
pub const ERROR_QUOTA_LIST_INCONSISTENT: WIN32_ERROR = 621u32;
pub const ERROR_EVALUATION_EXPIRATION: WIN32_ERROR = 622u32;
pub const ERROR_ILLEGAL_DLL_RELOCATION: WIN32_ERROR = 623u32;
pub const ERROR_DLL_INIT_FAILED_LOGOFF: WIN32_ERROR = 624u32;
pub const ERROR_VALIDATE_CONTINUE: WIN32_ERROR = 625u32;
pub const ERROR_NO_MORE_MATCHES: WIN32_ERROR = 626u32;
pub const ERROR_RANGE_LIST_CONFLICT: WIN32_ERROR = 627u32;
pub const ERROR_SERVER_SID_MISMATCH: WIN32_ERROR = 628u32;
pub const ERROR_CANT_ENABLE_DENY_ONLY: WIN32_ERROR = 629u32;
pub const ERROR_FLOAT_MULTIPLE_FAULTS: WIN32_ERROR = 630u32;
pub const ERROR_FLOAT_MULTIPLE_TRAPS: WIN32_ERROR = 631u32;
pub const ERROR_NOINTERFACE: WIN32_ERROR = 632u32;
pub const ERROR_DRIVER_FAILED_SLEEP: WIN32_ERROR = 633u32;
pub const ERROR_CORRUPT_SYSTEM_FILE: WIN32_ERROR = 634u32;
pub const ERROR_COMMITMENT_MINIMUM: WIN32_ERROR = 635u32;
pub const ERROR_PNP_RESTART_ENUMERATION: WIN32_ERROR = 636u32;
pub const ERROR_SYSTEM_IMAGE_BAD_SIGNATURE: WIN32_ERROR = 637u32;
pub const ERROR_PNP_REBOOT_REQUIRED: WIN32_ERROR = 638u32;
pub const ERROR_INSUFFICIENT_POWER: WIN32_ERROR = 639u32;
pub const ERROR_MULTIPLE_FAULT_VIOLATION: WIN32_ERROR = 640u32;
pub const ERROR_SYSTEM_SHUTDOWN: WIN32_ERROR = 641u32;
pub const ERROR_PORT_NOT_SET: WIN32_ERROR = 642u32;
pub const ERROR_DS_VERSION_CHECK_FAILURE: WIN32_ERROR = 643u32;
pub const ERROR_RANGE_NOT_FOUND: WIN32_ERROR = 644u32;
pub const ERROR_NOT_SAFE_MODE_DRIVER: WIN32_ERROR = 646u32;
pub const ERROR_FAILED_DRIVER_ENTRY: WIN32_ERROR = 647u32;
pub const ERROR_DEVICE_ENUMERATION_ERROR: WIN32_ERROR = 648u32;
pub const ERROR_MOUNT_POINT_NOT_RESOLVED: WIN32_ERROR = 649u32;
pub const ERROR_INVALID_DEVICE_OBJECT_PARAMETER: WIN32_ERROR = 650u32;
pub const ERROR_MCA_OCCURED: WIN32_ERROR = 651u32;
pub const ERROR_DRIVER_DATABASE_ERROR: WIN32_ERROR = 652u32;
pub const ERROR_SYSTEM_HIVE_TOO_LARGE: WIN32_ERROR = 653u32;
pub const ERROR_DRIVER_FAILED_PRIOR_UNLOAD: WIN32_ERROR = 654u32;
pub const ERROR_VOLSNAP_PREPARE_HIBERNATE: WIN32_ERROR = 655u32;
pub const ERROR_HIBERNATION_FAILURE: WIN32_ERROR = 656u32;
pub const ERROR_PWD_TOO_LONG: WIN32_ERROR = 657u32;
pub const ERROR_FILE_SYSTEM_LIMITATION: WIN32_ERROR = 665u32;
pub const ERROR_ASSERTION_FAILURE: WIN32_ERROR = 668u32;
pub const ERROR_ACPI_ERROR: WIN32_ERROR = 669u32;
pub const ERROR_WOW_ASSERTION: WIN32_ERROR = 670u32;
pub const ERROR_PNP_BAD_MPS_TABLE: WIN32_ERROR = 671u32;
pub const ERROR_PNP_TRANSLATION_FAILED: WIN32_ERROR = 672u32;
pub const ERROR_PNP_IRQ_TRANSLATION_FAILED: WIN32_ERROR = 673u32;
pub const ERROR_PNP_INVALID_ID: WIN32_ERROR = 674u32;
pub const ERROR_WAKE_SYSTEM_DEBUGGER: WIN32_ERROR = 675u32;
pub const ERROR_HANDLES_CLOSED: WIN32_ERROR = 676u32;
pub const ERROR_EXTRANEOUS_INFORMATION: WIN32_ERROR = 677u32;
pub const ERROR_RXACT_COMMIT_NECESSARY: WIN32_ERROR = 678u32;
pub const ERROR_MEDIA_CHECK: WIN32_ERROR = 679u32;
pub const ERROR_GUID_SUBSTITUTION_MADE: WIN32_ERROR = 680u32;
pub const ERROR_STOPPED_ON_SYMLINK: WIN32_ERROR = 681u32;
pub const ERROR_LONGJUMP: WIN32_ERROR = 682u32;
pub const ERROR_PLUGPLAY_QUERY_VETOED: WIN32_ERROR = 683u32;
pub const ERROR_UNWIND_CONSOLIDATE: WIN32_ERROR = 684u32;
pub const ERROR_REGISTRY_HIVE_RECOVERED: WIN32_ERROR = 685u32;
pub const ERROR_DLL_MIGHT_BE_INSECURE: WIN32_ERROR = 686u32;
pub const ERROR_DLL_MIGHT_BE_INCOMPATIBLE: WIN32_ERROR = 687u32;
pub const ERROR_DBG_EXCEPTION_NOT_HANDLED: WIN32_ERROR = 688u32;
pub const ERROR_DBG_REPLY_LATER: WIN32_ERROR = 689u32;
pub const ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE: WIN32_ERROR = 690u32;
pub const ERROR_DBG_TERMINATE_THREAD: WIN32_ERROR = 691u32;
pub const ERROR_DBG_TERMINATE_PROCESS: WIN32_ERROR = 692u32;
pub const ERROR_DBG_CONTROL_C: WIN32_ERROR = 693u32;
pub const ERROR_DBG_PRINTEXCEPTION_C: WIN32_ERROR = 694u32;
pub const ERROR_DBG_RIPEXCEPTION: WIN32_ERROR = 695u32;
pub const ERROR_DBG_CONTROL_BREAK: WIN32_ERROR = 696u32;
pub const ERROR_DBG_COMMAND_EXCEPTION: WIN32_ERROR = 697u32;
pub const ERROR_OBJECT_NAME_EXISTS: WIN32_ERROR = 698u32;
pub const ERROR_THREAD_WAS_SUSPENDED: WIN32_ERROR = 699u32;
pub const ERROR_IMAGE_NOT_AT_BASE: WIN32_ERROR = 700u32;
pub const ERROR_RXACT_STATE_CREATED: WIN32_ERROR = 701u32;
pub const ERROR_SEGMENT_NOTIFICATION: WIN32_ERROR = 702u32;
pub const ERROR_BAD_CURRENT_DIRECTORY: WIN32_ERROR = 703u32;
pub const ERROR_FT_READ_RECOVERY_FROM_BACKUP: WIN32_ERROR = 704u32;
pub const ERROR_FT_WRITE_RECOVERY: WIN32_ERROR = 705u32;
pub const ERROR_IMAGE_MACHINE_TYPE_MISMATCH: WIN32_ERROR = 706u32;
pub const ERROR_RECEIVE_PARTIAL: WIN32_ERROR = 707u32;
pub const ERROR_RECEIVE_EXPEDITED: WIN32_ERROR = 708u32;
pub const ERROR_RECEIVE_PARTIAL_EXPEDITED: WIN32_ERROR = 709u32;
pub const ERROR_EVENT_DONE: WIN32_ERROR = 710u32;
pub const ERROR_EVENT_PENDING: WIN32_ERROR = 711u32;
pub const ERROR_CHECKING_FILE_SYSTEM: WIN32_ERROR = 712u32;
pub const ERROR_FATAL_APP_EXIT: WIN32_ERROR = 713u32;
pub const ERROR_PREDEFINED_HANDLE: WIN32_ERROR = 714u32;
pub const ERROR_WAS_UNLOCKED: WIN32_ERROR = 715u32;
pub const ERROR_SERVICE_NOTIFICATION: WIN32_ERROR = 716u32;
pub const ERROR_WAS_LOCKED: WIN32_ERROR = 717u32;
pub const ERROR_LOG_HARD_ERROR: WIN32_ERROR = 718u32;
pub const ERROR_ALREADY_WIN32: WIN32_ERROR = 719u32;
pub const ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE: WIN32_ERROR = 720u32;
pub const ERROR_NO_YIELD_PERFORMED: WIN32_ERROR = 721u32;
pub const ERROR_TIMER_RESUME_IGNORED: WIN32_ERROR = 722u32;
pub const ERROR_ARBITRATION_UNHANDLED: WIN32_ERROR = 723u32;
pub const ERROR_CARDBUS_NOT_SUPPORTED: WIN32_ERROR = 724u32;
pub const ERROR_MP_PROCESSOR_MISMATCH: WIN32_ERROR = 725u32;
pub const ERROR_HIBERNATED: WIN32_ERROR = 726u32;
pub const ERROR_RESUME_HIBERNATION: WIN32_ERROR = 727u32;
pub const ERROR_FIRMWARE_UPDATED: WIN32_ERROR = 728u32;
pub const ERROR_DRIVERS_LEAKING_LOCKED_PAGES: WIN32_ERROR = 729u32;
pub const ERROR_WAKE_SYSTEM: WIN32_ERROR = 730u32;
pub const ERROR_WAIT_1: WIN32_ERROR = 731u32;
pub const ERROR_WAIT_2: WIN32_ERROR = 732u32;
pub const ERROR_WAIT_3: WIN32_ERROR = 733u32;
pub const ERROR_WAIT_63: WIN32_ERROR = 734u32;
pub const ERROR_ABANDONED_WAIT_0: WIN32_ERROR = 735u32;
pub const ERROR_ABANDONED_WAIT_63: WIN32_ERROR = 736u32;
pub const ERROR_USER_APC: WIN32_ERROR = 737u32;
pub const ERROR_KERNEL_APC: WIN32_ERROR = 738u32;
pub const ERROR_ALERTED: WIN32_ERROR = 739u32;
pub const ERROR_ELEVATION_REQUIRED: WIN32_ERROR = 740u32;
pub const ERROR_REPARSE: WIN32_ERROR = 741u32;
pub const ERROR_OPLOCK_BREAK_IN_PROGRESS: WIN32_ERROR = 742u32;
pub const ERROR_VOLUME_MOUNTED: WIN32_ERROR = 743u32;
pub const ERROR_RXACT_COMMITTED: WIN32_ERROR = 744u32;
pub const ERROR_NOTIFY_CLEANUP: WIN32_ERROR = 745u32;
pub const ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED: WIN32_ERROR = 746u32;
pub const ERROR_PAGE_FAULT_TRANSITION: WIN32_ERROR = 747u32;
pub const ERROR_PAGE_FAULT_DEMAND_ZERO: WIN32_ERROR = 748u32;
pub const ERROR_PAGE_FAULT_COPY_ON_WRITE: WIN32_ERROR = 749u32;
pub const ERROR_PAGE_FAULT_GUARD_PAGE: WIN32_ERROR = 750u32;
pub const ERROR_PAGE_FAULT_PAGING_FILE: WIN32_ERROR = 751u32;
pub const ERROR_CACHE_PAGE_LOCKED: WIN32_ERROR = 752u32;
pub const ERROR_CRASH_DUMP: WIN32_ERROR = 753u32;
pub const ERROR_BUFFER_ALL_ZEROS: WIN32_ERROR = 754u32;
pub const ERROR_REPARSE_OBJECT: WIN32_ERROR = 755u32;
pub const ERROR_RESOURCE_REQUIREMENTS_CHANGED: WIN32_ERROR = 756u32;
pub const ERROR_TRANSLATION_COMPLETE: WIN32_ERROR = 757u32;
pub const ERROR_NOTHING_TO_TERMINATE: WIN32_ERROR = 758u32;
pub const ERROR_PROCESS_NOT_IN_JOB: WIN32_ERROR = 759u32;
pub const ERROR_PROCESS_IN_JOB: WIN32_ERROR = 760u32;
pub const ERROR_VOLSNAP_HIBERNATE_READY: WIN32_ERROR = 761u32;
pub const ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY: WIN32_ERROR = 762u32;
pub const ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED: WIN32_ERROR = 763u32;
pub const ERROR_INTERRUPT_STILL_CONNECTED: WIN32_ERROR = 764u32;
pub const ERROR_WAIT_FOR_OPLOCK: WIN32_ERROR = 765u32;
pub const ERROR_DBG_EXCEPTION_HANDLED: WIN32_ERROR = 766u32;
pub const ERROR_DBG_CONTINUE: WIN32_ERROR = 767u32;
pub const ERROR_CALLBACK_POP_STACK: WIN32_ERROR = 768u32;
pub const ERROR_COMPRESSION_DISABLED: WIN32_ERROR = 769u32;
pub const ERROR_CANTFETCHBACKWARDS: WIN32_ERROR = 770u32;
pub const ERROR_CANTSCROLLBACKWARDS: WIN32_ERROR = 771u32;
pub const ERROR_ROWSNOTRELEASED: WIN32_ERROR = 772u32;
pub const ERROR_BAD_ACCESSOR_FLAGS: WIN32_ERROR = 773u32;
pub const ERROR_ERRORS_ENCOUNTERED: WIN32_ERROR = 774u32;
pub const ERROR_NOT_CAPABLE: WIN32_ERROR = 775u32;
pub const ERROR_REQUEST_OUT_OF_SEQUENCE: WIN32_ERROR = 776u32;
pub const ERROR_VERSION_PARSE_ERROR: WIN32_ERROR = 777u32;
pub const ERROR_BADSTARTPOSITION: WIN32_ERROR = 778u32;
pub const ERROR_MEMORY_HARDWARE: WIN32_ERROR = 779u32;
pub const ERROR_DISK_REPAIR_DISABLED: WIN32_ERROR = 780u32;
pub const ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE: WIN32_ERROR = 781u32;
pub const ERROR_SYSTEM_POWERSTATE_TRANSITION: WIN32_ERROR = 782u32;
pub const ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION: WIN32_ERROR = 783u32;
pub const ERROR_MCA_EXCEPTION: WIN32_ERROR = 784u32;
pub const ERROR_ACCESS_AUDIT_BY_POLICY: WIN32_ERROR = 785u32;
pub const ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY: WIN32_ERROR = 786u32;
pub const ERROR_ABANDON_HIBERFILE: WIN32_ERROR = 787u32;
pub const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED: WIN32_ERROR = 788u32;
pub const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR: WIN32_ERROR = 789u32;
pub const ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR: WIN32_ERROR = 790u32;
pub const ERROR_BAD_MCFG_TABLE: WIN32_ERROR = 791u32;
pub const ERROR_DISK_REPAIR_REDIRECTED: WIN32_ERROR = 792u32;
pub const ERROR_DISK_REPAIR_UNSUCCESSFUL: WIN32_ERROR = 793u32;
pub const ERROR_CORRUPT_LOG_OVERFULL: WIN32_ERROR = 794u32;
pub const ERROR_CORRUPT_LOG_CORRUPTED: WIN32_ERROR = 795u32;
pub const ERROR_CORRUPT_LOG_UNAVAILABLE: WIN32_ERROR = 796u32;
pub const ERROR_CORRUPT_LOG_DELETED_FULL: WIN32_ERROR = 797u32;
pub const ERROR_CORRUPT_LOG_CLEARED: WIN32_ERROR = 798u32;
pub const ERROR_ORPHAN_NAME_EXHAUSTED: WIN32_ERROR = 799u32;
pub const ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE: WIN32_ERROR = 800u32;
pub const ERROR_CANNOT_GRANT_REQUESTED_OPLOCK: WIN32_ERROR = 801u32;
pub const ERROR_CANNOT_BREAK_OPLOCK: WIN32_ERROR = 802u32;
pub const ERROR_OPLOCK_HANDLE_CLOSED: WIN32_ERROR = 803u32;
pub const ERROR_NO_ACE_CONDITION: WIN32_ERROR = 804u32;
pub const ERROR_INVALID_ACE_CONDITION: WIN32_ERROR = 805u32;
pub const ERROR_FILE_HANDLE_REVOKED: WIN32_ERROR = 806u32;
pub const ERROR_IMAGE_AT_DIFFERENT_BASE: WIN32_ERROR = 807u32;
pub const ERROR_ENCRYPTED_IO_NOT_POSSIBLE: WIN32_ERROR = 808u32;
pub const ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS: WIN32_ERROR = 809u32;
pub const ERROR_QUOTA_ACTIVITY: WIN32_ERROR = 810u32;
pub const ERROR_HANDLE_REVOKED: WIN32_ERROR = 811u32;
pub const ERROR_CALLBACK_INVOKE_INLINE: WIN32_ERROR = 812u32;
pub const ERROR_CPU_SET_INVALID: WIN32_ERROR = 813u32;
pub const ERROR_ENCLAVE_NOT_TERMINATED: WIN32_ERROR = 814u32;
pub const ERROR_ENCLAVE_VIOLATION: WIN32_ERROR = 815u32;
pub const ERROR_SERVER_TRANSPORT_CONFLICT: WIN32_ERROR = 816u32;
pub const ERROR_CERTIFICATE_VALIDATION_PREFERENCE_CONFLICT: WIN32_ERROR = 817u32;
pub const ERROR_FT_READ_FROM_COPY_FAILURE: WIN32_ERROR = 818u32;
pub const ERROR_SECTION_DIRECT_MAP_ONLY: WIN32_ERROR = 819u32;
pub const ERROR_EA_ACCESS_DENIED: WIN32_ERROR = 994u32;
pub const ERROR_OPERATION_ABORTED: WIN32_ERROR = 995u32;
pub const ERROR_IO_INCOMPLETE: WIN32_ERROR = 996u32;
pub const ERROR_IO_PENDING: WIN32_ERROR = 997u32;
pub const ERROR_NOACCESS: WIN32_ERROR = 998u32;
pub const ERROR_SWAPERROR: WIN32_ERROR = 999u32;
pub const ERROR_STACK_OVERFLOW: WIN32_ERROR = 1001u32;
pub const ERROR_INVALID_MESSAGE: WIN32_ERROR = 1002u32;
pub const ERROR_CAN_NOT_COMPLETE: WIN32_ERROR = 1003u32;
pub const ERROR_INVALID_FLAGS: WIN32_ERROR = 1004u32;
pub const ERROR_UNRECOGNIZED_VOLUME: WIN32_ERROR = 1005u32;
pub const ERROR_FILE_INVALID: WIN32_ERROR = 1006u32;
pub const ERROR_FULLSCREEN_MODE: WIN32_ERROR = 1007u32;
pub const ERROR_NO_TOKEN: WIN32_ERROR = 1008u32;
pub const ERROR_BADDB: WIN32_ERROR = 1009u32;
pub const ERROR_BADKEY: WIN32_ERROR = 1010u32;
pub const ERROR_CANTOPEN: WIN32_ERROR = 1011u32;
pub const ERROR_CANTREAD: WIN32_ERROR = 1012u32;
pub const ERROR_CANTWRITE: WIN32_ERROR = 1013u32;
pub const ERROR_REGISTRY_RECOVERED: WIN32_ERROR = 1014u32;
pub const ERROR_REGISTRY_CORRUPT: WIN32_ERROR = 1015u32;
pub const ERROR_REGISTRY_IO_FAILED: WIN32_ERROR = 1016u32;
pub const ERROR_NOT_REGISTRY_FILE: WIN32_ERROR = 1017u32;
pub const ERROR_KEY_DELETED: WIN32_ERROR = 1018u32;
pub const ERROR_NO_LOG_SPACE: WIN32_ERROR = 1019u32;
pub const ERROR_KEY_HAS_CHILDREN: WIN32_ERROR = 1020u32;
pub const ERROR_CHILD_MUST_BE_VOLATILE: WIN32_ERROR = 1021u32;
pub const ERROR_NOTIFY_ENUM_DIR: WIN32_ERROR = 1022u32;
pub const ERROR_DEPENDENT_SERVICES_RUNNING: WIN32_ERROR = 1051u32;
pub const ERROR_INVALID_SERVICE_CONTROL: WIN32_ERROR = 1052u32;
pub const ERROR_SERVICE_REQUEST_TIMEOUT: WIN32_ERROR = 1053u32;
pub const ERROR_SERVICE_NO_THREAD: WIN32_ERROR = 1054u32;
pub const ERROR_SERVICE_DATABASE_LOCKED: WIN32_ERROR = 1055u32;
pub const ERROR_SERVICE_ALREADY_RUNNING: WIN32_ERROR = 1056u32;
pub const ERROR_INVALID_SERVICE_ACCOUNT: WIN32_ERROR = 1057u32;
pub const ERROR_SERVICE_DISABLED: WIN32_ERROR = 1058u32;
pub const ERROR_CIRCULAR_DEPENDENCY: WIN32_ERROR = 1059u32;
pub const ERROR_SERVICE_DOES_NOT_EXIST: WIN32_ERROR = 1060u32;
pub const ERROR_SERVICE_CANNOT_ACCEPT_CTRL: WIN32_ERROR = 1061u32;
pub const ERROR_SERVICE_NOT_ACTIVE: WIN32_ERROR = 1062u32;
pub const ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: WIN32_ERROR = 1063u32;
pub const ERROR_EXCEPTION_IN_SERVICE: WIN32_ERROR = 1064u32;
pub const ERROR_DATABASE_DOES_NOT_EXIST: WIN32_ERROR = 1065u32;
pub const ERROR_SERVICE_SPECIFIC_ERROR: WIN32_ERROR = 1066u32;
pub const ERROR_PROCESS_ABORTED: WIN32_ERROR = 1067u32;
pub const ERROR_SERVICE_DEPENDENCY_FAIL: WIN32_ERROR = 1068u32;
pub const ERROR_SERVICE_LOGON_FAILED: WIN32_ERROR = 1069u32;
pub const ERROR_SERVICE_START_HANG: WIN32_ERROR = 1070u32;
pub const ERROR_INVALID_SERVICE_LOCK: WIN32_ERROR = 1071u32;
pub const ERROR_SERVICE_MARKED_FOR_DELETE: WIN32_ERROR = 1072u32;
pub const ERROR_SERVICE_EXISTS: WIN32_ERROR = 1073u32;
pub const ERROR_ALREADY_RUNNING_LKG: WIN32_ERROR = 1074u32;
pub const ERROR_SERVICE_DEPENDENCY_DELETED: WIN32_ERROR = 1075u32;
pub const ERROR_BOOT_ALREADY_ACCEPTED: WIN32_ERROR = 1076u32;
pub const ERROR_SERVICE_NEVER_STARTED: WIN32_ERROR = 1077u32;
pub const ERROR_DUPLICATE_SERVICE_NAME: WIN32_ERROR = 1078u32;
pub const ERROR_DIFFERENT_SERVICE_ACCOUNT: WIN32_ERROR = 1079u32;
pub const ERROR_CANNOT_DETECT_DRIVER_FAILURE: WIN32_ERROR = 1080u32;
pub const ERROR_CANNOT_DETECT_PROCESS_ABORT: WIN32_ERROR = 1081u32;
pub const ERROR_NO_RECOVERY_PROGRAM: WIN32_ERROR = 1082u32;
pub const ERROR_SERVICE_NOT_IN_EXE: WIN32_ERROR = 1083u32;
pub const ERROR_NOT_SAFEBOOT_SERVICE: WIN32_ERROR = 1084u32;
pub const ERROR_END_OF_MEDIA: WIN32_ERROR = 1100u32;
pub const ERROR_FILEMARK_DETECTED: WIN32_ERROR = 1101u32;
pub const ERROR_BEGINNING_OF_MEDIA: WIN32_ERROR = 1102u32;
pub const ERROR_SETMARK_DETECTED: WIN32_ERROR = 1103u32;
pub const ERROR_NO_DATA_DETECTED: WIN32_ERROR = 1104u32;
pub const ERROR_PARTITION_FAILURE: WIN32_ERROR = 1105u32;
pub const ERROR_INVALID_BLOCK_LENGTH: WIN32_ERROR = 1106u32;
pub const ERROR_DEVICE_NOT_PARTITIONED: WIN32_ERROR = 1107u32;
pub const ERROR_UNABLE_TO_LOCK_MEDIA: WIN32_ERROR = 1108u32;
pub const ERROR_UNABLE_TO_UNLOAD_MEDIA: WIN32_ERROR = 1109u32;
pub const ERROR_MEDIA_CHANGED: WIN32_ERROR = 1110u32;
pub const ERROR_BUS_RESET: WIN32_ERROR = 1111u32;
pub const ERROR_NO_MEDIA_IN_DRIVE: WIN32_ERROR = 1112u32;
pub const ERROR_NO_UNICODE_TRANSLATION: WIN32_ERROR = 1113u32;
pub const ERROR_DLL_INIT_FAILED: WIN32_ERROR = 1114u32;
pub const ERROR_SHUTDOWN_IN_PROGRESS: WIN32_ERROR = 1115u32;
pub const ERROR_NO_SHUTDOWN_IN_PROGRESS: WIN32_ERROR = 1116u32;
pub const ERROR_IO_DEVICE: WIN32_ERROR = 1117u32;
pub const ERROR_SERIAL_NO_DEVICE: WIN32_ERROR = 1118u32;
pub const ERROR_IRQ_BUSY: WIN32_ERROR = 1119u32;
pub const ERROR_MORE_WRITES: WIN32_ERROR = 1120u32;
pub const ERROR_COUNTER_TIMEOUT: WIN32_ERROR = 1121u32;
pub const ERROR_FLOPPY_ID_MARK_NOT_FOUND: WIN32_ERROR = 1122u32;
pub const ERROR_FLOPPY_WRONG_CYLINDER: WIN32_ERROR = 1123u32;
pub const ERROR_FLOPPY_UNKNOWN_ERROR: WIN32_ERROR = 1124u32;
pub const ERROR_FLOPPY_BAD_REGISTERS: WIN32_ERROR = 1125u32;
pub const ERROR_DISK_RECALIBRATE_FAILED: WIN32_ERROR = 1126u32;
pub const ERROR_DISK_OPERATION_FAILED: WIN32_ERROR = 1127u32;
pub const ERROR_DISK_RESET_FAILED: WIN32_ERROR = 1128u32;
pub const ERROR_EOM_OVERFLOW: WIN32_ERROR = 1129u32;
pub const ERROR_NOT_ENOUGH_SERVER_MEMORY: WIN32_ERROR = 1130u32;
pub const ERROR_POSSIBLE_DEADLOCK: WIN32_ERROR = 1131u32;
pub const ERROR_MAPPED_ALIGNMENT: WIN32_ERROR = 1132u32;
pub const ERROR_SET_POWER_STATE_VETOED: WIN32_ERROR = 1140u32;
pub const ERROR_SET_POWER_STATE_FAILED: WIN32_ERROR = 1141u32;
pub const ERROR_TOO_MANY_LINKS: WIN32_ERROR = 1142u32;
pub const ERROR_OLD_WIN_VERSION: WIN32_ERROR = 1150u32;
pub const ERROR_APP_WRONG_OS: WIN32_ERROR = 1151u32;
pub const ERROR_SINGLE_INSTANCE_APP: WIN32_ERROR = 1152u32;
pub const ERROR_RMODE_APP: WIN32_ERROR = 1153u32;
pub const ERROR_INVALID_DLL: WIN32_ERROR = 1154u32;
pub const ERROR_NO_ASSOCIATION: WIN32_ERROR = 1155u32;
pub const ERROR_DDE_FAIL: WIN32_ERROR = 1156u32;
pub const ERROR_DLL_NOT_FOUND: WIN32_ERROR = 1157u32;
pub const ERROR_NO_MORE_USER_HANDLES: WIN32_ERROR = 1158u32;
pub const ERROR_MESSAGE_SYNC_ONLY: WIN32_ERROR = 1159u32;
pub const ERROR_SOURCE_ELEMENT_EMPTY: WIN32_ERROR = 1160u32;
pub const ERROR_DESTINATION_ELEMENT_FULL: WIN32_ERROR = 1161u32;
pub const ERROR_ILLEGAL_ELEMENT_ADDRESS: WIN32_ERROR = 1162u32;
pub const ERROR_MAGAZINE_NOT_PRESENT: WIN32_ERROR = 1163u32;
pub const ERROR_DEVICE_REINITIALIZATION_NEEDED: WIN32_ERROR = 1164u32;
pub const ERROR_DEVICE_REQUIRES_CLEANING: WIN32_ERROR = 1165u32;
pub const ERROR_DEVICE_DOOR_OPEN: WIN32_ERROR = 1166u32;
pub const ERROR_DEVICE_NOT_CONNECTED: WIN32_ERROR = 1167u32;
pub const ERROR_NOT_FOUND: WIN32_ERROR = 1168u32;
pub const ERROR_NO_MATCH: WIN32_ERROR = 1169u32;
pub const ERROR_SET_NOT_FOUND: WIN32_ERROR = 1170u32;
pub const ERROR_POINT_NOT_FOUND: WIN32_ERROR = 1171u32;
pub const ERROR_NO_TRACKING_SERVICE: WIN32_ERROR = 1172u32;
pub const ERROR_NO_VOLUME_ID: WIN32_ERROR = 1173u32;
pub const ERROR_UNABLE_TO_REMOVE_REPLACED: WIN32_ERROR = 1175u32;
pub const ERROR_UNABLE_TO_MOVE_REPLACEMENT: WIN32_ERROR = 1176u32;
pub const ERROR_UNABLE_TO_MOVE_REPLACEMENT_2: WIN32_ERROR = 1177u32;
pub const ERROR_JOURNAL_DELETE_IN_PROGRESS: WIN32_ERROR = 1178u32;
pub const ERROR_JOURNAL_NOT_ACTIVE: WIN32_ERROR = 1179u32;
pub const ERROR_POTENTIAL_FILE_FOUND: WIN32_ERROR = 1180u32;
pub const ERROR_JOURNAL_ENTRY_DELETED: WIN32_ERROR = 1181u32;
pub const ERROR_PARTITION_TERMINATING: WIN32_ERROR = 1184u32;
pub const ERROR_SHUTDOWN_IS_SCHEDULED: WIN32_ERROR = 1190u32;
pub const ERROR_SHUTDOWN_USERS_LOGGED_ON: WIN32_ERROR = 1191u32;
pub const ERROR_SHUTDOWN_DISKS_NOT_IN_MAINTENANCE_MODE: WIN32_ERROR = 1192u32;
pub const ERROR_BAD_DEVICE: WIN32_ERROR = 1200u32;
pub const ERROR_CONNECTION_UNAVAIL: WIN32_ERROR = 1201u32;
pub const ERROR_DEVICE_ALREADY_REMEMBERED: WIN32_ERROR = 1202u32;
pub const ERROR_NO_NET_OR_BAD_PATH: WIN32_ERROR = 1203u32;
pub const ERROR_BAD_PROVIDER: WIN32_ERROR = 1204u32;
pub const ERROR_CANNOT_OPEN_PROFILE: WIN32_ERROR = 1205u32;
pub const ERROR_BAD_PROFILE: WIN32_ERROR = 1206u32;
pub const ERROR_NOT_CONTAINER: WIN32_ERROR = 1207u32;
pub const ERROR_EXTENDED_ERROR: WIN32_ERROR = 1208u32;
pub const ERROR_INVALID_GROUPNAME: WIN32_ERROR = 1209u32;
pub const ERROR_INVALID_COMPUTERNAME: WIN32_ERROR = 1210u32;
pub const ERROR_INVALID_EVENTNAME: WIN32_ERROR = 1211u32;
pub const ERROR_INVALID_DOMAINNAME: WIN32_ERROR = 1212u32;
pub const ERROR_INVALID_SERVICENAME: WIN32_ERROR = 1213u32;
pub const ERROR_INVALID_NETNAME: WIN32_ERROR = 1214u32;
pub const ERROR_INVALID_SHARENAME: WIN32_ERROR = 1215u32;
pub const ERROR_INVALID_PASSWORDNAME: WIN32_ERROR = 1216u32;
pub const ERROR_INVALID_MESSAGENAME: WIN32_ERROR = 1217u32;
pub const ERROR_INVALID_MESSAGEDEST: WIN32_ERROR = 1218u32;
pub const ERROR_SESSION_CREDENTIAL_CONFLICT: WIN32_ERROR = 1219u32;
pub const ERROR_REMOTE_SESSION_LIMIT_EXCEEDED: WIN32_ERROR = 1220u32;
pub const ERROR_DUP_DOMAINNAME: WIN32_ERROR = 1221u32;
pub const ERROR_NO_NETWORK: WIN32_ERROR = 1222u32;
pub const ERROR_CANCELLED: WIN32_ERROR = 1223u32;
pub const ERROR_USER_MAPPED_FILE: WIN32_ERROR = 1224u32;
pub const ERROR_CONNECTION_REFUSED: WIN32_ERROR = 1225u32;
pub const ERROR_GRACEFUL_DISCONNECT: WIN32_ERROR = 1226u32;
pub const ERROR_ADDRESS_ALREADY_ASSOCIATED: WIN32_ERROR = 1227u32;
pub const ERROR_ADDRESS_NOT_ASSOCIATED: WIN32_ERROR = 1228u32;
pub const ERROR_CONNECTION_INVALID: WIN32_ERROR = 1229u32;
pub const ERROR_CONNECTION_ACTIVE: WIN32_ERROR = 1230u32;
pub const ERROR_NETWORK_UNREACHABLE: WIN32_ERROR = 1231u32;
pub const ERROR_HOST_UNREACHABLE: WIN32_ERROR = 1232u32;
pub const ERROR_PROTOCOL_UNREACHABLE: WIN32_ERROR = 1233u32;
pub const ERROR_PORT_UNREACHABLE: WIN32_ERROR = 1234u32;
pub const ERROR_REQUEST_ABORTED: WIN32_ERROR = 1235u32;
pub const ERROR_CONNECTION_ABORTED: WIN32_ERROR = 1236u32;
pub const ERROR_RETRY: WIN32_ERROR = 1237u32;
pub const ERROR_CONNECTION_COUNT_LIMIT: WIN32_ERROR = 1238u32;
pub const ERROR_LOGIN_TIME_RESTRICTION: WIN32_ERROR = 1239u32;
pub const ERROR_LOGIN_WKSTA_RESTRICTION: WIN32_ERROR = 1240u32;
pub const ERROR_INCORRECT_ADDRESS: WIN32_ERROR = 1241u32;
pub const ERROR_ALREADY_REGISTERED: WIN32_ERROR = 1242u32;
pub const ERROR_SERVICE_NOT_FOUND: WIN32_ERROR = 1243u32;
pub const ERROR_NOT_AUTHENTICATED: WIN32_ERROR = 1244u32;
pub const ERROR_NOT_LOGGED_ON: WIN32_ERROR = 1245u32;
pub const ERROR_CONTINUE: WIN32_ERROR = 1246u32;
pub const ERROR_ALREADY_INITIALIZED: WIN32_ERROR = 1247u32;
pub const ERROR_NO_MORE_DEVICES: WIN32_ERROR = 1248u32;
pub const ERROR_NO_SUCH_SITE: WIN32_ERROR = 1249u32;
pub const ERROR_DOMAIN_CONTROLLER_EXISTS: WIN32_ERROR = 1250u32;
pub const ERROR_ONLY_IF_CONNECTED: WIN32_ERROR = 1251u32;
pub const ERROR_OVERRIDE_NOCHANGES: WIN32_ERROR = 1252u32;
pub const ERROR_BAD_USER_PROFILE: WIN32_ERROR = 1253u32;
pub const ERROR_NOT_SUPPORTED_ON_SBS: WIN32_ERROR = 1254u32;
pub const ERROR_SERVER_SHUTDOWN_IN_PROGRESS: WIN32_ERROR = 1255u32;
pub const ERROR_HOST_DOWN: WIN32_ERROR = 1256u32;
pub const ERROR_NON_ACCOUNT_SID: WIN32_ERROR = 1257u32;
pub const ERROR_NON_DOMAIN_SID: WIN32_ERROR = 1258u32;
pub const ERROR_APPHELP_BLOCK: WIN32_ERROR = 1259u32;
pub const ERROR_ACCESS_DISABLED_BY_POLICY: WIN32_ERROR = 1260u32;
pub const ERROR_REG_NAT_CONSUMPTION: WIN32_ERROR = 1261u32;
pub const ERROR_CSCSHARE_OFFLINE: WIN32_ERROR = 1262u32;
pub const ERROR_PKINIT_FAILURE: WIN32_ERROR = 1263u32;
pub const ERROR_SMARTCARD_SUBSYSTEM_FAILURE: WIN32_ERROR = 1264u32;
pub const ERROR_DOWNGRADE_DETECTED: WIN32_ERROR = 1265u32;
pub const ERROR_MACHINE_LOCKED: WIN32_ERROR = 1271u32;
pub const ERROR_SMB_GUEST_LOGON_BLOCKED: WIN32_ERROR = 1272u32;
pub const ERROR_CALLBACK_SUPPLIED_INVALID_DATA: WIN32_ERROR = 1273u32;
pub const ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED: WIN32_ERROR = 1274u32;
pub const ERROR_DRIVER_BLOCKED: WIN32_ERROR = 1275u32;
pub const ERROR_INVALID_IMPORT_OF_NON_DLL: WIN32_ERROR = 1276u32;
pub const ERROR_ACCESS_DISABLED_WEBBLADE: WIN32_ERROR = 1277u32;
pub const ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER: WIN32_ERROR = 1278u32;
pub const ERROR_RECOVERY_FAILURE: WIN32_ERROR = 1279u32;
pub const ERROR_ALREADY_FIBER: WIN32_ERROR = 1280u32;
pub const ERROR_ALREADY_THREAD: WIN32_ERROR = 1281u32;
pub const ERROR_STACK_BUFFER_OVERRUN: WIN32_ERROR = 1282u32;
pub const ERROR_PARAMETER_QUOTA_EXCEEDED: WIN32_ERROR = 1283u32;
pub const ERROR_DEBUGGER_INACTIVE: WIN32_ERROR = 1284u32;
pub const ERROR_DELAY_LOAD_FAILED: WIN32_ERROR = 1285u32;
pub const ERROR_VDM_DISALLOWED: WIN32_ERROR = 1286u32;
pub const ERROR_UNIDENTIFIED_ERROR: WIN32_ERROR = 1287u32;
pub const ERROR_INVALID_CRUNTIME_PARAMETER: WIN32_ERROR = 1288u32;
pub const ERROR_BEYOND_VDL: WIN32_ERROR = 1289u32;
pub const ERROR_INCOMPATIBLE_SERVICE_SID_TYPE: WIN32_ERROR = 1290u32;
pub const ERROR_DRIVER_PROCESS_TERMINATED: WIN32_ERROR = 1291u32;
pub const ERROR_IMPLEMENTATION_LIMIT: WIN32_ERROR = 1292u32;
pub const ERROR_PROCESS_IS_PROTECTED: WIN32_ERROR = 1293u32;
pub const ERROR_SERVICE_NOTIFY_CLIENT_LAGGING: WIN32_ERROR = 1294u32;
pub const ERROR_DISK_QUOTA_EXCEEDED: WIN32_ERROR = 1295u32;
pub const ERROR_CONTENT_BLOCKED: WIN32_ERROR = 1296u32;
pub const ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE: WIN32_ERROR = 1297u32;
pub const ERROR_APP_HANG: WIN32_ERROR = 1298u32;
pub const ERROR_INVALID_LABEL: WIN32_ERROR = 1299u32;
pub const ERROR_NOT_ALL_ASSIGNED: WIN32_ERROR = 1300u32;
pub const ERROR_SOME_NOT_MAPPED: WIN32_ERROR = 1301u32;
pub const ERROR_NO_QUOTAS_FOR_ACCOUNT: WIN32_ERROR = 1302u32;
pub const ERROR_LOCAL_USER_SESSION_KEY: WIN32_ERROR = 1303u32;
pub const ERROR_NULL_LM_PASSWORD: WIN32_ERROR = 1304u32;
pub const ERROR_UNKNOWN_REVISION: WIN32_ERROR = 1305u32;
pub const ERROR_REVISION_MISMATCH: WIN32_ERROR = 1306u32;
pub const ERROR_INVALID_OWNER: WIN32_ERROR = 1307u32;
pub const ERROR_INVALID_PRIMARY_GROUP: WIN32_ERROR = 1308u32;
pub const ERROR_NO_IMPERSONATION_TOKEN: WIN32_ERROR = 1309u32;
pub const ERROR_CANT_DISABLE_MANDATORY: WIN32_ERROR = 1310u32;
pub const ERROR_NO_LOGON_SERVERS: WIN32_ERROR = 1311u32;
pub const ERROR_NO_SUCH_LOGON_SESSION: WIN32_ERROR = 1312u32;
pub const ERROR_NO_SUCH_PRIVILEGE: WIN32_ERROR = 1313u32;
pub const ERROR_PRIVILEGE_NOT_HELD: WIN32_ERROR = 1314u32;
pub const ERROR_INVALID_ACCOUNT_NAME: WIN32_ERROR = 1315u32;
pub const ERROR_USER_EXISTS: WIN32_ERROR = 1316u32;
pub const ERROR_NO_SUCH_USER: WIN32_ERROR = 1317u32;
pub const ERROR_GROUP_EXISTS: WIN32_ERROR = 1318u32;
pub const ERROR_NO_SUCH_GROUP: WIN32_ERROR = 1319u32;
pub const ERROR_MEMBER_IN_GROUP: WIN32_ERROR = 1320u32;
pub const ERROR_MEMBER_NOT_IN_GROUP: WIN32_ERROR = 1321u32;
pub const ERROR_LAST_ADMIN: WIN32_ERROR = 1322u32;
pub const ERROR_WRONG_PASSWORD: WIN32_ERROR = 1323u32;
pub const ERROR_ILL_FORMED_PASSWORD: WIN32_ERROR = 1324u32;
pub const ERROR_PASSWORD_RESTRICTION: WIN32_ERROR = 1325u32;
pub const ERROR_LOGON_FAILURE: WIN32_ERROR = 1326u32;
pub const ERROR_ACCOUNT_RESTRICTION: WIN32_ERROR = 1327u32;
pub const ERROR_INVALID_LOGON_HOURS: WIN32_ERROR = 1328u32;
pub const ERROR_INVALID_WORKSTATION: WIN32_ERROR = 1329u32;
pub const ERROR_PASSWORD_EXPIRED: WIN32_ERROR = 1330u32;
pub const ERROR_ACCOUNT_DISABLED: WIN32_ERROR = 1331u32;
pub const ERROR_NONE_MAPPED: WIN32_ERROR = 1332u32;
pub const ERROR_TOO_MANY_LUIDS_REQUESTED: WIN32_ERROR = 1333u32;
pub const ERROR_LUIDS_EXHAUSTED: WIN32_ERROR = 1334u32;
pub const ERROR_INVALID_SUB_AUTHORITY: WIN32_ERROR = 1335u32;
pub const ERROR_INVALID_ACL: WIN32_ERROR = 1336u32;
pub const ERROR_INVALID_SID: WIN32_ERROR = 1337u32;
pub const ERROR_INVALID_SECURITY_DESCR: WIN32_ERROR = 1338u32;
pub const ERROR_BAD_INHERITANCE_ACL: WIN32_ERROR = 1340u32;
pub const ERROR_SERVER_DISABLED: WIN32_ERROR = 1341u32;
pub const ERROR_SERVER_NOT_DISABLED: WIN32_ERROR = 1342u32;
pub const ERROR_INVALID_ID_AUTHORITY: WIN32_ERROR = 1343u32;
pub const ERROR_ALLOTTED_SPACE_EXCEEDED: WIN32_ERROR = 1344u32;
pub const ERROR_INVALID_GROUP_ATTRIBUTES: WIN32_ERROR = 1345u32;
pub const ERROR_BAD_IMPERSONATION_LEVEL: WIN32_ERROR = 1346u32;
pub const ERROR_CANT_OPEN_ANONYMOUS: WIN32_ERROR = 1347u32;
pub const ERROR_BAD_VALIDATION_CLASS: WIN32_ERROR = 1348u32;
pub const ERROR_BAD_TOKEN_TYPE: WIN32_ERROR = 1349u32;
pub const ERROR_NO_SECURITY_ON_OBJECT: WIN32_ERROR = 1350u32;
pub const ERROR_CANT_ACCESS_DOMAIN_INFO: WIN32_ERROR = 1351u32;
pub const ERROR_INVALID_SERVER_STATE: WIN32_ERROR = 1352u32;
pub const ERROR_INVALID_DOMAIN_STATE: WIN32_ERROR = 1353u32;
pub const ERROR_INVALID_DOMAIN_ROLE: WIN32_ERROR = 1354u32;
pub const ERROR_NO_SUCH_DOMAIN: WIN32_ERROR = 1355u32;
pub const ERROR_DOMAIN_EXISTS: WIN32_ERROR = 1356u32;
pub const ERROR_DOMAIN_LIMIT_EXCEEDED: WIN32_ERROR = 1357u32;
pub const ERROR_INTERNAL_DB_CORRUPTION: WIN32_ERROR = 1358u32;
pub const ERROR_INTERNAL_ERROR: WIN32_ERROR = 1359u32;
pub const ERROR_GENERIC_NOT_MAPPED: WIN32_ERROR = 1360u32;
pub const ERROR_BAD_DESCRIPTOR_FORMAT: WIN32_ERROR = 1361u32;
pub const ERROR_NOT_LOGON_PROCESS: WIN32_ERROR = 1362u32;
pub const ERROR_LOGON_SESSION_EXISTS: WIN32_ERROR = 1363u32;
pub const ERROR_NO_SUCH_PACKAGE: WIN32_ERROR = 1364u32;
pub const ERROR_BAD_LOGON_SESSION_STATE: WIN32_ERROR = 1365u32;
pub const ERROR_LOGON_SESSION_COLLISION: WIN32_ERROR = 1366u32;
pub const ERROR_INVALID_LOGON_TYPE: WIN32_ERROR = 1367u32;
pub const ERROR_CANNOT_IMPERSONATE: WIN32_ERROR = 1368u32;
pub const ERROR_RXACT_INVALID_STATE: WIN32_ERROR = 1369u32;
pub const ERROR_RXACT_COMMIT_FAILURE: WIN32_ERROR = 1370u32;
pub const ERROR_SPECIAL_ACCOUNT: WIN32_ERROR = 1371u32;
pub const ERROR_SPECIAL_GROUP: WIN32_ERROR = 1372u32;
pub const ERROR_SPECIAL_USER: WIN32_ERROR = 1373u32;
pub const ERROR_MEMBERS_PRIMARY_GROUP: WIN32_ERROR = 1374u32;
pub const ERROR_TOKEN_ALREADY_IN_USE: WIN32_ERROR = 1375u32;
pub const ERROR_NO_SUCH_ALIAS: WIN32_ERROR = 1376u32;
pub const ERROR_MEMBER_NOT_IN_ALIAS: WIN32_ERROR = 1377u32;
pub const ERROR_MEMBER_IN_ALIAS: WIN32_ERROR = 1378u32;
pub const ERROR_ALIAS_EXISTS: WIN32_ERROR = 1379u32;
pub const ERROR_LOGON_NOT_GRANTED: WIN32_ERROR = 1380u32;
pub const ERROR_TOO_MANY_SECRETS: WIN32_ERROR = 1381u32;
pub const ERROR_SECRET_TOO_LONG: WIN32_ERROR = 1382u32;
pub const ERROR_INTERNAL_DB_ERROR: WIN32_ERROR = 1383u32;
pub const ERROR_TOO_MANY_CONTEXT_IDS: WIN32_ERROR = 1384u32;
pub const ERROR_LOGON_TYPE_NOT_GRANTED: WIN32_ERROR = 1385u32;
pub const ERROR_NT_CROSS_ENCRYPTION_REQUIRED: WIN32_ERROR = 1386u32;
pub const ERROR_NO_SUCH_MEMBER: WIN32_ERROR = 1387u32;
pub const ERROR_INVALID_MEMBER: WIN32_ERROR = 1388u32;
pub const ERROR_TOO_MANY_SIDS: WIN32_ERROR = 1389u32;
pub const ERROR_LM_CROSS_ENCRYPTION_REQUIRED: WIN32_ERROR = 1390u32;
pub const ERROR_NO_INHERITANCE: WIN32_ERROR = 1391u32;
pub const ERROR_FILE_CORRUPT: WIN32_ERROR = 1392u32;
pub const ERROR_DISK_CORRUPT: WIN32_ERROR = 1393u32;
pub const ERROR_NO_USER_SESSION_KEY: WIN32_ERROR = 1394u32;
pub const ERROR_LICENSE_QUOTA_EXCEEDED: WIN32_ERROR = 1395u32;
pub const ERROR_WRONG_TARGET_NAME: WIN32_ERROR = 1396u32;
pub const ERROR_MUTUAL_AUTH_FAILED: WIN32_ERROR = 1397u32;
pub const ERROR_TIME_SKEW: WIN32_ERROR = 1398u32;
pub const ERROR_CURRENT_DOMAIN_NOT_ALLOWED: WIN32_ERROR = 1399u32;
pub const ERROR_INVALID_WINDOW_HANDLE: WIN32_ERROR = 1400u32;
pub const ERROR_INVALID_MENU_HANDLE: WIN32_ERROR = 1401u32;
pub const ERROR_INVALID_CURSOR_HANDLE: WIN32_ERROR = 1402u32;
pub const ERROR_INVALID_ACCEL_HANDLE: WIN32_ERROR = 1403u32;
pub const ERROR_INVALID_HOOK_HANDLE: WIN32_ERROR = 1404u32;
pub const ERROR_INVALID_DWP_HANDLE: WIN32_ERROR = 1405u32;
pub const ERROR_TLW_WITH_WSCHILD: WIN32_ERROR = 1406u32;
pub const ERROR_CANNOT_FIND_WND_CLASS: WIN32_ERROR = 1407u32;
pub const ERROR_WINDOW_OF_OTHER_THREAD: WIN32_ERROR = 1408u32;
pub const ERROR_HOTKEY_ALREADY_REGISTERED: WIN32_ERROR = 1409u32;
pub const ERROR_CLASS_ALREADY_EXISTS: WIN32_ERROR = 1410u32;
pub const ERROR_CLASS_DOES_NOT_EXIST: WIN32_ERROR = 1411u32;
pub const ERROR_CLASS_HAS_WINDOWS: WIN32_ERROR = 1412u32;
pub const ERROR_INVALID_INDEX: WIN32_ERROR = 1413u32;
pub const ERROR_INVALID_ICON_HANDLE: WIN32_ERROR = 1414u32;
pub const ERROR_PRIVATE_DIALOG_INDEX: WIN32_ERROR = 1415u32;
pub const ERROR_LISTBOX_ID_NOT_FOUND: WIN32_ERROR = 1416u32;
pub const ERROR_NO_WILDCARD_CHARACTERS: WIN32_ERROR = 1417u32;
pub const ERROR_CLIPBOARD_NOT_OPEN: WIN32_ERROR = 1418u32;
pub const ERROR_HOTKEY_NOT_REGISTERED: WIN32_ERROR = 1419u32;
pub const ERROR_WINDOW_NOT_DIALOG: WIN32_ERROR = 1420u32;
pub const ERROR_CONTROL_ID_NOT_FOUND: WIN32_ERROR = 1421u32;
pub const ERROR_INVALID_COMBOBOX_MESSAGE: WIN32_ERROR = 1422u32;
pub const ERROR_WINDOW_NOT_COMBOBOX: WIN32_ERROR = 1423u32;
pub const ERROR_INVALID_EDIT_HEIGHT: WIN32_ERROR = 1424u32;
pub const ERROR_DC_NOT_FOUND: WIN32_ERROR = 1425u32;
pub const ERROR_INVALID_HOOK_FILTER: WIN32_ERROR = 1426u32;
pub const ERROR_INVALID_FILTER_PROC: WIN32_ERROR = 1427u32;
pub const ERROR_HOOK_NEEDS_HMOD: WIN32_ERROR = 1428u32;
pub const ERROR_GLOBAL_ONLY_HOOK: WIN32_ERROR = 1429u32;
pub const ERROR_JOURNAL_HOOK_SET: WIN32_ERROR = 1430u32;
pub const ERROR_HOOK_NOT_INSTALLED: WIN32_ERROR = 1431u32;
pub const ERROR_INVALID_LB_MESSAGE: WIN32_ERROR = 1432u32;
pub const ERROR_SETCOUNT_ON_BAD_LB: WIN32_ERROR = 1433u32;
pub const ERROR_LB_WITHOUT_TABSTOPS: WIN32_ERROR = 1434u32;
pub const ERROR_DESTROY_OBJECT_OF_OTHER_THREAD: WIN32_ERROR = 1435u32;
pub const ERROR_CHILD_WINDOW_MENU: WIN32_ERROR = 1436u32;
pub const ERROR_NO_SYSTEM_MENU: WIN32_ERROR = 1437u32;
pub const ERROR_INVALID_MSGBOX_STYLE: WIN32_ERROR = 1438u32;
pub const ERROR_INVALID_SPI_VALUE: WIN32_ERROR = 1439u32;
pub const ERROR_SCREEN_ALREADY_LOCKED: WIN32_ERROR = 1440u32;
pub const ERROR_HWNDS_HAVE_DIFF_PARENT: WIN32_ERROR = 1441u32;
pub const ERROR_NOT_CHILD_WINDOW: WIN32_ERROR = 1442u32;
pub const ERROR_INVALID_GW_COMMAND: WIN32_ERROR = 1443u32;
pub const ERROR_INVALID_THREAD_ID: WIN32_ERROR = 1444u32;
pub const ERROR_NON_MDICHILD_WINDOW: WIN32_ERROR = 1445u32;
pub const ERROR_POPUP_ALREADY_ACTIVE: WIN32_ERROR = 1446u32;
pub const ERROR_NO_SCROLLBARS: WIN32_ERROR = 1447u32;
pub const ERROR_INVALID_SCROLLBAR_RANGE: WIN32_ERROR = 1448u32;
pub const ERROR_INVALID_SHOWWIN_COMMAND: WIN32_ERROR = 1449u32;
pub const ERROR_NO_SYSTEM_RESOURCES: WIN32_ERROR = 1450u32;
pub const ERROR_NONPAGED_SYSTEM_RESOURCES: WIN32_ERROR = 1451u32;
pub const ERROR_PAGED_SYSTEM_RESOURCES: WIN32_ERROR = 1452u32;
pub const ERROR_WORKING_SET_QUOTA: WIN32_ERROR = 1453u32;
pub const ERROR_PAGEFILE_QUOTA: WIN32_ERROR = 1454u32;
pub const ERROR_COMMITMENT_LIMIT: WIN32_ERROR = 1455u32;
pub const ERROR_MENU_ITEM_NOT_FOUND: WIN32_ERROR = 1456u32;
pub const ERROR_INVALID_KEYBOARD_HANDLE: WIN32_ERROR = 1457u32;
pub const ERROR_HOOK_TYPE_NOT_ALLOWED: WIN32_ERROR = 1458u32;
pub const ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION: WIN32_ERROR = 1459u32;
pub const ERROR_TIMEOUT: WIN32_ERROR = 1460u32;
pub const ERROR_INVALID_MONITOR_HANDLE: WIN32_ERROR = 1461u32;
pub const ERROR_INCORRECT_SIZE: WIN32_ERROR = 1462u32;
pub const ERROR_SYMLINK_CLASS_DISABLED: WIN32_ERROR = 1463u32;
pub const ERROR_SYMLINK_NOT_SUPPORTED: WIN32_ERROR = 1464u32;
pub const ERROR_XML_PARSE_ERROR: WIN32_ERROR = 1465u32;
pub const ERROR_XMLDSIG_ERROR: WIN32_ERROR = 1466u32;
pub const ERROR_RESTART_APPLICATION: WIN32_ERROR = 1467u32;
pub const ERROR_WRONG_COMPARTMENT: WIN32_ERROR = 1468u32;
pub const ERROR_AUTHIP_FAILURE: WIN32_ERROR = 1469u32;
pub const ERROR_NO_NVRAM_RESOURCES: WIN32_ERROR = 1470u32;
pub const ERROR_NOT_GUI_PROCESS: WIN32_ERROR = 1471u32;
pub const ERROR_EVENTLOG_FILE_CORRUPT: WIN32_ERROR = 1500u32;
pub const ERROR_EVENTLOG_CANT_START: WIN32_ERROR = 1501u32;
pub const ERROR_LOG_FILE_FULL: WIN32_ERROR = 1502u32;
pub const ERROR_EVENTLOG_FILE_CHANGED: WIN32_ERROR = 1503u32;
pub const ERROR_CONTAINER_ASSIGNED: WIN32_ERROR = 1504u32;
pub const ERROR_JOB_NO_CONTAINER: WIN32_ERROR = 1505u32;
pub const ERROR_INVALID_TASK_NAME: WIN32_ERROR = 1550u32;
pub const ERROR_INVALID_TASK_INDEX: WIN32_ERROR = 1551u32;
pub const ERROR_THREAD_ALREADY_IN_TASK: WIN32_ERROR = 1552u32;
pub const ERROR_INSTALL_SERVICE_FAILURE: WIN32_ERROR = 1601u32;
pub const ERROR_INSTALL_USEREXIT: WIN32_ERROR = 1602u32;
pub const ERROR_INSTALL_FAILURE: WIN32_ERROR = 1603u32;
pub const ERROR_INSTALL_SUSPEND: WIN32_ERROR = 1604u32;
pub const ERROR_UNKNOWN_PRODUCT: WIN32_ERROR = 1605u32;
pub const ERROR_UNKNOWN_FEATURE: WIN32_ERROR = 1606u32;
pub const ERROR_UNKNOWN_COMPONENT: WIN32_ERROR = 1607u32;
pub const ERROR_UNKNOWN_PROPERTY: WIN32_ERROR = 1608u32;
pub const ERROR_INVALID_HANDLE_STATE: WIN32_ERROR = 1609u32;
pub const ERROR_BAD_CONFIGURATION: WIN32_ERROR = 1610u32;
pub const ERROR_INDEX_ABSENT: WIN32_ERROR = 1611u32;
pub const ERROR_INSTALL_SOURCE_ABSENT: WIN32_ERROR = 1612u32;
pub const ERROR_INSTALL_PACKAGE_VERSION: WIN32_ERROR = 1613u32;
pub const ERROR_PRODUCT_UNINSTALLED: WIN32_ERROR = 1614u32;
pub const ERROR_BAD_QUERY_SYNTAX: WIN32_ERROR = 1615u32;
pub const ERROR_INVALID_FIELD: WIN32_ERROR = 1616u32;
pub const ERROR_DEVICE_REMOVED: WIN32_ERROR = 1617u32;
pub const ERROR_INSTALL_ALREADY_RUNNING: WIN32_ERROR = 1618u32;
pub const ERROR_INSTALL_PACKAGE_OPEN_FAILED: WIN32_ERROR = 1619u32;
pub const ERROR_INSTALL_PACKAGE_INVALID: WIN32_ERROR = 1620u32;
pub const ERROR_INSTALL_UI_FAILURE: WIN32_ERROR = 1621u32;
pub const ERROR_INSTALL_LOG_FAILURE: WIN32_ERROR = 1622u32;
pub const ERROR_INSTALL_LANGUAGE_UNSUPPORTED: WIN32_ERROR = 1623u32;
pub const ERROR_INSTALL_TRANSFORM_FAILURE: WIN32_ERROR = 1624u32;
pub const ERROR_INSTALL_PACKAGE_REJECTED: WIN32_ERROR = 1625u32;
pub const ERROR_FUNCTION_NOT_CALLED: WIN32_ERROR = 1626u32;
pub const ERROR_FUNCTION_FAILED: WIN32_ERROR = 1627u32;
pub const ERROR_INVALID_TABLE: WIN32_ERROR = 1628u32;
pub const ERROR_DATATYPE_MISMATCH: WIN32_ERROR = 1629u32;
pub const ERROR_UNSUPPORTED_TYPE: WIN32_ERROR = 1630u32;
pub const ERROR_CREATE_FAILED: WIN32_ERROR = 1631u32;
pub const ERROR_INSTALL_TEMP_UNWRITABLE: WIN32_ERROR = 1632u32;
pub const ERROR_INSTALL_PLATFORM_UNSUPPORTED: WIN32_ERROR = 1633u32;
pub const ERROR_INSTALL_NOTUSED: WIN32_ERROR = 1634u32;
pub const ERROR_PATCH_PACKAGE_OPEN_FAILED: WIN32_ERROR = 1635u32;
pub const ERROR_PATCH_PACKAGE_INVALID: WIN32_ERROR = 1636u32;
pub const ERROR_PATCH_PACKAGE_UNSUPPORTED: WIN32_ERROR = 1637u32;
pub const ERROR_PRODUCT_VERSION: WIN32_ERROR = 1638u32;
pub const ERROR_INVALID_COMMAND_LINE: WIN32_ERROR = 1639u32;
pub const ERROR_INSTALL_REMOTE_DISALLOWED: WIN32_ERROR = 1640u32;
pub const ERROR_SUCCESS_REBOOT_INITIATED: WIN32_ERROR = 1641u32;
pub const ERROR_PATCH_TARGET_NOT_FOUND: WIN32_ERROR = 1642u32;
pub const ERROR_PATCH_PACKAGE_REJECTED: WIN32_ERROR = 1643u32;
pub const ERROR_INSTALL_TRANSFORM_REJECTED: WIN32_ERROR = 1644u32;
pub const ERROR_INSTALL_REMOTE_PROHIBITED: WIN32_ERROR = 1645u32;
pub const ERROR_PATCH_REMOVAL_UNSUPPORTED: WIN32_ERROR = 1646u32;
pub const ERROR_UNKNOWN_PATCH: WIN32_ERROR = 1647u32;
pub const ERROR_PATCH_NO_SEQUENCE: WIN32_ERROR = 1648u32;
pub const ERROR_PATCH_REMOVAL_DISALLOWED: WIN32_ERROR = 1649u32;
pub const ERROR_INVALID_PATCH_XML: WIN32_ERROR = 1650u32;
pub const ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT: WIN32_ERROR = 1651u32;
pub const ERROR_INSTALL_SERVICE_SAFEBOOT: WIN32_ERROR = 1652u32;
pub const ERROR_FAIL_FAST_EXCEPTION: WIN32_ERROR = 1653u32;
pub const ERROR_INSTALL_REJECTED: WIN32_ERROR = 1654u32;
pub const ERROR_DYNAMIC_CODE_BLOCKED: WIN32_ERROR = 1655u32;
pub const ERROR_NOT_SAME_OBJECT: WIN32_ERROR = 1656u32;
pub const ERROR_STRICT_CFG_VIOLATION: WIN32_ERROR = 1657u32;
pub const ERROR_SET_CONTEXT_DENIED: WIN32_ERROR = 1660u32;
pub const ERROR_CROSS_PARTITION_VIOLATION: WIN32_ERROR = 1661u32;
pub const ERROR_RETURN_ADDRESS_HIJACK_ATTEMPT: WIN32_ERROR = 1662u32;
pub const ERROR_INVALID_USER_BUFFER: WIN32_ERROR = 1784u32;
pub const ERROR_UNRECOGNIZED_MEDIA: WIN32_ERROR = 1785u32;
pub const ERROR_NO_TRUST_LSA_SECRET: WIN32_ERROR = 1786u32;
pub const ERROR_NO_TRUST_SAM_ACCOUNT: WIN32_ERROR = 1787u32;
pub const ERROR_TRUSTED_DOMAIN_FAILURE: WIN32_ERROR = 1788u32;
pub const ERROR_TRUSTED_RELATIONSHIP_FAILURE: WIN32_ERROR = 1789u32;
pub const ERROR_TRUST_FAILURE: WIN32_ERROR = 1790u32;
pub const ERROR_NETLOGON_NOT_STARTED: WIN32_ERROR = 1792u32;
pub const ERROR_ACCOUNT_EXPIRED: WIN32_ERROR = 1793u32;
pub const ERROR_REDIRECTOR_HAS_OPEN_HANDLES: WIN32_ERROR = 1794u32;
pub const ERROR_PRINTER_DRIVER_ALREADY_INSTALLED: WIN32_ERROR = 1795u32;
pub const ERROR_UNKNOWN_PORT: WIN32_ERROR = 1796u32;
pub const ERROR_UNKNOWN_PRINTER_DRIVER: WIN32_ERROR = 1797u32;
pub const ERROR_UNKNOWN_PRINTPROCESSOR: WIN32_ERROR = 1798u32;
pub const ERROR_INVALID_SEPARATOR_FILE: WIN32_ERROR = 1799u32;
pub const ERROR_INVALID_PRIORITY: WIN32_ERROR = 1800u32;
pub const ERROR_INVALID_PRINTER_NAME: WIN32_ERROR = 1801u32;
pub const ERROR_PRINTER_ALREADY_EXISTS: WIN32_ERROR = 1802u32;
pub const ERROR_INVALID_PRINTER_COMMAND: WIN32_ERROR = 1803u32;
pub const ERROR_INVALID_DATATYPE: WIN32_ERROR = 1804u32;
pub const ERROR_INVALID_ENVIRONMENT: WIN32_ERROR = 1805u32;
pub const ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT: WIN32_ERROR = 1807u32;
pub const ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT: WIN32_ERROR = 1808u32;
pub const ERROR_NOLOGON_SERVER_TRUST_ACCOUNT: WIN32_ERROR = 1809u32;
pub const ERROR_DOMAIN_TRUST_INCONSISTENT: WIN32_ERROR = 1810u32;
pub const ERROR_SERVER_HAS_OPEN_HANDLES: WIN32_ERROR = 1811u32;
pub const ERROR_RESOURCE_DATA_NOT_FOUND: WIN32_ERROR = 1812u32;
pub const ERROR_RESOURCE_TYPE_NOT_FOUND: WIN32_ERROR = 1813u32;
pub const ERROR_RESOURCE_NAME_NOT_FOUND: WIN32_ERROR = 1814u32;
pub const ERROR_RESOURCE_LANG_NOT_FOUND: WIN32_ERROR = 1815u32;
pub const ERROR_NOT_ENOUGH_QUOTA: WIN32_ERROR = 1816u32;
pub const ERROR_INVALID_TIME: WIN32_ERROR = 1901u32;
pub const ERROR_INVALID_FORM_NAME: WIN32_ERROR = 1902u32;
pub const ERROR_INVALID_FORM_SIZE: WIN32_ERROR = 1903u32;
pub const ERROR_ALREADY_WAITING: WIN32_ERROR = 1904u32;
pub const ERROR_PRINTER_DELETED: WIN32_ERROR = 1905u32;
pub const ERROR_INVALID_PRINTER_STATE: WIN32_ERROR = 1906u32;
pub const ERROR_PASSWORD_MUST_CHANGE: WIN32_ERROR = 1907u32;
pub const ERROR_DOMAIN_CONTROLLER_NOT_FOUND: WIN32_ERROR = 1908u32;
pub const ERROR_ACCOUNT_LOCKED_OUT: WIN32_ERROR = 1909u32;
pub const ERROR_NO_SITENAME: WIN32_ERROR = 1919u32;
pub const ERROR_CANT_ACCESS_FILE: WIN32_ERROR = 1920u32;
pub const ERROR_CANT_RESOLVE_FILENAME: WIN32_ERROR = 1921u32;
pub const ERROR_KM_DRIVER_BLOCKED: WIN32_ERROR = 1930u32;
pub const ERROR_CONTEXT_EXPIRED: WIN32_ERROR = 1931u32;
pub const ERROR_PER_USER_TRUST_QUOTA_EXCEEDED: WIN32_ERROR = 1932u32;
pub const ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED: WIN32_ERROR = 1933u32;
pub const ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED: WIN32_ERROR = 1934u32;
pub const ERROR_AUTHENTICATION_FIREWALL_FAILED: WIN32_ERROR = 1935u32;
pub const ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED: WIN32_ERROR = 1936u32;
pub const ERROR_NTLM_BLOCKED: WIN32_ERROR = 1937u32;
pub const ERROR_PASSWORD_CHANGE_REQUIRED: WIN32_ERROR = 1938u32;
pub const ERROR_LOST_MODE_LOGON_RESTRICTION: WIN32_ERROR = 1939u32;
pub const ERROR_INVALID_PIXEL_FORMAT: WIN32_ERROR = 2000u32;
pub const ERROR_BAD_DRIVER: WIN32_ERROR = 2001u32;
pub const ERROR_INVALID_WINDOW_STYLE: WIN32_ERROR = 2002u32;
pub const ERROR_METAFILE_NOT_SUPPORTED: WIN32_ERROR = 2003u32;
pub const ERROR_TRANSFORM_NOT_SUPPORTED: WIN32_ERROR = 2004u32;
pub const ERROR_CLIPPING_NOT_SUPPORTED: WIN32_ERROR = 2005u32;
pub const ERROR_INVALID_CMM: WIN32_ERROR = 2010u32;
pub const ERROR_INVALID_PROFILE: WIN32_ERROR = 2011u32;
pub const ERROR_TAG_NOT_FOUND: WIN32_ERROR = 2012u32;
pub const ERROR_TAG_NOT_PRESENT: WIN32_ERROR = 2013u32;
pub const ERROR_DUPLICATE_TAG: WIN32_ERROR = 2014u32;
pub const ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE: WIN32_ERROR = 2015u32;
pub const ERROR_PROFILE_NOT_FOUND: WIN32_ERROR = 2016u32;
pub const ERROR_INVALID_COLORSPACE: WIN32_ERROR = 2017u32;
pub const ERROR_ICM_NOT_ENABLED: WIN32_ERROR = 2018u32;
pub const ERROR_DELETING_ICM_XFORM: WIN32_ERROR = 2019u32;
pub const ERROR_INVALID_TRANSFORM: WIN32_ERROR = 2020u32;
pub const ERROR_COLORSPACE_MISMATCH: WIN32_ERROR = 2021u32;
pub const ERROR_INVALID_COLORINDEX: WIN32_ERROR = 2022u32;
pub const ERROR_PROFILE_DOES_NOT_MATCH_DEVICE: WIN32_ERROR = 2023u32;
pub const ERROR_CONNECTED_OTHER_PASSWORD: WIN32_ERROR = 2108u32;
pub const ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT: WIN32_ERROR = 2109u32;
pub const ERROR_BAD_USERNAME: WIN32_ERROR = 2202u32;
pub const ERROR_NOT_CONNECTED: WIN32_ERROR = 2250u32;
pub const ERROR_OPEN_FILES: WIN32_ERROR = 2401u32;
pub const ERROR_ACTIVE_CONNECTIONS: WIN32_ERROR = 2402u32;
pub const ERROR_DEVICE_IN_USE: WIN32_ERROR = 2404u32;
pub const ERROR_UNKNOWN_PRINT_MONITOR: WIN32_ERROR = 3000u32;
pub const ERROR_PRINTER_DRIVER_IN_USE: WIN32_ERROR = 3001u32;
pub const ERROR_SPOOL_FILE_NOT_FOUND: WIN32_ERROR = 3002u32;
pub const ERROR_SPL_NO_STARTDOC: WIN32_ERROR = 3003u32;
pub const ERROR_SPL_NO_ADDJOB: WIN32_ERROR = 3004u32;
pub const ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED: WIN32_ERROR = 3005u32;
pub const ERROR_PRINT_MONITOR_ALREADY_INSTALLED: WIN32_ERROR = 3006u32;
pub const ERROR_INVALID_PRINT_MONITOR: WIN32_ERROR = 3007u32;
pub const ERROR_PRINT_MONITOR_IN_USE: WIN32_ERROR = 3008u32;
pub const ERROR_PRINTER_HAS_JOBS_QUEUED: WIN32_ERROR = 3009u32;
pub const ERROR_SUCCESS_REBOOT_REQUIRED: WIN32_ERROR = 3010u32;
pub const ERROR_SUCCESS_RESTART_REQUIRED: WIN32_ERROR = 3011u32;
pub const ERROR_PRINTER_NOT_FOUND: WIN32_ERROR = 3012u32;
pub const ERROR_PRINTER_DRIVER_WARNED: WIN32_ERROR = 3013u32;
pub const ERROR_PRINTER_DRIVER_BLOCKED: WIN32_ERROR = 3014u32;
pub const ERROR_PRINTER_DRIVER_PACKAGE_IN_USE: WIN32_ERROR = 3015u32;
pub const ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND: WIN32_ERROR = 3016u32;
pub const ERROR_FAIL_REBOOT_REQUIRED: WIN32_ERROR = 3017u32;
pub const ERROR_FAIL_REBOOT_INITIATED: WIN32_ERROR = 3018u32;
pub const ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED: WIN32_ERROR = 3019u32;
pub const ERROR_PRINT_JOB_RESTART_REQUIRED: WIN32_ERROR = 3020u32;
pub const ERROR_INVALID_PRINTER_DRIVER_MANIFEST: WIN32_ERROR = 3021u32;
pub const ERROR_PRINTER_NOT_SHAREABLE: WIN32_ERROR = 3022u32;
pub const ERROR_REQUEST_PAUSED: WIN32_ERROR = 3050u32;
pub const ERROR_APPEXEC_CONDITION_NOT_SATISFIED: WIN32_ERROR = 3060u32;
pub const ERROR_APPEXEC_HANDLE_INVALIDATED: WIN32_ERROR = 3061u32;
pub const ERROR_APPEXEC_INVALID_HOST_GENERATION: WIN32_ERROR = 3062u32;
pub const ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION: WIN32_ERROR = 3063u32;
pub const ERROR_APPEXEC_INVALID_HOST_STATE: WIN32_ERROR = 3064u32;
pub const ERROR_APPEXEC_NO_DONOR: WIN32_ERROR = 3065u32;
pub const ERROR_APPEXEC_HOST_ID_MISMATCH: WIN32_ERROR = 3066u32;
pub const ERROR_APPEXEC_UNKNOWN_USER: WIN32_ERROR = 3067u32;
pub const ERROR_APPEXEC_APP_COMPAT_BLOCK: WIN32_ERROR = 3068u32;
pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT: WIN32_ERROR = 3069u32;
pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_TERMINATION: WIN32_ERROR = 3070u32;
pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_LICENSING: WIN32_ERROR = 3071u32;
pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_RESOURCES: WIN32_ERROR = 3072u32;
pub const ERROR_VRF_VOLATILE_CFG_AND_IO_ENABLED: WIN32_ERROR = 3080u32;
pub const ERROR_VRF_VOLATILE_NOT_STOPPABLE: WIN32_ERROR = 3081u32;
pub const ERROR_VRF_VOLATILE_SAFE_MODE: WIN32_ERROR = 3082u32;
pub const ERROR_VRF_VOLATILE_NOT_RUNNABLE_SYSTEM: WIN32_ERROR = 3083u32;
pub const ERROR_VRF_VOLATILE_NOT_SUPPORTED_RULECLASS: WIN32_ERROR = 3084u32;
pub const ERROR_VRF_VOLATILE_PROTECTED_DRIVER: WIN32_ERROR = 3085u32;
pub const ERROR_VRF_VOLATILE_NMI_REGISTERED: WIN32_ERROR = 3086u32;
pub const ERROR_VRF_VOLATILE_SETTINGS_CONFLICT: WIN32_ERROR = 3087u32;
pub const ERROR_DIF_IOCALLBACK_NOT_REPLACED: WIN32_ERROR = 3190u32;
pub const ERROR_DIF_LIVEDUMP_LIMIT_EXCEEDED: WIN32_ERROR = 3191u32;
pub const ERROR_DIF_VOLATILE_SECTION_NOT_LOCKED: WIN32_ERROR = 3192u32;
pub const ERROR_DIF_VOLATILE_DRIVER_HOTPATCHED: WIN32_ERROR = 3193u32;
pub const ERROR_DIF_VOLATILE_INVALID_INFO: WIN32_ERROR = 3194u32;
pub const ERROR_DIF_VOLATILE_DRIVER_IS_NOT_RUNNING: WIN32_ERROR = 3195u32;
pub const ERROR_DIF_VOLATILE_PLUGIN_IS_NOT_RUNNING: WIN32_ERROR = 3196u32;
pub const ERROR_DIF_VOLATILE_PLUGIN_CHANGE_NOT_ALLOWED: WIN32_ERROR = 3197u32;
pub const ERROR_DIF_VOLATILE_NOT_ALLOWED: WIN32_ERROR = 3198u32;
pub const ERROR_DIF_BINDING_API_NOT_FOUND: WIN32_ERROR = 3199u32;
pub const ERROR_IO_REISSUE_AS_CACHED: WIN32_ERROR = 3950u32;
pub const ERROR_WINS_INTERNAL: WIN32_ERROR = 4000u32;
pub const ERROR_CAN_NOT_DEL_LOCAL_WINS: WIN32_ERROR = 4001u32;
pub const ERROR_STATIC_INIT: WIN32_ERROR = 4002u32;
pub const ERROR_INC_BACKUP: WIN32_ERROR = 4003u32;
pub const ERROR_FULL_BACKUP: WIN32_ERROR = 4004u32;
pub const ERROR_REC_NON_EXISTENT: WIN32_ERROR = 4005u32;
pub const ERROR_RPL_NOT_ALLOWED: WIN32_ERROR = 4006u32;
pub const ERROR_DHCP_ADDRESS_CONFLICT: WIN32_ERROR = 4100u32;
pub const ERROR_WMI_GUID_NOT_FOUND: WIN32_ERROR = 4200u32;
pub const ERROR_WMI_INSTANCE_NOT_FOUND: WIN32_ERROR = 4201u32;
pub const ERROR_WMI_ITEMID_NOT_FOUND: WIN32_ERROR = 4202u32;
pub const ERROR_WMI_TRY_AGAIN: WIN32_ERROR = 4203u32;
pub const ERROR_WMI_DP_NOT_FOUND: WIN32_ERROR = 4204u32;
pub const ERROR_WMI_UNRESOLVED_INSTANCE_REF: WIN32_ERROR = 4205u32;
pub const ERROR_WMI_ALREADY_ENABLED: WIN32_ERROR = 4206u32;
pub const ERROR_WMI_GUID_DISCONNECTED: WIN32_ERROR = 4207u32;
pub const ERROR_WMI_SERVER_UNAVAILABLE: WIN32_ERROR = 4208u32;
pub const ERROR_WMI_DP_FAILED: WIN32_ERROR = 4209u32;
pub const ERROR_WMI_INVALID_MOF: WIN32_ERROR = 4210u32;
pub const ERROR_WMI_INVALID_REGINFO: WIN32_ERROR = 4211u32;
pub const ERROR_WMI_ALREADY_DISABLED: WIN32_ERROR = 4212u32;
pub const ERROR_WMI_READ_ONLY: WIN32_ERROR = 4213u32;
pub const ERROR_WMI_SET_FAILURE: WIN32_ERROR = 4214u32;
pub const ERROR_NOT_APPCONTAINER: WIN32_ERROR = 4250u32;
pub const ERROR_APPCONTAINER_REQUIRED: WIN32_ERROR = 4251u32;
pub const ERROR_NOT_SUPPORTED_IN_APPCONTAINER: WIN32_ERROR = 4252u32;
pub const ERROR_INVALID_PACKAGE_SID_LENGTH: WIN32_ERROR = 4253u32;
pub const ERROR_INVALID_MEDIA: WIN32_ERROR = 4300u32;
pub const ERROR_INVALID_LIBRARY: WIN32_ERROR = 4301u32;
pub const ERROR_INVALID_MEDIA_POOL: WIN32_ERROR = 4302u32;
pub const ERROR_DRIVE_MEDIA_MISMATCH: WIN32_ERROR = 4303u32;
pub const ERROR_MEDIA_OFFLINE: WIN32_ERROR = 4304u32;
pub const ERROR_LIBRARY_OFFLINE: WIN32_ERROR = 4305u32;
pub const ERROR_EMPTY: WIN32_ERROR = 4306u32;
pub const ERROR_NOT_EMPTY: WIN32_ERROR = 4307u32;
pub const ERROR_MEDIA_UNAVAILABLE: WIN32_ERROR = 4308u32;
pub const ERROR_RESOURCE_DISABLED: WIN32_ERROR = 4309u32;
pub const ERROR_INVALID_CLEANER: WIN32_ERROR = 4310u32;
pub const ERROR_UNABLE_TO_CLEAN: WIN32_ERROR = 4311u32;
pub const ERROR_OBJECT_NOT_FOUND: WIN32_ERROR = 4312u32;
pub const ERROR_DATABASE_FAILURE: WIN32_ERROR = 4313u32;
pub const ERROR_DATABASE_FULL: WIN32_ERROR = 4314u32;
pub const ERROR_MEDIA_INCOMPATIBLE: WIN32_ERROR = 4315u32;
pub const ERROR_RESOURCE_NOT_PRESENT: WIN32_ERROR = 4316u32;
pub const ERROR_INVALID_OPERATION: WIN32_ERROR = 4317u32;
pub const ERROR_MEDIA_NOT_AVAILABLE: WIN32_ERROR = 4318u32;
pub const ERROR_DEVICE_NOT_AVAILABLE: WIN32_ERROR = 4319u32;
pub const ERROR_REQUEST_REFUSED: WIN32_ERROR = 4320u32;
pub const ERROR_INVALID_DRIVE_OBJECT: WIN32_ERROR = 4321u32;
pub const ERROR_LIBRARY_FULL: WIN32_ERROR = 4322u32;
pub const ERROR_MEDIUM_NOT_ACCESSIBLE: WIN32_ERROR = 4323u32;
pub const ERROR_UNABLE_TO_LOAD_MEDIUM: WIN32_ERROR = 4324u32;
pub const ERROR_UNABLE_TO_INVENTORY_DRIVE: WIN32_ERROR = 4325u32;
pub const ERROR_UNABLE_TO_INVENTORY_SLOT: WIN32_ERROR = 4326u32;
pub const ERROR_UNABLE_TO_INVENTORY_TRANSPORT: WIN32_ERROR = 4327u32;
pub const ERROR_TRANSPORT_FULL: WIN32_ERROR = 4328u32;
pub const ERROR_CONTROLLING_IEPORT: WIN32_ERROR = 4329u32;
pub const ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA: WIN32_ERROR = 4330u32;
pub const ERROR_CLEANER_SLOT_SET: WIN32_ERROR = 4331u32;
pub const ERROR_CLEANER_SLOT_NOT_SET: WIN32_ERROR = 4332u32;
pub const ERROR_CLEANER_CARTRIDGE_SPENT: WIN32_ERROR = 4333u32;
pub const ERROR_UNEXPECTED_OMID: WIN32_ERROR = 4334u32;
pub const ERROR_CANT_DELETE_LAST_ITEM: WIN32_ERROR = 4335u32;
pub const ERROR_MESSAGE_EXCEEDS_MAX_SIZE: WIN32_ERROR = 4336u32;
pub const ERROR_VOLUME_CONTAINS_SYS_FILES: WIN32_ERROR = 4337u32;
pub const ERROR_INDIGENOUS_TYPE: WIN32_ERROR = 4338u32;
pub const ERROR_NO_SUPPORTING_DRIVES: WIN32_ERROR = 4339u32;
pub const ERROR_CLEANER_CARTRIDGE_INSTALLED: WIN32_ERROR = 4340u32;
pub const ERROR_IEPORT_FULL: WIN32_ERROR = 4341u32;
pub const ERROR_FILE_OFFLINE: WIN32_ERROR = 4350u32;
pub const ERROR_REMOTE_STORAGE_NOT_ACTIVE: WIN32_ERROR = 4351u32;
pub const ERROR_REMOTE_STORAGE_MEDIA_ERROR: WIN32_ERROR = 4352u32;
pub const ERROR_NOT_A_REPARSE_POINT: WIN32_ERROR = 4390u32;
pub const ERROR_REPARSE_ATTRIBUTE_CONFLICT: WIN32_ERROR = 4391u32;
pub const ERROR_INVALID_REPARSE_DATA: WIN32_ERROR = 4392u32;
pub const ERROR_REPARSE_TAG_INVALID: WIN32_ERROR = 4393u32;
pub const ERROR_REPARSE_TAG_MISMATCH: WIN32_ERROR = 4394u32;
pub const ERROR_REPARSE_POINT_ENCOUNTERED: WIN32_ERROR = 4395u32;
pub const ERROR_APP_DATA_NOT_FOUND: WIN32_ERROR = 4400u32;
pub const ERROR_APP_DATA_EXPIRED: WIN32_ERROR = 4401u32;
pub const ERROR_APP_DATA_CORRUPT: WIN32_ERROR = 4402u32;
pub const ERROR_APP_DATA_LIMIT_EXCEEDED: WIN32_ERROR = 4403u32;
pub const ERROR_APP_DATA_REBOOT_REQUIRED: WIN32_ERROR = 4404u32;
pub const ERROR_SECUREBOOT_ROLLBACK_DETECTED: WIN32_ERROR = 4420u32;
pub const ERROR_SECUREBOOT_POLICY_VIOLATION: WIN32_ERROR = 4421u32;
pub const ERROR_SECUREBOOT_INVALID_POLICY: WIN32_ERROR = 4422u32;
pub const ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND: WIN32_ERROR = 4423u32;
pub const ERROR_SECUREBOOT_POLICY_NOT_SIGNED: WIN32_ERROR = 4424u32;
pub const ERROR_SECUREBOOT_NOT_ENABLED: WIN32_ERROR = 4425u32;
pub const ERROR_SECUREBOOT_FILE_REPLACED: WIN32_ERROR = 4426u32;
pub const ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED: WIN32_ERROR = 4427u32;
pub const ERROR_SECUREBOOT_POLICY_UNKNOWN: WIN32_ERROR = 4428u32;
pub const ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION: WIN32_ERROR = 4429u32;
pub const ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH: WIN32_ERROR = 4430u32;
pub const ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED: WIN32_ERROR = 4431u32;
pub const ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH: WIN32_ERROR = 4432u32;
pub const ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING: WIN32_ERROR = 4433u32;
pub const ERROR_SECUREBOOT_NOT_BASE_POLICY: WIN32_ERROR = 4434u32;
pub const ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY: WIN32_ERROR = 4435u32;
pub const ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED: WIN32_ERROR = 4440u32;
pub const ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED: WIN32_ERROR = 4441u32;
pub const ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED: WIN32_ERROR = 4442u32;
pub const ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED: WIN32_ERROR = 4443u32;
pub const ERROR_ALREADY_HAS_STREAM_ID: WIN32_ERROR = 4444u32;
pub const ERROR_SMR_GARBAGE_COLLECTION_REQUIRED: WIN32_ERROR = 4445u32;
pub const ERROR_WOF_WIM_HEADER_CORRUPT: WIN32_ERROR = 4446u32;
pub const ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT: WIN32_ERROR = 4447u32;
pub const ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT: WIN32_ERROR = 4448u32;
pub const ERROR_OBJECT_IS_IMMUTABLE: WIN32_ERROR = 4449u32;
pub const ERROR_VOLUME_NOT_SIS_ENABLED: WIN32_ERROR = 4500u32;
pub const ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED: WIN32_ERROR = 4550u32;
pub const ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION: WIN32_ERROR = 4551u32;
pub const ERROR_SYSTEM_INTEGRITY_INVALID_POLICY: WIN32_ERROR = 4552u32;
pub const ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED: WIN32_ERROR = 4553u32;
pub const ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES: WIN32_ERROR = 4554u32;
pub const ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED: WIN32_ERROR = 4555u32;
pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_MALICIOUS: WIN32_ERROR = 4556u32;
pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_PUA: WIN32_ERROR = 4557u32;
pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_DANGEROUS_EXT: WIN32_ERROR = 4558u32;
pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_OFFLINE: WIN32_ERROR = 4559u32;
pub const ERROR_VSM_NOT_INITIALIZED: WIN32_ERROR = 4560u32;
pub const ERROR_VSM_DMA_PROTECTION_NOT_IN_USE: WIN32_ERROR = 4561u32;
pub const ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED: WIN32_ERROR = 4570u32;
pub const ERROR_PLATFORM_MANIFEST_INVALID: WIN32_ERROR = 4571u32;
pub const ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED: WIN32_ERROR = 4572u32;
pub const ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED: WIN32_ERROR = 4573u32;
pub const ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND: WIN32_ERROR = 4574u32;
pub const ERROR_PLATFORM_MANIFEST_NOT_ACTIVE: WIN32_ERROR = 4575u32;
pub const ERROR_PLATFORM_MANIFEST_NOT_SIGNED: WIN32_ERROR = 4576u32;
pub const ERROR_DEPENDENT_RESOURCE_EXISTS: WIN32_ERROR = 5001u32;
pub const ERROR_DEPENDENCY_NOT_FOUND: WIN32_ERROR = 5002u32;
pub const ERROR_DEPENDENCY_ALREADY_EXISTS: WIN32_ERROR = 5003u32;
pub const ERROR_RESOURCE_NOT_ONLINE: WIN32_ERROR = 5004u32;
pub const ERROR_HOST_NODE_NOT_AVAILABLE: WIN32_ERROR = 5005u32;
pub const ERROR_RESOURCE_NOT_AVAILABLE: WIN32_ERROR = 5006u32;
pub const ERROR_RESOURCE_NOT_FOUND: WIN32_ERROR = 5007u32;
pub const ERROR_SHUTDOWN_CLUSTER: WIN32_ERROR = 5008u32;
pub const ERROR_CANT_EVICT_ACTIVE_NODE: WIN32_ERROR = 5009u32;
pub const ERROR_OBJECT_ALREADY_EXISTS: WIN32_ERROR = 5010u32;
pub const ERROR_OBJECT_IN_LIST: WIN32_ERROR = 5011u32;
pub const ERROR_GROUP_NOT_AVAILABLE: WIN32_ERROR = 5012u32;
pub const ERROR_GROUP_NOT_FOUND: WIN32_ERROR = 5013u32;
pub const ERROR_GROUP_NOT_ONLINE: WIN32_ERROR = 5014u32;
pub const ERROR_HOST_NODE_NOT_RESOURCE_OWNER: WIN32_ERROR = 5015u32;
pub const ERROR_HOST_NODE_NOT_GROUP_OWNER: WIN32_ERROR = 5016u32;
pub const ERROR_RESMON_CREATE_FAILED: WIN32_ERROR = 5017u32;
pub const ERROR_RESMON_ONLINE_FAILED: WIN32_ERROR = 5018u32;
pub const ERROR_RESOURCE_ONLINE: WIN32_ERROR = 5019u32;
pub const ERROR_QUORUM_RESOURCE: WIN32_ERROR = 5020u32;
pub const ERROR_NOT_QUORUM_CAPABLE: WIN32_ERROR = 5021u32;
pub const ERROR_CLUSTER_SHUTTING_DOWN: WIN32_ERROR = 5022u32;
pub const ERROR_INVALID_STATE: WIN32_ERROR = 5023u32;
pub const ERROR_RESOURCE_PROPERTIES_STORED: WIN32_ERROR = 5024u32;
pub const ERROR_NOT_QUORUM_CLASS: WIN32_ERROR = 5025u32;
pub const ERROR_CORE_RESOURCE: WIN32_ERROR = 5026u32;
pub const ERROR_QUORUM_RESOURCE_ONLINE_FAILED: WIN32_ERROR = 5027u32;
pub const ERROR_QUORUMLOG_OPEN_FAILED: WIN32_ERROR = 5028u32;
pub const ERROR_CLUSTERLOG_CORRUPT: WIN32_ERROR = 5029u32;
pub const ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE: WIN32_ERROR = 5030u32;
pub const ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE: WIN32_ERROR = 5031u32;
pub const ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND: WIN32_ERROR = 5032u32;
pub const ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE: WIN32_ERROR = 5033u32;
pub const ERROR_QUORUM_OWNER_ALIVE: WIN32_ERROR = 5034u32;
pub const ERROR_NETWORK_NOT_AVAILABLE: WIN32_ERROR = 5035u32;
pub const ERROR_NODE_NOT_AVAILABLE: WIN32_ERROR = 5036u32;
pub const ERROR_ALL_NODES_NOT_AVAILABLE: WIN32_ERROR = 5037u32;
pub const ERROR_RESOURCE_FAILED: WIN32_ERROR = 5038u32;
pub const ERROR_CLUSTER_INVALID_NODE: WIN32_ERROR = 5039u32;
pub const ERROR_CLUSTER_NODE_EXISTS: WIN32_ERROR = 5040u32;
pub const ERROR_CLUSTER_JOIN_IN_PROGRESS: WIN32_ERROR = 5041u32;
pub const ERROR_CLUSTER_NODE_NOT_FOUND: WIN32_ERROR = 5042u32;
pub const ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND: WIN32_ERROR = 5043u32;
pub const ERROR_CLUSTER_NETWORK_EXISTS: WIN32_ERROR = 5044u32;
pub const ERROR_CLUSTER_NETWORK_NOT_FOUND: WIN32_ERROR = 5045u32;
pub const ERROR_CLUSTER_NETINTERFACE_EXISTS: WIN32_ERROR = 5046u32;
pub const ERROR_CLUSTER_NETINTERFACE_NOT_FOUND: WIN32_ERROR = 5047u32;
pub const ERROR_CLUSTER_INVALID_REQUEST: WIN32_ERROR = 5048u32;
pub const ERROR_CLUSTER_INVALID_NETWORK_PROVIDER: WIN32_ERROR = 5049u32;
pub const ERROR_CLUSTER_NODE_DOWN: WIN32_ERROR = 5050u32;
pub const ERROR_CLUSTER_NODE_UNREACHABLE: WIN32_ERROR = 5051u32;
pub const ERROR_CLUSTER_NODE_NOT_MEMBER: WIN32_ERROR = 5052u32;
pub const ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS: WIN32_ERROR = 5053u32;
pub const ERROR_CLUSTER_INVALID_NETWORK: WIN32_ERROR = 5054u32;
pub const ERROR_CLUSTER_NODE_UP: WIN32_ERROR = 5056u32;
pub const ERROR_CLUSTER_IPADDR_IN_USE: WIN32_ERROR = 5057u32;
pub const ERROR_CLUSTER_NODE_NOT_PAUSED: WIN32_ERROR = 5058u32;
pub const ERROR_CLUSTER_NO_SECURITY_CONTEXT: WIN32_ERROR = 5059u32;
pub const ERROR_CLUSTER_NETWORK_NOT_INTERNAL: WIN32_ERROR = 5060u32;
pub const ERROR_CLUSTER_NODE_ALREADY_UP: WIN32_ERROR = 5061u32;
pub const ERROR_CLUSTER_NODE_ALREADY_DOWN: WIN32_ERROR = 5062u32;
pub const ERROR_CLUSTER_NETWORK_ALREADY_ONLINE: WIN32_ERROR = 5063u32;
pub const ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE: WIN32_ERROR = 5064u32;
pub const ERROR_CLUSTER_NODE_ALREADY_MEMBER: WIN32_ERROR = 5065u32;
pub const ERROR_CLUSTER_LAST_INTERNAL_NETWORK: WIN32_ERROR = 5066u32;
pub const ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS: WIN32_ERROR = 5067u32;
pub const ERROR_INVALID_OPERATION_ON_QUORUM: WIN32_ERROR = 5068u32;
pub const ERROR_DEPENDENCY_NOT_ALLOWED: WIN32_ERROR = 5069u32;
pub const ERROR_CLUSTER_NODE_PAUSED: WIN32_ERROR = 5070u32;
pub const ERROR_NODE_CANT_HOST_RESOURCE: WIN32_ERROR = 5071u32;
pub const ERROR_CLUSTER_NODE_NOT_READY: WIN32_ERROR = 5072u32;
pub const ERROR_CLUSTER_NODE_SHUTTING_DOWN: WIN32_ERROR = 5073u32;
pub const ERROR_CLUSTER_JOIN_ABORTED: WIN32_ERROR = 5074u32;
pub const ERROR_CLUSTER_INCOMPATIBLE_VERSIONS: WIN32_ERROR = 5075u32;
pub const ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED: WIN32_ERROR = 5076u32;
pub const ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED: WIN32_ERROR = 5077u32;
pub const ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND: WIN32_ERROR = 5078u32;
pub const ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED: WIN32_ERROR = 5079u32;
pub const ERROR_CLUSTER_RESNAME_NOT_FOUND: WIN32_ERROR = 5080u32;
pub const ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED: WIN32_ERROR = 5081u32;
pub const ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST: WIN32_ERROR = 5082u32;
pub const ERROR_CLUSTER_DATABASE_SEQMISMATCH: WIN32_ERROR = 5083u32;
pub const ERROR_RESMON_INVALID_STATE: WIN32_ERROR = 5084u32;
pub const ERROR_CLUSTER_GUM_NOT_LOCKER: WIN32_ERROR = 5085u32;
pub const ERROR_QUORUM_DISK_NOT_FOUND: WIN32_ERROR = 5086u32;
pub const ERROR_DATABASE_BACKUP_CORRUPT: WIN32_ERROR = 5087u32;
pub const ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT: WIN32_ERROR = 5088u32;
pub const ERROR_RESOURCE_PROPERTY_UNCHANGEABLE: WIN32_ERROR = 5089u32;
pub const ERROR_NO_ADMIN_ACCESS_POINT: WIN32_ERROR = 5090u32;
pub const ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE: WIN32_ERROR = 5890u32;
pub const ERROR_CLUSTER_QUORUMLOG_NOT_FOUND: WIN32_ERROR = 5891u32;
pub const ERROR_CLUSTER_MEMBERSHIP_HALT: WIN32_ERROR = 5892u32;
pub const ERROR_CLUSTER_INSTANCE_ID_MISMATCH: WIN32_ERROR = 5893u32;
pub const ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP: WIN32_ERROR = 5894u32;
pub const ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH: WIN32_ERROR = 5895u32;
pub const ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP: WIN32_ERROR = 5896u32;
pub const ERROR_CLUSTER_PARAMETER_MISMATCH: WIN32_ERROR = 5897u32;
pub const ERROR_NODE_CANNOT_BE_CLUSTERED: WIN32_ERROR = 5898u32;
pub const ERROR_CLUSTER_WRONG_OS_VERSION: WIN32_ERROR = 5899u32;
pub const ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME: WIN32_ERROR = 5900u32;
pub const ERROR_CLUSCFG_ALREADY_COMMITTED: WIN32_ERROR = 5901u32;
pub const ERROR_CLUSCFG_ROLLBACK_FAILED: WIN32_ERROR = 5902u32;
pub const ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT: WIN32_ERROR = 5903u32;
pub const ERROR_CLUSTER_OLD_VERSION: WIN32_ERROR = 5904u32;
pub const ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME: WIN32_ERROR = 5905u32;
pub const ERROR_CLUSTER_NO_NET_ADAPTERS: WIN32_ERROR = 5906u32;
pub const ERROR_CLUSTER_POISONED: WIN32_ERROR = 5907u32;
pub const ERROR_CLUSTER_GROUP_MOVING: WIN32_ERROR = 5908u32;
pub const ERROR_CLUSTER_RESOURCE_TYPE_BUSY: WIN32_ERROR = 5909u32;
pub const ERROR_RESOURCE_CALL_TIMED_OUT: WIN32_ERROR = 5910u32;
pub const ERROR_INVALID_CLUSTER_IPV6_ADDRESS: WIN32_ERROR = 5911u32;
pub const ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION: WIN32_ERROR = 5912u32;
pub const ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS: WIN32_ERROR = 5913u32;
pub const ERROR_CLUSTER_PARTIAL_SEND: WIN32_ERROR = 5914u32;
pub const ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION: WIN32_ERROR = 5915u32;
pub const ERROR_CLUSTER_INVALID_STRING_TERMINATION: WIN32_ERROR = 5916u32;
pub const ERROR_CLUSTER_INVALID_STRING_FORMAT: WIN32_ERROR = 5917u32;
pub const ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS: WIN32_ERROR = 5918u32;
pub const ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS: WIN32_ERROR = 5919u32;
pub const ERROR_CLUSTER_NULL_DATA: WIN32_ERROR = 5920u32;
pub const ERROR_CLUSTER_PARTIAL_READ: WIN32_ERROR = 5921u32;
pub const ERROR_CLUSTER_PARTIAL_WRITE: WIN32_ERROR = 5922u32;
pub const ERROR_CLUSTER_CANT_DESERIALIZE_DATA: WIN32_ERROR = 5923u32;
pub const ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT: WIN32_ERROR = 5924u32;
pub const ERROR_CLUSTER_NO_QUORUM: WIN32_ERROR = 5925u32;
pub const ERROR_CLUSTER_INVALID_IPV6_NETWORK: WIN32_ERROR = 5926u32;
pub const ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK: WIN32_ERROR = 5927u32;
pub const ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP: WIN32_ERROR = 5928u32;
pub const ERROR_DEPENDENCY_TREE_TOO_COMPLEX: WIN32_ERROR = 5929u32;
pub const ERROR_EXCEPTION_IN_RESOURCE_CALL: WIN32_ERROR = 5930u32;
pub const ERROR_CLUSTER_RHS_FAILED_INITIALIZATION: WIN32_ERROR = 5931u32;
pub const ERROR_CLUSTER_NOT_INSTALLED: WIN32_ERROR = 5932u32;
pub const ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE: WIN32_ERROR = 5933u32;
pub const ERROR_CLUSTER_MAX_NODES_IN_CLUSTER: WIN32_ERROR = 5934u32;
pub const ERROR_CLUSTER_TOO_MANY_NODES: WIN32_ERROR = 5935u32;
pub const ERROR_CLUSTER_OBJECT_ALREADY_USED: WIN32_ERROR = 5936u32;
pub const ERROR_NONCORE_GROUPS_FOUND: WIN32_ERROR = 5937u32;
pub const ERROR_FILE_SHARE_RESOURCE_CONFLICT: WIN32_ERROR = 5938u32;
pub const ERROR_CLUSTER_EVICT_INVALID_REQUEST: WIN32_ERROR = 5939u32;
pub const ERROR_CLUSTER_SINGLETON_RESOURCE: WIN32_ERROR = 5940u32;
pub const ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE: WIN32_ERROR = 5941u32;
pub const ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED: WIN32_ERROR = 5942u32;
pub const ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR: WIN32_ERROR = 5943u32;
pub const ERROR_CLUSTER_GROUP_BUSY: WIN32_ERROR = 5944u32;
pub const ERROR_CLUSTER_NOT_SHARED_VOLUME: WIN32_ERROR = 5945u32;
pub const ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR: WIN32_ERROR = 5946u32;
pub const ERROR_CLUSTER_SHARED_VOLUMES_IN_USE: WIN32_ERROR = 5947u32;
pub const ERROR_CLUSTER_USE_SHARED_VOLUMES_API: WIN32_ERROR = 5948u32;
pub const ERROR_CLUSTER_BACKUP_IN_PROGRESS: WIN32_ERROR = 5949u32;
pub const ERROR_NON_CSV_PATH: WIN32_ERROR = 5950u32;
pub const ERROR_CSV_VOLUME_NOT_LOCAL: WIN32_ERROR = 5951u32;
pub const ERROR_CLUSTER_WATCHDOG_TERMINATING: WIN32_ERROR = 5952u32;
pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES: WIN32_ERROR = 5953u32;
pub const ERROR_CLUSTER_INVALID_NODE_WEIGHT: WIN32_ERROR = 5954u32;
pub const ERROR_CLUSTER_RESOURCE_VETOED_CALL: WIN32_ERROR = 5955u32;
pub const ERROR_RESMON_SYSTEM_RESOURCES_LACKING: WIN32_ERROR = 5956u32;
pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION: WIN32_ERROR = 5957u32;
pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE: WIN32_ERROR = 5958u32;
pub const ERROR_CLUSTER_GROUP_QUEUED: WIN32_ERROR = 5959u32;
pub const ERROR_CLUSTER_RESOURCE_LOCKED_STATUS: WIN32_ERROR = 5960u32;
pub const ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED: WIN32_ERROR = 5961u32;
pub const ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS: WIN32_ERROR = 5962u32;
pub const ERROR_CLUSTER_DISK_NOT_CONNECTED: WIN32_ERROR = 5963u32;
pub const ERROR_DISK_NOT_CSV_CAPABLE: WIN32_ERROR = 5964u32;
pub const ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE: WIN32_ERROR = 5965u32;
pub const ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED: WIN32_ERROR = 5966u32;
pub const ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED: WIN32_ERROR = 5967u32;
pub const ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES: WIN32_ERROR = 5968u32;
pub const ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES: WIN32_ERROR = 5969u32;
pub const ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE: WIN32_ERROR = 5970u32;
pub const ERROR_CLUSTER_AFFINITY_CONFLICT: WIN32_ERROR = 5971u32;
pub const ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE: WIN32_ERROR = 5972u32;
pub const ERROR_CLUSTER_UPGRADE_INCOMPATIBLE_VERSIONS: WIN32_ERROR = 5973u32;
pub const ERROR_CLUSTER_UPGRADE_FIX_QUORUM_NOT_SUPPORTED: WIN32_ERROR = 5974u32;
pub const ERROR_CLUSTER_UPGRADE_RESTART_REQUIRED: WIN32_ERROR = 5975u32;
pub const ERROR_CLUSTER_UPGRADE_IN_PROGRESS: WIN32_ERROR = 5976u32;
pub const ERROR_CLUSTER_UPGRADE_INCOMPLETE: WIN32_ERROR = 5977u32;
pub const ERROR_CLUSTER_NODE_IN_GRACE_PERIOD: WIN32_ERROR = 5978u32;
pub const ERROR_CLUSTER_CSV_IO_PAUSE_TIMEOUT: WIN32_ERROR = 5979u32;
pub const ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER: WIN32_ERROR = 5980u32;
pub const ERROR_CLUSTER_RESOURCE_NOT_MONITORED: WIN32_ERROR = 5981u32;
pub const ERROR_CLUSTER_RESOURCE_DOES_NOT_SUPPORT_UNMONITORED: WIN32_ERROR = 5982u32;
pub const ERROR_CLUSTER_RESOURCE_IS_REPLICATED: WIN32_ERROR = 5983u32;
pub const ERROR_CLUSTER_NODE_ISOLATED: WIN32_ERROR = 5984u32;
pub const ERROR_CLUSTER_NODE_QUARANTINED: WIN32_ERROR = 5985u32;
pub const ERROR_CLUSTER_DATABASE_UPDATE_CONDITION_FAILED: WIN32_ERROR = 5986u32;
pub const ERROR_CLUSTER_SPACE_DEGRADED: WIN32_ERROR = 5987u32;
pub const ERROR_CLUSTER_TOKEN_DELEGATION_NOT_SUPPORTED: WIN32_ERROR = 5988u32;
pub const ERROR_CLUSTER_CSV_INVALID_HANDLE: WIN32_ERROR = 5989u32;
pub const ERROR_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR: WIN32_ERROR = 5990u32;
pub const ERROR_GROUPSET_NOT_AVAILABLE: WIN32_ERROR = 5991u32;
pub const ERROR_GROUPSET_NOT_FOUND: WIN32_ERROR = 5992u32;
pub const ERROR_GROUPSET_CANT_PROVIDE: WIN32_ERROR = 5993u32;
pub const ERROR_CLUSTER_FAULT_DOMAIN_PARENT_NOT_FOUND: WIN32_ERROR = 5994u32;
pub const ERROR_CLUSTER_FAULT_DOMAIN_INVALID_HIERARCHY: WIN32_ERROR = 5995u32;
pub const ERROR_CLUSTER_FAULT_DOMAIN_FAILED_S2D_VALIDATION: WIN32_ERROR = 5996u32;
pub const ERROR_CLUSTER_FAULT_DOMAIN_S2D_CONNECTIVITY_LOSS: WIN32_ERROR = 5997u32;
pub const ERROR_CLUSTER_INVALID_INFRASTRUCTURE_FILESERVER_NAME: WIN32_ERROR = 5998u32;
pub const ERROR_CLUSTERSET_MANAGEMENT_CLUSTER_UNREACHABLE: WIN32_ERROR = 5999u32;
pub const ERROR_ENCRYPTION_FAILED: WIN32_ERROR = 6000u32;
pub const ERROR_DECRYPTION_FAILED: WIN32_ERROR = 6001u32;
pub const ERROR_FILE_ENCRYPTED: WIN32_ERROR = 6002u32;
pub const ERROR_NO_RECOVERY_POLICY: WIN32_ERROR = 6003u32;
pub const ERROR_NO_EFS: WIN32_ERROR = 6004u32;
pub const ERROR_WRONG_EFS: WIN32_ERROR = 6005u32;
pub const ERROR_NO_USER_KEYS: WIN32_ERROR = 6006u32;
pub const ERROR_FILE_NOT_ENCRYPTED: WIN32_ERROR = 6007u32;
pub const ERROR_NOT_EXPORT_FORMAT: WIN32_ERROR = 6008u32;
pub const ERROR_FILE_READ_ONLY: WIN32_ERROR = 6009u32;
pub const ERROR_DIR_EFS_DISALLOWED: WIN32_ERROR = 6010u32;
pub const ERROR_EFS_SERVER_NOT_TRUSTED: WIN32_ERROR = 6011u32;
pub const ERROR_BAD_RECOVERY_POLICY: WIN32_ERROR = 6012u32;
pub const ERROR_EFS_ALG_BLOB_TOO_BIG: WIN32_ERROR = 6013u32;
pub const ERROR_VOLUME_NOT_SUPPORT_EFS: WIN32_ERROR = 6014u32;
pub const ERROR_EFS_DISABLED: WIN32_ERROR = 6015u32;
pub const ERROR_EFS_VERSION_NOT_SUPPORT: WIN32_ERROR = 6016u32;
pub const ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE: WIN32_ERROR = 6017u32;
pub const ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER: WIN32_ERROR = 6018u32;
pub const ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE: WIN32_ERROR = 6019u32;
pub const ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE: WIN32_ERROR = 6020u32;
pub const ERROR_CS_ENCRYPTION_FILE_NOT_CSE: WIN32_ERROR = 6021u32;
pub const ERROR_ENCRYPTION_POLICY_DENIES_OPERATION: WIN32_ERROR = 6022u32;
pub const ERROR_WIP_ENCRYPTION_FAILED: WIN32_ERROR = 6023u32;
pub const ERROR_NO_BROWSER_SERVERS_FOUND: WIN32_ERROR = 6118u32;
pub const ERROR_CLUSTER_OBJECT_IS_CLUSTER_SET_VM: WIN32_ERROR = 6250u32;
pub const ERROR_LOG_SECTOR_INVALID: WIN32_ERROR = 6600u32;
pub const ERROR_LOG_SECTOR_PARITY_INVALID: WIN32_ERROR = 6601u32;
pub const ERROR_LOG_SECTOR_REMAPPED: WIN32_ERROR = 6602u32;
pub const ERROR_LOG_BLOCK_INCOMPLETE: WIN32_ERROR = 6603u32;
pub const ERROR_LOG_INVALID_RANGE: WIN32_ERROR = 6604u32;
pub const ERROR_LOG_BLOCKS_EXHAUSTED: WIN32_ERROR = 6605u32;
pub const ERROR_LOG_READ_CONTEXT_INVALID: WIN32_ERROR = 6606u32;
pub const ERROR_LOG_RESTART_INVALID: WIN32_ERROR = 6607u32;
pub const ERROR_LOG_BLOCK_VERSION: WIN32_ERROR = 6608u32;
pub const ERROR_LOG_BLOCK_INVALID: WIN32_ERROR = 6609u32;
pub const ERROR_LOG_READ_MODE_INVALID: WIN32_ERROR = 6610u32;
pub const ERROR_LOG_NO_RESTART: WIN32_ERROR = 6611u32;
pub const ERROR_LOG_METADATA_CORRUPT: WIN32_ERROR = 6612u32;
pub const ERROR_LOG_METADATA_INVALID: WIN32_ERROR = 6613u32;
pub const ERROR_LOG_METADATA_INCONSISTENT: WIN32_ERROR = 6614u32;
pub const ERROR_LOG_RESERVATION_INVALID: WIN32_ERROR = 6615u32;
pub const ERROR_LOG_CANT_DELETE: WIN32_ERROR = 6616u32;
pub const ERROR_LOG_CONTAINER_LIMIT_EXCEEDED: WIN32_ERROR = 6617u32;
pub const ERROR_LOG_START_OF_LOG: WIN32_ERROR = 6618u32;
pub const ERROR_LOG_POLICY_ALREADY_INSTALLED: WIN32_ERROR = 6619u32;
pub const ERROR_LOG_POLICY_NOT_INSTALLED: WIN32_ERROR = 6620u32;
pub const ERROR_LOG_POLICY_INVALID: WIN32_ERROR = 6621u32;
pub const ERROR_LOG_POLICY_CONFLICT: WIN32_ERROR = 6622u32;
pub const ERROR_LOG_PINNED_ARCHIVE_TAIL: WIN32_ERROR = 6623u32;
pub const ERROR_LOG_RECORD_NONEXISTENT: WIN32_ERROR = 6624u32;
pub const ERROR_LOG_RECORDS_RESERVED_INVALID: WIN32_ERROR = 6625u32;
pub const ERROR_LOG_SPACE_RESERVED_INVALID: WIN32_ERROR = 6626u32;
pub const ERROR_LOG_TAIL_INVALID: WIN32_ERROR = 6627u32;
pub const ERROR_LOG_FULL: WIN32_ERROR = 6628u32;
pub const ERROR_COULD_NOT_RESIZE_LOG: WIN32_ERROR = 6629u32;
pub const ERROR_LOG_MULTIPLEXED: WIN32_ERROR = 6630u32;
pub const ERROR_LOG_DEDICATED: WIN32_ERROR = 6631u32;
pub const ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS: WIN32_ERROR = 6632u32;
pub const ERROR_LOG_ARCHIVE_IN_PROGRESS: WIN32_ERROR = 6633u32;
pub const ERROR_LOG_EPHEMERAL: WIN32_ERROR = 6634u32;
pub const ERROR_LOG_NOT_ENOUGH_CONTAINERS: WIN32_ERROR = 6635u32;
pub const ERROR_LOG_CLIENT_ALREADY_REGISTERED: WIN32_ERROR = 6636u32;
pub const ERROR_LOG_CLIENT_NOT_REGISTERED: WIN32_ERROR = 6637u32;
pub const ERROR_LOG_FULL_HANDLER_IN_PROGRESS: WIN32_ERROR = 6638u32;
pub const ERROR_LOG_CONTAINER_READ_FAILED: WIN32_ERROR = 6639u32;
pub const ERROR_LOG_CONTAINER_WRITE_FAILED: WIN32_ERROR = 6640u32;
pub const ERROR_LOG_CONTAINER_OPEN_FAILED: WIN32_ERROR = 6641u32;
pub const ERROR_LOG_CONTAINER_STATE_INVALID: WIN32_ERROR = 6642u32;
pub const ERROR_LOG_STATE_INVALID: WIN32_ERROR = 6643u32;
pub const ERROR_LOG_PINNED: WIN32_ERROR = 6644u32;
pub const ERROR_LOG_METADATA_FLUSH_FAILED: WIN32_ERROR = 6645u32;
pub const ERROR_LOG_INCONSISTENT_SECURITY: WIN32_ERROR = 6646u32;
pub const ERROR_LOG_APPENDED_FLUSH_FAILED: WIN32_ERROR = 6647u32;
pub const ERROR_LOG_PINNED_RESERVATION: WIN32_ERROR = 6648u32;
pub const ERROR_INVALID_TRANSACTION: WIN32_ERROR = 6700u32;
pub const ERROR_TRANSACTION_NOT_ACTIVE: WIN32_ERROR = 6701u32;
pub const ERROR_TRANSACTION_REQUEST_NOT_VALID: WIN32_ERROR = 6702u32;
pub const ERROR_TRANSACTION_NOT_REQUESTED: WIN32_ERROR = 6703u32;
pub const ERROR_TRANSACTION_ALREADY_ABORTED: WIN32_ERROR = 6704u32;
pub const ERROR_TRANSACTION_ALREADY_COMMITTED: WIN32_ERROR = 6705u32;
pub const ERROR_TM_INITIALIZATION_FAILED: WIN32_ERROR = 6706u32;
pub const ERROR_RESOURCEMANAGER_READ_ONLY: WIN32_ERROR = 6707u32;
pub const ERROR_TRANSACTION_NOT_JOINED: WIN32_ERROR = 6708u32;
pub const ERROR_TRANSACTION_SUPERIOR_EXISTS: WIN32_ERROR = 6709u32;
pub const ERROR_CRM_PROTOCOL_ALREADY_EXISTS: WIN32_ERROR = 6710u32;
pub const ERROR_TRANSACTION_PROPAGATION_FAILED: WIN32_ERROR = 6711u32;
pub const ERROR_CRM_PROTOCOL_NOT_FOUND: WIN32_ERROR = 6712u32;
pub const ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER: WIN32_ERROR = 6713u32;
pub const ERROR_CURRENT_TRANSACTION_NOT_VALID: WIN32_ERROR = 6714u32;
pub const ERROR_TRANSACTION_NOT_FOUND: WIN32_ERROR = 6715u32;
pub const ERROR_RESOURCEMANAGER_NOT_FOUND: WIN32_ERROR = 6716u32;
pub const ERROR_ENLISTMENT_NOT_FOUND: WIN32_ERROR = 6717u32;
pub const ERROR_TRANSACTIONMANAGER_NOT_FOUND: WIN32_ERROR = 6718u32;
pub const ERROR_TRANSACTIONMANAGER_NOT_ONLINE: WIN32_ERROR = 6719u32;
pub const ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION: WIN32_ERROR = 6720u32;
pub const ERROR_TRANSACTION_NOT_ROOT: WIN32_ERROR = 6721u32;
pub const ERROR_TRANSACTION_OBJECT_EXPIRED: WIN32_ERROR = 6722u32;
pub const ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED: WIN32_ERROR = 6723u32;
pub const ERROR_TRANSACTION_RECORD_TOO_LONG: WIN32_ERROR = 6724u32;
pub const ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED: WIN32_ERROR = 6725u32;
pub const ERROR_TRANSACTION_INTEGRITY_VIOLATED: WIN32_ERROR = 6726u32;
pub const ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH: WIN32_ERROR = 6727u32;
pub const ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT: WIN32_ERROR = 6728u32;
pub const ERROR_TRANSACTION_MUST_WRITETHROUGH: WIN32_ERROR = 6729u32;
pub const ERROR_TRANSACTION_NO_SUPERIOR: WIN32_ERROR = 6730u32;
pub const ERROR_HEURISTIC_DAMAGE_POSSIBLE: WIN32_ERROR = 6731u32;
pub const ERROR_TRANSACTIONAL_CONFLICT: WIN32_ERROR = 6800u32;
pub const ERROR_RM_NOT_ACTIVE: WIN32_ERROR = 6801u32;
pub const ERROR_RM_METADATA_CORRUPT: WIN32_ERROR = 6802u32;
pub const ERROR_DIRECTORY_NOT_RM: WIN32_ERROR = 6803u32;
pub const ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE: WIN32_ERROR = 6805u32;
pub const ERROR_LOG_RESIZE_INVALID_SIZE: WIN32_ERROR = 6806u32;
pub const ERROR_OBJECT_NO_LONGER_EXISTS: WIN32_ERROR = 6807u32;
pub const ERROR_STREAM_MINIVERSION_NOT_FOUND: WIN32_ERROR = 6808u32;
pub const ERROR_STREAM_MINIVERSION_NOT_VALID: WIN32_ERROR = 6809u32;
pub const ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION: WIN32_ERROR = 6810u32;
pub const ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT: WIN32_ERROR = 6811u32;
pub const ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS: WIN32_ERROR = 6812u32;
pub const ERROR_REMOTE_FILE_VERSION_MISMATCH: WIN32_ERROR = 6814u32;
pub const ERROR_HANDLE_NO_LONGER_VALID: WIN32_ERROR = 6815u32;
pub const ERROR_NO_TXF_METADATA: WIN32_ERROR = 6816u32;
pub const ERROR_LOG_CORRUPTION_DETECTED: WIN32_ERROR = 6817u32;
pub const ERROR_CANT_RECOVER_WITH_HANDLE_OPEN: WIN32_ERROR = 6818u32;
pub const ERROR_RM_DISCONNECTED: WIN32_ERROR = 6819u32;
pub const ERROR_ENLISTMENT_NOT_SUPERIOR: WIN32_ERROR = 6820u32;
pub const ERROR_RECOVERY_NOT_NEEDED: WIN32_ERROR = 6821u32;
pub const ERROR_RM_ALREADY_STARTED: WIN32_ERROR = 6822u32;
pub const ERROR_FILE_IDENTITY_NOT_PERSISTENT: WIN32_ERROR = 6823u32;
pub const ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY: WIN32_ERROR = 6824u32;
pub const ERROR_CANT_CROSS_RM_BOUNDARY: WIN32_ERROR = 6825u32;
pub const ERROR_TXF_DIR_NOT_EMPTY: WIN32_ERROR = 6826u32;
pub const ERROR_INDOUBT_TRANSACTIONS_EXIST: WIN32_ERROR = 6827u32;
pub const ERROR_TM_VOLATILE: WIN32_ERROR = 6828u32;
pub const ERROR_ROLLBACK_TIMER_EXPIRED: WIN32_ERROR = 6829u32;
pub const ERROR_TXF_ATTRIBUTE_CORRUPT: WIN32_ERROR = 6830u32;
pub const ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION: WIN32_ERROR = 6831u32;
pub const ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED: WIN32_ERROR = 6832u32;
pub const ERROR_LOG_GROWTH_FAILED: WIN32_ERROR = 6833u32;
pub const ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE: WIN32_ERROR = 6834u32;
pub const ERROR_TXF_METADATA_ALREADY_PRESENT: WIN32_ERROR = 6835u32;
pub const ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET: WIN32_ERROR = 6836u32;
pub const ERROR_TRANSACTION_REQUIRED_PROMOTION: WIN32_ERROR = 6837u32;
pub const ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION: WIN32_ERROR = 6838u32;
pub const ERROR_TRANSACTIONS_NOT_FROZEN: WIN32_ERROR = 6839u32;
pub const ERROR_TRANSACTION_FREEZE_IN_PROGRESS: WIN32_ERROR = 6840u32;
pub const ERROR_NOT_SNAPSHOT_VOLUME: WIN32_ERROR = 6841u32;
pub const ERROR_NO_SAVEPOINT_WITH_OPEN_FILES: WIN32_ERROR = 6842u32;
pub const ERROR_DATA_LOST_REPAIR: WIN32_ERROR = 6843u32;
pub const ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION: WIN32_ERROR = 6844u32;
pub const ERROR_TM_IDENTITY_MISMATCH: WIN32_ERROR = 6845u32;
pub const ERROR_FLOATED_SECTION: WIN32_ERROR = 6846u32;
pub const ERROR_CANNOT_ACCEPT_TRANSACTED_WORK: WIN32_ERROR = 6847u32;
pub const ERROR_CANNOT_ABORT_TRANSACTIONS: WIN32_ERROR = 6848u32;
pub const ERROR_BAD_CLUSTERS: WIN32_ERROR = 6849u32;
pub const ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION: WIN32_ERROR = 6850u32;
pub const ERROR_VOLUME_DIRTY: WIN32_ERROR = 6851u32;
pub const ERROR_NO_LINK_TRACKING_IN_TRANSACTION: WIN32_ERROR = 6852u32;
pub const ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION: WIN32_ERROR = 6853u32;
pub const ERROR_EXPIRED_HANDLE: WIN32_ERROR = 6854u32;
pub const ERROR_TRANSACTION_NOT_ENLISTED: WIN32_ERROR = 6855u32;
pub const ERROR_CTX_WINSTATION_NAME_INVALID: WIN32_ERROR = 7001u32;
pub const ERROR_CTX_INVALID_PD: WIN32_ERROR = 7002u32;
pub const ERROR_CTX_PD_NOT_FOUND: WIN32_ERROR = 7003u32;
pub const ERROR_CTX_WD_NOT_FOUND: WIN32_ERROR = 7004u32;
pub const ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY: WIN32_ERROR = 7005u32;
pub const ERROR_CTX_SERVICE_NAME_COLLISION: WIN32_ERROR = 7006u32;
pub const ERROR_CTX_CLOSE_PENDING: WIN32_ERROR = 7007u32;
pub const ERROR_CTX_NO_OUTBUF: WIN32_ERROR = 7008u32;
pub const ERROR_CTX_MODEM_INF_NOT_FOUND: WIN32_ERROR = 7009u32;
pub const ERROR_CTX_INVALID_MODEMNAME: WIN32_ERROR = 7010u32;
pub const ERROR_CTX_MODEM_RESPONSE_ERROR: WIN32_ERROR = 7011u32;
pub const ERROR_CTX_MODEM_RESPONSE_TIMEOUT: WIN32_ERROR = 7012u32;
pub const ERROR_CTX_MODEM_RESPONSE_NO_CARRIER: WIN32_ERROR = 7013u32;
pub const ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE: WIN32_ERROR = 7014u32;
pub const ERROR_CTX_MODEM_RESPONSE_BUSY: WIN32_ERROR = 7015u32;
pub const ERROR_CTX_MODEM_RESPONSE_VOICE: WIN32_ERROR = 7016u32;
pub const ERROR_CTX_TD_ERROR: WIN32_ERROR = 7017u32;
pub const ERROR_CTX_WINSTATION_NOT_FOUND: WIN32_ERROR = 7022u32;
pub const ERROR_CTX_WINSTATION_ALREADY_EXISTS: WIN32_ERROR = 7023u32;
pub const ERROR_CTX_WINSTATION_BUSY: WIN32_ERROR = 7024u32;
pub const ERROR_CTX_BAD_VIDEO_MODE: WIN32_ERROR = 7025u32;
pub const ERROR_CTX_GRAPHICS_INVALID: WIN32_ERROR = 7035u32;
pub const ERROR_CTX_LOGON_DISABLED: WIN32_ERROR = 7037u32;
pub const ERROR_CTX_NOT_CONSOLE: WIN32_ERROR = 7038u32;
pub const ERROR_CTX_CLIENT_QUERY_TIMEOUT: WIN32_ERROR = 7040u32;
pub const ERROR_CTX_CONSOLE_DISCONNECT: WIN32_ERROR = 7041u32;
pub const ERROR_CTX_CONSOLE_CONNECT: WIN32_ERROR = 7042u32;
pub const ERROR_CTX_SHADOW_DENIED: WIN32_ERROR = 7044u32;
pub const ERROR_CTX_WINSTATION_ACCESS_DENIED: WIN32_ERROR = 7045u32;
pub const ERROR_CTX_INVALID_WD: WIN32_ERROR = 7049u32;
pub const ERROR_CTX_SHADOW_INVALID: WIN32_ERROR = 7050u32;
pub const ERROR_CTX_SHADOW_DISABLED: WIN32_ERROR = 7051u32;
pub const ERROR_CTX_CLIENT_LICENSE_IN_USE: WIN32_ERROR = 7052u32;
pub const ERROR_CTX_CLIENT_LICENSE_NOT_SET: WIN32_ERROR = 7053u32;
pub const ERROR_CTX_LICENSE_NOT_AVAILABLE: WIN32_ERROR = 7054u32;
pub const ERROR_CTX_LICENSE_CLIENT_INVALID: WIN32_ERROR = 7055u32;
pub const ERROR_CTX_LICENSE_EXPIRED: WIN32_ERROR = 7056u32;
pub const ERROR_CTX_SHADOW_NOT_RUNNING: WIN32_ERROR = 7057u32;
pub const ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE: WIN32_ERROR = 7058u32;
pub const ERROR_ACTIVATION_COUNT_EXCEEDED: WIN32_ERROR = 7059u32;
pub const ERROR_CTX_WINSTATIONS_DISABLED: WIN32_ERROR = 7060u32;
pub const ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED: WIN32_ERROR = 7061u32;
pub const ERROR_CTX_SESSION_IN_USE: WIN32_ERROR = 7062u32;
pub const ERROR_CTX_NO_FORCE_LOGOFF: WIN32_ERROR = 7063u32;
pub const ERROR_CTX_ACCOUNT_RESTRICTION: WIN32_ERROR = 7064u32;
pub const ERROR_RDP_PROTOCOL_ERROR: WIN32_ERROR = 7065u32;
pub const ERROR_CTX_CDM_CONNECT: WIN32_ERROR = 7066u32;
pub const ERROR_CTX_CDM_DISCONNECT: WIN32_ERROR = 7067u32;
pub const ERROR_CTX_SECURITY_LAYER_ERROR: WIN32_ERROR = 7068u32;
pub const ERROR_TS_INCOMPATIBLE_SESSIONS: WIN32_ERROR = 7069u32;
pub const ERROR_TS_VIDEO_SUBSYSTEM_ERROR: WIN32_ERROR = 7070u32;
pub const ERROR_DS_NOT_INSTALLED: WIN32_ERROR = 8200u32;
pub const ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY: WIN32_ERROR = 8201u32;
pub const ERROR_DS_NO_ATTRIBUTE_OR_VALUE: WIN32_ERROR = 8202u32;
pub const ERROR_DS_INVALID_ATTRIBUTE_SYNTAX: WIN32_ERROR = 8203u32;
pub const ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED: WIN32_ERROR = 8204u32;
pub const ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS: WIN32_ERROR = 8205u32;
pub const ERROR_DS_BUSY: WIN32_ERROR = 8206u32;
pub const ERROR_DS_UNAVAILABLE: WIN32_ERROR = 8207u32;
pub const ERROR_DS_NO_RIDS_ALLOCATED: WIN32_ERROR = 8208u32;
pub const ERROR_DS_NO_MORE_RIDS: WIN32_ERROR = 8209u32;
pub const ERROR_DS_INCORRECT_ROLE_OWNER: WIN32_ERROR = 8210u32;
pub const ERROR_DS_RIDMGR_INIT_ERROR: WIN32_ERROR = 8211u32;
pub const ERROR_DS_OBJ_CLASS_VIOLATION: WIN32_ERROR = 8212u32;
pub const ERROR_DS_CANT_ON_NON_LEAF: WIN32_ERROR = 8213u32;
pub const ERROR_DS_CANT_ON_RDN: WIN32_ERROR = 8214u32;
pub const ERROR_DS_CANT_MOD_OBJ_CLASS: WIN32_ERROR = 8215u32;
pub const ERROR_DS_CROSS_DOM_MOVE_ERROR: WIN32_ERROR = 8216u32;
pub const ERROR_DS_GC_NOT_AVAILABLE: WIN32_ERROR = 8217u32;
pub const ERROR_SHARED_POLICY: WIN32_ERROR = 8218u32;
pub const ERROR_POLICY_OBJECT_NOT_FOUND: WIN32_ERROR = 8219u32;
pub const ERROR_POLICY_ONLY_IN_DS: WIN32_ERROR = 8220u32;
pub const ERROR_PROMOTION_ACTIVE: WIN32_ERROR = 8221u32;
pub const ERROR_NO_PROMOTION_ACTIVE: WIN32_ERROR = 8222u32;
pub const ERROR_DS_OPERATIONS_ERROR: WIN32_ERROR = 8224u32;
pub const ERROR_DS_PROTOCOL_ERROR: WIN32_ERROR = 8225u32;
pub const ERROR_DS_TIMELIMIT_EXCEEDED: WIN32_ERROR = 8226u32;
pub const ERROR_DS_SIZELIMIT_EXCEEDED: WIN32_ERROR = 8227u32;
pub const ERROR_DS_ADMIN_LIMIT_EXCEEDED: WIN32_ERROR = 8228u32;
pub const ERROR_DS_COMPARE_FALSE: WIN32_ERROR = 8229u32;
pub const ERROR_DS_COMPARE_TRUE: WIN32_ERROR = 8230u32;
pub const ERROR_DS_AUTH_METHOD_NOT_SUPPORTED: WIN32_ERROR = 8231u32;
pub const ERROR_DS_STRONG_AUTH_REQUIRED: WIN32_ERROR = 8232u32;
pub const ERROR_DS_INAPPROPRIATE_AUTH: WIN32_ERROR = 8233u32;
pub const ERROR_DS_AUTH_UNKNOWN: WIN32_ERROR = 8234u32;
pub const ERROR_DS_REFERRAL: WIN32_ERROR = 8235u32;
pub const ERROR_DS_UNAVAILABLE_CRIT_EXTENSION: WIN32_ERROR = 8236u32;
pub const ERROR_DS_CONFIDENTIALITY_REQUIRED: WIN32_ERROR = 8237u32;
pub const ERROR_DS_INAPPROPRIATE_MATCHING: WIN32_ERROR = 8238u32;
pub const ERROR_DS_CONSTRAINT_VIOLATION: WIN32_ERROR = 8239u32;
pub const ERROR_DS_NO_SUCH_OBJECT: WIN32_ERROR = 8240u32;
pub const ERROR_DS_ALIAS_PROBLEM: WIN32_ERROR = 8241u32;
pub const ERROR_DS_INVALID_DN_SYNTAX: WIN32_ERROR = 8242u32;
pub const ERROR_DS_IS_LEAF: WIN32_ERROR = 8243u32;
pub const ERROR_DS_ALIAS_DEREF_PROBLEM: WIN32_ERROR = 8244u32;
pub const ERROR_DS_UNWILLING_TO_PERFORM: WIN32_ERROR = 8245u32;
pub const ERROR_DS_LOOP_DETECT: WIN32_ERROR = 8246u32;
pub const ERROR_DS_NAMING_VIOLATION: WIN32_ERROR = 8247u32;
pub const ERROR_DS_OBJECT_RESULTS_TOO_LARGE: WIN32_ERROR = 8248u32;
pub const ERROR_DS_AFFECTS_MULTIPLE_DSAS: WIN32_ERROR = 8249u32;
pub const ERROR_DS_SERVER_DOWN: WIN32_ERROR = 8250u32;
pub const ERROR_DS_LOCAL_ERROR: WIN32_ERROR = 8251u32;
pub const ERROR_DS_ENCODING_ERROR: WIN32_ERROR = 8252u32;
pub const ERROR_DS_DECODING_ERROR: WIN32_ERROR = 8253u32;
pub const ERROR_DS_FILTER_UNKNOWN: WIN32_ERROR = 8254u32;
pub const ERROR_DS_PARAM_ERROR: WIN32_ERROR = 8255u32;
pub const ERROR_DS_NOT_SUPPORTED: WIN32_ERROR = 8256u32;
pub const ERROR_DS_NO_RESULTS_RETURNED: WIN32_ERROR = 8257u32;
pub const ERROR_DS_CONTROL_NOT_FOUND: WIN32_ERROR = 8258u32;
pub const ERROR_DS_CLIENT_LOOP: WIN32_ERROR = 8259u32;
pub const ERROR_DS_REFERRAL_LIMIT_EXCEEDED: WIN32_ERROR = 8260u32;
pub const ERROR_DS_SORT_CONTROL_MISSING: WIN32_ERROR = 8261u32;
pub const ERROR_DS_OFFSET_RANGE_ERROR: WIN32_ERROR = 8262u32;
pub const ERROR_DS_RIDMGR_DISABLED: WIN32_ERROR = 8263u32;
pub const ERROR_DS_ROOT_MUST_BE_NC: WIN32_ERROR = 8301u32;
pub const ERROR_DS_ADD_REPLICA_INHIBITED: WIN32_ERROR = 8302u32;
pub const ERROR_DS_ATT_NOT_DEF_IN_SCHEMA: WIN32_ERROR = 8303u32;
pub const ERROR_DS_MAX_OBJ_SIZE_EXCEEDED: WIN32_ERROR = 8304u32;
pub const ERROR_DS_OBJ_STRING_NAME_EXISTS: WIN32_ERROR = 8305u32;
pub const ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA: WIN32_ERROR = 8306u32;
pub const ERROR_DS_RDN_DOESNT_MATCH_SCHEMA: WIN32_ERROR = 8307u32;
pub const ERROR_DS_NO_REQUESTED_ATTS_FOUND: WIN32_ERROR = 8308u32;
pub const ERROR_DS_USER_BUFFER_TO_SMALL: WIN32_ERROR = 8309u32;
pub const ERROR_DS_ATT_IS_NOT_ON_OBJ: WIN32_ERROR = 8310u32;
pub const ERROR_DS_ILLEGAL_MOD_OPERATION: WIN32_ERROR = 8311u32;
pub const ERROR_DS_OBJ_TOO_LARGE: WIN32_ERROR = 8312u32;
pub const ERROR_DS_BAD_INSTANCE_TYPE: WIN32_ERROR = 8313u32;
pub const ERROR_DS_MASTERDSA_REQUIRED: WIN32_ERROR = 8314u32;
pub const ERROR_DS_OBJECT_CLASS_REQUIRED: WIN32_ERROR = 8315u32;
pub const ERROR_DS_MISSING_REQUIRED_ATT: WIN32_ERROR = 8316u32;
pub const ERROR_DS_ATT_NOT_DEF_FOR_CLASS: WIN32_ERROR = 8317u32;
pub const ERROR_DS_ATT_ALREADY_EXISTS: WIN32_ERROR = 8318u32;
pub const ERROR_DS_CANT_ADD_ATT_VALUES: WIN32_ERROR = 8320u32;
pub const ERROR_DS_SINGLE_VALUE_CONSTRAINT: WIN32_ERROR = 8321u32;
pub const ERROR_DS_RANGE_CONSTRAINT: WIN32_ERROR = 8322u32;
pub const ERROR_DS_ATT_VAL_ALREADY_EXISTS: WIN32_ERROR = 8323u32;
pub const ERROR_DS_CANT_REM_MISSING_ATT: WIN32_ERROR = 8324u32;
pub const ERROR_DS_CANT_REM_MISSING_ATT_VAL: WIN32_ERROR = 8325u32;
pub const ERROR_DS_ROOT_CANT_BE_SUBREF: WIN32_ERROR = 8326u32;
pub const ERROR_DS_NO_CHAINING: WIN32_ERROR = 8327u32;
pub const ERROR_DS_NO_CHAINED_EVAL: WIN32_ERROR = 8328u32;
pub const ERROR_DS_NO_PARENT_OBJECT: WIN32_ERROR = 8329u32;
pub const ERROR_DS_PARENT_IS_AN_ALIAS: WIN32_ERROR = 8330u32;
pub const ERROR_DS_CANT_MIX_MASTER_AND_REPS: WIN32_ERROR = 8331u32;
pub const ERROR_DS_CHILDREN_EXIST: WIN32_ERROR = 8332u32;
pub const ERROR_DS_OBJ_NOT_FOUND: WIN32_ERROR = 8333u32;
pub const ERROR_DS_ALIASED_OBJ_MISSING: WIN32_ERROR = 8334u32;
pub const ERROR_DS_BAD_NAME_SYNTAX: WIN32_ERROR = 8335u32;
pub const ERROR_DS_ALIAS_POINTS_TO_ALIAS: WIN32_ERROR = 8336u32;
pub const ERROR_DS_CANT_DEREF_ALIAS: WIN32_ERROR = 8337u32;
pub const ERROR_DS_OUT_OF_SCOPE: WIN32_ERROR = 8338u32;
pub const ERROR_DS_OBJECT_BEING_REMOVED: WIN32_ERROR = 8339u32;
pub const ERROR_DS_CANT_DELETE_DSA_OBJ: WIN32_ERROR = 8340u32;
pub const ERROR_DS_GENERIC_ERROR: WIN32_ERROR = 8341u32;
pub const ERROR_DS_DSA_MUST_BE_INT_MASTER: WIN32_ERROR = 8342u32;
pub const ERROR_DS_CLASS_NOT_DSA: WIN32_ERROR = 8343u32;
pub const ERROR_DS_INSUFF_ACCESS_RIGHTS: WIN32_ERROR = 8344u32;
pub const ERROR_DS_ILLEGAL_SUPERIOR: WIN32_ERROR = 8345u32;
pub const ERROR_DS_ATTRIBUTE_OWNED_BY_SAM: WIN32_ERROR = 8346u32;
pub const ERROR_DS_NAME_TOO_MANY_PARTS: WIN32_ERROR = 8347u32;
pub const ERROR_DS_NAME_TOO_LONG: WIN32_ERROR = 8348u32;
pub const ERROR_DS_NAME_VALUE_TOO_LONG: WIN32_ERROR = 8349u32;
pub const ERROR_DS_NAME_UNPARSEABLE: WIN32_ERROR = 8350u32;
pub const ERROR_DS_NAME_TYPE_UNKNOWN: WIN32_ERROR = 8351u32;
pub const ERROR_DS_NOT_AN_OBJECT: WIN32_ERROR = 8352u32;
pub const ERROR_DS_SEC_DESC_TOO_SHORT: WIN32_ERROR = 8353u32;
pub const ERROR_DS_SEC_DESC_INVALID: WIN32_ERROR = 8354u32;
pub const ERROR_DS_NO_DELETED_NAME: WIN32_ERROR = 8355u32;
pub const ERROR_DS_SUBREF_MUST_HAVE_PARENT: WIN32_ERROR = 8356u32;
pub const ERROR_DS_NCNAME_MUST_BE_NC: WIN32_ERROR = 8357u32;
pub const ERROR_DS_CANT_ADD_SYSTEM_ONLY: WIN32_ERROR = 8358u32;
pub const ERROR_DS_CLASS_MUST_BE_CONCRETE: WIN32_ERROR = 8359u32;
pub const ERROR_DS_INVALID_DMD: WIN32_ERROR = 8360u32;
pub const ERROR_DS_OBJ_GUID_EXISTS: WIN32_ERROR = 8361u32;
pub const ERROR_DS_NOT_ON_BACKLINK: WIN32_ERROR = 8362u32;
pub const ERROR_DS_NO_CROSSREF_FOR_NC: WIN32_ERROR = 8363u32;
pub const ERROR_DS_SHUTTING_DOWN: WIN32_ERROR = 8364u32;
pub const ERROR_DS_UNKNOWN_OPERATION: WIN32_ERROR = 8365u32;
pub const ERROR_DS_INVALID_ROLE_OWNER: WIN32_ERROR = 8366u32;
pub const ERROR_DS_COULDNT_CONTACT_FSMO: WIN32_ERROR = 8367u32;
pub const ERROR_DS_CROSS_NC_DN_RENAME: WIN32_ERROR = 8368u32;
pub const ERROR_DS_CANT_MOD_SYSTEM_ONLY: WIN32_ERROR = 8369u32;
pub const ERROR_DS_REPLICATOR_ONLY: WIN32_ERROR = 8370u32;
pub const ERROR_DS_OBJ_CLASS_NOT_DEFINED: WIN32_ERROR = 8371u32;
pub const ERROR_DS_OBJ_CLASS_NOT_SUBCLASS: WIN32_ERROR = 8372u32;
pub const ERROR_DS_NAME_REFERENCE_INVALID: WIN32_ERROR = 8373u32;
pub const ERROR_DS_CROSS_REF_EXISTS: WIN32_ERROR = 8374u32;
pub const ERROR_DS_CANT_DEL_MASTER_CROSSREF: WIN32_ERROR = 8375u32;
pub const ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD: WIN32_ERROR = 8376u32;
pub const ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX: WIN32_ERROR = 8377u32;
pub const ERROR_DS_DUP_RDN: WIN32_ERROR = 8378u32;
pub const ERROR_DS_DUP_OID: WIN32_ERROR = 8379u32;
pub const ERROR_DS_DUP_MAPI_ID: WIN32_ERROR = 8380u32;
pub const ERROR_DS_DUP_SCHEMA_ID_GUID: WIN32_ERROR = 8381u32;
pub const ERROR_DS_DUP_LDAP_DISPLAY_NAME: WIN32_ERROR = 8382u32;
pub const ERROR_DS_SEMANTIC_ATT_TEST: WIN32_ERROR = 8383u32;
pub const ERROR_DS_SYNTAX_MISMATCH: WIN32_ERROR = 8384u32;
pub const ERROR_DS_EXISTS_IN_MUST_HAVE: WIN32_ERROR = 8385u32;
pub const ERROR_DS_EXISTS_IN_MAY_HAVE: WIN32_ERROR = 8386u32;
pub const ERROR_DS_NONEXISTENT_MAY_HAVE: WIN32_ERROR = 8387u32;
pub const ERROR_DS_NONEXISTENT_MUST_HAVE: WIN32_ERROR = 8388u32;
pub const ERROR_DS_AUX_CLS_TEST_FAIL: WIN32_ERROR = 8389u32;
pub const ERROR_DS_NONEXISTENT_POSS_SUP: WIN32_ERROR = 8390u32;
pub const ERROR_DS_SUB_CLS_TEST_FAIL: WIN32_ERROR = 8391u32;
pub const ERROR_DS_BAD_RDN_ATT_ID_SYNTAX: WIN32_ERROR = 8392u32;
pub const ERROR_DS_EXISTS_IN_AUX_CLS: WIN32_ERROR = 8393u32;
pub const ERROR_DS_EXISTS_IN_SUB_CLS: WIN32_ERROR = 8394u32;
pub const ERROR_DS_EXISTS_IN_POSS_SUP: WIN32_ERROR = 8395u32;
pub const ERROR_DS_RECALCSCHEMA_FAILED: WIN32_ERROR = 8396u32;
pub const ERROR_DS_TREE_DELETE_NOT_FINISHED: WIN32_ERROR = 8397u32;
pub const ERROR_DS_CANT_DELETE: WIN32_ERROR = 8398u32;
pub const ERROR_DS_ATT_SCHEMA_REQ_ID: WIN32_ERROR = 8399u32;
pub const ERROR_DS_BAD_ATT_SCHEMA_SYNTAX: WIN32_ERROR = 8400u32;
pub const ERROR_DS_CANT_CACHE_ATT: WIN32_ERROR = 8401u32;
pub const ERROR_DS_CANT_CACHE_CLASS: WIN32_ERROR = 8402u32;
pub const ERROR_DS_CANT_REMOVE_ATT_CACHE: WIN32_ERROR = 8403u32;
pub const ERROR_DS_CANT_REMOVE_CLASS_CACHE: WIN32_ERROR = 8404u32;
pub const ERROR_DS_CANT_RETRIEVE_DN: WIN32_ERROR = 8405u32;
pub const ERROR_DS_MISSING_SUPREF: WIN32_ERROR = 8406u32;
pub const ERROR_DS_CANT_RETRIEVE_INSTANCE: WIN32_ERROR = 8407u32;
pub const ERROR_DS_CODE_INCONSISTENCY: WIN32_ERROR = 8408u32;
pub const ERROR_DS_DATABASE_ERROR: WIN32_ERROR = 8409u32;
pub const ERROR_DS_GOVERNSID_MISSING: WIN32_ERROR = 8410u32;
pub const ERROR_DS_MISSING_EXPECTED_ATT: WIN32_ERROR = 8411u32;
pub const ERROR_DS_NCNAME_MISSING_CR_REF: WIN32_ERROR = 8412u32;
pub const ERROR_DS_SECURITY_CHECKING_ERROR: WIN32_ERROR = 8413u32;
pub const ERROR_DS_SCHEMA_NOT_LOADED: WIN32_ERROR = 8414u32;
pub const ERROR_DS_SCHEMA_ALLOC_FAILED: WIN32_ERROR = 8415u32;
pub const ERROR_DS_ATT_SCHEMA_REQ_SYNTAX: WIN32_ERROR = 8416u32;
pub const ERROR_DS_GCVERIFY_ERROR: WIN32_ERROR = 8417u32;
pub const ERROR_DS_DRA_SCHEMA_MISMATCH: WIN32_ERROR = 8418u32;
pub const ERROR_DS_CANT_FIND_DSA_OBJ: WIN32_ERROR = 8419u32;
pub const ERROR_DS_CANT_FIND_EXPECTED_NC: WIN32_ERROR = 8420u32;
pub const ERROR_DS_CANT_FIND_NC_IN_CACHE: WIN32_ERROR = 8421u32;
pub const ERROR_DS_CANT_RETRIEVE_CHILD: WIN32_ERROR = 8422u32;
pub const ERROR_DS_SECURITY_ILLEGAL_MODIFY: WIN32_ERROR = 8423u32;
pub const ERROR_DS_CANT_REPLACE_HIDDEN_REC: WIN32_ERROR = 8424u32;
pub const ERROR_DS_BAD_HIERARCHY_FILE: WIN32_ERROR = 8425u32;
pub const ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED: WIN32_ERROR = 8426u32;
pub const ERROR_DS_CONFIG_PARAM_MISSING: WIN32_ERROR = 8427u32;
pub const ERROR_DS_COUNTING_AB_INDICES_FAILED: WIN32_ERROR = 8428u32;
pub const ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED: WIN32_ERROR = 8429u32;
pub const ERROR_DS_INTERNAL_FAILURE: WIN32_ERROR = 8430u32;
pub const ERROR_DS_UNKNOWN_ERROR: WIN32_ERROR = 8431u32;
pub const ERROR_DS_ROOT_REQUIRES_CLASS_TOP: WIN32_ERROR = 8432u32;
pub const ERROR_DS_REFUSING_FSMO_ROLES: WIN32_ERROR = 8433u32;
pub const ERROR_DS_MISSING_FSMO_SETTINGS: WIN32_ERROR = 8434u32;
pub const ERROR_DS_UNABLE_TO_SURRENDER_ROLES: WIN32_ERROR = 8435u32;
pub const ERROR_DS_DRA_GENERIC: WIN32_ERROR = 8436u32;
pub const ERROR_DS_DRA_INVALID_PARAMETER: WIN32_ERROR = 8437u32;
pub const ERROR_DS_DRA_BUSY: WIN32_ERROR = 8438u32;
pub const ERROR_DS_DRA_BAD_DN: WIN32_ERROR = 8439u32;
pub const ERROR_DS_DRA_BAD_NC: WIN32_ERROR = 8440u32;
pub const ERROR_DS_DRA_DN_EXISTS: WIN32_ERROR = 8441u32;
pub const ERROR_DS_DRA_INTERNAL_ERROR: WIN32_ERROR = 8442u32;
pub const ERROR_DS_DRA_INCONSISTENT_DIT: WIN32_ERROR = 8443u32;
pub const ERROR_DS_DRA_CONNECTION_FAILED: WIN32_ERROR = 8444u32;
pub const ERROR_DS_DRA_BAD_INSTANCE_TYPE: WIN32_ERROR = 8445u32;
pub const ERROR_DS_DRA_OUT_OF_MEM: WIN32_ERROR = 8446u32;
pub const ERROR_DS_DRA_MAIL_PROBLEM: WIN32_ERROR = 8447u32;
pub const ERROR_DS_DRA_REF_ALREADY_EXISTS: WIN32_ERROR = 8448u32;
pub const ERROR_DS_DRA_REF_NOT_FOUND: WIN32_ERROR = 8449u32;
pub const ERROR_DS_DRA_OBJ_IS_REP_SOURCE: WIN32_ERROR = 8450u32;
pub const ERROR_DS_DRA_DB_ERROR: WIN32_ERROR = 8451u32;
pub const ERROR_DS_DRA_NO_REPLICA: WIN32_ERROR = 8452u32;
pub const ERROR_DS_DRA_ACCESS_DENIED: WIN32_ERROR = 8453u32;
pub const ERROR_DS_DRA_NOT_SUPPORTED: WIN32_ERROR = 8454u32;
pub const ERROR_DS_DRA_RPC_CANCELLED: WIN32_ERROR = 8455u32;
pub const ERROR_DS_DRA_SOURCE_DISABLED: WIN32_ERROR = 8456u32;
pub const ERROR_DS_DRA_SINK_DISABLED: WIN32_ERROR = 8457u32;
pub const ERROR_DS_DRA_NAME_COLLISION: WIN32_ERROR = 8458u32;
pub const ERROR_DS_DRA_SOURCE_REINSTALLED: WIN32_ERROR = 8459u32;
pub const ERROR_DS_DRA_MISSING_PARENT: WIN32_ERROR = 8460u32;
pub const ERROR_DS_DRA_PREEMPTED: WIN32_ERROR = 8461u32;
pub const ERROR_DS_DRA_ABANDON_SYNC: WIN32_ERROR = 8462u32;
pub const ERROR_DS_DRA_SHUTDOWN: WIN32_ERROR = 8463u32;
pub const ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET: WIN32_ERROR = 8464u32;
pub const ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA: WIN32_ERROR = 8465u32;
pub const ERROR_DS_DRA_EXTN_CONNECTION_FAILED: WIN32_ERROR = 8466u32;
pub const ERROR_DS_INSTALL_SCHEMA_MISMATCH: WIN32_ERROR = 8467u32;
pub const ERROR_DS_DUP_LINK_ID: WIN32_ERROR = 8468u32;
pub const ERROR_DS_NAME_ERROR_RESOLVING: WIN32_ERROR = 8469u32;
pub const ERROR_DS_NAME_ERROR_NOT_FOUND: WIN32_ERROR = 8470u32;
pub const ERROR_DS_NAME_ERROR_NOT_UNIQUE: WIN32_ERROR = 8471u32;
pub const ERROR_DS_NAME_ERROR_NO_MAPPING: WIN32_ERROR = 8472u32;
pub const ERROR_DS_NAME_ERROR_DOMAIN_ONLY: WIN32_ERROR = 8473u32;
pub const ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING: WIN32_ERROR = 8474u32;
pub const ERROR_DS_CONSTRUCTED_ATT_MOD: WIN32_ERROR = 8475u32;
pub const ERROR_DS_WRONG_OM_OBJ_CLASS: WIN32_ERROR = 8476u32;
pub const ERROR_DS_DRA_REPL_PENDING: WIN32_ERROR = 8477u32;
pub const ERROR_DS_DS_REQUIRED: WIN32_ERROR = 8478u32;
pub const ERROR_DS_INVALID_LDAP_DISPLAY_NAME: WIN32_ERROR = 8479u32;
pub const ERROR_DS_NON_BASE_SEARCH: WIN32_ERROR = 8480u32;
pub const ERROR_DS_CANT_RETRIEVE_ATTS: WIN32_ERROR = 8481u32;
pub const ERROR_DS_BACKLINK_WITHOUT_LINK: WIN32_ERROR = 8482u32;
pub const ERROR_DS_EPOCH_MISMATCH: WIN32_ERROR = 8483u32;
pub const ERROR_DS_SRC_NAME_MISMATCH: WIN32_ERROR = 8484u32;
pub const ERROR_DS_SRC_AND_DST_NC_IDENTICAL: WIN32_ERROR = 8485u32;
pub const ERROR_DS_DST_NC_MISMATCH: WIN32_ERROR = 8486u32;
pub const ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC: WIN32_ERROR = 8487u32;
pub const ERROR_DS_SRC_GUID_MISMATCH: WIN32_ERROR = 8488u32;
pub const ERROR_DS_CANT_MOVE_DELETED_OBJECT: WIN32_ERROR = 8489u32;
pub const ERROR_DS_PDC_OPERATION_IN_PROGRESS: WIN32_ERROR = 8490u32;
pub const ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD: WIN32_ERROR = 8491u32;
pub const ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION: WIN32_ERROR = 8492u32;
pub const ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS: WIN32_ERROR = 8493u32;
pub const ERROR_DS_NC_MUST_HAVE_NC_PARENT: WIN32_ERROR = 8494u32;
pub const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE: WIN32_ERROR = 8495u32;
pub const ERROR_DS_DST_DOMAIN_NOT_NATIVE: WIN32_ERROR = 8496u32;
pub const ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER: WIN32_ERROR = 8497u32;
pub const ERROR_DS_CANT_MOVE_ACCOUNT_GROUP: WIN32_ERROR = 8498u32;
pub const ERROR_DS_CANT_MOVE_RESOURCE_GROUP: WIN32_ERROR = 8499u32;
pub const ERROR_DS_INVALID_SEARCH_FLAG: WIN32_ERROR = 8500u32;
pub const ERROR_DS_NO_TREE_DELETE_ABOVE_NC: WIN32_ERROR = 8501u32;
pub const ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE: WIN32_ERROR = 8502u32;
pub const ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE: WIN32_ERROR = 8503u32;
pub const ERROR_DS_SAM_INIT_FAILURE: WIN32_ERROR = 8504u32;
pub const ERROR_DS_SENSITIVE_GROUP_VIOLATION: WIN32_ERROR = 8505u32;
pub const ERROR_DS_CANT_MOD_PRIMARYGROUPID: WIN32_ERROR = 8506u32;
pub const ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD: WIN32_ERROR = 8507u32;
pub const ERROR_DS_NONSAFE_SCHEMA_CHANGE: WIN32_ERROR = 8508u32;
pub const ERROR_DS_SCHEMA_UPDATE_DISALLOWED: WIN32_ERROR = 8509u32;
pub const ERROR_DS_CANT_CREATE_UNDER_SCHEMA: WIN32_ERROR = 8510u32;
pub const ERROR_DS_INSTALL_NO_SRC_SCH_VERSION: WIN32_ERROR = 8511u32;
pub const ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE: WIN32_ERROR = 8512u32;
pub const ERROR_DS_INVALID_GROUP_TYPE: WIN32_ERROR = 8513u32;
pub const ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN: WIN32_ERROR = 8514u32;
pub const ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN: WIN32_ERROR = 8515u32;
pub const ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER: WIN32_ERROR = 8516u32;
pub const ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER: WIN32_ERROR = 8517u32;
pub const ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER: WIN32_ERROR = 8518u32;
pub const ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER: WIN32_ERROR = 8519u32;
pub const ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER: WIN32_ERROR = 8520u32;
pub const ERROR_DS_HAVE_PRIMARY_MEMBERS: WIN32_ERROR = 8521u32;
pub const ERROR_DS_STRING_SD_CONVERSION_FAILED: WIN32_ERROR = 8522u32;
pub const ERROR_DS_NAMING_MASTER_GC: WIN32_ERROR = 8523u32;
pub const ERROR_DS_DNS_LOOKUP_FAILURE: WIN32_ERROR = 8524u32;
pub const ERROR_DS_COULDNT_UPDATE_SPNS: WIN32_ERROR = 8525u32;
pub const ERROR_DS_CANT_RETRIEVE_SD: WIN32_ERROR = 8526u32;
pub const ERROR_DS_KEY_NOT_UNIQUE: WIN32_ERROR = 8527u32;
pub const ERROR_DS_WRONG_LINKED_ATT_SYNTAX: WIN32_ERROR = 8528u32;
pub const ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD: WIN32_ERROR = 8529u32;
pub const ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY: WIN32_ERROR = 8530u32;
pub const ERROR_DS_CANT_START: WIN32_ERROR = 8531u32;
pub const ERROR_DS_INIT_FAILURE: WIN32_ERROR = 8532u32;
pub const ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION: WIN32_ERROR = 8533u32;
pub const ERROR_DS_SOURCE_DOMAIN_IN_FOREST: WIN32_ERROR = 8534u32;
pub const ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST: WIN32_ERROR = 8535u32;
pub const ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED: WIN32_ERROR = 8536u32;
pub const ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN: WIN32_ERROR = 8537u32;
pub const ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER: WIN32_ERROR = 8538u32;
pub const ERROR_DS_SRC_SID_EXISTS_IN_FOREST: WIN32_ERROR = 8539u32;
pub const ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH: WIN32_ERROR = 8540u32;
pub const ERROR_SAM_INIT_FAILURE: WIN32_ERROR = 8541u32;
pub const ERROR_DS_DRA_SCHEMA_INFO_SHIP: WIN32_ERROR = 8542u32;
pub const ERROR_DS_DRA_SCHEMA_CONFLICT: WIN32_ERROR = 8543u32;
pub const ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT: WIN32_ERROR = 8544u32;
pub const ERROR_DS_DRA_OBJ_NC_MISMATCH: WIN32_ERROR = 8545u32;
pub const ERROR_DS_NC_STILL_HAS_DSAS: WIN32_ERROR = 8546u32;
pub const ERROR_DS_GC_REQUIRED: WIN32_ERROR = 8547u32;
pub const ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY: WIN32_ERROR = 8548u32;
pub const ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS: WIN32_ERROR = 8549u32;
pub const ERROR_DS_CANT_ADD_TO_GC: WIN32_ERROR = 8550u32;
pub const ERROR_DS_NO_CHECKPOINT_WITH_PDC: WIN32_ERROR = 8551u32;
pub const ERROR_DS_SOURCE_AUDITING_NOT_ENABLED: WIN32_ERROR = 8552u32;
pub const ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC: WIN32_ERROR = 8553u32;
pub const ERROR_DS_INVALID_NAME_FOR_SPN: WIN32_ERROR = 8554u32;
pub const ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS: WIN32_ERROR = 8555u32;
pub const ERROR_DS_UNICODEPWD_NOT_IN_QUOTES: WIN32_ERROR = 8556u32;
pub const ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED: WIN32_ERROR = 8557u32;
pub const ERROR_DS_MUST_BE_RUN_ON_DST_DC: WIN32_ERROR = 8558u32;
pub const ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER: WIN32_ERROR = 8559u32;
pub const ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ: WIN32_ERROR = 8560u32;
pub const ERROR_DS_INIT_FAILURE_CONSOLE: WIN32_ERROR = 8561u32;
pub const ERROR_DS_SAM_INIT_FAILURE_CONSOLE: WIN32_ERROR = 8562u32;
pub const ERROR_DS_FOREST_VERSION_TOO_HIGH: WIN32_ERROR = 8563u32;
pub const ERROR_DS_DOMAIN_VERSION_TOO_HIGH: WIN32_ERROR = 8564u32;
pub const ERROR_DS_FOREST_VERSION_TOO_LOW: WIN32_ERROR = 8565u32;
pub const ERROR_DS_DOMAIN_VERSION_TOO_LOW: WIN32_ERROR = 8566u32;
pub const ERROR_DS_INCOMPATIBLE_VERSION: WIN32_ERROR = 8567u32;
pub const ERROR_DS_LOW_DSA_VERSION: WIN32_ERROR = 8568u32;
pub const ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN: WIN32_ERROR = 8569u32;
pub const ERROR_DS_NOT_SUPPORTED_SORT_ORDER: WIN32_ERROR = 8570u32;
pub const ERROR_DS_NAME_NOT_UNIQUE: WIN32_ERROR = 8571u32;
pub const ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4: WIN32_ERROR = 8572u32;
pub const ERROR_DS_OUT_OF_VERSION_STORE: WIN32_ERROR = 8573u32;
pub const ERROR_DS_INCOMPATIBLE_CONTROLS_USED: WIN32_ERROR = 8574u32;
pub const ERROR_DS_NO_REF_DOMAIN: WIN32_ERROR = 8575u32;
pub const ERROR_DS_RESERVED_LINK_ID: WIN32_ERROR = 8576u32;
pub const ERROR_DS_LINK_ID_NOT_AVAILABLE: WIN32_ERROR = 8577u32;
pub const ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER: WIN32_ERROR = 8578u32;
pub const ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE: WIN32_ERROR = 8579u32;
pub const ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC: WIN32_ERROR = 8580u32;
pub const ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG: WIN32_ERROR = 8581u32;
pub const ERROR_DS_MODIFYDN_WRONG_GRANDPARENT: WIN32_ERROR = 8582u32;
pub const ERROR_DS_NAME_ERROR_TRUST_REFERRAL: WIN32_ERROR = 8583u32;
pub const ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER: WIN32_ERROR = 8584u32;
pub const ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD: WIN32_ERROR = 8585u32;
pub const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2: WIN32_ERROR = 8586u32;
pub const ERROR_DS_THREAD_LIMIT_EXCEEDED: WIN32_ERROR = 8587u32;
pub const ERROR_DS_NOT_CLOSEST: WIN32_ERROR = 8588u32;
pub const ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF: WIN32_ERROR = 8589u32;
pub const ERROR_DS_SINGLE_USER_MODE_FAILED: WIN32_ERROR = 8590u32;
pub const ERROR_DS_NTDSCRIPT_SYNTAX_ERROR: WIN32_ERROR = 8591u32;
pub const ERROR_DS_NTDSCRIPT_PROCESS_ERROR: WIN32_ERROR = 8592u32;
pub const ERROR_DS_DIFFERENT_REPL_EPOCHS: WIN32_ERROR = 8593u32;
pub const ERROR_DS_DRS_EXTENSIONS_CHANGED: WIN32_ERROR = 8594u32;
pub const ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR: WIN32_ERROR = 8595u32;
pub const ERROR_DS_NO_MSDS_INTID: WIN32_ERROR = 8596u32;
pub const ERROR_DS_DUP_MSDS_INTID: WIN32_ERROR = 8597u32;
pub const ERROR_DS_EXISTS_IN_RDNATTID: WIN32_ERROR = 8598u32;
pub const ERROR_DS_AUTHORIZATION_FAILED: WIN32_ERROR = 8599u32;
pub const ERROR_DS_INVALID_SCRIPT: WIN32_ERROR = 8600u32;
pub const ERROR_DS_REMOTE_CROSSREF_OP_FAILED: WIN32_ERROR = 8601u32;
pub const ERROR_DS_CROSS_REF_BUSY: WIN32_ERROR = 8602u32;
pub const ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN: WIN32_ERROR = 8603u32;
pub const ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC: WIN32_ERROR = 8604u32;
pub const ERROR_DS_DUPLICATE_ID_FOUND: WIN32_ERROR = 8605u32;
pub const ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT: WIN32_ERROR = 8606u32;
pub const ERROR_DS_GROUP_CONVERSION_ERROR: WIN32_ERROR = 8607u32;
pub const ERROR_DS_CANT_MOVE_APP_BASIC_GROUP: WIN32_ERROR = 8608u32;
pub const ERROR_DS_CANT_MOVE_APP_QUERY_GROUP: WIN32_ERROR = 8609u32;
pub const ERROR_DS_ROLE_NOT_VERIFIED: WIN32_ERROR = 8610u32;
pub const ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL: WIN32_ERROR = 8611u32;
pub const ERROR_DS_DOMAIN_RENAME_IN_PROGRESS: WIN32_ERROR = 8612u32;
pub const ERROR_DS_EXISTING_AD_CHILD_NC: WIN32_ERROR = 8613u32;
pub const ERROR_DS_REPL_LIFETIME_EXCEEDED: WIN32_ERROR = 8614u32;
pub const ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER: WIN32_ERROR = 8615u32;
pub const ERROR_DS_LDAP_SEND_QUEUE_FULL: WIN32_ERROR = 8616u32;
pub const ERROR_DS_DRA_OUT_SCHEDULE_WINDOW: WIN32_ERROR = 8617u32;
pub const ERROR_DS_POLICY_NOT_KNOWN: WIN32_ERROR = 8618u32;
pub const ERROR_NO_SITE_SETTINGS_OBJECT: WIN32_ERROR = 8619u32;
pub const ERROR_NO_SECRETS: WIN32_ERROR = 8620u32;
pub const ERROR_NO_WRITABLE_DC_FOUND: WIN32_ERROR = 8621u32;
pub const ERROR_DS_NO_SERVER_OBJECT: WIN32_ERROR = 8622u32;
pub const ERROR_DS_NO_NTDSA_OBJECT: WIN32_ERROR = 8623u32;
pub const ERROR_DS_NON_ASQ_SEARCH: WIN32_ERROR = 8624u32;
pub const ERROR_DS_AUDIT_FAILURE: WIN32_ERROR = 8625u32;
pub const ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE: WIN32_ERROR = 8626u32;
pub const ERROR_DS_INVALID_SEARCH_FLAG_TUPLE: WIN32_ERROR = 8627u32;
pub const ERROR_DS_HIERARCHY_TABLE_TOO_DEEP: WIN32_ERROR = 8628u32;
pub const ERROR_DS_DRA_CORRUPT_UTD_VECTOR: WIN32_ERROR = 8629u32;
pub const ERROR_DS_DRA_SECRETS_DENIED: WIN32_ERROR = 8630u32;
pub const ERROR_DS_RESERVED_MAPI_ID: WIN32_ERROR = 8631u32;
pub const ERROR_DS_MAPI_ID_NOT_AVAILABLE: WIN32_ERROR = 8632u32;
pub const ERROR_DS_DRA_MISSING_KRBTGT_SECRET: WIN32_ERROR = 8633u32;
pub const ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST: WIN32_ERROR = 8634u32;
pub const ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST: WIN32_ERROR = 8635u32;
pub const ERROR_INVALID_USER_PRINCIPAL_NAME: WIN32_ERROR = 8636u32;
pub const ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS: WIN32_ERROR = 8637u32;
pub const ERROR_DS_OID_NOT_FOUND: WIN32_ERROR = 8638u32;
pub const ERROR_DS_DRA_RECYCLED_TARGET: WIN32_ERROR = 8639u32;
pub const ERROR_DS_DISALLOWED_NC_REDIRECT: WIN32_ERROR = 8640u32;
pub const ERROR_DS_HIGH_ADLDS_FFL: WIN32_ERROR = 8641u32;
pub const ERROR_DS_HIGH_DSA_VERSION: WIN32_ERROR = 8642u32;
pub const ERROR_DS_LOW_ADLDS_FFL: WIN32_ERROR = 8643u32;
pub const ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION: WIN32_ERROR = 8644u32;
pub const ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED: WIN32_ERROR = 8645u32;
pub const ERROR_INCORRECT_ACCOUNT_TYPE: WIN32_ERROR = 8646u32;
pub const ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST: WIN32_ERROR = 8647u32;
pub const ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST: WIN32_ERROR = 8648u32;
pub const ERROR_DS_MISSING_FOREST_TRUST: WIN32_ERROR = 8649u32;
pub const ERROR_DS_VALUE_KEY_NOT_UNIQUE: WIN32_ERROR = 8650u32;
pub const ERROR_WEAK_WHFBKEY_BLOCKED: WIN32_ERROR = 8651u32;
pub const DNS_ERROR_RESPONSE_CODES_BASE: WIN32_ERROR = 9000u32;
pub const DNS_ERROR_RCODE_NO_ERROR: WIN32_ERROR = 0u32;
pub const DNS_ERROR_MASK: WIN32_ERROR = 9000u32;
pub const DNS_ERROR_RCODE_FORMAT_ERROR: WIN32_ERROR = 9001u32;
pub const DNS_ERROR_RCODE_SERVER_FAILURE: WIN32_ERROR = 9002u32;
pub const DNS_ERROR_RCODE_NAME_ERROR: WIN32_ERROR = 9003u32;
pub const DNS_ERROR_RCODE_NOT_IMPLEMENTED: WIN32_ERROR = 9004u32;
pub const DNS_ERROR_RCODE_REFUSED: WIN32_ERROR = 9005u32;
pub const DNS_ERROR_RCODE_YXDOMAIN: WIN32_ERROR = 9006u32;
pub const DNS_ERROR_RCODE_YXRRSET: WIN32_ERROR = 9007u32;
pub const DNS_ERROR_RCODE_NXRRSET: WIN32_ERROR = 9008u32;
pub const DNS_ERROR_RCODE_NOTAUTH: WIN32_ERROR = 9009u32;
pub const DNS_ERROR_RCODE_NOTZONE: WIN32_ERROR = 9010u32;
pub const DNS_ERROR_RCODE_BADSIG: WIN32_ERROR = 9016u32;
pub const DNS_ERROR_RCODE_BADKEY: WIN32_ERROR = 9017u32;
pub const DNS_ERROR_RCODE_BADTIME: WIN32_ERROR = 9018u32;
pub const DNS_ERROR_RCODE_LAST: WIN32_ERROR = 9018u32;
pub const DNS_ERROR_DNSSEC_BASE: WIN32_ERROR = 9100u32;
pub const DNS_ERROR_KEYMASTER_REQUIRED: WIN32_ERROR = 9101u32;
pub const DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE: WIN32_ERROR = 9102u32;
pub const DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1: WIN32_ERROR = 9103u32;
pub const DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS: WIN32_ERROR = 9104u32;
pub const DNS_ERROR_UNSUPPORTED_ALGORITHM: WIN32_ERROR = 9105u32;
pub const DNS_ERROR_INVALID_KEY_SIZE: WIN32_ERROR = 9106u32;
pub const DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE: WIN32_ERROR = 9107u32;
pub const DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION: WIN32_ERROR = 9108u32;
pub const DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR: WIN32_ERROR = 9109u32;
pub const DNS_ERROR_UNEXPECTED_CNG_ERROR: WIN32_ERROR = 9110u32;
pub const DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION: WIN32_ERROR = 9111u32;
pub const DNS_ERROR_KSP_NOT_ACCESSIBLE: WIN32_ERROR = 9112u32;
pub const DNS_ERROR_TOO_MANY_SKDS: WIN32_ERROR = 9113u32;
pub const DNS_ERROR_INVALID_ROLLOVER_PERIOD: WIN32_ERROR = 9114u32;
pub const DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET: WIN32_ERROR = 9115u32;
pub const DNS_ERROR_ROLLOVER_IN_PROGRESS: WIN32_ERROR = 9116u32;
pub const DNS_ERROR_STANDBY_KEY_NOT_PRESENT: WIN32_ERROR = 9117u32;
pub const DNS_ERROR_NOT_ALLOWED_ON_ZSK: WIN32_ERROR = 9118u32;
pub const DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD: WIN32_ERROR = 9119u32;
pub const DNS_ERROR_ROLLOVER_ALREADY_QUEUED: WIN32_ERROR = 9120u32;
pub const DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE: WIN32_ERROR = 9121u32;
pub const DNS_ERROR_BAD_KEYMASTER: WIN32_ERROR = 9122u32;
pub const DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD: WIN32_ERROR = 9123u32;
pub const DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT: WIN32_ERROR = 9124u32;
pub const DNS_ERROR_DNSSEC_IS_DISABLED: WIN32_ERROR = 9125u32;
pub const DNS_ERROR_INVALID_XML: WIN32_ERROR = 9126u32;
pub const DNS_ERROR_NO_VALID_TRUST_ANCHORS: WIN32_ERROR = 9127u32;
pub const DNS_ERROR_ROLLOVER_NOT_POKEABLE: WIN32_ERROR = 9128u32;
pub const DNS_ERROR_NSEC3_NAME_COLLISION: WIN32_ERROR = 9129u32;
pub const DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1: WIN32_ERROR = 9130u32;
pub const DNS_ERROR_PACKET_FMT_BASE: WIN32_ERROR = 9500u32;
pub const DNS_ERROR_BAD_PACKET: WIN32_ERROR = 9502u32;
pub const DNS_ERROR_NO_PACKET: WIN32_ERROR = 9503u32;
pub const DNS_ERROR_RCODE: WIN32_ERROR = 9504u32;
pub const DNS_ERROR_UNSECURE_PACKET: WIN32_ERROR = 9505u32;
pub const DNS_ERROR_NO_MEMORY: WIN32_ERROR = 14u32;
pub const DNS_ERROR_INVALID_NAME: WIN32_ERROR = 123u32;
pub const DNS_ERROR_INVALID_DATA: WIN32_ERROR = 13u32;
pub const DNS_ERROR_GENERAL_API_BASE: WIN32_ERROR = 9550u32;
pub const DNS_ERROR_INVALID_TYPE: WIN32_ERROR = 9551u32;
pub const DNS_ERROR_INVALID_IP_ADDRESS: WIN32_ERROR = 9552u32;
pub const DNS_ERROR_INVALID_PROPERTY: WIN32_ERROR = 9553u32;
pub const DNS_ERROR_TRY_AGAIN_LATER: WIN32_ERROR = 9554u32;
pub const DNS_ERROR_NOT_UNIQUE: WIN32_ERROR = 9555u32;
pub const DNS_ERROR_NON_RFC_NAME: WIN32_ERROR = 9556u32;
pub const DNS_ERROR_INVALID_NAME_CHAR: WIN32_ERROR = 9560u32;
pub const DNS_ERROR_NUMERIC_NAME: WIN32_ERROR = 9561u32;
pub const DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER: WIN32_ERROR = 9562u32;
pub const DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION: WIN32_ERROR = 9563u32;
pub const DNS_ERROR_CANNOT_FIND_ROOT_HINTS: WIN32_ERROR = 9564u32;
pub const DNS_ERROR_INCONSISTENT_ROOT_HINTS: WIN32_ERROR = 9565u32;
pub const DNS_ERROR_DWORD_VALUE_TOO_SMALL: WIN32_ERROR = 9566u32;
pub const DNS_ERROR_DWORD_VALUE_TOO_LARGE: WIN32_ERROR = 9567u32;
pub const DNS_ERROR_BACKGROUND_LOADING: WIN32_ERROR = 9568u32;
pub const DNS_ERROR_NOT_ALLOWED_ON_RODC: WIN32_ERROR = 9569u32;
pub const DNS_ERROR_NOT_ALLOWED_UNDER_DNAME: WIN32_ERROR = 9570u32;
pub const DNS_ERROR_DELEGATION_REQUIRED: WIN32_ERROR = 9571u32;
pub const DNS_ERROR_INVALID_POLICY_TABLE: WIN32_ERROR = 9572u32;
pub const DNS_ERROR_ADDRESS_REQUIRED: WIN32_ERROR = 9573u32;
pub const DNS_ERROR_ZONE_BASE: WIN32_ERROR = 9600u32;
pub const DNS_ERROR_ZONE_DOES_NOT_EXIST: WIN32_ERROR = 9601u32;
pub const DNS_ERROR_NO_ZONE_INFO: WIN32_ERROR = 9602u32;
pub const DNS_ERROR_INVALID_ZONE_OPERATION: WIN32_ERROR = 9603u32;
pub const DNS_ERROR_ZONE_CONFIGURATION_ERROR: WIN32_ERROR = 9604u32;
pub const DNS_ERROR_ZONE_HAS_NO_SOA_RECORD: WIN32_ERROR = 9605u32;
pub const DNS_ERROR_ZONE_HAS_NO_NS_RECORDS: WIN32_ERROR = 9606u32;
pub const DNS_ERROR_ZONE_LOCKED: WIN32_ERROR = 9607u32;
pub const DNS_ERROR_ZONE_CREATION_FAILED: WIN32_ERROR = 9608u32;
pub const DNS_ERROR_ZONE_ALREADY_EXISTS: WIN32_ERROR = 9609u32;
pub const DNS_ERROR_AUTOZONE_ALREADY_EXISTS: WIN32_ERROR = 9610u32;
pub const DNS_ERROR_INVALID_ZONE_TYPE: WIN32_ERROR = 9611u32;
pub const DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP: WIN32_ERROR = 9612u32;
pub const DNS_ERROR_ZONE_NOT_SECONDARY: WIN32_ERROR = 9613u32;
pub const DNS_ERROR_NEED_SECONDARY_ADDRESSES: WIN32_ERROR = 9614u32;
pub const DNS_ERROR_WINS_INIT_FAILED: WIN32_ERROR = 9615u32;
pub const DNS_ERROR_NEED_WINS_SERVERS: WIN32_ERROR = 9616u32;
pub const DNS_ERROR_NBSTAT_INIT_FAILED: WIN32_ERROR = 9617u32;
pub const DNS_ERROR_SOA_DELETE_INVALID: WIN32_ERROR = 9618u32;
pub const DNS_ERROR_FORWARDER_ALREADY_EXISTS: WIN32_ERROR = 9619u32;
pub const DNS_ERROR_ZONE_REQUIRES_MASTER_IP: WIN32_ERROR = 9620u32;
pub const DNS_ERROR_ZONE_IS_SHUTDOWN: WIN32_ERROR = 9621u32;
pub const DNS_ERROR_ZONE_LOCKED_FOR_SIGNING: WIN32_ERROR = 9622u32;
pub const DNS_ERROR_DATAFILE_BASE: WIN32_ERROR = 9650u32;
pub const DNS_ERROR_PRIMARY_REQUIRES_DATAFILE: WIN32_ERROR = 9651u32;
pub const DNS_ERROR_INVALID_DATAFILE_NAME: WIN32_ERROR = 9652u32;
pub const DNS_ERROR_DATAFILE_OPEN_FAILURE: WIN32_ERROR = 9653u32;
pub const DNS_ERROR_FILE_WRITEBACK_FAILED: WIN32_ERROR = 9654u32;
pub const DNS_ERROR_DATAFILE_PARSING: WIN32_ERROR = 9655u32;
pub const DNS_ERROR_DATABASE_BASE: WIN32_ERROR = 9700u32;
pub const DNS_ERROR_RECORD_DOES_NOT_EXIST: WIN32_ERROR = 9701u32;
pub const DNS_ERROR_RECORD_FORMAT: WIN32_ERROR = 9702u32;
pub const DNS_ERROR_NODE_CREATION_FAILED: WIN32_ERROR = 9703u32;
pub const DNS_ERROR_UNKNOWN_RECORD_TYPE: WIN32_ERROR = 9704u32;
pub const DNS_ERROR_RECORD_TIMED_OUT: WIN32_ERROR = 9705u32;
pub const DNS_ERROR_NAME_NOT_IN_ZONE: WIN32_ERROR = 9706u32;
pub const DNS_ERROR_CNAME_LOOP: WIN32_ERROR = 9707u32;
pub const DNS_ERROR_NODE_IS_CNAME: WIN32_ERROR = 9708u32;
pub const DNS_ERROR_CNAME_COLLISION: WIN32_ERROR = 9709u32;
pub const DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT: WIN32_ERROR = 9710u32;
pub const DNS_ERROR_RECORD_ALREADY_EXISTS: WIN32_ERROR = 9711u32;
pub const DNS_ERROR_SECONDARY_DATA: WIN32_ERROR = 9712u32;
pub const DNS_ERROR_NO_CREATE_CACHE_DATA: WIN32_ERROR = 9713u32;
pub const DNS_ERROR_NAME_DOES_NOT_EXIST: WIN32_ERROR = 9714u32;
pub const DNS_ERROR_DS_UNAVAILABLE: WIN32_ERROR = 9717u32;
pub const DNS_ERROR_DS_ZONE_ALREADY_EXISTS: WIN32_ERROR = 9718u32;
pub const DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE: WIN32_ERROR = 9719u32;
pub const DNS_ERROR_NODE_IS_DNAME: WIN32_ERROR = 9720u32;
pub const DNS_ERROR_DNAME_COLLISION: WIN32_ERROR = 9721u32;
pub const DNS_ERROR_ALIAS_LOOP: WIN32_ERROR = 9722u32;
pub const DNS_ERROR_OPERATION_BASE: WIN32_ERROR = 9750u32;
pub const DNS_ERROR_AXFR: WIN32_ERROR = 9752u32;
pub const DNS_ERROR_SECURE_BASE: WIN32_ERROR = 9800u32;
pub const DNS_ERROR_SETUP_BASE: WIN32_ERROR = 9850u32;
pub const DNS_ERROR_NO_TCPIP: WIN32_ERROR = 9851u32;
pub const DNS_ERROR_NO_DNS_SERVERS: WIN32_ERROR = 9852u32;
pub const DNS_ERROR_DP_BASE: WIN32_ERROR = 9900u32;
pub const DNS_ERROR_DP_DOES_NOT_EXIST: WIN32_ERROR = 9901u32;
pub const DNS_ERROR_DP_ALREADY_EXISTS: WIN32_ERROR = 9902u32;
pub const DNS_ERROR_DP_NOT_ENLISTED: WIN32_ERROR = 9903u32;
pub const DNS_ERROR_DP_ALREADY_ENLISTED: WIN32_ERROR = 9904u32;
pub const DNS_ERROR_DP_NOT_AVAILABLE: WIN32_ERROR = 9905u32;
pub const DNS_ERROR_DP_FSMO_ERROR: WIN32_ERROR = 9906u32;
pub const DNS_ERROR_RRL_NOT_ENABLED: WIN32_ERROR = 9911u32;
pub const DNS_ERROR_RRL_INVALID_WINDOW_SIZE: WIN32_ERROR = 9912u32;
pub const DNS_ERROR_RRL_INVALID_IPV4_PREFIX: WIN32_ERROR = 9913u32;
pub const DNS_ERROR_RRL_INVALID_IPV6_PREFIX: WIN32_ERROR = 9914u32;
pub const DNS_ERROR_RRL_INVALID_TC_RATE: WIN32_ERROR = 9915u32;
pub const DNS_ERROR_RRL_INVALID_LEAK_RATE: WIN32_ERROR = 9916u32;
pub const DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE: WIN32_ERROR = 9917u32;
pub const DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS: WIN32_ERROR = 9921u32;
pub const DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST: WIN32_ERROR = 9922u32;
pub const DNS_ERROR_VIRTUALIZATION_TREE_LOCKED: WIN32_ERROR = 9923u32;
pub const DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME: WIN32_ERROR = 9924u32;
pub const DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE: WIN32_ERROR = 9925u32;
pub const DNS_ERROR_ZONESCOPE_ALREADY_EXISTS: WIN32_ERROR = 9951u32;
pub const DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST: WIN32_ERROR = 9952u32;
pub const DNS_ERROR_DEFAULT_ZONESCOPE: WIN32_ERROR = 9953u32;
pub const DNS_ERROR_INVALID_ZONESCOPE_NAME: WIN32_ERROR = 9954u32;
pub const DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES: WIN32_ERROR = 9955u32;
pub const DNS_ERROR_LOAD_ZONESCOPE_FAILED: WIN32_ERROR = 9956u32;
pub const DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED: WIN32_ERROR = 9957u32;
pub const DNS_ERROR_INVALID_SCOPE_NAME: WIN32_ERROR = 9958u32;
pub const DNS_ERROR_SCOPE_DOES_NOT_EXIST: WIN32_ERROR = 9959u32;
pub const DNS_ERROR_DEFAULT_SCOPE: WIN32_ERROR = 9960u32;
pub const DNS_ERROR_INVALID_SCOPE_OPERATION: WIN32_ERROR = 9961u32;
pub const DNS_ERROR_SCOPE_LOCKED: WIN32_ERROR = 9962u32;
pub const DNS_ERROR_SCOPE_ALREADY_EXISTS: WIN32_ERROR = 9963u32;
pub const DNS_ERROR_POLICY_ALREADY_EXISTS: WIN32_ERROR = 9971u32;
pub const DNS_ERROR_POLICY_DOES_NOT_EXIST: WIN32_ERROR = 9972u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA: WIN32_ERROR = 9973u32;
pub const DNS_ERROR_POLICY_INVALID_SETTINGS: WIN32_ERROR = 9974u32;
pub const DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED: WIN32_ERROR = 9975u32;
pub const DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST: WIN32_ERROR = 9976u32;
pub const DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS: WIN32_ERROR = 9977u32;
pub const DNS_ERROR_SUBNET_DOES_NOT_EXIST: WIN32_ERROR = 9978u32;
pub const DNS_ERROR_SUBNET_ALREADY_EXISTS: WIN32_ERROR = 9979u32;
pub const DNS_ERROR_POLICY_LOCKED: WIN32_ERROR = 9980u32;
pub const DNS_ERROR_POLICY_INVALID_WEIGHT: WIN32_ERROR = 9981u32;
pub const DNS_ERROR_POLICY_INVALID_NAME: WIN32_ERROR = 9982u32;
pub const DNS_ERROR_POLICY_MISSING_CRITERIA: WIN32_ERROR = 9983u32;
pub const DNS_ERROR_INVALID_CLIENT_SUBNET_NAME: WIN32_ERROR = 9984u32;
pub const DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID: WIN32_ERROR = 9985u32;
pub const DNS_ERROR_POLICY_SCOPE_MISSING: WIN32_ERROR = 9986u32;
pub const DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED: WIN32_ERROR = 9987u32;
pub const DNS_ERROR_SERVERSCOPE_IS_REFERENCED: WIN32_ERROR = 9988u32;
pub const DNS_ERROR_ZONESCOPE_IS_REFERENCED: WIN32_ERROR = 9989u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET: WIN32_ERROR = 9990u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL: WIN32_ERROR = 9991u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL: WIN32_ERROR = 9992u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE: WIN32_ERROR = 9993u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN: WIN32_ERROR = 9994u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE: WIN32_ERROR = 9995u32;
pub const DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY: WIN32_ERROR = 9996u32;
pub const ERROR_IPSEC_QM_POLICY_EXISTS: WIN32_ERROR = 13000u32;
pub const ERROR_IPSEC_QM_POLICY_NOT_FOUND: WIN32_ERROR = 13001u32;
pub const ERROR_IPSEC_QM_POLICY_IN_USE: WIN32_ERROR = 13002u32;
pub const ERROR_IPSEC_MM_POLICY_EXISTS: WIN32_ERROR = 13003u32;
pub const ERROR_IPSEC_MM_POLICY_NOT_FOUND: WIN32_ERROR = 13004u32;
pub const ERROR_IPSEC_MM_POLICY_IN_USE: WIN32_ERROR = 13005u32;
pub const ERROR_IPSEC_MM_FILTER_EXISTS: WIN32_ERROR = 13006u32;
pub const ERROR_IPSEC_MM_FILTER_NOT_FOUND: WIN32_ERROR = 13007u32;
pub const ERROR_IPSEC_TRANSPORT_FILTER_EXISTS: WIN32_ERROR = 13008u32;
pub const ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND: WIN32_ERROR = 13009u32;
pub const ERROR_IPSEC_MM_AUTH_EXISTS: WIN32_ERROR = 13010u32;
pub const ERROR_IPSEC_MM_AUTH_NOT_FOUND: WIN32_ERROR = 13011u32;
pub const ERROR_IPSEC_MM_AUTH_IN_USE: WIN32_ERROR = 13012u32;
pub const ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND: WIN32_ERROR = 13013u32;
pub const ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND: WIN32_ERROR = 13014u32;
pub const ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND: WIN32_ERROR = 13015u32;
pub const ERROR_IPSEC_TUNNEL_FILTER_EXISTS: WIN32_ERROR = 13016u32;
pub const ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND: WIN32_ERROR = 13017u32;
pub const ERROR_IPSEC_MM_FILTER_PENDING_DELETION: WIN32_ERROR = 13018u32;
pub const ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION: WIN32_ERROR = 13019u32;
pub const ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION: WIN32_ERROR = 13020u32;
pub const ERROR_IPSEC_MM_POLICY_PENDING_DELETION: WIN32_ERROR = 13021u32;
pub const ERROR_IPSEC_MM_AUTH_PENDING_DELETION: WIN32_ERROR = 13022u32;
pub const ERROR_IPSEC_QM_POLICY_PENDING_DELETION: WIN32_ERROR = 13023u32;
pub const ERROR_IPSEC_IKE_NEG_STATUS_BEGIN: WIN32_ERROR = 13800u32;
pub const ERROR_IPSEC_IKE_AUTH_FAIL: WIN32_ERROR = 13801u32;
pub const ERROR_IPSEC_IKE_ATTRIB_FAIL: WIN32_ERROR = 13802u32;
pub const ERROR_IPSEC_IKE_NEGOTIATION_PENDING: WIN32_ERROR = 13803u32;
pub const ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR: WIN32_ERROR = 13804u32;
pub const ERROR_IPSEC_IKE_TIMED_OUT: WIN32_ERROR = 13805u32;
pub const ERROR_IPSEC_IKE_NO_CERT: WIN32_ERROR = 13806u32;
pub const ERROR_IPSEC_IKE_SA_DELETED: WIN32_ERROR = 13807u32;
pub const ERROR_IPSEC_IKE_SA_REAPED: WIN32_ERROR = 13808u32;
pub const ERROR_IPSEC_IKE_MM_ACQUIRE_DROP: WIN32_ERROR = 13809u32;
pub const ERROR_IPSEC_IKE_QM_ACQUIRE_DROP: WIN32_ERROR = 13810u32;
pub const ERROR_IPSEC_IKE_QUEUE_DROP_MM: WIN32_ERROR = 13811u32;
pub const ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM: WIN32_ERROR = 13812u32;
pub const ERROR_IPSEC_IKE_DROP_NO_RESPONSE: WIN32_ERROR = 13813u32;
pub const ERROR_IPSEC_IKE_MM_DELAY_DROP: WIN32_ERROR = 13814u32;
pub const ERROR_IPSEC_IKE_QM_DELAY_DROP: WIN32_ERROR = 13815u32;
pub const ERROR_IPSEC_IKE_ERROR: WIN32_ERROR = 13816u32;
pub const ERROR_IPSEC_IKE_CRL_FAILED: WIN32_ERROR = 13817u32;
pub const ERROR_IPSEC_IKE_INVALID_KEY_USAGE: WIN32_ERROR = 13818u32;
pub const ERROR_IPSEC_IKE_INVALID_CERT_TYPE: WIN32_ERROR = 13819u32;
pub const ERROR_IPSEC_IKE_NO_PRIVATE_KEY: WIN32_ERROR = 13820u32;
pub const ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY: WIN32_ERROR = 13821u32;
pub const ERROR_IPSEC_IKE_DH_FAIL: WIN32_ERROR = 13822u32;
pub const ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED: WIN32_ERROR = 13823u32;
pub const ERROR_IPSEC_IKE_INVALID_HEADER: WIN32_ERROR = 13824u32;
pub const ERROR_IPSEC_IKE_NO_POLICY: WIN32_ERROR = 13825u32;
pub const ERROR_IPSEC_IKE_INVALID_SIGNATURE: WIN32_ERROR = 13826u32;
pub const ERROR_IPSEC_IKE_KERBEROS_ERROR: WIN32_ERROR = 13827u32;
pub const ERROR_IPSEC_IKE_NO_PUBLIC_KEY: WIN32_ERROR = 13828u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR: WIN32_ERROR = 13829u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_SA: WIN32_ERROR = 13830u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_PROP: WIN32_ERROR = 13831u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_TRANS: WIN32_ERROR = 13832u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_KE: WIN32_ERROR = 13833u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_ID: WIN32_ERROR = 13834u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_CERT: WIN32_ERROR = 13835u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ: WIN32_ERROR = 13836u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_HASH: WIN32_ERROR = 13837u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_SIG: WIN32_ERROR = 13838u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_NONCE: WIN32_ERROR = 13839u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY: WIN32_ERROR = 13840u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_DELETE: WIN32_ERROR = 13841u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR: WIN32_ERROR = 13842u32;
pub const ERROR_IPSEC_IKE_INVALID_PAYLOAD: WIN32_ERROR = 13843u32;
pub const ERROR_IPSEC_IKE_LOAD_SOFT_SA: WIN32_ERROR = 13844u32;
pub const ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN: WIN32_ERROR = 13845u32;
pub const ERROR_IPSEC_IKE_INVALID_COOKIE: WIN32_ERROR = 13846u32;
pub const ERROR_IPSEC_IKE_NO_PEER_CERT: WIN32_ERROR = 13847u32;
pub const ERROR_IPSEC_IKE_PEER_CRL_FAILED: WIN32_ERROR = 13848u32;
pub const ERROR_IPSEC_IKE_POLICY_CHANGE: WIN32_ERROR = 13849u32;
pub const ERROR_IPSEC_IKE_NO_MM_POLICY: WIN32_ERROR = 13850u32;
pub const ERROR_IPSEC_IKE_NOTCBPRIV: WIN32_ERROR = 13851u32;
pub const ERROR_IPSEC_IKE_SECLOADFAIL: WIN32_ERROR = 13852u32;
pub const ERROR_IPSEC_IKE_FAILSSPINIT: WIN32_ERROR = 13853u32;
pub const ERROR_IPSEC_IKE_FAILQUERYSSP: WIN32_ERROR = 13854u32;
pub const ERROR_IPSEC_IKE_SRVACQFAIL: WIN32_ERROR = 13855u32;
pub const ERROR_IPSEC_IKE_SRVQUERYCRED: WIN32_ERROR = 13856u32;
pub const ERROR_IPSEC_IKE_GETSPIFAIL: WIN32_ERROR = 13857u32;
pub const ERROR_IPSEC_IKE_INVALID_FILTER: WIN32_ERROR = 13858u32;
pub const ERROR_IPSEC_IKE_OUT_OF_MEMORY: WIN32_ERROR = 13859u32;
pub const ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED: WIN32_ERROR = 13860u32;
pub const ERROR_IPSEC_IKE_INVALID_POLICY: WIN32_ERROR = 13861u32;
pub const ERROR_IPSEC_IKE_UNKNOWN_DOI: WIN32_ERROR = 13862u32;
pub const ERROR_IPSEC_IKE_INVALID_SITUATION: WIN32_ERROR = 13863u32;
pub const ERROR_IPSEC_IKE_DH_FAILURE: WIN32_ERROR = 13864u32;
pub const ERROR_IPSEC_IKE_INVALID_GROUP: WIN32_ERROR = 13865u32;
pub const ERROR_IPSEC_IKE_ENCRYPT: WIN32_ERROR = 13866u32;
pub const ERROR_IPSEC_IKE_DECRYPT: WIN32_ERROR = 13867u32;
pub const ERROR_IPSEC_IKE_POLICY_MATCH: WIN32_ERROR = 13868u32;
pub const ERROR_IPSEC_IKE_UNSUPPORTED_ID: WIN32_ERROR = 13869u32;
pub const ERROR_IPSEC_IKE_INVALID_HASH: WIN32_ERROR = 13870u32;
pub const ERROR_IPSEC_IKE_INVALID_HASH_ALG: WIN32_ERROR = 13871u32;
pub const ERROR_IPSEC_IKE_INVALID_HASH_SIZE: WIN32_ERROR = 13872u32;
pub const ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG: WIN32_ERROR = 13873u32;
pub const ERROR_IPSEC_IKE_INVALID_AUTH_ALG: WIN32_ERROR = 13874u32;
pub const ERROR_IPSEC_IKE_INVALID_SIG: WIN32_ERROR = 13875u32;
pub const ERROR_IPSEC_IKE_LOAD_FAILED: WIN32_ERROR = 13876u32;
pub const ERROR_IPSEC_IKE_RPC_DELETE: WIN32_ERROR = 13877u32;
pub const ERROR_IPSEC_IKE_BENIGN_REINIT: WIN32_ERROR = 13878u32;
pub const ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY: WIN32_ERROR = 13879u32;
pub const ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION: WIN32_ERROR = 13880u32;
pub const ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN: WIN32_ERROR = 13881u32;
pub const ERROR_IPSEC_IKE_MM_LIMIT: WIN32_ERROR = 13882u32;
pub const ERROR_IPSEC_IKE_NEGOTIATION_DISABLED: WIN32_ERROR = 13883u32;
pub const ERROR_IPSEC_IKE_QM_LIMIT: WIN32_ERROR = 13884u32;
pub const ERROR_IPSEC_IKE_MM_EXPIRED: WIN32_ERROR = 13885u32;
pub const ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID: WIN32_ERROR = 13886u32;
pub const ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH: WIN32_ERROR = 13887u32;
pub const ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID: WIN32_ERROR = 13888u32;
pub const ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD: WIN32_ERROR = 13889u32;
pub const ERROR_IPSEC_IKE_DOS_COOKIE_SENT: WIN32_ERROR = 13890u32;
pub const ERROR_IPSEC_IKE_SHUTTING_DOWN: WIN32_ERROR = 13891u32;
pub const ERROR_IPSEC_IKE_CGA_AUTH_FAILED: WIN32_ERROR = 13892u32;
pub const ERROR_IPSEC_IKE_PROCESS_ERR_NATOA: WIN32_ERROR = 13893u32;
pub const ERROR_IPSEC_IKE_INVALID_MM_FOR_QM: WIN32_ERROR = 13894u32;
pub const ERROR_IPSEC_IKE_QM_EXPIRED: WIN32_ERROR = 13895u32;
pub const ERROR_IPSEC_IKE_TOO_MANY_FILTERS: WIN32_ERROR = 13896u32;
pub const ERROR_IPSEC_IKE_NEG_STATUS_END: WIN32_ERROR = 13897u32;
pub const ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL: WIN32_ERROR = 13898u32;
pub const ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE: WIN32_ERROR = 13899u32;
pub const ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING: WIN32_ERROR = 13900u32;
pub const ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING: WIN32_ERROR = 13901u32;
pub const ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS: WIN32_ERROR = 13902u32;
pub const ERROR_IPSEC_IKE_RATELIMIT_DROP: WIN32_ERROR = 13903u32;
pub const ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE: WIN32_ERROR = 13904u32;
pub const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE: WIN32_ERROR = 13905u32;
pub const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE: WIN32_ERROR = 13906u32;
pub const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY: WIN32_ERROR = 13907u32;
pub const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE: WIN32_ERROR = 13908u32;
pub const ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END: WIN32_ERROR = 13909u32;
pub const ERROR_IPSEC_BAD_SPI: WIN32_ERROR = 13910u32;
pub const ERROR_IPSEC_SA_LIFETIME_EXPIRED: WIN32_ERROR = 13911u32;
pub const ERROR_IPSEC_WRONG_SA: WIN32_ERROR = 13912u32;
pub const ERROR_IPSEC_REPLAY_CHECK_FAILED: WIN32_ERROR = 13913u32;
pub const ERROR_IPSEC_INVALID_PACKET: WIN32_ERROR = 13914u32;
pub const ERROR_IPSEC_INTEGRITY_CHECK_FAILED: WIN32_ERROR = 13915u32;
pub const ERROR_IPSEC_CLEAR_TEXT_DROP: WIN32_ERROR = 13916u32;
pub const ERROR_IPSEC_AUTH_FIREWALL_DROP: WIN32_ERROR = 13917u32;
pub const ERROR_IPSEC_THROTTLE_DROP: WIN32_ERROR = 13918u32;
pub const ERROR_IPSEC_DOSP_BLOCK: WIN32_ERROR = 13925u32;
pub const ERROR_IPSEC_DOSP_RECEIVED_MULTICAST: WIN32_ERROR = 13926u32;
pub const ERROR_IPSEC_DOSP_INVALID_PACKET: WIN32_ERROR = 13927u32;
pub const ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED: WIN32_ERROR = 13928u32;
pub const ERROR_IPSEC_DOSP_MAX_ENTRIES: WIN32_ERROR = 13929u32;
pub const ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED: WIN32_ERROR = 13930u32;
pub const ERROR_IPSEC_DOSP_NOT_INSTALLED: WIN32_ERROR = 13931u32;
pub const ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES: WIN32_ERROR = 13932u32;
pub const ERROR_SXS_SECTION_NOT_FOUND: WIN32_ERROR = 14000u32;
pub const ERROR_SXS_CANT_GEN_ACTCTX: WIN32_ERROR = 14001u32;
pub const ERROR_SXS_INVALID_ACTCTXDATA_FORMAT: WIN32_ERROR = 14002u32;
pub const ERROR_SXS_ASSEMBLY_NOT_FOUND: WIN32_ERROR = 14003u32;
pub const ERROR_SXS_MANIFEST_FORMAT_ERROR: WIN32_ERROR = 14004u32;
pub const ERROR_SXS_MANIFEST_PARSE_ERROR: WIN32_ERROR = 14005u32;
pub const ERROR_SXS_ACTIVATION_CONTEXT_DISABLED: WIN32_ERROR = 14006u32;
pub const ERROR_SXS_KEY_NOT_FOUND: WIN32_ERROR = 14007u32;
pub const ERROR_SXS_VERSION_CONFLICT: WIN32_ERROR = 14008u32;
pub const ERROR_SXS_WRONG_SECTION_TYPE: WIN32_ERROR = 14009u32;
pub const ERROR_SXS_THREAD_QUERIES_DISABLED: WIN32_ERROR = 14010u32;
pub const ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET: WIN32_ERROR = 14011u32;
pub const ERROR_SXS_UNKNOWN_ENCODING_GROUP: WIN32_ERROR = 14012u32;
pub const ERROR_SXS_UNKNOWN_ENCODING: WIN32_ERROR = 14013u32;
pub const ERROR_SXS_INVALID_XML_NAMESPACE_URI: WIN32_ERROR = 14014u32;
pub const ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED: WIN32_ERROR = 14015u32;
pub const ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED: WIN32_ERROR = 14016u32;
pub const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE: WIN32_ERROR = 14017u32;
pub const ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE: WIN32_ERROR = 14018u32;
pub const ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE: WIN32_ERROR = 14019u32;
pub const ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT: WIN32_ERROR = 14020u32;
pub const ERROR_SXS_DUPLICATE_DLL_NAME: WIN32_ERROR = 14021u32;
pub const ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME: WIN32_ERROR = 14022u32;
pub const ERROR_SXS_DUPLICATE_CLSID: WIN32_ERROR = 14023u32;
pub const ERROR_SXS_DUPLICATE_IID: WIN32_ERROR = 14024u32;
pub const ERROR_SXS_DUPLICATE_TLBID: WIN32_ERROR = 14025u32;
pub const ERROR_SXS_DUPLICATE_PROGID: WIN32_ERROR = 14026u32;
pub const ERROR_SXS_DUPLICATE_ASSEMBLY_NAME: WIN32_ERROR = 14027u32;
pub const ERROR_SXS_FILE_HASH_MISMATCH: WIN32_ERROR = 14028u32;
pub const ERROR_SXS_POLICY_PARSE_ERROR: WIN32_ERROR = 14029u32;
pub const ERROR_SXS_XML_E_MISSINGQUOTE: WIN32_ERROR = 14030u32;
pub const ERROR_SXS_XML_E_COMMENTSYNTAX: WIN32_ERROR = 14031u32;
pub const ERROR_SXS_XML_E_BADSTARTNAMECHAR: WIN32_ERROR = 14032u32;
pub const ERROR_SXS_XML_E_BADNAMECHAR: WIN32_ERROR = 14033u32;
pub const ERROR_SXS_XML_E_BADCHARINSTRING: WIN32_ERROR = 14034u32;
pub const ERROR_SXS_XML_E_XMLDECLSYNTAX: WIN32_ERROR = 14035u32;
pub const ERROR_SXS_XML_E_BADCHARDATA: WIN32_ERROR = 14036u32;
pub const ERROR_SXS_XML_E_MISSINGWHITESPACE: WIN32_ERROR = 14037u32;
pub const ERROR_SXS_XML_E_EXPECTINGTAGEND: WIN32_ERROR = 14038u32;
pub const ERROR_SXS_XML_E_MISSINGSEMICOLON: WIN32_ERROR = 14039u32;
pub const ERROR_SXS_XML_E_UNBALANCEDPAREN: WIN32_ERROR = 14040u32;
pub const ERROR_SXS_XML_E_INTERNALERROR: WIN32_ERROR = 14041u32;
pub const ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE: WIN32_ERROR = 14042u32;
pub const ERROR_SXS_XML_E_INCOMPLETE_ENCODING: WIN32_ERROR = 14043u32;
pub const ERROR_SXS_XML_E_MISSING_PAREN: WIN32_ERROR = 14044u32;
pub const ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE: WIN32_ERROR = 14045u32;
pub const ERROR_SXS_XML_E_MULTIPLE_COLONS: WIN32_ERROR = 14046u32;
pub const ERROR_SXS_XML_E_INVALID_DECIMAL: WIN32_ERROR = 14047u32;
pub const ERROR_SXS_XML_E_INVALID_HEXIDECIMAL: WIN32_ERROR = 14048u32;
pub const ERROR_SXS_XML_E_INVALID_UNICODE: WIN32_ERROR = 14049u32;
pub const ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK: WIN32_ERROR = 14050u32;
pub const ERROR_SXS_XML_E_UNEXPECTEDENDTAG: WIN32_ERROR = 14051u32;
pub const ERROR_SXS_XML_E_UNCLOSEDTAG: WIN32_ERROR = 14052u32;
pub const ERROR_SXS_XML_E_DUPLICATEATTRIBUTE: WIN32_ERROR = 14053u32;
pub const ERROR_SXS_XML_E_MULTIPLEROOTS: WIN32_ERROR = 14054u32;
pub const ERROR_SXS_XML_E_INVALIDATROOTLEVEL: WIN32_ERROR = 14055u32;
pub const ERROR_SXS_XML_E_BADXMLDECL: WIN32_ERROR = 14056u32;
pub const ERROR_SXS_XML_E_MISSINGROOT: WIN32_ERROR = 14057u32;
pub const ERROR_SXS_XML_E_UNEXPECTEDEOF: WIN32_ERROR = 14058u32;
pub const ERROR_SXS_XML_E_BADPEREFINSUBSET: WIN32_ERROR = 14059u32;
pub const ERROR_SXS_XML_E_UNCLOSEDSTARTTAG: WIN32_ERROR = 14060u32;
pub const ERROR_SXS_XML_E_UNCLOSEDENDTAG: WIN32_ERROR = 14061u32;
pub const ERROR_SXS_XML_E_UNCLOSEDSTRING: WIN32_ERROR = 14062u32;
pub const ERROR_SXS_XML_E_UNCLOSEDCOMMENT: WIN32_ERROR = 14063u32;
pub const ERROR_SXS_XML_E_UNCLOSEDDECL: WIN32_ERROR = 14064u32;
pub const ERROR_SXS_XML_E_UNCLOSEDCDATA: WIN32_ERROR = 14065u32;
pub const ERROR_SXS_XML_E_RESERVEDNAMESPACE: WIN32_ERROR = 14066u32;
pub const ERROR_SXS_XML_E_INVALIDENCODING: WIN32_ERROR = 14067u32;
pub const ERROR_SXS_XML_E_INVALIDSWITCH: WIN32_ERROR = 14068u32;
pub const ERROR_SXS_XML_E_BADXMLCASE: WIN32_ERROR = 14069u32;
pub const ERROR_SXS_XML_E_INVALID_STANDALONE: WIN32_ERROR = 14070u32;
pub const ERROR_SXS_XML_E_UNEXPECTED_STANDALONE: WIN32_ERROR = 14071u32;
pub const ERROR_SXS_XML_E_INVALID_VERSION: WIN32_ERROR = 14072u32;
pub const ERROR_SXS_XML_E_MISSINGEQUALS: WIN32_ERROR = 14073u32;
pub const ERROR_SXS_PROTECTION_RECOVERY_FAILED: WIN32_ERROR = 14074u32;
pub const ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT: WIN32_ERROR = 14075u32;
pub const ERROR_SXS_PROTECTION_CATALOG_NOT_VALID: WIN32_ERROR = 14076u32;
pub const ERROR_SXS_UNTRANSLATABLE_HRESULT: WIN32_ERROR = 14077u32;
pub const ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING: WIN32_ERROR = 14078u32;
pub const ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE: WIN32_ERROR = 14079u32;
pub const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME: WIN32_ERROR = 14080u32;
pub const ERROR_SXS_ASSEMBLY_MISSING: WIN32_ERROR = 14081u32;
pub const ERROR_SXS_CORRUPT_ACTIVATION_STACK: WIN32_ERROR = 14082u32;
pub const ERROR_SXS_CORRUPTION: WIN32_ERROR = 14083u32;
pub const ERROR_SXS_EARLY_DEACTIVATION: WIN32_ERROR = 14084u32;
pub const ERROR_SXS_INVALID_DEACTIVATION: WIN32_ERROR = 14085u32;
pub const ERROR_SXS_MULTIPLE_DEACTIVATION: WIN32_ERROR = 14086u32;
pub const ERROR_SXS_PROCESS_TERMINATION_REQUESTED: WIN32_ERROR = 14087u32;
pub const ERROR_SXS_RELEASE_ACTIVATION_CONTEXT: WIN32_ERROR = 14088u32;
pub const ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY: WIN32_ERROR = 14089u32;
pub const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE: WIN32_ERROR = 14090u32;
pub const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME: WIN32_ERROR = 14091u32;
pub const ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE: WIN32_ERROR = 14092u32;
pub const ERROR_SXS_IDENTITY_PARSE_ERROR: WIN32_ERROR = 14093u32;
pub const ERROR_MALFORMED_SUBSTITUTION_STRING: WIN32_ERROR = 14094u32;
pub const ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN: WIN32_ERROR = 14095u32;
pub const ERROR_UNMAPPED_SUBSTITUTION_STRING: WIN32_ERROR = 14096u32;
pub const ERROR_SXS_ASSEMBLY_NOT_LOCKED: WIN32_ERROR = 14097u32;
pub const ERROR_SXS_COMPONENT_STORE_CORRUPT: WIN32_ERROR = 14098u32;
pub const ERROR_ADVANCED_INSTALLER_FAILED: WIN32_ERROR = 14099u32;
pub const ERROR_XML_ENCODING_MISMATCH: WIN32_ERROR = 14100u32;
pub const ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT: WIN32_ERROR = 14101u32;
pub const ERROR_SXS_IDENTITIES_DIFFERENT: WIN32_ERROR = 14102u32;
pub const ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT: WIN32_ERROR = 14103u32;
pub const ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY: WIN32_ERROR = 14104u32;
pub const ERROR_SXS_MANIFEST_TOO_BIG: WIN32_ERROR = 14105u32;
pub const ERROR_SXS_SETTING_NOT_REGISTERED: WIN32_ERROR = 14106u32;
pub const ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE: WIN32_ERROR = 14107u32;
pub const ERROR_SMI_PRIMITIVE_INSTALLER_FAILED: WIN32_ERROR = 14108u32;
pub const ERROR_GENERIC_COMMAND_FAILED: WIN32_ERROR = 14109u32;
pub const ERROR_SXS_FILE_HASH_MISSING: WIN32_ERROR = 14110u32;
pub const ERROR_SXS_DUPLICATE_ACTIVATABLE_CLASS: WIN32_ERROR = 14111u32;
pub const ERROR_EVT_INVALID_CHANNEL_PATH: WIN32_ERROR = 15000u32;
pub const ERROR_EVT_INVALID_QUERY: WIN32_ERROR = 15001u32;
pub const ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND: WIN32_ERROR = 15002u32;
pub const ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND: WIN32_ERROR = 15003u32;
pub const ERROR_EVT_INVALID_PUBLISHER_NAME: WIN32_ERROR = 15004u32;
pub const ERROR_EVT_INVALID_EVENT_DATA: WIN32_ERROR = 15005u32;
pub const ERROR_EVT_CHANNEL_NOT_FOUND: WIN32_ERROR = 15007u32;
pub const ERROR_EVT_MALFORMED_XML_TEXT: WIN32_ERROR = 15008u32;
pub const ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL: WIN32_ERROR = 15009u32;
pub const ERROR_EVT_CONFIGURATION_ERROR: WIN32_ERROR = 15010u32;
pub const ERROR_EVT_QUERY_RESULT_STALE: WIN32_ERROR = 15011u32;
pub const ERROR_EVT_QUERY_RESULT_INVALID_POSITION: WIN32_ERROR = 15012u32;
pub const ERROR_EVT_NON_VALIDATING_MSXML: WIN32_ERROR = 15013u32;
pub const ERROR_EVT_FILTER_ALREADYSCOPED: WIN32_ERROR = 15014u32;
pub const ERROR_EVT_FILTER_NOTELTSET: WIN32_ERROR = 15015u32;
pub const ERROR_EVT_FILTER_INVARG: WIN32_ERROR = 15016u32;
pub const ERROR_EVT_FILTER_INVTEST: WIN32_ERROR = 15017u32;
pub const ERROR_EVT_FILTER_INVTYPE: WIN32_ERROR = 15018u32;
pub const ERROR_EVT_FILTER_PARSEERR: WIN32_ERROR = 15019u32;
pub const ERROR_EVT_FILTER_UNSUPPORTEDOP: WIN32_ERROR = 15020u32;
pub const ERROR_EVT_FILTER_UNEXPECTEDTOKEN: WIN32_ERROR = 15021u32;
pub const ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL: WIN32_ERROR = 15022u32;
pub const ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE: WIN32_ERROR = 15023u32;
pub const ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE: WIN32_ERROR = 15024u32;
pub const ERROR_EVT_CHANNEL_CANNOT_ACTIVATE: WIN32_ERROR = 15025u32;
pub const ERROR_EVT_FILTER_TOO_COMPLEX: WIN32_ERROR = 15026u32;
pub const ERROR_EVT_MESSAGE_NOT_FOUND: WIN32_ERROR = 15027u32;
pub const ERROR_EVT_MESSAGE_ID_NOT_FOUND: WIN32_ERROR = 15028u32;
pub const ERROR_EVT_UNRESOLVED_VALUE_INSERT: WIN32_ERROR = 15029u32;
pub const ERROR_EVT_UNRESOLVED_PARAMETER_INSERT: WIN32_ERROR = 15030u32;
pub const ERROR_EVT_MAX_INSERTS_REACHED: WIN32_ERROR = 15031u32;
pub const ERROR_EVT_EVENT_DEFINITION_NOT_FOUND: WIN32_ERROR = 15032u32;
pub const ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND: WIN32_ERROR = 15033u32;
pub const ERROR_EVT_VERSION_TOO_OLD: WIN32_ERROR = 15034u32;
pub const ERROR_EVT_VERSION_TOO_NEW: WIN32_ERROR = 15035u32;
pub const ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY: WIN32_ERROR = 15036u32;
pub const ERROR_EVT_PUBLISHER_DISABLED: WIN32_ERROR = 15037u32;
pub const ERROR_EVT_FILTER_OUT_OF_RANGE: WIN32_ERROR = 15038u32;
pub const ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE: WIN32_ERROR = 15080u32;
pub const ERROR_EC_LOG_DISABLED: WIN32_ERROR = 15081u32;
pub const ERROR_EC_CIRCULAR_FORWARDING: WIN32_ERROR = 15082u32;
pub const ERROR_EC_CREDSTORE_FULL: WIN32_ERROR = 15083u32;
pub const ERROR_EC_CRED_NOT_FOUND: WIN32_ERROR = 15084u32;
pub const ERROR_EC_NO_ACTIVE_CHANNEL: WIN32_ERROR = 15085u32;
pub const ERROR_MUI_FILE_NOT_FOUND: WIN32_ERROR = 15100u32;
pub const ERROR_MUI_INVALID_FILE: WIN32_ERROR = 15101u32;
pub const ERROR_MUI_INVALID_RC_CONFIG: WIN32_ERROR = 15102u32;
pub const ERROR_MUI_INVALID_LOCALE_NAME: WIN32_ERROR = 15103u32;
pub const ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME: WIN32_ERROR = 15104u32;
pub const ERROR_MUI_FILE_NOT_LOADED: WIN32_ERROR = 15105u32;
pub const ERROR_RESOURCE_ENUM_USER_STOP: WIN32_ERROR = 15106u32;
pub const ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED: WIN32_ERROR = 15107u32;
pub const ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME: WIN32_ERROR = 15108u32;
pub const ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE: WIN32_ERROR = 15110u32;
pub const ERROR_MRM_INVALID_PRICONFIG: WIN32_ERROR = 15111u32;
pub const ERROR_MRM_INVALID_FILE_TYPE: WIN32_ERROR = 15112u32;
pub const ERROR_MRM_UNKNOWN_QUALIFIER: WIN32_ERROR = 15113u32;
pub const ERROR_MRM_INVALID_QUALIFIER_VALUE: WIN32_ERROR = 15114u32;
pub const ERROR_MRM_NO_CANDIDATE: WIN32_ERROR = 15115u32;
pub const ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE: WIN32_ERROR = 15116u32;
pub const ERROR_MRM_RESOURCE_TYPE_MISMATCH: WIN32_ERROR = 15117u32;
pub const ERROR_MRM_DUPLICATE_MAP_NAME: WIN32_ERROR = 15118u32;
pub const ERROR_MRM_DUPLICATE_ENTRY: WIN32_ERROR = 15119u32;
pub const ERROR_MRM_INVALID_RESOURCE_IDENTIFIER: WIN32_ERROR = 15120u32;
pub const ERROR_MRM_FILEPATH_TOO_LONG: WIN32_ERROR = 15121u32;
pub const ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE: WIN32_ERROR = 15122u32;
pub const ERROR_MRM_INVALID_PRI_FILE: WIN32_ERROR = 15126u32;
pub const ERROR_MRM_NAMED_RESOURCE_NOT_FOUND: WIN32_ERROR = 15127u32;
pub const ERROR_MRM_MAP_NOT_FOUND: WIN32_ERROR = 15135u32;
pub const ERROR_MRM_UNSUPPORTED_PROFILE_TYPE: WIN32_ERROR = 15136u32;
pub const ERROR_MRM_INVALID_QUALIFIER_OPERATOR: WIN32_ERROR = 15137u32;
pub const ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE: WIN32_ERROR = 15138u32;
pub const ERROR_MRM_AUTOMERGE_ENABLED: WIN32_ERROR = 15139u32;
pub const ERROR_MRM_TOO_MANY_RESOURCES: WIN32_ERROR = 15140u32;
pub const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE: WIN32_ERROR = 15141u32;
pub const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE: WIN32_ERROR = 15142u32;
pub const ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD: WIN32_ERROR = 15143u32;
pub const ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST: WIN32_ERROR = 15144u32;
pub const ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT: WIN32_ERROR = 15145u32;
pub const ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE: WIN32_ERROR = 15146u32;
pub const ERROR_MRM_GENERATION_COUNT_MISMATCH: WIN32_ERROR = 15147u32;
pub const ERROR_PRI_MERGE_VERSION_MISMATCH: WIN32_ERROR = 15148u32;
pub const ERROR_PRI_MERGE_MISSING_SCHEMA: WIN32_ERROR = 15149u32;
pub const ERROR_PRI_MERGE_LOAD_FILE_FAILED: WIN32_ERROR = 15150u32;
pub const ERROR_PRI_MERGE_ADD_FILE_FAILED: WIN32_ERROR = 15151u32;
pub const ERROR_PRI_MERGE_WRITE_FILE_FAILED: WIN32_ERROR = 15152u32;
pub const ERROR_PRI_MERGE_MULTIPLE_PACKAGE_FAMILIES_NOT_ALLOWED: WIN32_ERROR = 15153u32;
pub const ERROR_PRI_MERGE_MULTIPLE_MAIN_PACKAGES_NOT_ALLOWED: WIN32_ERROR = 15154u32;
pub const ERROR_PRI_MERGE_BUNDLE_PACKAGES_NOT_ALLOWED: WIN32_ERROR = 15155u32;
pub const ERROR_PRI_MERGE_MAIN_PACKAGE_REQUIRED: WIN32_ERROR = 15156u32;
pub const ERROR_PRI_MERGE_RESOURCE_PACKAGE_REQUIRED: WIN32_ERROR = 15157u32;
pub const ERROR_PRI_MERGE_INVALID_FILE_NAME: WIN32_ERROR = 15158u32;
pub const ERROR_MRM_PACKAGE_NOT_FOUND: WIN32_ERROR = 15159u32;
pub const ERROR_MRM_MISSING_DEFAULT_LANGUAGE: WIN32_ERROR = 15160u32;
pub const ERROR_MCA_INVALID_CAPABILITIES_STRING: WIN32_ERROR = 15200u32;
pub const ERROR_MCA_INVALID_VCP_VERSION: WIN32_ERROR = 15201u32;
pub const ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION: WIN32_ERROR = 15202u32;
pub const ERROR_MCA_MCCS_VERSION_MISMATCH: WIN32_ERROR = 15203u32;
pub const ERROR_MCA_UNSUPPORTED_MCCS_VERSION: WIN32_ERROR = 15204u32;
pub const ERROR_MCA_INTERNAL_ERROR: WIN32_ERROR = 15205u32;
pub const ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED: WIN32_ERROR = 15206u32;
pub const ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE: WIN32_ERROR = 15207u32;
pub const ERROR_AMBIGUOUS_SYSTEM_DEVICE: WIN32_ERROR = 15250u32;
pub const ERROR_SYSTEM_DEVICE_NOT_FOUND: WIN32_ERROR = 15299u32;
pub const ERROR_HASH_NOT_SUPPORTED: WIN32_ERROR = 15300u32;
pub const ERROR_HASH_NOT_PRESENT: WIN32_ERROR = 15301u32;
pub const ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED: WIN32_ERROR = 15321u32;
pub const ERROR_GPIO_CLIENT_INFORMATION_INVALID: WIN32_ERROR = 15322u32;
pub const ERROR_GPIO_VERSION_NOT_SUPPORTED: WIN32_ERROR = 15323u32;
pub const ERROR_GPIO_INVALID_REGISTRATION_PACKET: WIN32_ERROR = 15324u32;
pub const ERROR_GPIO_OPERATION_DENIED: WIN32_ERROR = 15325u32;
pub const ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE: WIN32_ERROR = 15326u32;
pub const ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED: WIN32_ERROR = 15327u32;
pub const ERROR_CANNOT_SWITCH_RUNLEVEL: WIN32_ERROR = 15400u32;
pub const ERROR_INVALID_RUNLEVEL_SETTING: WIN32_ERROR = 15401u32;
pub const ERROR_RUNLEVEL_SWITCH_TIMEOUT: WIN32_ERROR = 15402u32;
pub const ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT: WIN32_ERROR = 15403u32;
pub const ERROR_RUNLEVEL_SWITCH_IN_PROGRESS: WIN32_ERROR = 15404u32;
pub const ERROR_SERVICES_FAILED_AUTOSTART: WIN32_ERROR = 15405u32;
pub const ERROR_COM_TASK_STOP_PENDING: WIN32_ERROR = 15501u32;
pub const ERROR_INSTALL_OPEN_PACKAGE_FAILED: WIN32_ERROR = 15600u32;
pub const ERROR_INSTALL_PACKAGE_NOT_FOUND: WIN32_ERROR = 15601u32;
pub const ERROR_INSTALL_INVALID_PACKAGE: WIN32_ERROR = 15602u32;
pub const ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED: WIN32_ERROR = 15603u32;
pub const ERROR_INSTALL_OUT_OF_DISK_SPACE: WIN32_ERROR = 15604u32;
pub const ERROR_INSTALL_NETWORK_FAILURE: WIN32_ERROR = 15605u32;
pub const ERROR_INSTALL_REGISTRATION_FAILURE: WIN32_ERROR = 15606u32;
pub const ERROR_INSTALL_DEREGISTRATION_FAILURE: WIN32_ERROR = 15607u32;
pub const ERROR_INSTALL_CANCEL: WIN32_ERROR = 15608u32;
pub const ERROR_INSTALL_FAILED: WIN32_ERROR = 15609u32;
pub const ERROR_REMOVE_FAILED: WIN32_ERROR = 15610u32;
pub const ERROR_PACKAGE_ALREADY_EXISTS: WIN32_ERROR = 15611u32;
pub const ERROR_NEEDS_REMEDIATION: WIN32_ERROR = 15612u32;
pub const ERROR_INSTALL_PREREQUISITE_FAILED: WIN32_ERROR = 15613u32;
pub const ERROR_PACKAGE_REPOSITORY_CORRUPTED: WIN32_ERROR = 15614u32;
pub const ERROR_INSTALL_POLICY_FAILURE: WIN32_ERROR = 15615u32;
pub const ERROR_PACKAGE_UPDATING: WIN32_ERROR = 15616u32;
pub const ERROR_DEPLOYMENT_BLOCKED_BY_POLICY: WIN32_ERROR = 15617u32;
pub const ERROR_PACKAGES_IN_USE: WIN32_ERROR = 15618u32;
pub const ERROR_RECOVERY_FILE_CORRUPT: WIN32_ERROR = 15619u32;
pub const ERROR_INVALID_STAGED_SIGNATURE: WIN32_ERROR = 15620u32;
pub const ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED: WIN32_ERROR = 15621u32;
pub const ERROR_INSTALL_PACKAGE_DOWNGRADE: WIN32_ERROR = 15622u32;
pub const ERROR_SYSTEM_NEEDS_REMEDIATION: WIN32_ERROR = 15623u32;
pub const ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN: WIN32_ERROR = 15624u32;
pub const ERROR_RESILIENCY_FILE_CORRUPT: WIN32_ERROR = 15625u32;
pub const ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING: WIN32_ERROR = 15626u32;
pub const ERROR_PACKAGE_MOVE_FAILED: WIN32_ERROR = 15627u32;
pub const ERROR_INSTALL_VOLUME_NOT_EMPTY: WIN32_ERROR = 15628u32;
pub const ERROR_INSTALL_VOLUME_OFFLINE: WIN32_ERROR = 15629u32;
pub const ERROR_INSTALL_VOLUME_CORRUPT: WIN32_ERROR = 15630u32;
pub const ERROR_NEEDS_REGISTRATION: WIN32_ERROR = 15631u32;
pub const ERROR_INSTALL_WRONG_PROCESSOR_ARCHITECTURE: WIN32_ERROR = 15632u32;
pub const ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED: WIN32_ERROR = 15633u32;
pub const ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE: WIN32_ERROR = 15634u32;
pub const ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM: WIN32_ERROR = 15635u32;
pub const ERROR_PACKAGE_MOVE_BLOCKED_BY_STREAMING: WIN32_ERROR = 15636u32;
pub const ERROR_INSTALL_OPTIONAL_PACKAGE_APPLICATIONID_NOT_UNIQUE: WIN32_ERROR = 15637u32;
pub const ERROR_PACKAGE_STAGING_ONHOLD: WIN32_ERROR = 15638u32;
pub const ERROR_INSTALL_INVALID_RELATED_SET_UPDATE: WIN32_ERROR = 15639u32;
pub const ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY: WIN32_ERROR = 15640u32;
pub const ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF: WIN32_ERROR = 15641u32;
pub const ERROR_PROVISION_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_PROVISIONED: WIN32_ERROR = 15642u32;
pub const ERROR_PACKAGES_REPUTATION_CHECK_FAILED: WIN32_ERROR = 15643u32;
pub const ERROR_PACKAGES_REPUTATION_CHECK_TIMEDOUT: WIN32_ERROR = 15644u32;
pub const ERROR_DEPLOYMENT_OPTION_NOT_SUPPORTED: WIN32_ERROR = 15645u32;
pub const ERROR_APPINSTALLER_ACTIVATION_BLOCKED: WIN32_ERROR = 15646u32;
pub const ERROR_REGISTRATION_FROM_REMOTE_DRIVE_NOT_SUPPORTED: WIN32_ERROR = 15647u32;
pub const ERROR_APPX_RAW_DATA_WRITE_FAILED: WIN32_ERROR = 15648u32;
pub const ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_PACKAGE: WIN32_ERROR = 15649u32;
pub const ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_MACHINE: WIN32_ERROR = 15650u32;
pub const ERROR_DEPLOYMENT_BLOCKED_BY_PROFILE_POLICY: WIN32_ERROR = 15651u32;
pub const ERROR_DEPLOYMENT_FAILED_CONFLICTING_MUTABLE_PACKAGE_DIRECTORY: WIN32_ERROR = 15652u32;
pub const ERROR_SINGLETON_RESOURCE_INSTALLED_IN_ACTIVE_USER: WIN32_ERROR = 15653u32;
pub const ERROR_DIFFERENT_VERSION_OF_PACKAGED_SERVICE_INSTALLED: WIN32_ERROR = 15654u32;
pub const ERROR_SERVICE_EXISTS_AS_NON_PACKAGED_SERVICE: WIN32_ERROR = 15655u32;
pub const ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES: WIN32_ERROR = 15656u32;
pub const ERROR_REDIRECTION_TO_DEFAULT_ACCOUNT_NOT_ALLOWED: WIN32_ERROR = 15657u32;
pub const ERROR_PACKAGE_LACKS_CAPABILITY_TO_DEPLOY_ON_HOST: WIN32_ERROR = 15658u32;
pub const ERROR_UNSIGNED_PACKAGE_INVALID_CONTENT: WIN32_ERROR = 15659u32;
pub const ERROR_UNSIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE: WIN32_ERROR = 15660u32;
pub const ERROR_SIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE: WIN32_ERROR = 15661u32;
pub const ERROR_PACKAGE_EXTERNAL_LOCATION_NOT_ALLOWED: WIN32_ERROR = 15662u32;
pub const ERROR_INSTALL_FULLTRUST_HOSTRUNTIME_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY: WIN32_ERROR = 15663u32;
pub const ERROR_PACKAGE_LACKS_CAPABILITY_FOR_MANDATORY_STARTUPTASKS: WIN32_ERROR = 15664u32;
pub const ERROR_INSTALL_RESOLVE_HOSTRUNTIME_DEPENDENCY_FAILED: WIN32_ERROR = 15665u32;
pub const ERROR_MACHINE_SCOPE_NOT_ALLOWED: WIN32_ERROR = 15666u32;
pub const ERROR_CLASSIC_COMPAT_MODE_NOT_ALLOWED: WIN32_ERROR = 15667u32;
pub const ERROR_STAGEFROMUPDATEAGENT_PACKAGE_NOT_APPLICABLE: WIN32_ERROR = 15668u32;
pub const ERROR_PACKAGE_NOT_REGISTERED_FOR_USER: WIN32_ERROR = 15669u32;
pub const ERROR_STATE_LOAD_STORE_FAILED: WIN32_ERROR = 15800u32;
pub const ERROR_STATE_GET_VERSION_FAILED: WIN32_ERROR = 15801u32;
pub const ERROR_STATE_SET_VERSION_FAILED: WIN32_ERROR = 15802u32;
pub const ERROR_STATE_STRUCTURED_RESET_FAILED: WIN32_ERROR = 15803u32;
pub const ERROR_STATE_OPEN_CONTAINER_FAILED: WIN32_ERROR = 15804u32;
pub const ERROR_STATE_CREATE_CONTAINER_FAILED: WIN32_ERROR = 15805u32;
pub const ERROR_STATE_DELETE_CONTAINER_FAILED: WIN32_ERROR = 15806u32;
pub const ERROR_STATE_READ_SETTING_FAILED: WIN32_ERROR = 15807u32;
pub const ERROR_STATE_WRITE_SETTING_FAILED: WIN32_ERROR = 15808u32;
pub const ERROR_STATE_DELETE_SETTING_FAILED: WIN32_ERROR = 15809u32;
pub const ERROR_STATE_QUERY_SETTING_FAILED: WIN32_ERROR = 15810u32;
pub const ERROR_STATE_READ_COMPOSITE_SETTING_FAILED: WIN32_ERROR = 15811u32;
pub const ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED: WIN32_ERROR = 15812u32;
pub const ERROR_STATE_ENUMERATE_CONTAINER_FAILED: WIN32_ERROR = 15813u32;
pub const ERROR_STATE_ENUMERATE_SETTINGS_FAILED: WIN32_ERROR = 15814u32;
pub const ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED: WIN32_ERROR = 15815u32;
pub const ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED: WIN32_ERROR = 15816u32;
pub const ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED: WIN32_ERROR = 15817u32;
pub const ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED: WIN32_ERROR = 15818u32;
pub const ERROR_API_UNAVAILABLE: WIN32_ERROR = 15841u32;
pub const ERROR_NDIS_INTERFACE_CLOSING: WIN32_ERROR = 2150891522u32;
pub const ERROR_NDIS_BAD_VERSION: WIN32_ERROR = 2150891524u32;
pub const ERROR_NDIS_BAD_CHARACTERISTICS: WIN32_ERROR = 2150891525u32;
pub const ERROR_NDIS_ADAPTER_NOT_FOUND: WIN32_ERROR = 2150891526u32;
pub const ERROR_NDIS_OPEN_FAILED: WIN32_ERROR = 2150891527u32;
pub const ERROR_NDIS_DEVICE_FAILED: WIN32_ERROR = 2150891528u32;
pub const ERROR_NDIS_MULTICAST_FULL: WIN32_ERROR = 2150891529u32;
pub const ERROR_NDIS_MULTICAST_EXISTS: WIN32_ERROR = 2150891530u32;
pub const ERROR_NDIS_MULTICAST_NOT_FOUND: WIN32_ERROR = 2150891531u32;
pub const ERROR_NDIS_REQUEST_ABORTED: WIN32_ERROR = 2150891532u32;
pub const ERROR_NDIS_RESET_IN_PROGRESS: WIN32_ERROR = 2150891533u32;
pub const ERROR_NDIS_NOT_SUPPORTED: WIN32_ERROR = 2150891707u32;
pub const ERROR_NDIS_INVALID_PACKET: WIN32_ERROR = 2150891535u32;
pub const ERROR_NDIS_ADAPTER_NOT_READY: WIN32_ERROR = 2150891537u32;
pub const ERROR_NDIS_INVALID_LENGTH: WIN32_ERROR = 2150891540u32;
pub const ERROR_NDIS_INVALID_DATA: WIN32_ERROR = 2150891541u32;
pub const ERROR_NDIS_BUFFER_TOO_SHORT: WIN32_ERROR = 2150891542u32;
pub const ERROR_NDIS_INVALID_OID: WIN32_ERROR = 2150891543u32;
pub const ERROR_NDIS_ADAPTER_REMOVED: WIN32_ERROR = 2150891544u32;
pub const ERROR_NDIS_UNSUPPORTED_MEDIA: WIN32_ERROR = 2150891545u32;
pub const ERROR_NDIS_GROUP_ADDRESS_IN_USE: WIN32_ERROR = 2150891546u32;
pub const ERROR_NDIS_FILE_NOT_FOUND: WIN32_ERROR = 2150891547u32;
pub const ERROR_NDIS_ERROR_READING_FILE: WIN32_ERROR = 2150891548u32;
pub const ERROR_NDIS_ALREADY_MAPPED: WIN32_ERROR = 2150891549u32;
pub const ERROR_NDIS_RESOURCE_CONFLICT: WIN32_ERROR = 2150891550u32;
pub const ERROR_NDIS_MEDIA_DISCONNECTED: WIN32_ERROR = 2150891551u32;
pub const ERROR_NDIS_INVALID_ADDRESS: WIN32_ERROR = 2150891554u32;
pub const ERROR_NDIS_INVALID_DEVICE_REQUEST: WIN32_ERROR = 2150891536u32;
pub const ERROR_NDIS_PAUSED: WIN32_ERROR = 2150891562u32;
pub const ERROR_NDIS_INTERFACE_NOT_FOUND: WIN32_ERROR = 2150891563u32;
pub const ERROR_NDIS_UNSUPPORTED_REVISION: WIN32_ERROR = 2150891564u32;
pub const ERROR_NDIS_INVALID_PORT: WIN32_ERROR = 2150891565u32;
pub const ERROR_NDIS_INVALID_PORT_STATE: WIN32_ERROR = 2150891566u32;
pub const ERROR_NDIS_LOW_POWER_STATE: WIN32_ERROR = 2150891567u32;
pub const ERROR_NDIS_REINIT_REQUIRED: WIN32_ERROR = 2150891568u32;
pub const ERROR_NDIS_NO_QUEUES: WIN32_ERROR = 2150891569u32;
pub const ERROR_NDIS_DOT11_AUTO_CONFIG_ENABLED: WIN32_ERROR = 2150899712u32;
pub const ERROR_NDIS_DOT11_MEDIA_IN_USE: WIN32_ERROR = 2150899713u32;
pub const ERROR_NDIS_DOT11_POWER_STATE_INVALID: WIN32_ERROR = 2150899714u32;
pub const ERROR_NDIS_PM_WOL_PATTERN_LIST_FULL: WIN32_ERROR = 2150899715u32;
pub const ERROR_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL: WIN32_ERROR = 2150899716u32;
pub const ERROR_NDIS_DOT11_AP_CHANNEL_CURRENTLY_NOT_AVAILABLE: WIN32_ERROR = 2150899717u32;
pub const ERROR_NDIS_DOT11_AP_BAND_CURRENTLY_NOT_AVAILABLE: WIN32_ERROR = 2150899718u32;
pub const ERROR_NDIS_DOT11_AP_CHANNEL_NOT_ALLOWED: WIN32_ERROR = 2150899719u32;
pub const ERROR_NDIS_DOT11_AP_BAND_NOT_ALLOWED: WIN32_ERROR = 2150899720u32;
pub const ERROR_NDIS_INDICATION_REQUIRED: WIN32_ERROR = 3407873u32;
pub const ERROR_NDIS_OFFLOAD_POLICY: WIN32_ERROR = 3224637455u32;
pub const ERROR_NDIS_OFFLOAD_CONNECTION_REJECTED: WIN32_ERROR = 3224637458u32;
pub const ERROR_NDIS_OFFLOAD_PATH_REJECTED: WIN32_ERROR = 3224637459u32;
pub const ERROR_HV_INVALID_HYPERCALL_CODE: WIN32_ERROR = 3224698882u32;
pub const ERROR_HV_INVALID_HYPERCALL_INPUT: WIN32_ERROR = 3224698883u32;
pub const ERROR_HV_INVALID_ALIGNMENT: WIN32_ERROR = 3224698884u32;
pub const ERROR_HV_INVALID_PARAMETER: WIN32_ERROR = 3224698885u32;
pub const ERROR_HV_ACCESS_DENIED: WIN32_ERROR = 3224698886u32;
pub const ERROR_HV_INVALID_PARTITION_STATE: WIN32_ERROR = 3224698887u32;
pub const ERROR_HV_OPERATION_DENIED: WIN32_ERROR = 3224698888u32;
pub const ERROR_HV_UNKNOWN_PROPERTY: WIN32_ERROR = 3224698889u32;
pub const ERROR_HV_PROPERTY_VALUE_OUT_OF_RANGE: WIN32_ERROR = 3224698890u32;
pub const ERROR_HV_INSUFFICIENT_MEMORY: WIN32_ERROR = 3224698891u32;
pub const ERROR_HV_PARTITION_TOO_DEEP: WIN32_ERROR = 3224698892u32;
pub const ERROR_HV_INVALID_PARTITION_ID: WIN32_ERROR = 3224698893u32;
pub const ERROR_HV_INVALID_VP_INDEX: WIN32_ERROR = 3224698894u32;
pub const ERROR_HV_INVALID_PORT_ID: WIN32_ERROR = 3224698897u32;
pub const ERROR_HV_INVALID_CONNECTION_ID: WIN32_ERROR = 3224698898u32;
pub const ERROR_HV_INSUFFICIENT_BUFFERS: WIN32_ERROR = 3224698899u32;
pub const ERROR_HV_NOT_ACKNOWLEDGED: WIN32_ERROR = 3224698900u32;
pub const ERROR_HV_INVALID_VP_STATE: WIN32_ERROR = 3224698901u32;
pub const ERROR_HV_ACKNOWLEDGED: WIN32_ERROR = 3224698902u32;
pub const ERROR_HV_INVALID_SAVE_RESTORE_STATE: WIN32_ERROR = 3224698903u32;
pub const ERROR_HV_INVALID_SYNIC_STATE: WIN32_ERROR = 3224698904u32;
pub const ERROR_HV_OBJECT_IN_USE: WIN32_ERROR = 3224698905u32;
pub const ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO: WIN32_ERROR = 3224698906u32;
pub const ERROR_HV_NO_DATA: WIN32_ERROR = 3224698907u32;
pub const ERROR_HV_INACTIVE: WIN32_ERROR = 3224698908u32;
pub const ERROR_HV_NO_RESOURCES: WIN32_ERROR = 3224698909u32;
pub const ERROR_HV_FEATURE_UNAVAILABLE: WIN32_ERROR = 3224698910u32;
pub const ERROR_HV_INSUFFICIENT_BUFFER: WIN32_ERROR = 3224698931u32;
pub const ERROR_HV_INSUFFICIENT_DEVICE_DOMAINS: WIN32_ERROR = 3224698936u32;
pub const ERROR_HV_CPUID_FEATURE_VALIDATION: WIN32_ERROR = 3224698940u32;
pub const ERROR_HV_CPUID_XSAVE_FEATURE_VALIDATION: WIN32_ERROR = 3224698941u32;
pub const ERROR_HV_PROCESSOR_STARTUP_TIMEOUT: WIN32_ERROR = 3224698942u32;
pub const ERROR_HV_SMX_ENABLED: WIN32_ERROR = 3224698943u32;
pub const ERROR_HV_INVALID_LP_INDEX: WIN32_ERROR = 3224698945u32;
pub const ERROR_HV_INVALID_REGISTER_VALUE: WIN32_ERROR = 3224698960u32;
pub const ERROR_HV_INVALID_VTL_STATE: WIN32_ERROR = 3224698961u32;
pub const ERROR_HV_NX_NOT_DETECTED: WIN32_ERROR = 3224698965u32;
pub const ERROR_HV_INVALID_DEVICE_ID: WIN32_ERROR = 3224698967u32;
pub const ERROR_HV_INVALID_DEVICE_STATE: WIN32_ERROR = 3224698968u32;
pub const ERROR_HV_PENDING_PAGE_REQUESTS: WIN32_ERROR = 3473497u32;
pub const ERROR_HV_PAGE_REQUEST_INVALID: WIN32_ERROR = 3224698976u32;
pub const ERROR_HV_INVALID_CPU_GROUP_ID: WIN32_ERROR = 3224698991u32;
pub const ERROR_HV_INVALID_CPU_GROUP_STATE: WIN32_ERROR = 3224698992u32;
pub const ERROR_HV_OPERATION_FAILED: WIN32_ERROR = 3224698993u32;
pub const ERROR_HV_NOT_ALLOWED_WITH_NESTED_VIRT_ACTIVE: WIN32_ERROR = 3224698994u32;
pub const ERROR_HV_INSUFFICIENT_ROOT_MEMORY: WIN32_ERROR = 3224698995u32;
pub const ERROR_HV_EVENT_BUFFER_ALREADY_FREED: WIN32_ERROR = 3224698996u32;
pub const ERROR_HV_INSUFFICIENT_CONTIGUOUS_MEMORY: WIN32_ERROR = 3224698997u32;
pub const ERROR_HV_DEVICE_NOT_IN_DOMAIN: WIN32_ERROR = 3224698998u32;
pub const ERROR_HV_NESTED_VM_EXIT: WIN32_ERROR = 3224698999u32;
pub const ERROR_HV_MSR_ACCESS_FAILED: WIN32_ERROR = 3224699008u32;
pub const ERROR_HV_NOT_PRESENT: WIN32_ERROR = 3224702976u32;
pub const ERROR_VID_DUPLICATE_HANDLER: WIN32_ERROR = 3224829953u32;
pub const ERROR_VID_TOO_MANY_HANDLERS: WIN32_ERROR = 3224829954u32;
pub const ERROR_VID_QUEUE_FULL: WIN32_ERROR = 3224829955u32;
pub const ERROR_VID_HANDLER_NOT_PRESENT: WIN32_ERROR = 3224829956u32;
pub const ERROR_VID_INVALID_OBJECT_NAME: WIN32_ERROR = 3224829957u32;
pub const ERROR_VID_PARTITION_NAME_TOO_LONG: WIN32_ERROR = 3224829958u32;
pub const ERROR_VID_MESSAGE_QUEUE_NAME_TOO_LONG: WIN32_ERROR = 3224829959u32;
pub const ERROR_VID_PARTITION_ALREADY_EXISTS: WIN32_ERROR = 3224829960u32;
pub const ERROR_VID_PARTITION_DOES_NOT_EXIST: WIN32_ERROR = 3224829961u32;
pub const ERROR_VID_PARTITION_NAME_NOT_FOUND: WIN32_ERROR = 3224829962u32;
pub const ERROR_VID_MESSAGE_QUEUE_ALREADY_EXISTS: WIN32_ERROR = 3224829963u32;
pub const ERROR_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT: WIN32_ERROR = 3224829964u32;
pub const ERROR_VID_MB_STILL_REFERENCED: WIN32_ERROR = 3224829965u32;
pub const ERROR_VID_CHILD_GPA_PAGE_SET_CORRUPTED: WIN32_ERROR = 3224829966u32;
pub const ERROR_VID_INVALID_NUMA_SETTINGS: WIN32_ERROR = 3224829967u32;
pub const ERROR_VID_INVALID_NUMA_NODE_INDEX: WIN32_ERROR = 3224829968u32;
pub const ERROR_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED: WIN32_ERROR = 3224829969u32;
pub const ERROR_VID_INVALID_MEMORY_BLOCK_HANDLE: WIN32_ERROR = 3224829970u32;
pub const ERROR_VID_PAGE_RANGE_OVERFLOW: WIN32_ERROR = 3224829971u32;
pub const ERROR_VID_INVALID_MESSAGE_QUEUE_HANDLE: WIN32_ERROR = 3224829972u32;
pub const ERROR_VID_INVALID_GPA_RANGE_HANDLE: WIN32_ERROR = 3224829973u32;
pub const ERROR_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE: WIN32_ERROR = 3224829974u32;
pub const ERROR_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED: WIN32_ERROR = 3224829975u32;
pub const ERROR_VID_INVALID_PPM_HANDLE: WIN32_ERROR = 3224829976u32;
pub const ERROR_VID_MBPS_ARE_LOCKED: WIN32_ERROR = 3224829977u32;
pub const ERROR_VID_MESSAGE_QUEUE_CLOSED: WIN32_ERROR = 3224829978u32;
pub const ERROR_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED: WIN32_ERROR = 3224829979u32;
pub const ERROR_VID_STOP_PENDING: WIN32_ERROR = 3224829980u32;
pub const ERROR_VID_INVALID_PROCESSOR_STATE: WIN32_ERROR = 3224829981u32;
pub const ERROR_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT: WIN32_ERROR = 3224829982u32;
pub const ERROR_VID_KM_INTERFACE_ALREADY_INITIALIZED: WIN32_ERROR = 3224829983u32;
pub const ERROR_VID_MB_PROPERTY_ALREADY_SET_RESET: WIN32_ERROR = 3224829984u32;
pub const ERROR_VID_MMIO_RANGE_DESTROYED: WIN32_ERROR = 3224829985u32;
pub const ERROR_VID_INVALID_CHILD_GPA_PAGE_SET: WIN32_ERROR = 3224829986u32;
pub const ERROR_VID_RESERVE_PAGE_SET_IS_BEING_USED: WIN32_ERROR = 3224829987u32;
pub const ERROR_VID_RESERVE_PAGE_SET_TOO_SMALL: WIN32_ERROR = 3224829988u32;
pub const ERROR_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE: WIN32_ERROR = 3224829989u32;
pub const ERROR_VID_MBP_COUNT_EXCEEDED_LIMIT: WIN32_ERROR = 3224829990u32;
pub const ERROR_VID_SAVED_STATE_CORRUPT: WIN32_ERROR = 3224829991u32;
pub const ERROR_VID_SAVED_STATE_UNRECOGNIZED_ITEM: WIN32_ERROR = 3224829992u32;
pub const ERROR_VID_SAVED_STATE_INCOMPATIBLE: WIN32_ERROR = 3224829993u32;
pub const ERROR_VID_VTL_ACCESS_DENIED: WIN32_ERROR = 3224829994u32;
pub const ERROR_VMCOMPUTE_TERMINATED_DURING_START: WIN32_ERROR = 3224830208u32;
pub const ERROR_VMCOMPUTE_IMAGE_MISMATCH: WIN32_ERROR = 3224830209u32;
pub const ERROR_VMCOMPUTE_HYPERV_NOT_INSTALLED: WIN32_ERROR = 3224830210u32;
pub const ERROR_VMCOMPUTE_OPERATION_PENDING: WIN32_ERROR = 3224830211u32;
pub const ERROR_VMCOMPUTE_TOO_MANY_NOTIFICATIONS: WIN32_ERROR = 3224830212u32;
pub const ERROR_VMCOMPUTE_INVALID_STATE: WIN32_ERROR = 3224830213u32;
pub const ERROR_VMCOMPUTE_UNEXPECTED_EXIT: WIN32_ERROR = 3224830214u32;
pub const ERROR_VMCOMPUTE_TERMINATED: WIN32_ERROR = 3224830215u32;
pub const ERROR_VMCOMPUTE_CONNECT_FAILED: WIN32_ERROR = 3224830216u32;
pub const ERROR_VMCOMPUTE_TIMEOUT: WIN32_ERROR = 3224830217u32;
pub const ERROR_VMCOMPUTE_CONNECTION_CLOSED: WIN32_ERROR = 3224830218u32;
pub const ERROR_VMCOMPUTE_UNKNOWN_MESSAGE: WIN32_ERROR = 3224830219u32;
pub const ERROR_VMCOMPUTE_UNSUPPORTED_PROTOCOL_VERSION: WIN32_ERROR = 3224830220u32;
pub const ERROR_VMCOMPUTE_INVALID_JSON: WIN32_ERROR = 3224830221u32;
pub const ERROR_VMCOMPUTE_SYSTEM_NOT_FOUND: WIN32_ERROR = 3224830222u32;
pub const ERROR_VMCOMPUTE_SYSTEM_ALREADY_EXISTS: WIN32_ERROR = 3224830223u32;
pub const ERROR_VMCOMPUTE_SYSTEM_ALREADY_STOPPED: WIN32_ERROR = 3224830224u32;
pub const ERROR_VMCOMPUTE_PROTOCOL_ERROR: WIN32_ERROR = 3224830225u32;
pub const ERROR_VMCOMPUTE_INVALID_LAYER: WIN32_ERROR = 3224830226u32;
pub const ERROR_VMCOMPUTE_WINDOWS_INSIDER_REQUIRED: WIN32_ERROR = 3224830227u32;
pub const ERROR_VNET_VIRTUAL_SWITCH_NAME_NOT_FOUND: WIN32_ERROR = 3224830464u32;
pub const ERROR_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED: WIN32_ERROR = 2151088129u32;
pub const ERROR_VSMB_SAVED_STATE_FILE_NOT_FOUND: WIN32_ERROR = 3224830976u32;
pub const ERROR_VSMB_SAVED_STATE_CORRUPT: WIN32_ERROR = 3224830977u32;
pub const ERROR_VOLMGR_INCOMPLETE_REGENERATION: WIN32_ERROR = 2151153665u32;
pub const ERROR_VOLMGR_INCOMPLETE_DISK_MIGRATION: WIN32_ERROR = 2151153666u32;
pub const ERROR_VOLMGR_DATABASE_FULL: WIN32_ERROR = 3224895489u32;
pub const ERROR_VOLMGR_DISK_CONFIGURATION_CORRUPTED: WIN32_ERROR = 3224895490u32;
pub const ERROR_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC: WIN32_ERROR = 3224895491u32;
pub const ERROR_VOLMGR_PACK_CONFIG_UPDATE_FAILED: WIN32_ERROR = 3224895492u32;
pub const ERROR_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME: WIN32_ERROR = 3224895493u32;
pub const ERROR_VOLMGR_DISK_DUPLICATE: WIN32_ERROR = 3224895494u32;
pub const ERROR_VOLMGR_DISK_DYNAMIC: WIN32_ERROR = 3224895495u32;
pub const ERROR_VOLMGR_DISK_ID_INVALID: WIN32_ERROR = 3224895496u32;
pub const ERROR_VOLMGR_DISK_INVALID: WIN32_ERROR = 3224895497u32;
pub const ERROR_VOLMGR_DISK_LAST_VOTER: WIN32_ERROR = 3224895498u32;
pub const ERROR_VOLMGR_DISK_LAYOUT_INVALID: WIN32_ERROR = 3224895499u32;
pub const ERROR_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS: WIN32_ERROR = 3224895500u32;
pub const ERROR_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED: WIN32_ERROR = 3224895501u32;
pub const ERROR_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL: WIN32_ERROR = 3224895502u32;
pub const ERROR_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS: WIN32_ERROR = 3224895503u32;
pub const ERROR_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS: WIN32_ERROR = 3224895504u32;
pub const ERROR_VOLMGR_DISK_MISSING: WIN32_ERROR = 3224895505u32;
pub const ERROR_VOLMGR_DISK_NOT_EMPTY: WIN32_ERROR = 3224895506u32;
pub const ERROR_VOLMGR_DISK_NOT_ENOUGH_SPACE: WIN32_ERROR = 3224895507u32;
pub const ERROR_VOLMGR_DISK_REVECTORING_FAILED: WIN32_ERROR = 3224895508u32;
pub const ERROR_VOLMGR_DISK_SECTOR_SIZE_INVALID: WIN32_ERROR = 3224895509u32;
pub const ERROR_VOLMGR_DISK_SET_NOT_CONTAINED: WIN32_ERROR = 3224895510u32;
pub const ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS: WIN32_ERROR = 3224895511u32;
pub const ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES: WIN32_ERROR = 3224895512u32;
pub const ERROR_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED: WIN32_ERROR = 3224895513u32;
pub const ERROR_VOLMGR_EXTENT_ALREADY_USED: WIN32_ERROR = 3224895514u32;
pub const ERROR_VOLMGR_EXTENT_NOT_CONTIGUOUS: WIN32_ERROR = 3224895515u32;
pub const ERROR_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION: WIN32_ERROR = 3224895516u32;
pub const ERROR_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED: WIN32_ERROR = 3224895517u32;
pub const ERROR_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION: WIN32_ERROR = 3224895518u32;
pub const ERROR_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH: WIN32_ERROR = 3224895519u32;
pub const ERROR_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED: WIN32_ERROR = 3224895520u32;
pub const ERROR_VOLMGR_INTERLEAVE_LENGTH_INVALID: WIN32_ERROR = 3224895521u32;
pub const ERROR_VOLMGR_MAXIMUM_REGISTERED_USERS: WIN32_ERROR = 3224895522u32;
pub const ERROR_VOLMGR_MEMBER_IN_SYNC: WIN32_ERROR = 3224895523u32;
pub const ERROR_VOLMGR_MEMBER_INDEX_DUPLICATE: WIN32_ERROR = 3224895524u32;
pub const ERROR_VOLMGR_MEMBER_INDEX_INVALID: WIN32_ERROR = 3224895525u32;
pub const ERROR_VOLMGR_MEMBER_MISSING: WIN32_ERROR = 3224895526u32;
pub const ERROR_VOLMGR_MEMBER_NOT_DETACHED: WIN32_ERROR = 3224895527u32;
pub const ERROR_VOLMGR_MEMBER_REGENERATING: WIN32_ERROR = 3224895528u32;
pub const ERROR_VOLMGR_ALL_DISKS_FAILED: WIN32_ERROR = 3224895529u32;
pub const ERROR_VOLMGR_NO_REGISTERED_USERS: WIN32_ERROR = 3224895530u32;
pub const ERROR_VOLMGR_NO_SUCH_USER: WIN32_ERROR = 3224895531u32;
pub const ERROR_VOLMGR_NOTIFICATION_RESET: WIN32_ERROR = 3224895532u32;
pub const ERROR_VOLMGR_NUMBER_OF_MEMBERS_INVALID: WIN32_ERROR = 3224895533u32;
pub const ERROR_VOLMGR_NUMBER_OF_PLEXES_INVALID: WIN32_ERROR = 3224895534u32;
pub const ERROR_VOLMGR_PACK_DUPLICATE: WIN32_ERROR = 3224895535u32;
pub const ERROR_VOLMGR_PACK_ID_INVALID: WIN32_ERROR = 3224895536u32;
pub const ERROR_VOLMGR_PACK_INVALID: WIN32_ERROR = 3224895537u32;
pub const ERROR_VOLMGR_PACK_NAME_INVALID: WIN32_ERROR = 3224895538u32;
pub const ERROR_VOLMGR_PACK_OFFLINE: WIN32_ERROR = 3224895539u32;
pub const ERROR_VOLMGR_PACK_HAS_QUORUM: WIN32_ERROR = 3224895540u32;
pub const ERROR_VOLMGR_PACK_WITHOUT_QUORUM: WIN32_ERROR = 3224895541u32;
pub const ERROR_VOLMGR_PARTITION_STYLE_INVALID: WIN32_ERROR = 3224895542u32;
pub const ERROR_VOLMGR_PARTITION_UPDATE_FAILED: WIN32_ERROR = 3224895543u32;
pub const ERROR_VOLMGR_PLEX_IN_SYNC: WIN32_ERROR = 3224895544u32;
pub const ERROR_VOLMGR_PLEX_INDEX_DUPLICATE: WIN32_ERROR = 3224895545u32;
pub const ERROR_VOLMGR_PLEX_INDEX_INVALID: WIN32_ERROR = 3224895546u32;
pub const ERROR_VOLMGR_PLEX_LAST_ACTIVE: WIN32_ERROR = 3224895547u32;
pub const ERROR_VOLMGR_PLEX_MISSING: WIN32_ERROR = 3224895548u32;
pub const ERROR_VOLMGR_PLEX_REGENERATING: WIN32_ERROR = 3224895549u32;
pub const ERROR_VOLMGR_PLEX_TYPE_INVALID: WIN32_ERROR = 3224895550u32;
pub const ERROR_VOLMGR_PLEX_NOT_RAID5: WIN32_ERROR = 3224895551u32;
pub const ERROR_VOLMGR_PLEX_NOT_SIMPLE: WIN32_ERROR = 3224895552u32;
pub const ERROR_VOLMGR_STRUCTURE_SIZE_INVALID: WIN32_ERROR = 3224895553u32;
pub const ERROR_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS: WIN32_ERROR = 3224895554u32;
pub const ERROR_VOLMGR_TRANSACTION_IN_PROGRESS: WIN32_ERROR = 3224895555u32;
pub const ERROR_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE: WIN32_ERROR = 3224895556u32;
pub const ERROR_VOLMGR_VOLUME_CONTAINS_MISSING_DISK: WIN32_ERROR = 3224895557u32;
pub const ERROR_VOLMGR_VOLUME_ID_INVALID: WIN32_ERROR = 3224895558u32;
pub const ERROR_VOLMGR_VOLUME_LENGTH_INVALID: WIN32_ERROR = 3224895559u32;
pub const ERROR_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE: WIN32_ERROR = 3224895560u32;
pub const ERROR_VOLMGR_VOLUME_NOT_MIRRORED: WIN32_ERROR = 3224895561u32;
pub const ERROR_VOLMGR_VOLUME_NOT_RETAINED: WIN32_ERROR = 3224895562u32;
pub const ERROR_VOLMGR_VOLUME_OFFLINE: WIN32_ERROR = 3224895563u32;
pub const ERROR_VOLMGR_VOLUME_RETAINED: WIN32_ERROR = 3224895564u32;
pub const ERROR_VOLMGR_NUMBER_OF_EXTENTS_INVALID: WIN32_ERROR = 3224895565u32;
pub const ERROR_VOLMGR_DIFFERENT_SECTOR_SIZE: WIN32_ERROR = 3224895566u32;
pub const ERROR_VOLMGR_BAD_BOOT_DISK: WIN32_ERROR = 3224895567u32;
pub const ERROR_VOLMGR_PACK_CONFIG_OFFLINE: WIN32_ERROR = 3224895568u32;
pub const ERROR_VOLMGR_PACK_CONFIG_ONLINE: WIN32_ERROR = 3224895569u32;
pub const ERROR_VOLMGR_NOT_PRIMARY_PACK: WIN32_ERROR = 3224895570u32;
pub const ERROR_VOLMGR_PACK_LOG_UPDATE_FAILED: WIN32_ERROR = 3224895571u32;
pub const ERROR_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID: WIN32_ERROR = 3224895572u32;
pub const ERROR_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID: WIN32_ERROR = 3224895573u32;
pub const ERROR_VOLMGR_VOLUME_MIRRORED: WIN32_ERROR = 3224895574u32;
pub const ERROR_VOLMGR_PLEX_NOT_SIMPLE_SPANNED: WIN32_ERROR = 3224895575u32;
pub const ERROR_VOLMGR_NO_VALID_LOG_COPIES: WIN32_ERROR = 3224895576u32;
pub const ERROR_VOLMGR_PRIMARY_PACK_PRESENT: WIN32_ERROR = 3224895577u32;
pub const ERROR_VOLMGR_NUMBER_OF_DISKS_INVALID: WIN32_ERROR = 3224895578u32;
pub const ERROR_VOLMGR_MIRROR_NOT_SUPPORTED: WIN32_ERROR = 3224895579u32;
pub const ERROR_VOLMGR_RAID5_NOT_SUPPORTED: WIN32_ERROR = 3224895580u32;
pub const ERROR_BCD_NOT_ALL_ENTRIES_IMPORTED: WIN32_ERROR = 2151219201u32;
pub const ERROR_BCD_TOO_MANY_ELEMENTS: WIN32_ERROR = 3224961026u32;
pub const ERROR_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED: WIN32_ERROR = 2151219203u32;
pub const ERROR_VHD_DRIVE_FOOTER_MISSING: WIN32_ERROR = 3225026561u32;
pub const ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH: WIN32_ERROR = 3225026562u32;
pub const ERROR_VHD_DRIVE_FOOTER_CORRUPT: WIN32_ERROR = 3225026563u32;
pub const ERROR_VHD_FORMAT_UNKNOWN: WIN32_ERROR = 3225026564u32;
pub const ERROR_VHD_FORMAT_UNSUPPORTED_VERSION: WIN32_ERROR = 3225026565u32;
pub const ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH: WIN32_ERROR = 3225026566u32;
pub const ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION: WIN32_ERROR = 3225026567u32;
pub const ERROR_VHD_SPARSE_HEADER_CORRUPT: WIN32_ERROR = 3225026568u32;
pub const ERROR_VHD_BLOCK_ALLOCATION_FAILURE: WIN32_ERROR = 3225026569u32;
pub const ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT: WIN32_ERROR = 3225026570u32;
pub const ERROR_VHD_INVALID_BLOCK_SIZE: WIN32_ERROR = 3225026571u32;
pub const ERROR_VHD_BITMAP_MISMATCH: WIN32_ERROR = 3225026572u32;
pub const ERROR_VHD_PARENT_VHD_NOT_FOUND: WIN32_ERROR = 3225026573u32;
pub const ERROR_VHD_CHILD_PARENT_ID_MISMATCH: WIN32_ERROR = 3225026574u32;
pub const ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH: WIN32_ERROR = 3225026575u32;
pub const ERROR_VHD_METADATA_READ_FAILURE: WIN32_ERROR = 3225026576u32;
pub const ERROR_VHD_METADATA_WRITE_FAILURE: WIN32_ERROR = 3225026577u32;
pub const ERROR_VHD_INVALID_SIZE: WIN32_ERROR = 3225026578u32;
pub const ERROR_VHD_INVALID_FILE_SIZE: WIN32_ERROR = 3225026579u32;
pub const ERROR_VIRTDISK_PROVIDER_NOT_FOUND: WIN32_ERROR = 3225026580u32;
pub const ERROR_VIRTDISK_NOT_VIRTUAL_DISK: WIN32_ERROR = 3225026581u32;
pub const ERROR_VHD_PARENT_VHD_ACCESS_DENIED: WIN32_ERROR = 3225026582u32;
pub const ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH: WIN32_ERROR = 3225026583u32;
pub const ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED: WIN32_ERROR = 3225026584u32;
pub const ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT: WIN32_ERROR = 3225026585u32;
pub const ERROR_VIRTUAL_DISK_LIMITATION: WIN32_ERROR = 3225026586u32;
pub const ERROR_VHD_INVALID_TYPE: WIN32_ERROR = 3225026587u32;
pub const ERROR_VHD_INVALID_STATE: WIN32_ERROR = 3225026588u32;
pub const ERROR_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE: WIN32_ERROR = 3225026589u32;
pub const ERROR_VIRTDISK_DISK_ALREADY_OWNED: WIN32_ERROR = 3225026590u32;
pub const ERROR_VIRTDISK_DISK_ONLINE_AND_WRITABLE: WIN32_ERROR = 3225026591u32;
pub const ERROR_CTLOG_TRACKING_NOT_INITIALIZED: WIN32_ERROR = 3225026592u32;
pub const ERROR_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE: WIN32_ERROR = 3225026593u32;
pub const ERROR_CTLOG_VHD_CHANGED_OFFLINE: WIN32_ERROR = 3225026594u32;
pub const ERROR_CTLOG_INVALID_TRACKING_STATE: WIN32_ERROR = 3225026595u32;
pub const ERROR_CTLOG_INCONSISTENT_TRACKING_FILE: WIN32_ERROR = 3225026596u32;
pub const ERROR_VHD_RESIZE_WOULD_TRUNCATE_DATA: WIN32_ERROR = 3225026597u32;
pub const ERROR_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE: WIN32_ERROR = 3225026598u32;
pub const ERROR_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE: WIN32_ERROR = 3225026599u32;
pub const ERROR_VHD_METADATA_FULL: WIN32_ERROR = 3225026600u32;
pub const ERROR_VHD_INVALID_CHANGE_TRACKING_ID: WIN32_ERROR = 3225026601u32;
pub const ERROR_VHD_CHANGE_TRACKING_DISABLED: WIN32_ERROR = 3225026602u32;
pub const ERROR_VHD_MISSING_CHANGE_TRACKING_INFORMATION: WIN32_ERROR = 3225026608u32;
pub const ERROR_QUERY_STORAGE_ERROR: WIN32_ERROR = 2151284737u32;
pub const WINCODEC_ERR_ALREADYLOCKED: ::windows_sys::core::HRESULT = -2003292403i32;
pub const WINCODEC_ERR_BADHEADER: ::windows_sys::core::HRESULT = -2003292319i32;
pub const WINCODEC_ERR_BADIMAGE: ::windows_sys::core::HRESULT = -2003292320i32;
pub const WINCODEC_ERR_BADMETADATAHEADER: ::windows_sys::core::HRESULT = -2003292317i32;
pub const WINCODEC_ERR_BADSTREAMDATA: ::windows_sys::core::HRESULT = -2003292304i32;
pub const WINCODEC_ERR_CODECNOTHUMBNAIL: ::windows_sys::core::HRESULT = -2003292348i32;
pub const WINCODEC_ERR_CODECPRESENT: ::windows_sys::core::HRESULT = -2003292349i32;
pub const WINCODEC_ERR_CODECTOOMANYSCANLINES: ::windows_sys::core::HRESULT = -2003292346i32;
pub const WINCODEC_ERR_COMPONENTINITIALIZEFAILURE: ::windows_sys::core::HRESULT = -2003292277i32;
pub const WINCODEC_ERR_COMPONENTNOTFOUND: ::windows_sys::core::HRESULT = -2003292336i32;
pub const WINCODEC_ERR_DUPLICATEMETADATAPRESENT: ::windows_sys::core::HRESULT = -2003292275i32;
pub const WINCODEC_ERR_FRAMEMISSING: ::windows_sys::core::HRESULT = -2003292318i32;
pub const WINCODEC_ERR_IMAGESIZEOUTOFRANGE: ::windows_sys::core::HRESULT = -2003292335i32;
pub const WINCODEC_ERR_INSUFFICIENTBUFFER: ::windows_sys::core::HRESULT = -2003292276i32;
pub const WINCODEC_ERR_INTERNALERROR: ::windows_sys::core::HRESULT = -2003292344i32;
pub const WINCODEC_ERR_INVALIDJPEGSCANINDEX: ::windows_sys::core::HRESULT = -2003292266i32;
pub const WINCODEC_ERR_INVALIDPROGRESSIVELEVEL: ::windows_sys::core::HRESULT = -2003292267i32;
pub const WINCODEC_ERR_INVALIDQUERYCHARACTER: ::windows_sys::core::HRESULT = -2003292269i32;
pub const WINCODEC_ERR_INVALIDQUERYREQUEST: ::windows_sys::core::HRESULT = -2003292272i32;
pub const WINCODEC_ERR_INVALIDREGISTRATION: ::windows_sys::core::HRESULT = -2003292278i32;
pub const WINCODEC_ERR_NOTINITIALIZED: ::windows_sys::core::HRESULT = -2003292404i32;
pub const WINCODEC_ERR_PALETTEUNAVAILABLE: ::windows_sys::core::HRESULT = -2003292347i32;
pub const WINCODEC_ERR_PROPERTYNOTFOUND: ::windows_sys::core::HRESULT = -2003292352i32;
pub const WINCODEC_ERR_PROPERTYNOTSUPPORTED: ::windows_sys::core::HRESULT = -2003292351i32;
pub const WINCODEC_ERR_PROPERTYSIZE: ::windows_sys::core::HRESULT = -2003292350i32;
pub const WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE: ::windows_sys::core::HRESULT = -2003292274i32;
pub const WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT: ::windows_sys::core::HRESULT = -2003292270i32;
pub const WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS: ::windows_sys::core::HRESULT = -2003292343i32;
pub const WINCODEC_ERR_STREAMNOTAVAILABLE: ::windows_sys::core::HRESULT = -2003292301i32;
pub const WINCODEC_ERR_STREAMREAD: ::windows_sys::core::HRESULT = -2003292302i32;
pub const WINCODEC_ERR_STREAMWRITE: ::windows_sys::core::HRESULT = -2003292303i32;
pub const WINCODEC_ERR_TOOMUCHMETADATA: ::windows_sys::core::HRESULT = -2003292334i32;
pub const WINCODEC_ERR_UNEXPECTEDMETADATATYPE: ::windows_sys::core::HRESULT = -2003292271i32;
pub const WINCODEC_ERR_UNEXPECTEDSIZE: ::windows_sys::core::HRESULT = -2003292273i32;
pub const WINCODEC_ERR_UNKNOWNIMAGEFORMAT: ::windows_sys::core::HRESULT = -2003292409i32;
pub const WINCODEC_ERR_UNSUPPORTEDOPERATION: ::windows_sys::core::HRESULT = -2003292287i32;
pub const WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT: ::windows_sys::core::HRESULT = -2003292288i32;
pub const WINCODEC_ERR_UNSUPPORTEDVERSION: ::windows_sys::core::HRESULT = -2003292405i32;
pub const WINCODEC_ERR_VALUEOUTOFRANGE: ::windows_sys::core::HRESULT = -2003292411i32;
pub const WINCODEC_ERR_WIN32ERROR: ::windows_sys::core::HRESULT = -2003292268i32;
pub const WINCODEC_ERR_WRONGSTATE: ::windows_sys::core::HRESULT = -2003292412i32;
pub const WININET_E_ASYNC_THREAD_FAILED: ::windows_sys::core::HRESULT = -2147012849i32;
pub const WININET_E_BAD_AUTO_PROXY_SCRIPT: ::windows_sys::core::HRESULT = -2147012730i32;
pub const WININET_E_BAD_OPTION_LENGTH: ::windows_sys::core::HRESULT = -2147012886i32;
pub const WININET_E_BAD_REGISTRY_PARAMETER: ::windows_sys::core::HRESULT = -2147012874i32;
pub const WININET_E_CANNOT_CONNECT: ::windows_sys::core::HRESULT = -2147012867i32;
pub const WININET_E_CHG_POST_IS_NON_SECURE: ::windows_sys::core::HRESULT = -2147012854i32;
pub const WININET_E_CLIENT_AUTH_CERT_NEEDED: ::windows_sys::core::HRESULT = -2147012852i32;
pub const WININET_E_CLIENT_AUTH_NOT_SETUP: ::windows_sys::core::HRESULT = -2147012850i32;
pub const WININET_E_CONNECTION_ABORTED: ::windows_sys::core::HRESULT = -2147012866i32;
pub const WININET_E_CONNECTION_RESET: ::windows_sys::core::HRESULT = -2147012865i32;
pub const WININET_E_COOKIE_DECLINED: ::windows_sys::core::HRESULT = -2147012734i32;
pub const WININET_E_COOKIE_NEEDS_CONFIRMATION: ::windows_sys::core::HRESULT = -2147012735i32;
pub const WININET_E_DECODING_FAILED: ::windows_sys::core::HRESULT = -2147012721i32;
pub const WININET_E_DIALOG_PENDING: ::windows_sys::core::HRESULT = -2147012847i32;
pub const WININET_E_DISCONNECTED: ::windows_sys::core::HRESULT = -2147012733i32;
pub const WININET_E_DOWNLEVEL_SERVER: ::windows_sys::core::HRESULT = -2147012745i32;
pub const WININET_E_EXTENDED_ERROR: ::windows_sys::core::HRESULT = -2147012893i32;
pub const WININET_E_FAILED_DUETOSECURITYCHECK: ::windows_sys::core::HRESULT = -2147012725i32;
pub const WININET_E_FORCE_RETRY: ::windows_sys::core::HRESULT = -2147012864i32;
pub const WININET_E_HANDLE_EXISTS: ::windows_sys::core::HRESULT = -2147012860i32;
pub const WININET_E_HEADER_ALREADY_EXISTS: ::windows_sys::core::HRESULT = -2147012741i32;
pub const WININET_E_HEADER_NOT_FOUND: ::windows_sys::core::HRESULT = -2147012746i32;
pub const WININET_E_HTTPS_HTTP_SUBMIT_REDIR: ::windows_sys::core::HRESULT = -2147012844i32;
pub const WININET_E_HTTPS_TO_HTTP_ON_REDIR: ::windows_sys::core::HRESULT = -2147012856i32;
pub const WININET_E_HTTP_TO_HTTPS_ON_REDIR: ::windows_sys::core::HRESULT = -2147012857i32;
pub const WININET_E_INCORRECT_FORMAT: ::windows_sys::core::HRESULT = -2147012869i32;
pub const WININET_E_INCORRECT_HANDLE_STATE: ::windows_sys::core::HRESULT = -2147012877i32;
pub const WININET_E_INCORRECT_HANDLE_TYPE: ::windows_sys::core::HRESULT = -2147012878i32;
pub const WININET_E_INCORRECT_PASSWORD: ::windows_sys::core::HRESULT = -2147012882i32;
pub const WININET_E_INCORRECT_USER_NAME: ::windows_sys::core::HRESULT = -2147012883i32;
pub const WININET_E_INTERNAL_ERROR: ::windows_sys::core::HRESULT = -2147012892i32;
pub const WININET_E_INVALID_CA: ::windows_sys::core::HRESULT = -2147012851i32;
pub const WININET_E_INVALID_HEADER: ::windows_sys::core::HRESULT = -2147012743i32;
pub const WININET_E_INVALID_OPERATION: ::windows_sys::core::HRESULT = -2147012880i32;
pub const WININET_E_INVALID_OPTION: ::windows_sys::core::HRESULT = -2147012887i32;
pub const WININET_E_INVALID_PROXY_REQUEST: ::windows_sys::core::HRESULT = -2147012863i32;
pub const WININET_E_INVALID_QUERY_REQUEST: ::windows_sys::core::HRESULT = -2147012742i32;
pub const WININET_E_INVALID_SERVER_RESPONSE: ::windows_sys::core::HRESULT = -2147012744i32;
pub const WININET_E_INVALID_URL: ::windows_sys::core::HRESULT = -2147012891i32;
pub const WININET_E_ITEM_NOT_FOUND: ::windows_sys::core::HRESULT = -2147012868i32;
pub const WININET_E_LOGIN_FAILURE: ::windows_sys::core::HRESULT = -2147012881i32;
pub const WININET_E_LOGIN_FAILURE_DISPLAY_ENTITY_BODY: ::windows_sys::core::HRESULT = -2147012722i32;
pub const WININET_E_MIXED_SECURITY: ::windows_sys::core::HRESULT = -2147012855i32;
pub const WININET_E_NAME_NOT_RESOLVED: ::windows_sys::core::HRESULT = -2147012889i32;
pub const WININET_E_NEED_UI: ::windows_sys::core::HRESULT = -2147012862i32;
pub const WININET_E_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2147012724i32;
pub const WININET_E_NOT_PROXY_REQUEST: ::windows_sys::core::HRESULT = -2147012876i32;
pub const WININET_E_NOT_REDIRECTED: ::windows_sys::core::HRESULT = -2147012736i32;
pub const WININET_E_NO_CALLBACK: ::windows_sys::core::HRESULT = -2147012871i32;
pub const WININET_E_NO_CONTEXT: ::windows_sys::core::HRESULT = -2147012872i32;
pub const WININET_E_NO_DIRECT_ACCESS: ::windows_sys::core::HRESULT = -2147012873i32;
pub const WININET_E_NO_NEW_CONTAINERS: ::windows_sys::core::HRESULT = -2147012845i32;
pub const WININET_E_OPERATION_CANCELLED: ::windows_sys::core::HRESULT = -2147012879i32;
pub const WININET_E_OPTION_NOT_SETTABLE: ::windows_sys::core::HRESULT = -2147012885i32;
pub const WININET_E_OUT_OF_HANDLES: ::windows_sys::core::HRESULT = -2147012895i32;
pub const WININET_E_POST_IS_NON_SECURE: ::windows_sys::core::HRESULT = -2147012853i32;
pub const WININET_E_PROTOCOL_NOT_FOUND: ::windows_sys::core::HRESULT = -2147012888i32;
pub const WININET_E_PROXY_SERVER_UNREACHABLE: ::windows_sys::core::HRESULT = -2147012731i32;
pub const WININET_E_REDIRECT_FAILED: ::windows_sys::core::HRESULT = -2147012740i32;
pub const WININET_E_REDIRECT_NEEDS_CONFIRMATION: ::windows_sys::core::HRESULT = -2147012728i32;
pub const WININET_E_REDIRECT_SCHEME_CHANGE: ::windows_sys::core::HRESULT = -2147012848i32;
pub const WININET_E_REGISTRY_VALUE_NOT_FOUND: ::windows_sys::core::HRESULT = -2147012875i32;
pub const WININET_E_REQUEST_PENDING: ::windows_sys::core::HRESULT = -2147012870i32;
pub const WININET_E_RETRY_DIALOG: ::windows_sys::core::HRESULT = -2147012846i32;
pub const WININET_E_SECURITY_CHANNEL_ERROR: ::windows_sys::core::HRESULT = -2147012739i32;
pub const WININET_E_SEC_CERT_CN_INVALID: ::windows_sys::core::HRESULT = -2147012858i32;
pub const WININET_E_SEC_CERT_DATE_INVALID: ::windows_sys::core::HRESULT = -2147012859i32;
pub const WININET_E_SEC_CERT_ERRORS: ::windows_sys::core::HRESULT = -2147012841i32;
pub const WININET_E_SEC_CERT_REVOKED: ::windows_sys::core::HRESULT = -2147012726i32;
pub const WININET_E_SEC_CERT_REV_FAILED: ::windows_sys::core::HRESULT = -2147012839i32;
pub const WININET_E_SEC_INVALID_CERT: ::windows_sys::core::HRESULT = -2147012727i32;
pub const WININET_E_SERVER_UNREACHABLE: ::windows_sys::core::HRESULT = -2147012732i32;
pub const WININET_E_SHUTDOWN: ::windows_sys::core::HRESULT = -2147012884i32;
pub const WININET_E_TCPIP_NOT_INSTALLED: ::windows_sys::core::HRESULT = -2147012737i32;
pub const WININET_E_TIMEOUT: ::windows_sys::core::HRESULT = -2147012894i32;
pub const WININET_E_UNABLE_TO_CACHE_FILE: ::windows_sys::core::HRESULT = -2147012738i32;
pub const WININET_E_UNABLE_TO_DOWNLOAD_SCRIPT: ::windows_sys::core::HRESULT = -2147012729i32;
pub const WININET_E_UNRECOGNIZED_SCHEME: ::windows_sys::core::HRESULT = -2147012890i32;
pub const WINML_ERR_INVALID_BINDING: ::windows_sys::core::HRESULT = -2003828734i32;
pub const WINML_ERR_INVALID_DEVICE: ::windows_sys::core::HRESULT = -2003828735i32;
pub const WINML_ERR_SIZE_MISMATCH: ::windows_sys::core::HRESULT = -2003828732i32;
pub const WINML_ERR_VALUE_NOTFOUND: ::windows_sys::core::HRESULT = -2003828733i32;
pub const WINVER: u32 = 1280u32;
pub const WINVER_MAXVER: u32 = 2560u32;
pub type WPARAM = usize;
pub const WPN_E_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2143420137i32;
pub const WPN_E_ALL_URL_NOT_COMPLETED: ::windows_sys::core::HRESULT = -2143419901i32;
pub const WPN_E_CALLBACK_ALREADY_REGISTERED: ::windows_sys::core::HRESULT = -2143419898i32;
pub const WPN_E_CHANNEL_CLOSED: ::windows_sys::core::HRESULT = -2143420160i32;
pub const WPN_E_CHANNEL_REQUEST_NOT_COMPLETE: ::windows_sys::core::HRESULT = -2143420159i32;
pub const WPN_E_CLOUD_AUTH_UNAVAILABLE: ::windows_sys::core::HRESULT = -2143420134i32;
pub const WPN_E_CLOUD_DISABLED: ::windows_sys::core::HRESULT = -2143420151i32;
pub const WPN_E_CLOUD_DISABLED_FOR_APP: ::windows_sys::core::HRESULT = -2143419893i32;
pub const WPN_E_CLOUD_INCAPABLE: ::windows_sys::core::HRESULT = -2143420144i32;
pub const WPN_E_CLOUD_SERVICE_UNAVAILABLE: ::windows_sys::core::HRESULT = -2143420133i32;
pub const WPN_E_DEV_ID_SIZE: ::windows_sys::core::HRESULT = -2143420128i32;
pub const WPN_E_DUPLICATE_CHANNEL: ::windows_sys::core::HRESULT = -2143420156i32;
pub const WPN_E_DUPLICATE_REGISTRATION: ::windows_sys::core::HRESULT = -2143420136i32;
pub const WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION: ::windows_sys::core::HRESULT = -2143420132i32;
pub const WPN_E_GROUP_ALPHANUMERIC: ::windows_sys::core::HRESULT = -2143419894i32;
pub const WPN_E_GROUP_SIZE: ::windows_sys::core::HRESULT = -2143419895i32;
pub const WPN_E_IMAGE_NOT_FOUND_IN_CACHE: ::windows_sys::core::HRESULT = -2143419902i32;
pub const WPN_E_INTERNET_INCAPABLE: ::windows_sys::core::HRESULT = -2143420141i32;
pub const WPN_E_INVALID_APP: ::windows_sys::core::HRESULT = -2143420158i32;
pub const WPN_E_INVALID_CLOUD_IMAGE: ::windows_sys::core::HRESULT = -2143419900i32;
pub const WPN_E_INVALID_HTTP_STATUS_CODE: ::windows_sys::core::HRESULT = -2143420117i32;
pub const WPN_E_NOTIFICATION_DISABLED: ::windows_sys::core::HRESULT = -2143420143i32;
pub const WPN_E_NOTIFICATION_HIDDEN: ::windows_sys::core::HRESULT = -2143420153i32;
pub const WPN_E_NOTIFICATION_ID_MATCHED: ::windows_sys::core::HRESULT = -2143419899i32;
pub const WPN_E_NOTIFICATION_INCAPABLE: ::windows_sys::core::HRESULT = -2143420142i32;
pub const WPN_E_NOTIFICATION_NOT_POSTED: ::windows_sys::core::HRESULT = -2143420152i32;
pub const WPN_E_NOTIFICATION_POSTED: ::windows_sys::core::HRESULT = -2143420154i32;
pub const WPN_E_NOTIFICATION_SIZE: ::windows_sys::core::HRESULT = -2143420139i32;
pub const WPN_E_NOTIFICATION_TYPE_DISABLED: ::windows_sys::core::HRESULT = -2143420140i32;
pub const WPN_E_OUTSTANDING_CHANNEL_REQUEST: ::windows_sys::core::HRESULT = -2143420157i32;
pub const WPN_E_OUT_OF_SESSION: ::windows_sys::core::HRESULT = -2143419904i32;
pub const WPN_E_PLATFORM_UNAVAILABLE: ::windows_sys::core::HRESULT = -2143420155i32;
pub const WPN_E_POWER_SAVE: ::windows_sys::core::HRESULT = -2143419903i32;
pub const WPN_E_PUSH_NOTIFICATION_INCAPABLE: ::windows_sys::core::HRESULT = -2143420135i32;
pub const WPN_E_STORAGE_LOCKED: ::windows_sys::core::HRESULT = -2143419896i32;
pub const WPN_E_TAG_ALPHANUMERIC: ::windows_sys::core::HRESULT = -2143420118i32;
pub const WPN_E_TAG_SIZE: ::windows_sys::core::HRESULT = -2143420138i32;
pub const WPN_E_TOAST_NOTIFICATION_DROPPED: ::windows_sys::core::HRESULT = -2143419897i32;
pub const WS_E_ADDRESS_IN_USE: ::windows_sys::core::HRESULT = -2143485941i32;
pub const WS_E_ADDRESS_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2143485940i32;
pub const WS_E_ENDPOINT_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2143485947i32;
pub const WS_E_ENDPOINT_ACTION_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2143485935i32;
pub const WS_E_ENDPOINT_DISCONNECTED: ::windows_sys::core::HRESULT = -2143485932i32;
pub const WS_E_ENDPOINT_FAILURE: ::windows_sys::core::HRESULT = -2143485937i32;
pub const WS_E_ENDPOINT_FAULT_RECEIVED: ::windows_sys::core::HRESULT = -2143485933i32;
pub const WS_E_ENDPOINT_NOT_AVAILABLE: ::windows_sys::core::HRESULT = -2143485938i32;
pub const WS_E_ENDPOINT_NOT_FOUND: ::windows_sys::core::HRESULT = -2143485939i32;
pub const WS_E_ENDPOINT_TOO_BUSY: ::windows_sys::core::HRESULT = -2143485934i32;
pub const WS_E_ENDPOINT_UNREACHABLE: ::windows_sys::core::HRESULT = -2143485936i32;
pub const WS_E_INVALID_ENDPOINT_URL: ::windows_sys::core::HRESULT = -2143485920i32;
pub const WS_E_INVALID_FORMAT: ::windows_sys::core::HRESULT = -2143485952i32;
pub const WS_E_INVALID_OPERATION: ::windows_sys::core::HRESULT = -2143485949i32;
pub const WS_E_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2143485929i32;
pub const WS_E_NO_TRANSLATION_AVAILABLE: ::windows_sys::core::HRESULT = -2143485943i32;
pub const WS_E_NUMERIC_OVERFLOW: ::windows_sys::core::HRESULT = -2143485950i32;
pub const WS_E_OBJECT_FAULTED: ::windows_sys::core::HRESULT = -2143485951i32;
pub const WS_E_OPERATION_ABANDONED: ::windows_sys::core::HRESULT = -2143485945i32;
pub const WS_E_OPERATION_ABORTED: ::windows_sys::core::HRESULT = -2143485948i32;
pub const WS_E_OPERATION_TIMED_OUT: ::windows_sys::core::HRESULT = -2143485946i32;
pub const WS_E_OTHER: ::windows_sys::core::HRESULT = -2143485919i32;
pub const WS_E_PROXY_ACCESS_DENIED: ::windows_sys::core::HRESULT = -2143485930i32;
pub const WS_E_PROXY_FAILURE: ::windows_sys::core::HRESULT = -2143485931i32;
pub const WS_E_PROXY_REQUIRES_BASIC_AUTH: ::windows_sys::core::HRESULT = -2143485928i32;
pub const WS_E_PROXY_REQUIRES_DIGEST_AUTH: ::windows_sys::core::HRESULT = -2143485927i32;
pub const WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH: ::windows_sys::core::HRESULT = -2143485925i32;
pub const WS_E_PROXY_REQUIRES_NTLM_AUTH: ::windows_sys::core::HRESULT = -2143485926i32;
pub const WS_E_QUOTA_EXCEEDED: ::windows_sys::core::HRESULT = -2143485944i32;
pub const WS_E_SECURITY_SYSTEM_FAILURE: ::windows_sys::core::HRESULT = -2143485917i32;
pub const WS_E_SECURITY_TOKEN_EXPIRED: ::windows_sys::core::HRESULT = -2143485918i32;
pub const WS_E_SECURITY_VERIFICATION_FAILURE: ::windows_sys::core::HRESULT = -2143485942i32;
pub const WS_E_SERVER_REQUIRES_BASIC_AUTH: ::windows_sys::core::HRESULT = -2143485924i32;
pub const WS_E_SERVER_REQUIRES_DIGEST_AUTH: ::windows_sys::core::HRESULT = -2143485923i32;
pub const WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH: ::windows_sys::core::HRESULT = -2143485921i32;
pub const WS_E_SERVER_REQUIRES_NTLM_AUTH: ::windows_sys::core::HRESULT = -2143485922i32;
pub const WS_S_ASYNC: ::windows_sys::core::HRESULT = 3997696i32;
pub const WS_S_END: ::windows_sys::core::HRESULT = 3997697i32;
pub const XACT_E_ABORTED: ::windows_sys::core::HRESULT = -2147168231i32;
pub const XACT_E_ABORTING: ::windows_sys::core::HRESULT = -2147168215i32;
pub const XACT_E_ALREADYINPROGRESS: ::windows_sys::core::HRESULT = -2147168232i32;
pub const XACT_E_ALREADYOTHERSINGLEPHASE: ::windows_sys::core::HRESULT = -2147168256i32;
pub const XACT_E_CANTRETAIN: ::windows_sys::core::HRESULT = -2147168255i32;
pub const XACT_E_CLERKEXISTS: ::windows_sys::core::HRESULT = -2147168127i32;
pub const XACT_E_CLERKNOTFOUND: ::windows_sys::core::HRESULT = -2147168128i32;
pub const XACT_E_COMMITFAILED: ::windows_sys::core::HRESULT = -2147168254i32;
pub const XACT_E_COMMITPREVENTED: ::windows_sys::core::HRESULT = -2147168253i32;
pub const XACT_E_CONNECTION_DENIED: ::windows_sys::core::HRESULT = -2147168227i32;
pub const XACT_E_CONNECTION_DOWN: ::windows_sys::core::HRESULT = -2147168228i32;
pub const XACT_E_DEST_TMNOTAVAILABLE: ::windows_sys::core::HRESULT = -2147168222i32;
pub const XACT_E_FIRST: u32 = 2147799040u32;
pub const XACT_E_HEURISTICABORT: ::windows_sys::core::HRESULT = -2147168252i32;
pub const XACT_E_HEURISTICCOMMIT: ::windows_sys::core::HRESULT = -2147168251i32;
pub const XACT_E_HEURISTICDAMAGE: ::windows_sys::core::HRESULT = -2147168250i32;
pub const XACT_E_HEURISTICDANGER: ::windows_sys::core::HRESULT = -2147168249i32;
pub const XACT_E_INDOUBT: ::windows_sys::core::HRESULT = -2147168234i32;
pub const XACT_E_INVALIDCOOKIE: ::windows_sys::core::HRESULT = -2147168235i32;
pub const XACT_E_INVALIDLSN: ::windows_sys::core::HRESULT = -2147168124i32;
pub const XACT_E_ISOLATIONLEVEL: ::windows_sys::core::HRESULT = -2147168248i32;
pub const XACT_E_LAST: u32 = 2147799083u32;
pub const XACT_E_LOGFULL: ::windows_sys::core::HRESULT = -2147168230i32;
pub const XACT_E_LU_TX_DISABLED: ::windows_sys::core::HRESULT = -2147168212i32;
pub const XACT_E_NETWORK_TX_DISABLED: ::windows_sys::core::HRESULT = -2147168220i32;
pub const XACT_E_NOASYNC: ::windows_sys::core::HRESULT = -2147168247i32;
pub const XACT_E_NOENLIST: ::windows_sys::core::HRESULT = -2147168246i32;
pub const XACT_E_NOIMPORTOBJECT: ::windows_sys::core::HRESULT = -2147168236i32;
pub const XACT_E_NOISORETAIN: ::windows_sys::core::HRESULT = -2147168245i32;
pub const XACT_E_NORESOURCE: ::windows_sys::core::HRESULT = -2147168244i32;
pub const XACT_E_NOTCURRENT: ::windows_sys::core::HRESULT = -2147168243i32;
pub const XACT_E_NOTIMEOUT: ::windows_sys::core::HRESULT = -2147168233i32;
pub const XACT_E_NOTRANSACTION: ::windows_sys::core::HRESULT = -2147168242i32;
pub const XACT_E_NOTSUPPORTED: ::windows_sys::core::HRESULT = -2147168241i32;
pub const XACT_E_PARTNER_NETWORK_TX_DISABLED: ::windows_sys::core::HRESULT = -2147168219i32;
pub const XACT_E_PULL_COMM_FAILURE: ::windows_sys::core::HRESULT = -2147168213i32;
pub const XACT_E_PUSH_COMM_FAILURE: ::windows_sys::core::HRESULT = -2147168214i32;
pub const XACT_E_RECOVERYINPROGRESS: ::windows_sys::core::HRESULT = -2147168126i32;
pub const XACT_E_REENLISTTIMEOUT: ::windows_sys::core::HRESULT = -2147168226i32;
pub const XACT_E_REPLAYREQUEST: ::windows_sys::core::HRESULT = -2147168123i32;
pub const XACT_E_TIP_CONNECT_FAILED: ::windows_sys::core::HRESULT = -2147168225i32;
pub const XACT_E_TIP_DISABLED: ::windows_sys::core::HRESULT = -2147168221i32;
pub const XACT_E_TIP_PROTOCOL_ERROR: ::windows_sys::core::HRESULT = -2147168224i32;
pub const XACT_E_TIP_PULL_FAILED: ::windows_sys::core::HRESULT = -2147168223i32;
pub const XACT_E_TMNOTAVAILABLE: ::windows_sys::core::HRESULT = -2147168229i32;
pub const XACT_E_TRANSACTIONCLOSED: ::windows_sys::core::HRESULT = -2147168125i32;
pub const XACT_E_UNABLE_TO_LOAD_DTC_PROXY: ::windows_sys::core::HRESULT = -2147168216i32;
pub const XACT_E_UNABLE_TO_READ_DTC_CONFIG: ::windows_sys::core::HRESULT = -2147168217i32;
pub const XACT_E_UNKNOWNRMGRID: ::windows_sys::core::HRESULT = -2147168240i32;
pub const XACT_E_WRONGSTATE: ::windows_sys::core::HRESULT = -2147168239i32;
pub const XACT_E_WRONGUOW: ::windows_sys::core::HRESULT = -2147168238i32;
pub const XACT_E_XA_TX_DISABLED: ::windows_sys::core::HRESULT = -2147168218i32;
pub const XACT_E_XTIONEXISTS: ::windows_sys::core::HRESULT = -2147168237i32;
pub const XACT_S_ABORTING: ::windows_sys::core::HRESULT = 315400i32;
pub const XACT_S_ALLNORETAIN: ::windows_sys::core::HRESULT = 315399i32;
pub const XACT_S_ASYNC: ::windows_sys::core::HRESULT = 315392i32;
pub const XACT_S_DEFECT: ::windows_sys::core::HRESULT = 315393i32;
pub const XACT_S_FIRST: u32 = 315392u32;
pub const XACT_S_LAST: u32 = 315408u32;
pub const XACT_S_LASTRESOURCEMANAGER: ::windows_sys::core::HRESULT = 315408i32;
pub const XACT_S_LOCALLY_OK: ::windows_sys::core::HRESULT = 315402i32;
pub const XACT_S_MADECHANGESCONTENT: ::windows_sys::core::HRESULT = 315397i32;
pub const XACT_S_MADECHANGESINFORM: ::windows_sys::core::HRESULT = 315398i32;
pub const XACT_S_OKINFORM: ::windows_sys::core::HRESULT = 315396i32;
pub const XACT_S_READONLY: ::windows_sys::core::HRESULT = 315394i32;
pub const XACT_S_SINGLEPHASE: ::windows_sys::core::HRESULT = 315401i32;
pub const XACT_S_SOMENORETAIN: ::windows_sys::core::HRESULT = 315395i32;
pub const XENROLL_E_CANNOT_ADD_ROOT_CERT: ::windows_sys::core::HRESULT = -2146873343i32;
pub const XENROLL_E_KEYSPEC_SMIME_MISMATCH: ::windows_sys::core::HRESULT = -2146873339i32;
pub const XENROLL_E_KEY_NOT_EXPORTABLE: ::windows_sys::core::HRESULT = -2146873344i32;
pub const XENROLL_E_RESPONSE_KA_HASH_MISMATCH: ::windows_sys::core::HRESULT = -2146873340i32;
pub const XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND: ::windows_sys::core::HRESULT = -2146873342i32;
pub const XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH: ::windows_sys::core::HRESULT = -2146873341i32;
pub const _WIN32_IE_MAXVER: u32 = 2560u32;
pub const _WIN32_MAXVER: u32 = 2560u32;
pub const _WIN32_WINDOWS_MAXVER: u32 = 2560u32;
pub const _WIN32_WINNT_MAXVER: u32 = 2560u32;
|
use std::{
ffi::{OsStr, OsString},
os::windows::ffi::{OsStrExt, OsStringExt},
};
pub trait ToWideString {
fn to_wide(&self) -> Vec<u16>;
fn to_wides_with_nul(&self) -> Vec<u16>;
}
impl<T> ToWideString for T
where
T: AsRef<OsStr>,
{
fn to_wide(&self) -> Vec<u16> {
self.as_ref().encode_wide().collect()
}
fn to_wides_with_nul(&self) -> Vec<u16> {
self.as_ref().encode_wide().chain(Some(0)).collect()
}
}
pub trait FromWideString
where
Self: Sized,
{
fn from_wides_until_nul(wide: &[u16]) -> Self;
}
impl FromWideString for OsString {
fn from_wides_until_nul(wide: &[u16]) -> OsString {
let len = wide.iter().take_while(|&&c| c != 0).count();
OsString::from_wide(&wide[..len])
}
}
|
use std::ffi::CString;
use cql_bindgen::CassCollection as _CassCollection;
use cql_bindgen::cass_collection_new;
use cql_bindgen::cass_collection_free;
use cql_bindgen::cass_collection_append_int32;
use cql_bindgen::cass_collection_append_int64;
use cql_bindgen::cass_collection_append_float;
use cql_bindgen::cass_collection_append_double;
use cql_bindgen::cass_collection_append_bool;
use cql_bindgen::cass_collection_append_bytes;
use cql_bindgen::cass_collection_append_uuid;
use cql_bindgen::cass_collection_append_string;
use cql_bindgen::cass_collection_append_inet;
use cql_bindgen::CassIterator as _CassIterator;
use cql_bindgen::cass_iterator_free;
use cql_bindgen::cass_iterator_type;
use cql_bindgen::cass_iterator_next;
use cql_bindgen::cass_iterator_get_value;
//use cql_bindgen::cass_iterator_fields_from_schema_meta;
use cql_bindgen::cass_iterator_get_schema_meta;
use cql_bindgen::cass_iterator_get_schema_meta_field;
use cql_ffi::udt::CassUserType;
use cql_ffi::value::CassValue;
use cql_ffi::cass_iterator::CassIteratorType;
use cql_ffi::schema::CassSchemaMetaField;
use cql_ffi::schema::CassSchemaMeta;//use cql_bindgen::cass_collection_append_decimal;
use cql_ffi::collection::collection::CassCollectionType;
use cql_ffi::error::CassError;
use cql_ffi::uuid::CassUuid;
use cql_ffi::inet::CassInet;
use cql_bindgen::cass_collection_append_user_type;
pub struct CassSet(pub *mut _CassCollection);
impl Drop for CassSet {
fn drop(&mut self) {
self.free()
}
}
impl CassSet {
pub fn new(item_count: u64) -> CassSet {
unsafe {
CassSet(cass_collection_new(CassCollectionType::SET as u32, item_count))
}
}
fn free(&mut self) {
unsafe {
cass_collection_free(self.0)
}
}
pub fn append_int32(&mut self, value: i32) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_int32(self.0,value)).wrap(self)
}
}
pub fn append_int64(&mut self, value: i64) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_int64(self.0,value)).wrap(self)
}
}
pub fn append_float(&mut self, value: f32) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_float(self.0,value)).wrap(self)
}
}
pub fn append_double(&mut self, value: f64) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_double(self.0,value)).wrap(self)
}
}
pub fn append_bool(&mut self, value: bool) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_bool(self.0,if value {1} else {0})).wrap(self)
}
}
pub fn append_string(&mut self, value: &str) -> Result<&Self, CassError> {
unsafe {
let cstr = CString::new(value).unwrap();
let result = cass_collection_append_string(self.0, cstr.as_ptr());
CassError::build(result).wrap(self)
}
}
pub fn append_bytes(&mut self, value: Vec<u8>) -> Result<&Self, CassError> {
unsafe {
let bytes = cass_collection_append_bytes(self.0,
value[..].as_ptr(),
value.len() as u64);
CassError::build(bytes).wrap(self)
}
}
pub fn append_uuid(&mut self, value: CassUuid) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_uuid(self.0,value.0)).wrap(self)
}
}
pub fn append_inet(&mut self, value: CassInet) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_inet(self.0,value.0)).wrap(self)
}
}
pub fn append_user_type(&mut self, value: CassUserType) -> Result<&Self, CassError> {
unsafe {
CassError::build(cass_collection_append_user_type(self.0,value.0)).wrap(self)
}
}
// pub fn append_decimal(&mut self, value: String) -> Result<&Self,CassError> {unsafe{
// CassError::build(cass_collection_append_decimal(self.0,value)).wrap(self)
// }}
}
pub struct SetIterator(pub *mut _CassIterator);
//impl<'a> Display for &'a SetIterator {
// fn fmt(&self, f:&mut Formatter) -> fmt::Result {
// for item in self {
// try!(write!(f, "{}\t", item));
// }
// Ok(())
// }
//}
impl Drop for SetIterator {
fn drop(&mut self) {
unsafe {
cass_iterator_free(self.0)
}
}
}
impl Iterator for SetIterator {
type Item = CassValue;
fn next(&mut self) -> Option<<Self as Iterator>::Item> {
unsafe {
match cass_iterator_next(self.0) {
0 => None,
_ => Some(self.get_value()),
}
}
}
}
impl SetIterator {
pub unsafe fn get_type(&mut self) -> CassIteratorType {
CassIteratorType::new(cass_iterator_type(self.0))
}
//~ unsafe fn get_column(&mut self) -> CassColumn {CassColumn(cass_iterator_get_column(self.0))}
pub fn get_value(&mut self) -> CassValue {
unsafe {
CassValue::new(cass_iterator_get_value(self.0))
}
}
pub fn get_schema_meta(&mut self) -> CassSchemaMeta {
unsafe {
CassSchemaMeta(cass_iterator_get_schema_meta(self.0))
}
}
pub fn get_schema_meta_field(&mut self) -> CassSchemaMetaField {
unsafe {
CassSchemaMetaField(cass_iterator_get_schema_meta_field(&mut *self.0))
}
}
}
|
// This file is part of linux-epoll. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-epoll/master/COPYRIGHT. No part of linux-epoll, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2019 The developers of linux-epoll. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-epoll/master/COPYRIGHT.
/// A Name consists of one or more labels.
pub(crate) struct Name;
impl Name
{
/// The smallest Name consists of one label, which is the Root label, which is one byte.
pub(crate) const MinimumSize: usize = 1;
#[inline(always)]
pub(crate) fn parse_without_compression_but_register_labels_for_compression<'message>(&'message mut self, parsed_labels: &mut ParsedLabels, end_of_message_pointer: usize) -> Result<(WithoutCompressionParsedName<'message>, usize), DnsProtocolError>
{
parsed_labels.parse_without_compression_but_register_labels_for_compression(self.as_usize_pointer_mut(), end_of_message_pointer)
}
#[inline(always)]
pub(crate) fn parse_with_compression<'message>(&'message mut self, parsed_labels: &mut ParsedLabels, end_of_message_pointer: usize) -> Result<(WithCompressionParsedName<'message>, usize), DnsProtocolError>
{
parsed_labels.parse_name(self.as_usize_pointer_mut(), end_of_message_pointer)
}
#[inline(always)]
pub(crate) fn maximum_for_end_of_name_pointer(start_of_name_pointer: usize, end_of_data_section_containing_name_pointer: usize) -> Result<usize, DnsProtocolError>
{
let maximum_potential_name_length = Self::maximum_potential_name_length(start_of_name_pointer, end_of_data_section_containing_name_pointer)?;
let end_of_name_data_pointer = start_of_name_pointer + maximum_potential_name_length;
Ok(end_of_name_data_pointer)
}
#[inline(always)]
fn maximum_potential_name_length(start_of_name_pointer: usize, end_of_data_section_containing_name_pointer: usize) -> Result<usize, DnsProtocolError>
{
debug_assert!(end_of_data_section_containing_name_pointer >= start_of_name_pointer, "end_of_data_section_containing_name_pointer occurs before start_of_name_pointer");
if unlikely!(start_of_name_pointer == end_of_data_section_containing_name_pointer)
{
return Err(NameIsEmpty)
}
let unconstrained_maximum_potential_name_length = end_of_data_section_containing_name_pointer - start_of_name_pointer;
const MaximumLengthOfName: usize = 255;
Ok(min(unconstrained_maximum_potential_name_length, MaximumLengthOfName))
}
}
|
pub mod github;
pub mod openvsx;
pub mod vscodemarketplace;
use pulldown_cmark::{Event, Options, Parser, Tag};
use tempfile::Builder;
use color_eyre::{
eyre::{eyre, Report, Result, WrapErr},
Section,
};
use std::{fs::File, io::copy, process::Command};
pub async fn get_hash(url: &str) -> Result<String> {
// Create a temporary directoty inside of the directory returned by `std::env::temp_dir()`
let tmp_dir = Builder::new().prefix(env!("CARGO_PKG_NAME")).tempdir()?;
let response = reqwest::get(url).await?;
let (mut dest_file, dest_path) = {
let fname = response
.url()
.path_segments()
.and_then(|segments| segments.last())
.and_then(|name| if name.is_empty() { None } else { Some(name) })
.unwrap_or("tmp.vsix");
let fname = tmp_dir.path().join(fname);
(File::create(&fname)?, fname)
};
let content = response.text().await?;
copy(&mut content.as_bytes(), &mut dest_file)?;
let nix_hash_process = Command::new("nix-hash")
.arg("--flat")
.arg("--base32")
.arg("--type")
.arg("sha256")
.arg(&dest_path.to_str().unwrap())
.output()
.unwrap();
let hash = String::from_utf8(nix_hash_process.stdout)?;
// By closing the `TempDir` explicitly, we can check that it has
// been deleted successfully. If we don't close it explicitly,
// the directory will still be deleted when `dir` goes out
// of scope, but we won't know whether deleting the directory
// succeeded.
//drop(input_file);
tmp_dir.close()?;
Ok(hash)
}
#[derive(PartialEq)]
enum ProgressLongDesc {
LookingForMainHeader,
FoundMainHeader,
ReadingText,
Done,
}
pub async fn get_long_description(url: String) -> Result<String, Report> {
let resp = reqwest::get(url).await?;
let status = resp.status();
if status.is_success() {
let markdown = resp.text().await?;
let mut long_description = String::new();
let mut progress = ProgressLongDesc::LookingForMainHeader;
let parser = Parser::new_ext(&markdown, Options::empty());
for event in parser {
match event {
Event::Start(inner) => match inner {
Tag::Heading(_n) => {
if progress == ProgressLongDesc::LookingForMainHeader {
progress = ProgressLongDesc::FoundMainHeader;
} else if progress == ProgressLongDesc::ReadingText {
progress = ProgressLongDesc::Done;
}
}
Tag::Paragraph => {
if progress == ProgressLongDesc::FoundMainHeader {
progress = ProgressLongDesc::ReadingText;
}
}
_ => (),
},
Event::Text(cow_str) => {
if progress == ProgressLongDesc::ReadingText {
long_description.push_str(cow_str.into_string().as_str())
}
}
Event::SoftBreak => {
if progress == ProgressLongDesc::ReadingText {
long_description.push('\n')
}
}
Event::End(inner) => {
if inner == Tag::Paragraph && progress == ProgressLongDesc::ReadingText {
progress = ProgressLongDesc::Done;
}
}
_ => (),
}
if progress == ProgressLongDesc::Done {
break;
}
}
Ok(long_description)
} else if let Some(reason) = status.canonical_reason() {
Err(eyre!(
"Recieved {}, while attempting to get meta.longDescription.",
reason
))
} else {
Err(eyre!("{}", status.to_string()))
}
}
|
use crate::error::{ErrMode, ErrorKind, Needed, ParserError};
use crate::stream::Stream;
use crate::trace::trace;
use crate::*;
/// Return the remaining input.
///
/// # Example
///
/// ```rust
/// # use winnow::prelude::*;
/// # use winnow::error::ErrorKind;
/// # use winnow::error::InputError;
/// use winnow::combinator::rest;
/// assert_eq!(rest::<_,InputError<_>>.parse_peek("abc"), Ok(("", "abc")));
/// assert_eq!(rest::<_,InputError<_>>.parse_peek(""), Ok(("", "")));
/// ```
#[inline]
pub fn rest<I, E: ParserError<I>>(input: &mut I) -> PResult<<I as Stream>::Slice, E>
where
I: Stream,
{
trace("rest", move |input: &mut I| Ok(input.finish())).parse_next(input)
}
/// Return the length of the remaining input.
///
/// Note: this does not advance the [`Stream`]
///
/// # Example
///
/// ```rust
/// # use winnow::prelude::*;
/// # use winnow::error::ErrorKind;
/// # use winnow::error::InputError;
/// use winnow::combinator::rest_len;
/// assert_eq!(rest_len::<_,InputError<_>>.parse_peek("abc"), Ok(("abc", 3)));
/// assert_eq!(rest_len::<_,InputError<_>>.parse_peek(""), Ok(("", 0)));
/// ```
#[inline]
pub fn rest_len<I, E: ParserError<I>>(input: &mut I) -> PResult<usize, E>
where
I: Stream,
{
trace("rest_len", move |input: &mut I| {
let len = input.eof_offset();
Ok(len)
})
.parse_next(input)
}
/// Apply a [`Parser`], producing `None` on [`ErrMode::Backtrack`].
///
/// To chain an error up, see [`cut_err`].
///
/// # Example
///
/// ```rust
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError};
/// # use winnow::prelude::*;
/// use winnow::combinator::opt;
/// use winnow::ascii::alpha1;
/// # fn main() {
///
/// fn parser(i: &str) -> IResult<&str, Option<&str>> {
/// opt(alpha1).parse_peek(i)
/// }
///
/// assert_eq!(parser("abcd;"), Ok((";", Some("abcd"))));
/// assert_eq!(parser("123;"), Ok(("123;", None)));
/// # }
/// ```
pub fn opt<I: Stream, O, E: ParserError<I>, F>(mut f: F) -> impl Parser<I, Option<O>, E>
where
F: Parser<I, O, E>,
{
trace("opt", move |input: &mut I| {
let start = input.checkpoint();
match f.parse_next(input) {
Ok(o) => Ok(Some(o)),
Err(ErrMode::Backtrack(_)) => {
input.reset(start);
Ok(None)
}
Err(e) => Err(e),
}
})
}
/// Calls the parser if the condition is met.
///
/// # Example
///
/// ```rust
/// # use winnow::{error::ErrMode, error::{InputError, ErrorKind}, IResult};
/// # use winnow::prelude::*;
/// use winnow::combinator::cond;
/// use winnow::ascii::alpha1;
/// # fn main() {
///
/// fn parser(b: bool, i: &str) -> IResult<&str, Option<&str>> {
/// cond(b, alpha1).parse_peek(i)
/// }
///
/// assert_eq!(parser(true, "abcd;"), Ok((";", Some("abcd"))));
/// assert_eq!(parser(false, "abcd;"), Ok(("abcd;", None)));
/// assert_eq!(parser(true, "123;"), Err(ErrMode::Backtrack(InputError::new("123;", ErrorKind::Slice))));
/// assert_eq!(parser(false, "123;"), Ok(("123;", None)));
/// # }
/// ```
pub fn cond<I, O, E: ParserError<I>, F>(b: bool, mut f: F) -> impl Parser<I, Option<O>, E>
where
I: Stream,
F: Parser<I, O, E>,
{
trace("cond", move |input: &mut I| {
if b {
f.parse_next(input).map(Some)
} else {
Ok(None)
}
})
}
/// Tries to apply its parser without consuming the input.
///
/// # Example
///
/// ```rust
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError, IResult};
/// # use winnow::prelude::*;
/// use winnow::combinator::peek;
/// use winnow::ascii::alpha1;
/// # fn main() {
///
/// let mut parser = peek(alpha1);
///
/// assert_eq!(parser.parse_peek("abcd;"), Ok(("abcd;", "abcd")));
/// assert_eq!(parser.parse_peek("123;"), Err(ErrMode::Backtrack(InputError::new("123;", ErrorKind::Slice))));
/// # }
/// ```
#[doc(alias = "look_ahead")]
#[doc(alias = "rewind")]
pub fn peek<I: Stream, O, E: ParserError<I>, F>(mut f: F) -> impl Parser<I, O, E>
where
F: Parser<I, O, E>,
{
trace("peek", move |input: &mut I| {
let start = input.checkpoint();
let res = f.parse_next(input);
input.reset(start);
res
})
}
/// Match the end of the [`Stream`]
///
/// Otherwise, it will error.
///
/// # Example
///
/// ```rust
/// # use std::str;
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError};
/// # use winnow::combinator::eof;
/// # use winnow::prelude::*;
///
/// let mut parser = eof;
/// assert_eq!(parser.parse_peek("abc"), Err(ErrMode::Backtrack(InputError::new("abc", ErrorKind::Eof))));
/// assert_eq!(parser.parse_peek(""), Ok(("", "")));
/// ```
#[doc(alias = "end")]
#[doc(alias = "eoi")]
pub fn eof<I, E: ParserError<I>>(input: &mut I) -> PResult<<I as Stream>::Slice, E>
where
I: Stream,
{
trace("eof", move |input: &mut I| {
if input.eof_offset() == 0 {
Ok(input.next_slice(0))
} else {
Err(ErrMode::from_error_kind(input, ErrorKind::Eof))
}
})
.parse_next(input)
}
/// Succeeds if the child parser returns an error.
///
/// **Note:** This does not advance the [`Stream`]
///
/// # Example
///
/// ```rust
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError, IResult};
/// # use winnow::prelude::*;
/// use winnow::combinator::not;
/// use winnow::ascii::alpha1;
/// # fn main() {
///
/// let mut parser = not(alpha1);
///
/// assert_eq!(parser.parse_peek("123"), Ok(("123", ())));
/// assert_eq!(parser.parse_peek("abcd"), Err(ErrMode::Backtrack(InputError::new("abcd", ErrorKind::Not))));
/// # }
/// ```
pub fn not<I: Stream, O, E: ParserError<I>, F>(mut parser: F) -> impl Parser<I, (), E>
where
F: Parser<I, O, E>,
{
trace("not", move |input: &mut I| {
let start = input.checkpoint();
let res = parser.parse_next(input);
input.reset(start);
match res {
Ok(_) => Err(ErrMode::from_error_kind(input, ErrorKind::Not)),
Err(ErrMode::Backtrack(_)) => Ok(()),
Err(e) => Err(e),
}
})
}
/// Transforms an [`ErrMode::Backtrack`] (recoverable) to [`ErrMode::Cut`] (unrecoverable)
///
/// This commits the parse result, preventing alternative branch paths like with
/// [`winnow::combinator::alt`][crate::combinator::alt].
///
/// # Example
///
/// Without `cut_err`:
/// ```rust
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError};
/// # use winnow::token::one_of;
/// # use winnow::ascii::digit1;
/// # use winnow::combinator::rest;
/// # use winnow::combinator::alt;
/// # use winnow::combinator::preceded;
/// # use winnow::prelude::*;
/// # fn main() {
///
/// fn parser(input: &str) -> IResult<&str, &str> {
/// alt((
/// preceded(one_of(['+', '-']), digit1),
/// rest
/// )).parse_peek(input)
/// }
///
/// assert_eq!(parser("+10 ab"), Ok((" ab", "10")));
/// assert_eq!(parser("ab"), Ok(("", "ab")));
/// assert_eq!(parser("+"), Ok(("", "+")));
/// # }
/// ```
///
/// With `cut_err`:
/// ```rust
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError};
/// # use winnow::prelude::*;
/// # use winnow::token::one_of;
/// # use winnow::ascii::digit1;
/// # use winnow::combinator::rest;
/// # use winnow::combinator::alt;
/// # use winnow::combinator::preceded;
/// use winnow::combinator::cut_err;
/// # fn main() {
///
/// fn parser(input: &str) -> IResult<&str, &str> {
/// alt((
/// preceded(one_of(['+', '-']), cut_err(digit1)),
/// rest
/// )).parse_peek(input)
/// }
///
/// assert_eq!(parser("+10 ab"), Ok((" ab", "10")));
/// assert_eq!(parser("ab"), Ok(("", "ab")));
/// assert_eq!(parser("+"), Err(ErrMode::Cut(InputError::new("", ErrorKind::Slice ))));
/// # }
/// ```
pub fn cut_err<I, O, E: ParserError<I>, F>(mut parser: F) -> impl Parser<I, O, E>
where
I: Stream,
F: Parser<I, O, E>,
{
trace("cut_err", move |input: &mut I| {
parser.parse_next(input).map_err(|e| e.cut())
})
}
/// Transforms an [`ErrMode::Cut`] (unrecoverable) to [`ErrMode::Backtrack`] (recoverable)
///
/// This attempts the parse, allowing other parsers to be tried on failure, like with
/// [`winnow::combinator::alt`][crate::combinator::alt].
pub fn backtrack_err<I, O, E: ParserError<I>, F>(mut parser: F) -> impl Parser<I, O, E>
where
I: Stream,
F: Parser<I, O, E>,
{
trace("backtrack_err", move |input: &mut I| {
parser.parse_next(input).map_err(|e| e.backtrack())
})
}
/// A placeholder for a not-yet-implemented [`Parser`]
///
/// This is analogous to the [`todo!`] macro and helps with prototyping.
///
/// # Panic
///
/// This will panic when parsing
///
/// # Example
///
/// ```rust
/// # use winnow::prelude::*;
/// # use winnow::combinator::todo;
///
/// fn parser(input: &mut &str) -> PResult<u64> {
/// todo(input)
/// }
/// ```
#[track_caller]
pub fn todo<I, O, E>(input: &mut I) -> PResult<O, E>
where
I: Stream,
{
#![allow(clippy::todo)]
trace("todo", move |_input: &mut I| todo!("unimplemented parse")).parse_next(input)
}
/// Repeats the embedded parser, lazily returning the results
///
/// Call the iterator's [`ParserIterator::finish`] method to get the remaining input if successful,
/// or the error value if we encountered an error.
///
/// On [`ErrMode::Backtrack`], iteration will stop. To instead chain an error up, see [`cut_err`].
///
/// # Example
///
/// ```rust
/// use winnow::{combinator::iterator, IResult, token::tag, ascii::alpha1, combinator::terminated};
/// use std::collections::HashMap;
///
/// let data = "abc|defg|hijkl|mnopqr|123";
/// let mut it = iterator(data, terminated(alpha1, "|"));
///
/// let parsed = it.map(|v| (v, v.len())).collect::<HashMap<_,_>>();
/// let res: IResult<_,_> = it.finish();
///
/// assert_eq!(parsed, [("abc", 3usize), ("defg", 4), ("hijkl", 5), ("mnopqr", 6)].iter().cloned().collect());
/// assert_eq!(res, Ok(("123", ())));
/// ```
pub fn iterator<I, O, E, F>(input: I, parser: F) -> ParserIterator<F, I, O, E>
where
F: Parser<I, O, E>,
I: Stream,
E: ParserError<I>,
{
ParserIterator {
parser,
input,
state: Some(State::Running),
o: Default::default(),
}
}
/// Main structure associated to [`iterator`].
pub struct ParserIterator<F, I, O, E>
where
F: Parser<I, O, E>,
I: Stream,
{
parser: F,
input: I,
state: Option<State<E>>,
o: core::marker::PhantomData<O>,
}
impl<F, I, O, E> ParserIterator<F, I, O, E>
where
F: Parser<I, O, E>,
I: Stream,
{
/// Returns the remaining input if parsing was successful, or the error if we encountered an error.
pub fn finish(mut self) -> PResult<(I, ()), E> {
match self.state.take().unwrap() {
State::Running | State::Done => Ok((self.input, ())),
State::Failure(e) => Err(ErrMode::Cut(e)),
State::Incomplete(i) => Err(ErrMode::Incomplete(i)),
}
}
}
impl<'a, F, I, O, E> core::iter::Iterator for &'a mut ParserIterator<F, I, O, E>
where
F: Parser<I, O, E>,
I: Stream,
{
type Item = O;
fn next(&mut self) -> Option<Self::Item> {
if let State::Running = self.state.take().unwrap() {
let start = self.input.checkpoint();
match self.parser.parse_next(&mut self.input) {
Ok(o) => {
self.state = Some(State::Running);
Some(o)
}
Err(ErrMode::Backtrack(_)) => {
self.input.reset(start);
self.state = Some(State::Done);
None
}
Err(ErrMode::Cut(e)) => {
self.state = Some(State::Failure(e));
None
}
Err(ErrMode::Incomplete(i)) => {
self.state = Some(State::Incomplete(i));
None
}
}
} else {
None
}
}
}
enum State<E> {
Running,
Done,
Failure(E),
Incomplete(Needed),
}
/// Always succeeds with given value without consuming any input.
///
/// For example, it can be used as the last alternative in `alt` to
/// specify the default case.
///
/// **Note:** This never advances the [`Stream`]
///
/// # Example
///
/// ```rust
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError};
/// # use winnow::prelude::*;
/// use winnow::combinator::alt;
/// use winnow::combinator::success;
///
/// let mut parser = success::<_,_,InputError<_>>(10);
/// assert_eq!(parser.parse_peek("xyz"), Ok(("xyz", 10)));
///
/// fn sign(input: &str) -> IResult<&str, isize> {
/// alt((
/// '-'.value(-1),
/// '+'.value(1),
/// success::<_,_,InputError<_>>(1)
/// )).parse_peek(input)
/// }
/// assert_eq!(sign("+10"), Ok(("10", 1)));
/// assert_eq!(sign("-10"), Ok(("10", -1)));
/// assert_eq!(sign("10"), Ok(("10", 1)));
/// ```
#[doc(alias = "value")]
#[doc(alias = "empty")]
pub fn success<I: Stream, O: Clone, E: ParserError<I>>(val: O) -> impl Parser<I, O, E> {
trace("success", move |_input: &mut I| Ok(val.clone()))
}
/// A parser which always fails.
///
/// For example, it can be used as the last alternative in `alt` to
/// control the error message given.
///
/// # Example
///
/// ```rust
/// # use winnow::{error::ErrMode, error::ErrorKind, error::InputError, IResult};
/// # use winnow::prelude::*;
/// use winnow::combinator::fail;
///
/// let s = "string";
/// assert_eq!(fail::<_, &str, _>.parse_peek(s), Err(ErrMode::Backtrack(InputError::new(s, ErrorKind::Fail))));
/// ```
#[doc(alias = "unexpected")]
pub fn fail<I: Stream, O, E: ParserError<I>>(i: &mut I) -> PResult<O, E> {
trace("fail", |i: &mut I| {
Err(ErrMode::from_error_kind(i, ErrorKind::Fail))
})
.parse_next(i)
}
|
use secp256k1::key::{ SecretKey, PublicKey };
use secp256k1::Secp256k1;
use crate::base::curve::{entropy, scalar_multiple};
use hex;
//TODO::需要进行重构!!!
static PRE_PRIVATE_KEY: &'static str = "00";
pub struct J256k1 {}
impl J256k1 {
pub fn build_keypair_str(seed: &String) -> Result<(String, String), &'static str> {
if let Some(seed) = entropy(seed) {
let scalar = scalar_multiple(&seed, None);
let secp = Secp256k1::new();
if let Ok(secret_key) = SecretKey::from_slice(&scalar) {
let public_key = PublicKey::from_secret_key(&secp, &secret_key).serialize().to_vec();
let scalar_public_key = scalar_multiple(public_key.as_slice(), Some(0));
if let Ok(mut secret_key_gen) = SecretKey::from_slice(&scalar_public_key) {
if let Ok(_) = secret_key_gen.add_assign(&secret_key[..]) {
//private_key
let private_key = PRE_PRIVATE_KEY.to_owned() + secret_key_gen.to_string().as_str();
if let Ok(key_str) = hex::decode(&private_key) {
if let Ok(secret_key) = SecretKey::from_slice(&key_str[1..]) {
let public_gen = PublicKey::from_secret_key(&secp, &secret_key).serialize().to_vec();
//public key
let public_key = hex::encode(public_gen);
//so 33bytes = 33 * 8 = 264 = 32 * 8 + 8 = 256 + 8;
return Ok( ( private_key.to_ascii_uppercase(), public_key.to_ascii_uppercase() ) );
} else {
return Err("32 bytes, within curve order");
}
} else {
return Err("hex decode private_key error.");
}
} else {
//.expect("32 bytes, within curve order");
return Err("32 bytes, within curve order");
}
} else {
//.expect("32 bytes, within curve order");
return Err("32 bytes, within curve order");
}
} else {
//.expect("32 bytes, within curve order");
return Err("32 bytes, within curve order");
}
} else {
return Err("entropy error.");
}
}
}
|
// Copyright 2021 Datafuse Labs.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code is generated by src/query/codegen/src/writes/arithmetics_type.rs. DO NOT EDIT.
use crate::types::number::Number;
use crate::types::number::F32;
use crate::types::number::F64;
pub trait ResultTypeOfBinary: Sized {
type AddMul: Number;
type Minus: Number;
type IntDiv: Number;
type Modulo: Number;
type LeastSuper: Number;
}
pub trait ResultTypeOfUnary: Sized {
type Negate: Number;
type Sum: Number;
fn checked_add(self, _rhs: Self) -> Option<Self>;
fn checked_sub(self, _rhs: Self) -> Option<Self>;
fn checked_mul(self, _rhs: Self) -> Option<Self>;
fn checked_div(self, _rhs: Self) -> Option<Self>;
fn checked_rem(self, _rhs: Self) -> Option<Self>;
}
impl ResultTypeOfBinary for (u8, u8) {
type AddMul = u16;
type Minus = i16;
type IntDiv = u8;
type Modulo = u8;
type LeastSuper = u8;
}
impl ResultTypeOfBinary for (u8, u16) {
type AddMul = u32;
type Minus = i32;
type IntDiv = u16;
type Modulo = u16;
type LeastSuper = u16;
}
impl ResultTypeOfBinary for (u8, u32) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u32;
type Modulo = u32;
type LeastSuper = u32;
}
impl ResultTypeOfBinary for (u8, u64) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u64;
type Modulo = u64;
type LeastSuper = u64;
}
impl ResultTypeOfBinary for (u8, i8) {
type AddMul = i16;
type Minus = i16;
type IntDiv = i8;
type Modulo = u8;
type LeastSuper = i8;
}
impl ResultTypeOfBinary for (u8, i16) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = u16;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (u8, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = u32;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (u8, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = u64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (u8, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (u8, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (u16, u8) {
type AddMul = u32;
type Minus = i32;
type IntDiv = u16;
type Modulo = u8;
type LeastSuper = u16;
}
impl ResultTypeOfBinary for (u16, u16) {
type AddMul = u32;
type Minus = i32;
type IntDiv = u16;
type Modulo = u16;
type LeastSuper = u16;
}
impl ResultTypeOfBinary for (u16, u32) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u32;
type Modulo = u32;
type LeastSuper = u32;
}
impl ResultTypeOfBinary for (u16, u64) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u64;
type Modulo = u64;
type LeastSuper = u64;
}
impl ResultTypeOfBinary for (u16, i8) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = u8;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (u16, i16) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = u16;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (u16, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = u32;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (u16, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = u64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (u16, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (u16, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (u32, u8) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u32;
type Modulo = u8;
type LeastSuper = u32;
}
impl ResultTypeOfBinary for (u32, u16) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u32;
type Modulo = u16;
type LeastSuper = u32;
}
impl ResultTypeOfBinary for (u32, u32) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u32;
type Modulo = u32;
type LeastSuper = u32;
}
impl ResultTypeOfBinary for (u32, u64) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u64;
type Modulo = u64;
type LeastSuper = u64;
}
impl ResultTypeOfBinary for (u32, i8) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = u8;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (u32, i16) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = u16;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (u32, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = u32;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (u32, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = u64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (u32, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (u32, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (u64, u8) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u64;
type Modulo = u8;
type LeastSuper = u64;
}
impl ResultTypeOfBinary for (u64, u16) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u64;
type Modulo = u16;
type LeastSuper = u64;
}
impl ResultTypeOfBinary for (u64, u32) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u64;
type Modulo = u32;
type LeastSuper = u64;
}
impl ResultTypeOfBinary for (u64, u64) {
type AddMul = u64;
type Minus = i64;
type IntDiv = u64;
type Modulo = u64;
type LeastSuper = u64;
}
impl ResultTypeOfBinary for (u64, i8) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = u8;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (u64, i16) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = u16;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (u64, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = u32;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (u64, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = u64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (u64, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (u64, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (i8, u8) {
type AddMul = i16;
type Minus = i16;
type IntDiv = i8;
type Modulo = i16;
type LeastSuper = i8;
}
impl ResultTypeOfBinary for (i8, u16) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = i32;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (i8, u32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i64;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i8, u64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i8, i8) {
type AddMul = i16;
type Minus = i16;
type IntDiv = i8;
type Modulo = i16;
type LeastSuper = i8;
}
impl ResultTypeOfBinary for (i8, i16) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = i32;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (i8, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i64;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i8, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i8, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (i8, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (i16, u8) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = i16;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (i16, u16) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = i32;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (i16, u32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i64;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i16, u64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i16, i8) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = i16;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (i16, i16) {
type AddMul = i32;
type Minus = i32;
type IntDiv = i16;
type Modulo = i32;
type LeastSuper = i16;
}
impl ResultTypeOfBinary for (i16, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i64;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i16, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i16, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (i16, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (i32, u8) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i16;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i32, u16) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i32;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i32, u32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i64;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i32, u64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i32, i8) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i16;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i32, i16) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i32;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i32, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i32;
type Modulo = i64;
type LeastSuper = i32;
}
impl ResultTypeOfBinary for (i32, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i32, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (i32, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (i64, u8) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i16;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, u16) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i32;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, u32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, u64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, i8) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i16;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, i16) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i32;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, i32) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, i64) {
type AddMul = i64;
type Minus = i64;
type IntDiv = i64;
type Modulo = i64;
type LeastSuper = i64;
}
impl ResultTypeOfBinary for (i64, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (i64, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F32, u8) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (F32, u16) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (F32, u32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (F32, u64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F32, i8) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (F32, i16) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (F32, i32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (F32, i64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F32, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i32;
type Modulo = F64;
type LeastSuper = F32;
}
impl ResultTypeOfBinary for (F32, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, u8) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, u16) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, u32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, u64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, i8) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, i16) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, i32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, i64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, F32) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfBinary for (F64, F64) {
type AddMul = F64;
type Minus = F64;
type IntDiv = i64;
type Modulo = F64;
type LeastSuper = F64;
}
impl ResultTypeOfUnary for u8 {
type Negate = i16;
type Sum = u64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for u16 {
type Negate = i32;
type Sum = u64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for u32 {
type Negate = i64;
type Sum = u64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for u64 {
type Negate = i64;
type Sum = u64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for i8 {
type Negate = i8;
type Sum = i64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for i16 {
type Negate = i16;
type Sum = i64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for i32 {
type Negate = i32;
type Sum = i64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for i64 {
type Negate = i64;
type Sum = i64;
fn checked_add(self, rhs: Self) -> Option<Self> {
self.checked_add(rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
self.checked_sub(rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
self.checked_mul(rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
self.checked_div(rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
self.checked_rem(rhs)
}
}
impl ResultTypeOfUnary for F32 {
type Negate = F32;
type Sum = F64;
fn checked_add(self, rhs: Self) -> Option<Self> {
Some(self + rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
Some(self - rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
Some(self * rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
Some(self / rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
Some(self % rhs)
}
}
impl ResultTypeOfUnary for F64 {
type Negate = F64;
type Sum = F64;
fn checked_add(self, rhs: Self) -> Option<Self> {
Some(self + rhs)
}
fn checked_sub(self, rhs: Self) -> Option<Self> {
Some(self - rhs)
}
fn checked_mul(self, rhs: Self) -> Option<Self> {
Some(self * rhs)
}
fn checked_div(self, rhs: Self) -> Option<Self> {
Some(self / rhs)
}
fn checked_rem(self, rhs: Self) -> Option<Self> {
Some(self % rhs)
}
}
|
use actix::prelude::*;
use actix::{
Addr,
Actor,
StreamHandler,
fut
};
use actix_web::{web, Error, HttpRequest, HttpResponse};
use actix_web_actors::ws;
use serde_json::Value;
use crate::worker_state::WorkerState;
use crate::messages::{
WorkerWsConnect,
JobStatusUpdate
};
pub fn websocket_route(
req: HttpRequest,
stream: web::Payload,
worker_state: web::Data<Addr<WorkerState>>
) -> Result<HttpResponse, Error> {
let resp = ws::start(WsHost {
addr: worker_state.get_ref().clone()
}, &req, stream);
resp
}
struct WsHost {
addr: Addr<WorkerState>,
}
impl Actor for WsHost {
type Context = ws::WebsocketContext<Self>;
fn started(&mut self, ctx: &mut Self::Context) {
let addr = ctx.address();
self.addr
.send(WorkerWsConnect {
addr: addr.recipient(),
})
.into_actor(self)
.then(|res, _act, ctx| {
match res {
Ok(_res) => {
println!("[Route] Connected to WorkerState");
// act.id = res
},
// something is wrong with WorkerState
_ => ctx.stop(),
}
fut::ok(())
})
.wait(ctx);
}
}
impl Handler<JobStatusUpdate> for WsHost {
type Result = ();
fn handle(&mut self, msg: JobStatusUpdate, ctx: &mut Self::Context) {
let status = msg.status;
println!("[Route] Got status update");
ctx.text(serde_json::to_string(&status).unwrap());
}
}
impl StreamHandler<ws::Message, ws::ProtocolError> for WsHost {
fn handle(&mut self, msg: ws::Message, ctx: &mut Self::Context) {
match msg {
ws::Message::Ping(msg) => ctx.pong(&msg),
ws::Message::Text(text) => {
println!("Received text! {}", text);
// Send data back to the client:
// ctx.text(text)
()
},
ws::Message::Binary(bin) => ctx.binary(bin),
_ => (),
}
}
}
|
use crate::*;
use crate::visit::VisitorMut;
use std::collections::HashMap;
pub fn post_process(package: &mut Package) {
let mut names = HashMap::new();
for (id, extern_) in &package.externs {
match extern_ {
Extern::Proc(name, _) => { names.insert(name.clone(), (*id, false)); },
Extern::Global(name, _) => { names.insert(name.clone(), (*id, true)); },
}
}
for (id, global) in &package.globals {
names.insert(global.name.clone(), (*id, true));
}
for (id, body) in &package.bodies {
names.insert(body.name.clone(), (*id, false));
}
Replace { names, c2g: None, g2c: None }.visit_package(package);
}
struct Replace {
names: HashMap<String, (ItemId, bool)>,
c2g: Option<ItemId>,
g2c: Option<ItemId>,
}
impl<'t> VisitorMut<'t> for Replace {
fn visit_place(&mut self, place: &mut Place) {
match &mut place.base {
PlaceBase::Global(addr) => match addr {
Addr::Name(name) => {
if !self.names[name].1 {
self.g2c = Some(self.names[name].0);
} else {
*addr = Addr::Id(self.names[name].0);
}
},
_ => {},
},
_ => {},
}
self.super_place(place);
}
fn visit_op(&mut self, op: &mut Operand<'t>) {
self.super_op(op);
if let Some(id) = self.c2g.take() {
*op = Operand::Place(Place {
base: PlaceBase::Global(Addr::Id(id)),
elems: Vec::new(),
});
}
if let Some(id) = self.g2c.take() {
*op = Operand::Constant(Const::FuncAddr(Addr::Id(id), Default::default()));
}
}
fn visit_const(&mut self, const_: &mut Const<'t>) {
match const_ {
Const::FuncAddr(addr, _) => match addr {
Addr::Name(name) => {
if self.names[name].1 {
self.c2g = Some(self.names[name].0);
} else {
*addr = Addr::Id(self.names[name].0);
}
},
_ => {},
},
_ => {},
}
}
}
|
// Copyright (c) 2018-2020 Ministerio de Fomento
// Instituto de Ciencias de la Construcción Eduardo Torroja (IETcc-CSIC)
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// Author(s): Rafael Villar Burke <pachi@ietcc.csic.es>,
// Daniel Jiménez González <dani@ietcc.csic.es>,
// Marta Sorribes Gil <msorribes@ietcc.csic.es>
/*!
CteEPBD CLI app
===============
cteepbd - Implementation of the ISO EN 52000-1 standard
-------------------------------------------------------
Energy performance of buildings - Overarching EPB assessment - General framework and procedures
This implementation has used the following assumptions:
- weighting factors are constant for all timesteps
- energy production prioritizes onsite electricity production over cogeneration
- all on-site produced energy is considered as delivered
- on-site produced energy is compensated on a system by system basis
- the load matching factor is constant and equal to 1.0, unless --load-matching is used
*/
use std::fs::{read_to_string, File};
use std::io::prelude::*;
use std::path::Path;
use std::process::exit;
use std::str::FromStr;
use cteepbd::{
cte, energy_performance,
types::{EnergyPerformance, MetaVec, RenNrenCo2},
AsCtePlain, AsCteXml, Components, UserWF,
};
const APP_TITLE: &str = r#"CteEPBD"#;
const APP_DESCRIPTION: &str = r#"
Copyright (c) 2018-2022 Ministerio de Fomento,
Instituto de CC. de la Construcción Eduardo Torroja (IETcc-CSIC)
Autores: Rafael Villar Burke <pachi@ietcc.csic.es>,
Daniel Jiménez González <danielj@ietcc.csic.es>
Marta Sorribes Gil <msorribes@ietcc.csic.es>
Licencia: Publicado bajo licencia MIT.
"#;
const APP_ABOUT: &str = r#"CteEpbd - Eficiencia energética de los edificios (CTE DB-HE)."#;
const APP_LICENSE: &str = r#"
Copyright (c) 2018-2022 Ministerio de Fomento
Instituto de Ciencias de la Construcción Eduardo Torroja (IETcc-CSIC)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Author(s): Rafael Villar Burke <pachi@ietcc.csic.es>
Daniel Jiménez González <danielj@ietcc.csic.es>
Marta Sorribes Gil <msorribes@ietcc.csic.es>"#;
// Funciones auxiliares -----------------------------------------------------------------------
fn readfile<P: AsRef<Path>>(path: P) -> String {
read_to_string(&path).unwrap_or_else(|e| {
eprintln!(
"ERROR: lectura incorrecta del archivo \"{}\": {}",
path.as_ref().display(),
e
);
exit(exitcode::IOERR);
})
}
fn writefile<P: AsRef<Path>>(path: P, content: &[u8]) {
let mut file = File::create(&path)
.map_err(|e| {
eprintln!(
"ERROR: no se ha podido crear el archivo \"{}\": {}",
path.as_ref().display(),
e
);
exit(exitcode::CANTCREAT);
})
.unwrap();
if let Err(e) = file.write_all(content) {
eprintln!(
"ERROR: no se ha podido escribir en el archivo \"{}\": {}",
path.as_ref().display(),
e
);
exit(exitcode::IOERR);
}
}
// Funciones auxiliares de validación y obtención de valores
/// Comprueba validez del valor del factor de exportación
fn validate_kexp(kexpstr: &str, orig: &str) -> Option<f32> {
let kexp = kexpstr.parse::<f32>().unwrap_or_else(|_| {
eprintln!(
"ERROR: factor de exportación k_exp incorrecto \"{}\" ({})",
kexpstr, orig
);
exit(exitcode::DATAERR);
});
if !(0.0..=1.0).contains(&kexp) {
eprintln!(
"ERROR: factor de exportación k_exp fuera de rango [0.00 - 1.00]: {:.2} ({})",
kexp, orig
);
exit(exitcode::DATAERR);
};
if kexp != cte::KEXP_DEFAULT {
println!(
"AVISO: factor de exportación k_exp distinto al reglamentario ({:.2}): {:.2} ({})",
cte::KEXP_DEFAULT,
kexp,
orig
);
};
Some(kexp)
}
/// Comprueba validez del dato de area
fn validate_arearef(arearefstr: &str, orig: &str) -> Option<f32> {
let arearef = arearefstr.parse::<f32>().unwrap_or_else(|_| {
eprintln!(
"ERROR: área de referencia A_ref incorrecta \"{}\" ({})",
arearefstr, orig
);
exit(exitcode::DATAERR);
});
if arearef <= 1e-3 {
eprintln!(
"ERROR: área de referencia A_ref fuera de rango [0.001-]: {:.2} ({})",
arearef, orig
);
exit(exitcode::DATAERR);
}
Some(arearef)
}
/// Obtiene factor de paso priorizando CLI -> metadatos -> None.
fn get_factor(
matches: &clap::ArgMatches<'_>,
components: &mut Components,
meta: &str,
) -> Option<RenNrenCo2> {
let factor = matches
.values_of(meta)
.map(|v| {
// Datos desde línea de comandos
let vv: Vec<f32> = v
.map(|vv| {
f32::from_str(vv.trim()).unwrap_or_else(|_| {
eprintln!("ERROR: factor de paso incorrecto: \"{}\"", vv);
exit(exitcode::DATAERR);
})
})
.collect();
RenNrenCo2 {
ren: vv[0],
nren: vv[1],
co2: vv[2],
}
})
.or_else(|| components.get_meta_rennren(meta));
if let Some(factor) = factor {
components.set_meta(
meta,
&format!("{:.3}, {:.3}, {:.3}", factor.ren, factor.nren, factor.co2),
);
};
factor
}
/// Carga componentes desde archivo o devuelve componentes por defecto
fn get_components(archivo: Option<&str>) -> Components {
if let Some(archivo_componentes) = archivo {
println!("Componentes energéticos: \"{}\"", archivo_componentes);
readfile(archivo_componentes)
.parse::<Components>()
.unwrap_or_else(|e| {
eprintln!(
"ERROR: formato incorrecto del archivo de componentes \"{}\": {}",
archivo_componentes, e
);
exit(exitcode::DATAERR);
})
} else {
Components::default()
}
}
/// Crea aplicación y detecta opciones seleccionadas
fn start_app_and_get_matches() -> clap::ArgMatches<'static> {
use clap::Arg;
clap::App::new(APP_TITLE)
.bin_name("cteepbd")
.version(env!("CARGO_PKG_VERSION"))
.author(APP_DESCRIPTION)
.about(APP_ABOUT)
.setting(clap::AppSettings::NextLineHelp)
.arg(Arg::with_name("arearef")
.short("a")
.long("arearef")
.value_name("AREAREF")
.help("Área de referencia")
.takes_value(true)
.display_order(1))
.arg(Arg::with_name("kexp")
.short("k")
.long("kexp")
.value_name("KEXP")
.help("Factor de exportación (k_exp)")
.takes_value(true)
.display_order(2))
.arg(Arg::with_name("archivo_componentes")
.short("c")
.long("archivo_componentes")
.value_name("ARCHIVO_COMPONENTES")
.help("Archivo de definición de los componentes energéticos")
.takes_value(true)
//.validator(clap_validators::fs::is_file))
.display_order(3))
.arg(Arg::with_name("archivo_factores")
.short("f")
.long("archivo_factores")
.value_name("ARCHIVO_FACTORES")
.required_unless_one(&["fps_loc", "archivo_componentes"])
.conflicts_with_all(&["fps_loc", "red1", "red2"])
.help("Archivo de definición de los componentes energéticos")
.takes_value(true)
//.validator(clap_validators::fs::is_file))
.display_order(4))
.arg(Arg::with_name("fps_loc")
.short("l")
.value_name("LOCALIZACION")
.possible_values(&["PENINSULA", "CANARIAS", "BALEARES", "CEUTAMELILLA"])
.required_unless_one(&["archivo_factores", "archivo_componentes"])
.help("Localización que define los factores de paso\n")
.takes_value(true)
.display_order(5))
// Archivos de salida
.arg(Arg::with_name("gen_archivo_componentes")
.long("oc")
.value_name("GEN_ARCHIVO_COMPONENTES")
.help("Archivo de salida de los vectores energéticos corregidos")
.takes_value(true))
.arg(Arg::with_name("gen_archivo_factores")
.long("of")
.value_name("GEN_ARCHIVO_FACTORES")
.help("Archivo de salida de los factores de paso corregidos")
.takes_value(true))
.arg(Arg::with_name("archivo_salida_json")
.long("json")
.value_name("ARCHIVO_SALIDA_JSON")
.help("Archivo de salida de resultados detallados en formato JSON")
.takes_value(true))
.arg(Arg::with_name("archivo_salida_xml")
.long("xml")
.value_name("ARCHIVO_SALIDA_XML")
.help("Archivo de salida de resultados detallados en formato XML")
.takes_value(true))
.arg(Arg::with_name("archivo_salida_txt")
.long("txt")
.value_name("ARCHIVO_SALIDA_TXT")
.help("Archivo de salida de resultados detallados en formato texto simple")
.takes_value(true))
// Factores definidos por el usuario
.arg(Arg::with_name("CTE_RED1")
.long("red1")
.value_names(&["RED1_ren", "RED1_nren", "RED1_co2"])
.help("Factores de paso (ren, nren, co2) de la producción del vector RED1.\nP.e.: --red1 0 1.3 0.3")
.takes_value(true)
.number_of_values(3))
.arg(Arg::with_name("CTE_RED2")
.long("red2")
.value_names(&["RED2_ren", "RED2_nren", "RED2_co2"])
.help("Factores de paso (ren, nren, co2) de la producción del vector RED2.\nP.e.: --red2 0 1.3 0.3")
.takes_value(true)
.number_of_values(3))
// Simplificación de factores
.arg(Arg::with_name("nosimplificafps")
.short("F")
.long("no_simplifica_fps")
.hidden(true)
.help("Evita la simplificación de los factores de paso según los vectores definidos"))
// Opciones estándar: licencia y nivel de detalle
.arg(Arg::with_name("showlicense")
.short("L")
.long("licencia")
.help("Muestra la licencia del programa (MIT)"))
.arg(Arg::with_name("v")
.short("v")
.multiple(true)
.help("Sets the level of verbosity"))
.arg(Arg::with_name("load_matching")
.long("load_matching")
.takes_value(false)
.help("Calcula factor de coincidencia de cargas"))
.get_matches()
}
// Función principal ------------------------------------------------------------------------------
fn main() {
let matches = start_app_and_get_matches();
if matches.is_present("showlicense") {
println!("{}", APP_LICENSE);
exit(exitcode::OK);
}
// Prólogo ------------------------------------------------------------------------------------
let verbosity = matches.occurrences_of("v");
if verbosity > 2 {
println!("Opciones indicadas: ----------");
println!("{:#?}", matches);
println!("------------------------------");
}
println!("** Datos de entrada\n");
// Componentes energéticos ---------------------------------------------------------------------
let mut components = get_components(matches.value_of("archivo_componentes"));
if verbosity > 1 && !components.meta.is_empty() {
println!("Metadatos de componentes:");
for meta in &components.meta {
println!(" {}: {}", meta.key, meta.value);
}
}
// Comprobación del parámetro de factor de exportación kexp -----------------------------------
let kexp_cli = matches
.value_of("kexp")
.and_then(|kexpstr| validate_kexp(kexpstr, "usuario"));
// Comprobación del parámetro de área de referencia -------------------------------------------
let arearef_cli = matches
.value_of("arearef")
.and_then(|arearefstr| validate_arearef(arearefstr, "usuario"));
// Método de cálculo del factor de coincidencia de cargas
let load_matching = matches.is_present("load_matching");
// Factores de paso ---------------------------------------------------------------------------
// 0. Factores por defecto, según modo
let default_locwf = &cte::CTE_LOCWF_RITE2014;
let default_userwf = cte::CTE_USERWF;
// 1. Factores de paso definibles por el usuario (a través de la CLI o de metadatos)
let user_wf = UserWF {
red1: get_factor(&matches, &mut components, "CTE_RED1"),
red2: get_factor(&matches, &mut components, "CTE_RED2"),
};
if verbosity > 2 {
println!("Factores de paso de usuario:\n{:?}", user_wf)
};
// 2. Definición de los factores de paso principales
let fp_path_cli = matches.value_of("archivo_factores");
let loc_cli = matches.value_of("fps_loc");
let loc_meta = components.get_meta("CTE_LOCALIZACION");
// CLI path > CLI loc > Meta loc > error
let (orig_fp, param_fp, fp_opt) = match (fp_path_cli, loc_cli, loc_meta) {
(Some(fp_cli), _, _) => {
let fp = cte::wfactors_from_str(&readfile(fp_cli), user_wf, default_userwf);
("archivo", fp_cli.to_string(), fp)
}
(None, Some(l_cli), _) => {
let fp = cte::wfactors_from_loc(l_cli, default_locwf, user_wf, default_userwf);
("usuario", l_cli.to_string(), fp)
}
(None, None, Some(l_meta)) => {
let fp = cte::wfactors_from_loc(&l_meta, default_locwf, user_wf, default_userwf);
("metadatos", l_meta, fp)
}
_ => {
eprintln!("ERROR: datos insuficientes para determinar los factores de paso");
exit(exitcode::USAGE);
}
};
let mut fpdata = fp_opt.unwrap_or_else(|e| {
eprintln!(
"ERROR: parámetros incorrectos para generar los factores de paso: {}",
e
);
exit(exitcode::DATAERR);
});
println!("Factores de paso ({}): {}", orig_fp, param_fp);
// Simplificación de los factores de paso -----------------------------------------------------
if !matches.is_present("nosimplificafps") && !components.data.is_empty() {
let oldfplen = fpdata.wdata.len();
fpdata = fpdata.strip(&components);
if verbosity > 1 {
println!(
"Reducción de factores de paso: {} a {}",
oldfplen,
fpdata.wdata.len()
);
}
}
// Área de referencia -------------------------------------------------------------------------
// CLI > Metadatos de componentes > Valor por defecto (AREA_REF = 1)
let arearef_meta = components
.get_meta("CTE_AREAREF")
.and_then(|ref arearefstr| validate_arearef(arearefstr, "metadatos"));
if let (Some(a_meta), Some(a_cli)) = (arearef_meta, arearef_cli) {
if (a_meta - a_cli).abs() > 1e-3 {
println!("AVISO: área de referencia A_ref en componentes ({:.1}) y de usuario ({:.1}) distintos", a_meta, a_cli);
};
}
// CLI > Meta > default
let (orig_arearef, arearef) = match (arearef_meta, arearef_cli) {
(_, Some(a_cli)) => ("usuario", a_cli),
(Some(a_meta), _) => ("metadatos", a_meta),
_ => ("predefinido", cte::AREAREF_DEFAULT),
};
// Actualiza metadato CTE_AREAREF al valor seleccionado
components.set_meta("CTE_AREAREF", &format!("{:.2}", arearef));
println!("Área de referencia ({}) [m2]: {:.2}", orig_arearef, arearef);
// kexp ---------------------------------------------------------------------------------------
// CLI > Metadatos de componentes > Valor por defecto (KEXP_REF = 0.0)
let kexp_meta = components
.get_meta("CTE_KEXP")
.and_then(|ref kexpstr| validate_kexp(kexpstr, "metadatos"));
if let (Some(k_meta), Some(k_cli)) = (kexp_meta, kexp_cli) {
if (k_meta - k_cli).abs() > 1e-3 {
println!("AVISO: factor de exportación k_exp en componentes ({:.1}) y de usuario ({:.1}) distintos", k_meta, k_cli);
};
}
// CLI > Meta > default
let (orig_kexp, kexp) = match (kexp_meta, kexp_cli) {
(_, Some(k_cli)) => ("usuario", k_cli),
(Some(k_meta), None) => ("metadatos", k_meta),
_ => ("predefinido", cte::KEXP_DEFAULT),
};
// Actualiza metadato CTE_KEXP al valor seleccionado
components.set_meta("CTE_KEXP", &format!("{:.1}", kexp));
println!("Factor de exportación ({}) [-]: {:.1}", orig_kexp, kexp);
// Guardado de componentes energéticos --------------------------------------------------------
if matches.is_present("gen_archivo_componentes") {
let path = matches.value_of_os("gen_archivo_componentes").unwrap();
if verbosity > 2 {
println!("Componentes energéticos:\n{}", components);
}
writefile(&path, components.to_string().as_bytes());
if verbosity > 0 {
println!("Guardado archivo de componentes energéticos: {:?}", path);
}
}
// Guardado de factores de paso corregidos ----------------------------------------------------
if matches.is_present("gen_archivo_factores") {
let path = matches.value_of_os("gen_archivo_factores").unwrap();
if verbosity > 2 {
println!("Factores de paso:\n{}", fpdata);
}
writefile(&path, fpdata.to_string().as_bytes());
if verbosity > 0 {
println!("Guardado archivo de factores de paso: {:?}", path);
}
}
// Cálculo de la eficiencia energética ------------------------------------------------------------------------
let ep: Option<EnergyPerformance> = if !components.data.is_empty() {
let ep = energy_performance(&components, &fpdata, kexp, arearef, load_matching)
.map(cte::incorpora_demanda_renovable_acs_nrb)
.unwrap_or_else(|e| {
eprintln!(
"ERROR: no se ha podido calcular la eficiencia energética: {}",
e
);
exit(exitcode::DATAERR);
});
Some(ep)
} else if matches.is_present("gen_archivos_factores") {
println!(
"No se calculó la eficiencia energética pero se ha generado el archivo de factores de paso {:?}",
matches.value_of_os("gen_archivo_factores").unwrap()
);
None
} else {
println!("No se han definido datos suficientes para el cálculo de la eficiencia energética. Necesita definir al menos los componentes energéticos y los factores de paso");
None
};
// Salida de resultados -----------------------------------------------------------------------
if let Some(ep) = ep {
// Guardar datos y resultados en formato json
if matches.is_present("archivo_salida_json") {
let path = matches.value_of_os("archivo_salida_json").unwrap();
if verbosity > 0 {
println!("Resultados en formato JSON: {:?}", path);
}
let json = serde_json::to_string_pretty(&ep).unwrap_or_else(|e| {
eprintln!(
"ERROR: conversión incorrecta de datos y resultados de eficiencia energética a JSON: {}",
e
);
exit(exitcode::DATAERR);
});
writefile(&path, json.as_bytes());
}
// Guardar datos y resultados en formato XML
if matches.is_present("archivo_salida_xml") {
let path = matches.value_of_os("archivo_salida_xml").unwrap();
if verbosity > 0 {
println!("Resultados en formato XML: {:?}", path);
}
let xml = &ep.to_xml();
writefile(&path, xml.as_bytes());
}
// Mostrar siempre en formato de texto plano
let plain = ep.to_plain();
println!("\n{}", plain);
// Guardar datos y resultados en formato de texto plano
if matches.is_present("archivo_salida_txt") {
let path = matches.value_of_os("archivo_salida_txt").unwrap();
if verbosity > 0 {
println!("Resultados en formato XML: {:?}", path);
}
writefile(&path, plain.as_bytes());
}
};
}
/// Función ficticia para arreglar linkado en win32
/// Nunca se llama porque tenemos configurado panic=abort
#[no_mangle]
pub extern "C" fn _Unwind_Resume() {} |
//! Captures UDP packets
use std::{
sync::Arc,
time::{Duration, Instant},
};
/// UDP listener server that captures UDP messages (e.g. Jaeger spans)
/// for use in tests
use parking_lot::Mutex;
use tokio::{net::UdpSocket, select};
use tokio_util::sync::CancellationToken;
/// Maximum time to wait for a message, in seconds
const MAX_WAIT_TIME_SEC: u64 = 2;
/// A UDP message received by this server
#[derive(Clone)]
pub struct Message {
data: Vec<u8>,
}
impl std::fmt::Debug for Message {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Message({} bytes: {}", self.data.len(), self.to_string())
}
}
impl ToString for Message {
fn to_string(&self) -> String {
String::from_utf8_lossy(&self.data).to_string()
}
}
pub struct UdpCapture {
socket_addr: std::net::SocketAddr,
join_handle: tokio::task::JoinHandle<()>,
token: CancellationToken,
messages: Arc<Mutex<Vec<Message>>>,
}
impl UdpCapture {
// Create a new server, listening for Udp messages
pub async fn new() -> Self {
// Bind to some address, letting the OS pick
let socket = UdpSocket::bind("127.0.0.1:0")
.await
.expect("bind udp listener");
let socket_addr = socket.local_addr().unwrap();
println!(
"UDP server listening at {} port {}",
socket_addr.ip(),
socket_addr.port()
);
let token = CancellationToken::new();
let messages = Arc::new(Mutex::new(vec![]));
// Spawns a background task that listens on the
let captured_messages = Arc::clone(&messages);
let captured_token = token.clone();
let join_handle = tokio::spawn(async move {
println!("Starting udp listen");
loop {
let mut data = vec![0; 1024];
select! {
_ = captured_token.cancelled() => {
println!("Received shutdown request");
return;
},
res = socket.recv_from(&mut data) => {
let (sz, _origin) = res.expect("successful socket read");
data.resize(sz, 0);
let mut messages = captured_messages.lock();
messages.push(Message { data });
}
}
}
});
Self {
socket_addr,
join_handle,
token,
messages,
}
}
/// return the ip on which this server is listening
pub fn ip(&self) -> String {
self.socket_addr.ip().to_string()
}
/// return the port on which this server is listening
pub fn port(&self) -> String {
self.socket_addr.port().to_string()
}
/// stop and wait for successful shutdown of this server
pub async fn stop(self) {
self.token.cancel();
if let Err(e) = self.join_handle.await {
println!("Error waiting for shutdown of udp server: {e}");
}
}
// Return all messages this server has seen so far
pub fn messages(&self) -> Vec<Message> {
let messages = self.messages.lock();
messages.clone()
}
// wait for a message to appear that passes `pred` or the timeout expires
pub async fn wait_for<P>(&self, pred: P)
where
P: FnMut(&Message) -> bool + Copy,
{
let end = Instant::now() + Duration::from_secs(MAX_WAIT_TIME_SEC);
while Instant::now() < end {
if self.messages.lock().iter().any(pred) {
return;
}
tokio::time::sleep(Duration::from_millis(200)).await
}
panic!(
"Timeout expired before finding find messages that matches predicate. Messages:\n{:#?}",
self.messages.lock()
)
}
}
|
use pathfinder_common::{BlockHash, BlockNumber, EthereumChain, StateCommitment};
use primitive_types::{H160, H256, U256};
use stark_hash::Felt;
pub mod core_addr {
use const_decoder::Decoder;
pub const MAINNET: [u8; 20] = Decoder::Hex.decode(b"c662c410C0ECf747543f5bA90660f6ABeBD9C8c4");
pub const TESTNET: [u8; 20] = Decoder::Hex.decode(b"de29d060D45901Fb19ED6C6e959EB22d8626708e");
pub const TESTNET2: [u8; 20] = Decoder::Hex.decode(b"a4eD3aD27c294565cB0DCc993BDdCC75432D498c");
pub const INTEGRATION: [u8; 20] =
Decoder::Hex.decode(b"d5c325D183C592C94998000C5e0EED9e6655c020");
}
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct EthereumStateUpdate {
pub state_root: StateCommitment,
pub block_number: BlockNumber,
pub block_hash: BlockHash,
}
#[async_trait::async_trait]
pub trait EthereumApi {
async fn get_starknet_state(&self, address: &H160) -> anyhow::Result<EthereumStateUpdate>;
async fn get_chain(&self) -> anyhow::Result<EthereumChain>;
}
#[derive(Clone, Debug)]
pub struct EthereumClient {
http: reqwest::Client,
url: reqwest::Url,
}
const HTTP_OK: u16 = 200;
impl EthereumClient {
pub fn with_password(mut url: reqwest::Url, password: &str) -> anyhow::Result<Self> {
url.set_password(Some(password))
.map_err(|_| anyhow::anyhow!("Setting password failed"))?;
Self::new(url)
}
pub fn new(url: reqwest::Url) -> anyhow::Result<Self> {
Ok(Self {
http: reqwest::ClientBuilder::new().build()?,
url,
})
}
async fn get_finalized_block_hash(&self) -> anyhow::Result<H256> {
self.call_ethereum(serde_json::json!({
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": [
"finalized",
false
],
"id": 0
}))
.await
.and_then(|value| get_h256(&value["hash"]))
}
async fn call_starknet_contract(
&self,
block_hash: &str,
address: &str,
signature: &str,
) -> anyhow::Result<serde_json::Value> {
let data = encode_ethereum_call_data(signature.as_bytes());
self.call_ethereum(serde_json::json!({
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"to": address,
"value": "0x0",
"data": data
},
{"blockHash": block_hash}
],
"id": 0
}))
.await
}
async fn call_ethereum(&self, value: serde_json::Value) -> anyhow::Result<serde_json::Value> {
let res = self.http.post(self.url.clone()).json(&value).send().await?;
let status = res.status();
let (code, message) = (status.as_u16(), status.as_str());
if code != HTTP_OK {
tracing::error!(code, message, "Ethereum call failed");
anyhow::bail!(code);
}
let response: serde_json::Value = res.json().await?;
Ok(response["result"].clone())
}
}
#[async_trait::async_trait]
impl EthereumApi for EthereumClient {
async fn get_starknet_state(&self, address: &H160) -> anyhow::Result<EthereumStateUpdate> {
let hash = self.get_finalized_block_hash().await?;
let hash = format!("0x{}", hex::encode(hash.as_bytes()));
let addr = format!("0x{}", hex::encode(address.as_bytes()));
Ok(EthereumStateUpdate {
state_root: self
.call_starknet_contract(&hash, &addr, "stateRoot()")
.await
.and_then(|value| get_h256(&value))
.and_then(get_felt)
.map(StateCommitment)?,
block_hash: self
.call_starknet_contract(&hash, &addr, "stateBlockHash()")
.await
.and_then(|value| get_h256(&value))
.and_then(get_felt)
.map(BlockHash)?,
block_number: self
.call_starknet_contract(&hash, &addr, "stateBlockNumber()")
.await
.and_then(|value| get_u256(&value))
.and_then(get_number)?,
})
}
async fn get_chain(&self) -> anyhow::Result<EthereumChain> {
let id = self
.call_ethereum(serde_json::json!({
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 0
}))
.await
.and_then(|value| get_u256(&value))?;
Ok(match id {
x if x == U256::from(1u32) => EthereumChain::Mainnet,
x if x == U256::from(5u32) => EthereumChain::Goerli,
x => EthereumChain::Other(x),
})
}
}
fn encode_ethereum_call_data(signature: &[u8]) -> String {
let mut output: [u8; 32] = Default::default();
keccak_hash::keccak_256(signature, &mut output[..]);
format!("0x{}", hex::encode(&output[0..4]))
}
fn get_h256(value: &serde_json::Value) -> anyhow::Result<H256> {
use std::str::FromStr;
value
.as_str()
.map(lpad64)
.and_then(|val| H256::from_str(&val).ok())
.ok_or(anyhow::anyhow!("Failed to fetch H256"))
}
fn get_u256(value: &serde_json::Value) -> anyhow::Result<U256> {
use std::str::FromStr;
value
.as_str()
.map(lpad64)
.and_then(|val| U256::from_str(&val).ok())
.ok_or(anyhow::anyhow!("Failed to fetch U256"))
}
fn get_felt(value: H256) -> anyhow::Result<Felt> {
let felt = Felt::from_be_slice(value.as_bytes())?;
Ok(felt)
}
fn get_number(value: U256) -> anyhow::Result<BlockNumber> {
let value = value.as_u64();
BlockNumber::new(value).ok_or(anyhow::anyhow!("Failed to read u64 from U256"))
}
fn lpad64(value: &str) -> String {
let input = value.strip_prefix("0x").unwrap_or(value);
let prefix = if value.starts_with("0x") { "0x" } else { "" };
if input.len() == 64 {
format!("{prefix}{input}")
} else {
format!("{prefix}{input:0>64}")
}
}
#[cfg(test)]
mod tests {
use super::*;
use httpmock::prelude::*;
use primitive_types::H160;
use reqwest::Url;
use std::str::FromStr;
#[tokio::test]
#[ignore = "live ethereum call"]
async fn test_live() -> anyhow::Result<()> {
let address = H160::from(core_addr::MAINNET);
let url = Url::parse("https://eth.llamarpc.com")?;
let client = EthereumClient::new(url)?;
let state = client.get_starknet_state(&address).await?;
println!("{state:#?}");
let chain = client.get_chain().await?;
println!("{chain:?}");
Ok(())
}
#[tokio::test]
async fn test_chain_id() -> anyhow::Result<()> {
let server = MockServer::start_async().await;
let mock = server.mock(|when, then| {
when.path("/")
.method(POST)
.header("Content-type", "application/json")
.body(r#"{"id":0,"jsonrpc":"2.0","method":"eth_chainId","params":[]}"#);
then.status(200)
.header("Content-type", "application/json")
.body(r#"{"jsonrpc":"2.0","id":0,"result":"0x1"}"#);
});
let url = Url::parse(&server.url("/"))?;
let eth = EthereumClient::new(url)?;
let chain_id = eth.get_chain().await?;
mock.assert();
assert_eq!(chain_id, EthereumChain::Mainnet);
Ok(())
}
#[tokio::test]
async fn test_get_starknet_state() -> anyhow::Result<()> {
let server = MockServer::start_async().await;
let mock_ethereum_block = server.mock(|when, then| {
when.path("/")
.method(POST)
.header("Content-type", "application/json")
.body(r#"{"id":0,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["finalized",false]}"#);
then.status(200)
.header("Content-type", "application/json")
.body(r#"{"jsonrpc":"2.0","id":0,"result":{"number":"0x1048e0e","hash":"0x9921984fd976f261e0d70618b51e3db3724b9f4d28d0534c3483dd2162f13fff"}}"#);
});
let mock_block_number = server.mock(|when, then| {
when.path("/")
.method(POST)
.header("Content-type", "application/json")
.body(r#"{"id":0,"jsonrpc":"2.0","method":"eth_call","params":[{"data":"0x35befa5d","to":"0xc662c410c0ecf747543f5ba90660f6abebd9c8c4","value":"0x0"},{"blockHash":"0x9921984fd976f261e0d70618b51e3db3724b9f4d28d0534c3483dd2162f13fff"}]}"#);
then.status(200)
.header("Content-type", "application/json")
.body(r#"{"jsonrpc":"2.0","id":0,"result":"0x0000000000000000000000000000000000000000000000000000000000007eeb"}"#);
});
let mock_block_hash = server.mock(|when, then| {
when.path("/")
.method(POST)
.header("Content-type", "application/json")
.body(r#"{"id":0,"jsonrpc":"2.0","method":"eth_call","params":[{"data":"0x382d83e3","to":"0xc662c410c0ecf747543f5ba90660f6abebd9c8c4","value":"0x0"},{"blockHash":"0x9921984fd976f261e0d70618b51e3db3724b9f4d28d0534c3483dd2162f13fff"}]}"#);
then.status(200)
.header("Content-type", "application/json")
.body(r#"{"jsonrpc":"2.0","id":0,"result":"0x02a4651c1ba5151c48ebeb4477216b04d7a65058a5b99e5fbc602507ae933d2f"}"#);
});
let mock_state_root = server.mock(|when, then| {
when.path("/")
.method(POST)
.header("Content-type", "application/json")
.body(r#"{"id":0,"jsonrpc":"2.0","method":"eth_call","params":[{"data":"0x9588eca2","to":"0xc662c410c0ecf747543f5ba90660f6abebd9c8c4","value":"0x0"},{"blockHash":"0x9921984fd976f261e0d70618b51e3db3724b9f4d28d0534c3483dd2162f13fff"}]}"#);
then.status(200)
.header("Content-type", "application/json")
.body(r#"{"jsonrpc":"2.0","id":0,"result":"0x02a4651c1ba5151c48ebeb4477216b04d7a65058a5b99e5fbc602507ae933d2f"}"#);
});
let url = Url::parse(&server.url("/"))?;
let eth = EthereumClient::new(url)?;
let block_number = U256::from_str_radix("0x7eeb", 16)?;
let block_hash =
H256::from_str("0x02a4651c1ba5151c48ebeb4477216b04d7a65058a5b99e5fbc602507ae933d2f")?;
let global_root =
H256::from_str("0x02a4651c1ba5151c48ebeb4477216b04d7a65058a5b99e5fbc602507ae933d2f")?;
let expected = EthereumStateUpdate {
state_root: StateCommitment(get_felt(global_root)?),
block_number: get_number(block_number)?,
block_hash: BlockHash(get_felt(block_hash)?),
};
let addr = H160::from_slice(&core_addr::MAINNET);
let state = eth.get_starknet_state(&addr).await?;
mock_ethereum_block.assert();
mock_block_number.assert();
mock_block_hash.assert();
mock_state_root.assert();
assert_eq!(state, expected);
Ok(())
}
#[test]
fn test_h256() {
assert!(H256::from_str(
"0x0000000000000000000000000000000000000000000000000000000000007eeb"
)
.is_ok());
assert!(H256::from_str("0x7eeb").is_err());
let expected =
H256::from_str("0x0000000000000000000000000000000000000000000000000000000000007eeb")
.unwrap();
assert_eq!(H256::from_str(&lpad64("0x7eeb")).unwrap(), expected);
}
#[test]
fn test_lpad64() {
for (input, expected) in [
(
"0x0000000000000000000000000000000000000000000000000000000000007eeb",
"0x0000000000000000000000000000000000000000000000000000000000007eeb",
),
(
"0000000000000000000000000000000000000000000000000000000000007eeb",
"0000000000000000000000000000000000000000000000000000000000007eeb",
),
(
"7eeb",
"0000000000000000000000000000000000000000000000000000000000007eeb",
),
(
"0x7eeb",
"0x0000000000000000000000000000000000000000000000000000000000007eeb",
),
(
"",
"0000000000000000000000000000000000000000000000000000000000000000",
),
(
"0x",
"0x0000000000000000000000000000000000000000000000000000000000000000",
),
] {
assert_eq!(lpad64(input), expected, "for input: {}", input);
}
}
}
|
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
use std::fmt;
use std::os::raw::c_char;
use wallets_macro::{DlCR, DlDefault, DlStruct};
use wallets_types::{Address, ChainShared, Error, TokenShared, Wallet,TokenAddress};
pub use crate::chain::*;
pub use crate::chain_btc::*;
pub use crate::chain_eee::*;
pub use crate::chain_eth::*;
use crate::kits::{to_c_char, to_str, CStruct, CBool,Assignment};
pub use crate::kits::{CR, CU64};
pub use crate::types_btc::*;
pub use crate::types_eee::*;
pub use crate::types_eth::*;
#[repr(C)]
#[derive(DlStruct, DlDefault, DlCR)]
pub struct CError {
//由于很多地方都有使用 error这个名字,加一个C减少重名
pub code: CU64,
pub message: *mut c_char,
}
impl fmt::Debug for CError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let message = to_str(self.message).to_owned();
f.debug_struct("CError")
.field("code", &self.code)
.field("message", &message)
.finish()
}
}
#[repr(C)] //
#[derive(Debug, DlStruct, DlDefault, DlCR)]
pub struct CWallet {
pub id: *mut c_char,
pub nextId: *mut c_char,
pub name: *mut c_char,
pub walletType: *mut c_char,
pub ethChain: *mut CEthChain,
pub eeeChain: *mut CEeeChain,
pub btcChain: *mut CBtcChain,
}
#[repr(C)]
#[derive(Debug, DlStruct, DlDefault, DlCR)]
pub struct CAddress {
pub id: *mut c_char,
pub walletId: *mut c_char,
pub chainType: *mut c_char,
pub address: *mut c_char,
pub publicKey: *mut c_char,
pub isWalletAddress:CBool,
pub show:CBool,
}
#[repr(C)]
#[derive(Debug, DlStruct, DlDefault, DlCR)]
pub struct CTokenShared {
pub name: *mut c_char,
pub symbol: *mut c_char,
pub logoUrl: *mut c_char,
pub logoBytes: *mut c_char,
pub projectName: *mut c_char,
pub projectHome: *mut c_char,
pub projectNote: *mut c_char,
}
#[repr(C)]
#[derive(Debug, DlStruct, DlDefault, DlCR)]
pub struct CChainShared {
pub walletId: *mut c_char,
pub chainType: *mut c_char,
// 钱包地址
pub walletAddress: *mut CAddress,
}
#[repr(C)]
#[derive(Debug, DlStruct, DlDefault, DlCR)]
pub struct CTokenAddress{
pub walletId: *mut c_char,
pub chainType: *mut c_char,
pub tokenId: *mut c_char,
pub addressId: *mut c_char,
pub balance: *mut c_char,
}
#[cfg(test)]
mod tests {
use crate::types::CError;
#[test]
fn c_error() {
let e = CError::default();
assert_eq!(0, e.code);
assert_eq!(std::ptr::null_mut(), e.message);
}
}
|
use crate::handler::default::*;
use crate::handler::query::*;
use actix_files as fs;
use actix_web::http::{header, Method, StatusCode};
use actix_web::{error, web, HttpRequest, HttpResponse};
use std::io;
pub fn config_app(cfg: &mut web::ServiceConfig) {
cfg.service(favicon)
// register simple route, handle all methods
.service(welcome)
// with path parameters
.service(web::resource("/models/{name}").route(web::get().to(with_param)))
// async response body
.service(query)
.service(query_str)
.service(
web::resource("/test").to(|req: HttpRequest| match *req.method() {
Method::GET => HttpResponse::Ok(),
Method::POST => HttpResponse::MethodNotAllowed(),
_ => HttpResponse::NotFound(),
}),
)
.service(web::resource("/error").to(|| async {
error::InternalError::new(
io::Error::new(io::ErrorKind::Other, "test"),
StatusCode::INTERNAL_SERVER_ERROR,
)
}));
}
pub fn config_static(cfg: &mut web::ServiceConfig) {
// static files
cfg.service(fs::Files::new("/static", "../../static").show_files_listing())
// redirect
.service(web::resource("/").route(web::get().to(|req: HttpRequest| {
println!("{:?}", req);
HttpResponse::Found()
.header(header::LOCATION, "static/welcome.html")
.finish()
})));
}
|
fn main()
{
let x = "blah";
foo(x);
}
fn foo(x: &str)
{
println!("{}", x);
}
|
module.exports = {
testEnvironment: 'node'
};
|
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use crate::switchboard::base::{
ConfigurationInterfaceFlags, SettingRequest, SettingResponse, SettingResponseResult,
SettingType, SetupInfo, Switchboard,
};
use crate::switchboard::hanging_get_handler::{HangingGetHandler, Sender};
use fidl_fuchsia_settings::{
SetupRequest, SetupRequestStream, SetupSetResponder, SetupSettings, SetupWatchResponder,
};
use fuchsia_async as fasync;
use futures::lock::Mutex;
use futures::TryStreamExt;
use parking_lot::RwLock;
use std::convert::TryFrom;
use std::sync::Arc;
impl Sender<SetupSettings> for SetupWatchResponder {
fn send_response(self, data: SetupSettings) {
self.send(data).unwrap();
}
}
pub struct SetupFidlHandler {
switchboard_handle: Arc<RwLock<dyn Switchboard + Send + Sync>>,
hanging_get_handler: Arc<Mutex<HangingGetHandler<SetupSettings, SetupWatchResponder>>>,
}
impl TryFrom<SetupSettings> for SettingRequest {
type Error = &'static str;
fn try_from(value: SetupSettings) -> Result<Self, Self::Error> {
if let Some(configuration_interfaces) = value.enabled_configuration_interfaces {
return Ok(SettingRequest::SetConfigurationInterfaces(
ConfigurationInterfaceFlags::from(configuration_interfaces),
));
}
Err("Ineligible change")
}
}
impl From<SettingResponse> for SetupSettings {
fn from(response: SettingResponse) -> Self {
if let SettingResponse::Setup(info) = response {
return SetupSettings::from(info);
}
panic!("incorrect value sent");
}
}
impl From<fidl_fuchsia_settings::ConfigurationInterfaces> for ConfigurationInterfaceFlags {
fn from(interfaces: fidl_fuchsia_settings::ConfigurationInterfaces) -> Self {
let mut flags = ConfigurationInterfaceFlags::empty();
if interfaces.intersects(fidl_fuchsia_settings::ConfigurationInterfaces::Ethernet) {
flags = flags | ConfigurationInterfaceFlags::ETHERNET;
}
if interfaces.intersects(fidl_fuchsia_settings::ConfigurationInterfaces::Wifi) {
flags = flags | ConfigurationInterfaceFlags::WIFI;
}
return flags;
}
}
impl From<ConfigurationInterfaceFlags> for fidl_fuchsia_settings::ConfigurationInterfaces {
fn from(flags: ConfigurationInterfaceFlags) -> Self {
let mut interfaces = fidl_fuchsia_settings::ConfigurationInterfaces::empty();
if flags.intersects(ConfigurationInterfaceFlags::ETHERNET) {
interfaces = interfaces | fidl_fuchsia_settings::ConfigurationInterfaces::Ethernet;
}
if flags.intersects(ConfigurationInterfaceFlags::WIFI) {
interfaces = interfaces | fidl_fuchsia_settings::ConfigurationInterfaces::Wifi;
}
return interfaces;
}
}
impl From<SetupInfo> for SetupSettings {
fn from(info: SetupInfo) -> Self {
let mut settings = SetupSettings::empty();
let interfaces =
fidl_fuchsia_settings::ConfigurationInterfaces::from(info.configuration_interfaces);
if !interfaces.is_empty() {
settings.enabled_configuration_interfaces = Some(interfaces);
}
return settings;
}
}
fn reboot(
switchboard_handle: Arc<RwLock<dyn Switchboard + Send + Sync>>,
responder: SetupSetResponder,
) {
let (response_tx, response_rx) = futures::channel::oneshot::channel::<SettingResponseResult>();
let mut switchboard = switchboard_handle.write();
if switchboard.request(SettingType::Power, SettingRequest::Reboot, response_tx).is_err() {
// Respond immediately with an error if request was not possible.
responder.send(&mut Err(fidl_fuchsia_settings::Error::Failed)).ok();
return;
}
fasync::spawn(async move {
// Return success if we get a Ok result from the
// switchboard.
if let Ok(Ok(_)) = response_rx.await {
responder.send(&mut Ok(())).ok();
return;
}
responder.send(&mut Err(fidl_fuchsia_settings::Error::Failed)).ok();
});
}
impl SetupFidlHandler {
fn set(&self, settings: SetupSettings, responder: SetupSetResponder) {
if let Ok(request) = SettingRequest::try_from(settings) {
let (response_tx, response_rx) =
futures::channel::oneshot::channel::<SettingResponseResult>();
let mut switchboard = self.switchboard_handle.write();
if switchboard.request(SettingType::Setup, request, response_tx).is_err() {
// Respond immediately with an error if request was not possible.
responder.send(&mut Err(fidl_fuchsia_settings::Error::Failed)).ok();
return;
}
let switchboard_clone = self.switchboard_handle.clone();
fasync::spawn(async move {
// Return success if we get a Ok result from the
// switchboard.
if let Ok(Ok(_)) = response_rx.await {
reboot(switchboard_clone, responder);
return;
}
responder.send(&mut Err(fidl_fuchsia_settings::Error::Failed)).ok();
});
}
}
async fn watch(&self, responder: SetupWatchResponder) {
let mut hanging_get_lock = self.hanging_get_handler.lock().await;
hanging_get_lock.watch(responder).await;
}
pub fn spawn(
switchboard: Arc<RwLock<dyn Switchboard + Send + Sync>>,
mut stream: SetupRequestStream,
) {
fasync::spawn(async move {
let handler = Self {
switchboard_handle: switchboard.clone(),
hanging_get_handler: HangingGetHandler::create(
switchboard.clone(),
SettingType::Setup,
),
};
while let Some(req) = stream.try_next().await.unwrap() {
match req {
SetupRequest::Set { settings, responder } => {
handler.set(settings, responder);
}
SetupRequest::Watch { responder } => {
handler.watch(responder).await;
}
}
}
})
}
}
|
use diesel;
use diesel::result::Error;
use diesel::ExpressionMethods;
use diesel::QueryDsl;
use diesel::RunQueryDsl;
use r2d2_redis::redis::Commands;
use uuid::Uuid;
use crate::cache;
use crate::db;
use crate::models::users::{NewUser, User};
use crate::schema::users;
use crate::schema::users::dsl::*;
pub struct Filters<'a> {
pub steam_id: Option<i64>,
pub oculus_id: Option<&'a String>,
}
pub mod rank {
use crate::models::users::{RankedUser, User};
pub fn rank_users(users: Vec<User>, offset: i64) -> Vec<RankedUser> {
let mut ranked_users: Vec<RankedUser> = Vec::new();
for (i, user) in users.into_iter().enumerate() {
let rank = 1 + offset as u64 + i as u64;
let User {
id,
steam_id,
oculus_id,
banned,
username,
role,
country,
rp,
fails,
following,
image,
} = user;
ranked_users.push(RankedUser {
id,
rank,
steam_id,
oculus_id,
banned,
username,
role,
country,
rp,
fails,
following,
image,
});
}
ranked_users
}
}
pub fn get_users(offset: i64, limit: i64, filters: Filters) -> Result<Vec<User>, Error> {
let conn = db::establish_connection();
let mut query = users.into_boxed();
if let Some(f_sid) = &filters.steam_id {
query = query.filter(steam_id.eq(f_sid.clone()));
}
if let Some(f_oid) = &filters.oculus_id {
query = query.filter(oculus_id.eq(f_oid.clone()));
}
query
.order((rp.desc(), id.asc()))
.offset(offset)
.limit(limit)
.load::<User>(&conn)
}
pub fn get_cached_users(offset: i64, limit: i64, _rank: bool, _filters: Filters) -> String {
let mut result = String::new();
let mut conn = cache::establish_connection();
let chunk_offset = offset / 50;
let chunk_limit = limit / 50; // Amount of 50 users chunks to get from the cache
// Query cache for each chunk
for i in chunk_offset..chunk_limit {
let mut cache_str: String = conn
.get(&format!("bbapi:users:{}", i))
.unwrap_or(String::from(""));
// Less users in cache than limit, finish up
if cache_str == "" {
if result.pop() != Some(',') {
panic!("Corrupted cache");
}
result.push(']');
break;
}
// Remove opening brackets except on the first chunk
if i != chunk_offset {
if cache_str.remove(0) != '[' {
panic!("Corrupted cache");
}
}
// Replace closing brackets with a comma except on the last chunk
if i != chunk_limit - 1 {
if cache_str.pop() != Some(']') {
panic!("Corrupted cache");
}
cache_str.push(',');
}
result += &cache_str;
}
result
}
pub fn create_user(new_user: NewUser) -> Result<User, Error> {
let conn = db::establish_connection();
diesel::insert_into(users::table)
.values(&new_user)
.get_result(&conn)
}
pub fn get_user(identifier: Uuid) -> Result<User, Error> {
let conn = db::establish_connection();
users.find(identifier).first(&conn)
}
|
use pathfinder_common::{BlockId, CallParam, ContractAddress, EntryPoint, EthereumAddress};
use crate::context::RpcContext;
use crate::v02::method::call::FunctionCall;
use crate::v02::types::reply::FeeEstimate;
use crate::v03::method::estimate_message_fee::EstimateMessageFeeError;
#[derive(serde::Deserialize, Debug, PartialEq, Eq)]
pub struct EstimateMessageFeeInput {
message: MsgFromL1,
block_id: BlockId,
}
#[derive(serde::Deserialize, Debug, PartialEq, Eq)]
pub struct MsgFromL1 {
pub from_address: EthereumAddress,
pub to_address: ContractAddress,
pub entry_point_selector: EntryPoint,
pub payload: Vec<CallParam>,
}
pub async fn estimate_message_fee(
context: RpcContext,
input: EstimateMessageFeeInput,
) -> Result<FeeEstimate, EstimateMessageFeeError> {
let input = crate::v03::method::estimate_message_fee::EstimateMessageFeeInput {
message: FunctionCall {
contract_address: input.message.to_address,
entry_point_selector: input.message.entry_point_selector,
calldata: input.message.payload,
},
sender_address: input.message.from_address,
block_id: input.block_id,
};
crate::v03::method::estimate_message_fee(context, input).await
}
|
// This file is part of syslog2. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/syslog2/master/COPYRIGHT. No part of syslog2, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2016 The developers of syslog2. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/syslog2/master/COPYRIGHT.
// TODO: This is a temporary implementation until std::sync::atomic::AtomicI32 is stable; its size may be either 32 or 64 bits!
use std::sync::atomic::AtomicIsize;
use std::sync::atomic::Ordering;
pub struct AtomicI32(AtomicIsize);
impl AtomicI32
{
pub const fn new(v: i32) -> AtomicI32
{
AtomicI32(AtomicIsize::new(v as isize))
}
pub fn load(&self, order: Ordering) -> i32
{
self.0.load(order) as i32
}
pub fn compare_and_swap(&self, current: i32, new: i32, order: Ordering) -> i32
{
self.0.compare_and_swap(current as isize, new as isize, order) as i32
}
}
|
use std::sync::Mutex;
fn main() {
let me = Mutex::new(5);
{
let mut num = me.lock().unwrap();
*num = 6;
}
println!("me = {:?}", me);
println!("Hello, world!");
}
|
type Observer = Box<Fn(&Observable)>;
trait Observable {
fn add_observer(&mut self, o: Observer) -> ();
fn notify_observers(&self) -> ();
fn get_state(&self) -> i32;
}
fn basic_observer(o: &Observable) {
println!("Observable state change: {}", o.get_state());
}
struct Particle {
pos: i32,
observers: Vec<Observer>
}
impl Particle {
fn new() -> Particle {
Particle { pos: 0, observers: vec!() }
}
fn run(&mut self) -> () {
for x in 0..10 {
self.pos = x;
self.notify_observers();
}
}
}
impl Observable for Particle {
fn add_observer(&mut self, o: Observer) {
self.observers.push(o);
}
fn notify_observers(&self) {
for o in &self.observers {
o(self);
}
}
fn get_state(&self) -> i32 {
self.pos
}
}
pub fn run() {
println!("-------------------- {} --------------------", file!());
let mut p = Particle::new();
p.add_observer(Box::new(basic_observer));
p.run();
} |
//! Docstring!
use bio::io::fasta;
use rust_htslib::bcf;
use rust_htslib::bcf::header::HeaderView;
use rust_htslib::bcf::record::GenotypeAllele;
use rust_htslib::bcf::Read;
use std::collections::HashMap;
use std::fs::File;
use std::io::Write;
use std::str;
use failure::{Error, Fail, ResultExt};
//use rust_htslib::bcf::Record;
pub fn get_samples(reader: &bcf::Reader) -> Vec<&str> {
reader
.header()
.samples()
.iter()
.map(|x| str::from_utf8(x).unwrap())
.collect()
}
pub fn fasta_to_dict(records: fasta::Reader<File>) -> HashMap<String, fasta::Record> {
let mut output = HashMap::new();
for rec in records.records() {
let rec2 = &rec.unwrap();
output.insert(rec2.id().to_owned(), rec2.to_owned());
}
output
}
#[derive(Clone, Eq, PartialEq, Debug, Fail)]
#[fail(display = "Missing RID encountered")]
pub struct MissingRid {}
pub fn get_chrom_name(rid: Option<u32>, hv: &HeaderView) -> Result<&str, Error> {
let rid = rid.ok_or_else(|| MissingRid {})?;
let chrom = hv.rid2name(rid).unwrap();
let chrom_str =
str::from_utf8(chrom).with_context(|_| format!("Header contains invalid Chrom name."))?;
Ok(chrom_str)
}
pub fn get_genotypes(genotypes: &mut bcf::record::Genotypes, n: u32) -> Vec<Vec<usize>> {
let mut output: Vec<Vec<usize>> = Vec::new();
for i in 0..n {
let geno = genotypes
.get(i as usize)
.as_slice()
.iter()
.map(|a| a.index())
.flat_map(|e| e)
.map(|e| e as usize)
.collect();
output.push(geno);
}
output
}
#[derive(Clone, Eq, PartialEq, Debug, Fail)]
#[fail(display = "VCF reference Chrom {} not in Fasta", chrom)]
pub struct FastaMismatch {
chrom: String,
}
pub fn get_chrom<'a>(
chrom: &str,
genome: &'a HashMap<String, fasta::Record>,
) -> Result<&'a [u8], Error> {
genome.get(chrom).map(|c| c.seq()).ok_or_else(|| {
FastaMismatch {
chrom: chrom.to_string(),
}
.into()
})
}
pub fn print_bed(
handle: &mut impl Write,
chrom: &str,
pos: usize,
strand: i8,
ref_allele: [u8; 2],
isrip: bool,
) -> Result<(), std::io::Error> {
writeln!(
handle,
"{}\t{}\t{}\t{}\t{}\t{}",
chrom,
pos,
pos + 1,
strand,
String::from_utf8_lossy(&ref_allele),
isrip as u8,
)
}
|
fn abs(a: i32) -> i32 {
let b = a >> 31;
return (b ^ a) - b;
}
fn min(a: i64, b: i64) -> i64 {
return b ^ ((a ^ b) & -((a < b) as i64));
}
fn main() {
println!("{:?}", abs(9));
println!("{:?}", min(1, 2));
println!("{:?}", min(2, 1));
println!("{:?}", min(2, -1));
println!("{:?}", min(-1, 2));
println!("{:?}", min(-2, -1));
println!("{:?}", min(-1, -2));
println!("{:?}", min(-2, 0));
println!("{:?}", min(0, -2));
println!("{:?}", min(0, 0));
println!("{:?}", min(1, 0));
println!("{:?}", min(0, 1));
}
|
#![no_main]
#![no_std]
extern crate panic_halt;
extern crate stm32l4xx_hal as hal;
use mocca_matrix_rtic::prelude::*;
use smart_leds::{brightness, RGB8};
use ws2812::Ws2812;
use core::fmt::Write;
use embedded_graphics::{fonts, pixelcolor, prelude::*, style};
use hal::{
device::I2C1,
gpio::gpioa::PA0,
gpio::{
Alternate, Edge, Floating, Input, OpenDrain, Output, PullUp, PushPull, PA1, PA5, PA6, PA7,
PB6, PB7, PB8, PB9,
},
i2c::I2c,
prelude::*,
spi::Spi,
stm32,
timer::{Event, Timer},
};
use hal::{
gpio::PC13,
stm32l4::stm32l4x2::{interrupt, Interrupt, NVIC},
};
use heapless::consts::*;
use heapless::String;
use rtic::cyccnt::U32Ext;
use smart_leds::SmartLedsWrite;
use ssd1306::{mode::GraphicsMode, prelude::*, Builder, I2CDIBuilder};
use ws2812_spi as ws2812;
const GAMMA8: [u8; 256] = [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5,
5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 13, 13, 13, 14,
14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 24, 24, 25, 25, 26, 27,
27, 28, 29, 29, 30, 31, 32, 32, 33, 34, 35, 35, 36, 37, 38, 39, 39, 40, 41, 42, 43, 44, 45, 46,
47, 48, 49, 50, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 66, 67, 68, 69, 70, 72,
73, 74, 75, 77, 78, 79, 81, 82, 83, 85, 86, 87, 89, 90, 92, 93, 95, 96, 98, 99, 101, 102, 104,
105, 107, 109, 110, 112, 114, 115, 117, 119, 120, 122, 124, 126, 127, 129, 131, 133, 135, 137,
138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 167, 169, 171, 173, 175,
177, 180, 182, 184, 186, 189, 191, 193, 196, 198, 200, 203, 205, 208, 210, 213, 215, 218, 220,
223, 225, 228, 231, 233, 236, 239, 241, 244, 247, 249, 252, 255,
];
const REFRESH_DISPLAY_PERIOD: u32 = 64_000_000 / 40;
const REFRESH_LED_STRIP_PERIOD: u32 = 64_000_000 / 32;
const NUM_LEDS: usize = 291;
mod power_zones {
use super::NUM_LEDS;
const START0: usize = 0;
const SIZE0: usize = 8 + 9 + 10 + 11 + 15 + 16 + 17;
const START1: usize = SIZE0;
const SIZE1: usize = 17 + 17 + 17 + 17;
const START2: usize = START1 + SIZE1;
const SIZE2: usize = 17 + 17 + 17 + 17;
const START3: usize = START2 + SIZE2;
const SIZE3: usize = 16 + 15 + 11 + 10 + 9 + 8;
const END3: usize = START3 + SIZE3;
pub(crate) const NUM_ZONES: usize = 4;
const ZONES: [core::ops::Range<usize>; NUM_ZONES] =
[START0..START1, START1..START2, START2..START3, START3..END3];
fn rgb8_to_power(c: &smart_leds::RGB8) -> u32 {
let tmp = 122 * c.r as u32 + 121 * c.g as u32 + 121 * c.b as u32;
tmp / 2550
}
fn estimate_current(data: &[smart_leds::RGB8]) -> u32 {
data.iter().map(|c| rgb8_to_power(c)).sum::<u32>()
}
pub fn estimate_current_all(data: &[smart_leds::RGB8; NUM_LEDS]) -> [u32; NUM_ZONES] {
let mut out = [0; NUM_ZONES];
for (i, range) in ZONES.iter().cloned().enumerate() {
out[i] = 78 + estimate_current(&data[range]);
}
out
}
pub fn limit_current(
data: &mut [smart_leds::RGB8; NUM_LEDS],
limit: &[u32; NUM_ZONES],
) -> [Option<u32>; NUM_ZONES] {
// const LIMIT: u32 = 1100;
let mut ret = [None; NUM_ZONES];
for (i, range) in ZONES.iter().cloned().enumerate() {
let data = &mut data[range];
let current = 78 + estimate_current(data);
if current <= limit[i] {
continue;
}
const MUL: u32 = 1000;
let f = limit[i] * MUL / current;
// let f = LIMIT as f32 / current as f32;
data.iter_mut().for_each(|v| {
v.r = ((v.r as u32) * f / MUL) as u8;
v.g = ((v.g as u32) * f / MUL) as u8;
v.b = ((v.b as u32) * f / MUL) as u8;
// v.r = ((v.r as f32) * f) as u8;
// v.g = ((v.g as f32) * f) as u8;
// v.b = ((v.b as f32) * f) as u8;
});
ret[i] = Some(f);
}
ret
}
}
const CURRENT_MAX: u32 = 1100;
const CURRENT_RATED: u32 = 500;
const NUM_MEASUREMENTS: usize = 60;
pub struct DynamicLimit {
measurements: [u32; NUM_MEASUREMENTS],
i: usize,
acc: u32,
acc_count: u32,
pub limit: u32,
}
impl Default for DynamicLimit {
fn default() -> Self {
Self {
measurements: [0; NUM_MEASUREMENTS],
i: 0,
limit: CURRENT_MAX,
acc: 0,
acc_count: 0,
}
}
}
impl DynamicLimit {
fn commit(&mut self) {
let current = if self.acc_count != 0 {
self.acc / self.acc_count
} else {
0
};
self.acc = 0;
self.acc_count = 0;
if self.i >= NUM_MEASUREMENTS {
self.i %= NUM_MEASUREMENTS;
}
self.measurements[self.i] = current;
self.i += 1;
let energy = self.measurements.iter().sum::<u32>();
let budget = NUM_MEASUREMENTS as u32 * CURRENT_RATED;
if energy > budget {
let f = energy as f32 / budget as f32;
let f = if f < 1.0 {
1.0
} else if f > 2.0 {
2.0
} else {
f
};
self.limit = CURRENT_RATED + ((CURRENT_MAX - CURRENT_RATED) as f32 * (2.0 - f)) as u32;
}
}
fn add_measurement(&mut self, current: u32) {
self.acc += current;
self.acc_count += 1;
}
fn get_limit(&self) -> u32 {
self.limit
}
}
#[rtic::app(device = hal::stm32, peripherals = true, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
struct Resources {
timer: Timer<stm32::TIM7>,
disp: GraphicsMode<
I2CInterface<
I2c<
I2C1,
(
PB6<Alternate<hal::gpio::AF4, Output<OpenDrain>>>,
PB7<Alternate<hal::gpio::AF4, Output<OpenDrain>>>,
),
>,
>,
DisplaySize128x64,
>,
led_strip_dev: ws2812_spi::Ws2812<
Spi<
hal::pac::SPI1,
(
PA5<Alternate<hal::gpio::AF5, Input<Floating>>>,
PA6<Alternate<hal::gpio::AF5, Input<Floating>>>,
PA7<Alternate<hal::gpio::AF5, Input<Floating>>>,
),
>,
>,
rainbow: Rainbow,
led_strip_data: [smart_leds::RGB8; 291],
led_strip_current: [u32; 4],
c: u8,
limit_f: [Option<u32>; 4],
dynamic_limit: [DynamicLimit; 4],
}
#[init(schedule = [refresh_display, refresh_led_strip])]
fn init(mut cx: init::Context) -> init::LateResources {
let mut rcc = cx.device.RCC.constrain();
let mut flash = cx.device.FLASH.constrain();
let mut pwr = cx.device.PWR.constrain(&mut rcc.apb1r1);
let mut cp = cx.core;
// software tasks won't work without this:
cp.DCB.enable_trace();
cp.DWT.enable_cycle_counter();
let clocks = rcc
.cfgr
.sysclk(64.mhz())
.pclk1(16.mhz())
.pclk2(64.mhz())
.freeze(&mut flash.acr, &mut pwr);
// ================================================================================
// Set up Timer interrupt
let mut timer = Timer::tim7(cx.device.TIM7, 4.khz(), clocks, &mut rcc.apb1r1);
timer.listen(Event::TimeOut);
// ================================================================================
// set up OLED i2c
let mut gpiob = cx.device.GPIOB.split(&mut rcc.ahb2);
let mut scl = gpiob
.pb6
.into_open_drain_output(&mut gpiob.moder, &mut gpiob.otyper);
scl.internal_pull_up(&mut gpiob.pupdr, true);
let scl = scl.into_af4(&mut gpiob.moder, &mut gpiob.afrl);
let mut sda = gpiob
.pb7
.into_open_drain_output(&mut gpiob.moder, &mut gpiob.otyper);
sda.internal_pull_up(&mut gpiob.pupdr, true);
let sda = sda.into_af4(&mut gpiob.moder, &mut gpiob.afrl);
let mut i2c = I2c::i2c1(
cx.device.I2C1,
(scl, sda),
800.khz(),
clocks,
&mut rcc.apb1r1,
);
let interface = I2CDIBuilder::new().init(i2c);
let mut disp: GraphicsMode<_, _> = Builder::new()
// .with_size(DisplaySize::Display128x64NoOffset)
.connect(interface)
.into();
disp.init().unwrap();
disp.flush().unwrap();
disp.write("hello world xxx!", None);
disp.flush().unwrap();
cx.schedule
.refresh_display(cx.start + REFRESH_DISPLAY_PERIOD.cycles())
.unwrap();
// ================================================================================
// setup smart-led strip
let mut gpioa = cx.device.GPIOA.split(&mut rcc.ahb2);
let (sck, miso, mosi) = {
(
gpioa.pa5.into_af5(&mut gpioa.moder, &mut gpioa.afrl),
gpioa.pa6.into_af5(&mut gpioa.moder, &mut gpioa.afrl),
gpioa.pa7.into_af5(&mut gpioa.moder, &mut gpioa.afrl),
)
};
// Configure SPI with 3Mhz rate
let spi = Spi::spi1(
cx.device.SPI1,
(sck, miso, mosi),
ws2812::MODE,
3_000_000.hz(),
clocks,
&mut rcc.apb2,
);
let led_strip_dev = Ws2812::new(spi);
cx.schedule
.refresh_led_strip(cx.start + REFRESH_LED_STRIP_PERIOD.cycles())
.unwrap();
// Initialization of late resources
init::LateResources {
timer,
disp,
led_strip_dev,
rainbow: Rainbow::step_phase(1, 1),
led_strip_data: [mocca_matrix_rtic::color::BLACK; 291],
led_strip_current: [0; 4],
c: 0,
limit_f: [None; 4],
dynamic_limit: Default::default(),
}
}
// #[task(binds = TIM7, resources = [timer, , max, delta, is_on2, led], priority = 3)]
// fn tim7(cx: tim7::Context) {
// cx.resources.timer.clear_interrupt(Event::TimeOut);
// // if !*cx.resources.is_on {
// // cx.resources.led.set_high().unwrap();
// // *cx.resources.is_on = true;
// // } else {
// // cx.resources.led.set_low().unwrap();
// // *cx.resources.is_on = false;
// // }
// cx.resources.timer;
// while *cx.resources.cur > *cx.resources.max {
// // *cx.resources.delta = -1;
// *cx.resources.cur -= *cx.resources.max;
// }
// while *cx.resources.cur < 0 {
// // *cx.resources.delta = 1;
// *cx.resources.cur += *cx.resources.max;
// }
// //let duty = GAMMA8[*cx.resources.cur as usize] as i32 * *cx.resources.max / 255;
// let duty = *cx.resources.cur;
// cx.resources.pwm.set_duty(duty as u32);
// // cx.resources.pwm.set_duty(*cx.resources.timer);
// // cx.resources.pwm.set_duty(*cx.resources.max);
// *cx.resources.cur += *cx.resources.delta;
// if *cx.resources.is_on2 {
// cx.resources.led.set_low().unwrap();
// *cx.resources.is_on2 = false;
// } else {
// cx.resources.led.set_high().unwrap();
// *cx.resources.is_on2 = true;
// }
// }
// #[task(binds = EXTI15_10, resources = [is_on, button, delta], priority = 2)]
// fn button(mut cx: button::Context) {
// // cx.resources.timer.clear_interrupt(Event::TimeOut);
// //cx.resourcescx.resources.button.is_high()
// // *cx.resources.is_on = !*cx.resources.is_on;
// // if cx.resources.button.is_high().unwrap() {
// // return;
// // }
// if cx.resources.button.check_interrupt() {
// // if we don't clear this bit, the ISR would trigger indefinitely
// cx.resources.button.clear_interrupt_pending_bit();
// }
// let delta = if !*cx.resources.is_on {
// // cx.resources.led.set_high().unwrap();
// *cx.resources.is_on = true;
// 1
// } else {
// // cx.resources.led.set_low().unwrap();
// *cx.resources.is_on = false;
// -1
// };
// cx.resources.delta.lock(|x: &mut i32| *x = delta);
// }
#[task(schedule=[refresh_display], resources = [disp, led_strip_current, limit_f, dynamic_limit], priority = 1)]
fn refresh_display(mut cx: refresh_display::Context) {
let mut text = String::<U32>::new();
let a = cx.resources.led_strip_current.lock(|x| x.clone());
let limit_f = cx.resources.limit_f.lock(|x| x.clone());
for (i, c) in a.iter().enumerate() {
text.clear();
let limit_f = match limit_f[i] {
Some(l) => l as i32,
None => -1,
};
let limit_dyn = cx.resources.dynamic_limit.lock(|x| x[i].get_limit());
write!(&mut text, "I({}): {} {}", i, c, limit_dyn).unwrap();
cx.resources.disp.write(&text, Some(1 + i as i32));
}
text.clear();
write!(&mut text, "{:?}", cx.scheduled).unwrap();
cx.resources.disp.write(&text, Some(5));
cx.resources.disp.flush().unwrap();
cx.schedule
.refresh_display(cx.scheduled + REFRESH_DISPLAY_PERIOD.cycles())
.unwrap();
}
#[task(schedule=[refresh_led_strip], resources = [led_strip_dev, rainbow, led_strip_data, led_strip_current, c, limit_f, dynamic_limit], priority = 3)]
fn refresh_led_strip(mut cx: refresh_led_strip::Context) {
// let mut rainbow = brightness(cx.resources.rainbow, 64);
let mut c = cx.resources.rainbow.next().unwrap();
let mut rainbow = Rainbow::step_phase(1, *cx.resources.c);
for i in 0..291 {
// cx.resources.led_strip_data[i] = c; // RGB8::new(255, 0, 255);
if i % 4 == 3 {
c = rainbow.next().unwrap();
c.b = 0;
}
cx.resources.led_strip_data[i] = c;
// cx.resources.led_strip_data[i] =
// RGB8::new(*cx.resources.c, *cx.resources.c, *cx.resources.c);
}
*cx.resources.c += 1;
*cx.resources.led_strip_current =
power_zones::estimate_current_all(cx.resources.led_strip_data);
let mut limit = [0u32; power_zones::NUM_ZONES];
for i in 0..power_zones::NUM_ZONES {
cx.resources.dynamic_limit[i].add_measurement(cx.resources.led_strip_current[i]);
if *cx.resources.c % 32 == 0 {
cx.resources.dynamic_limit[i].commit();
}
limit[i] = cx.resources.dynamic_limit[i].get_limit();
}
*cx.resources.limit_f =
power_zones::limit_current(&mut cx.resources.led_strip_data, &limit);
cx.resources
.led_strip_dev
.write(cx.resources.led_strip_data.iter().cloned())
.unwrap();
cx.schedule
.refresh_led_strip(cx.scheduled + REFRESH_LED_STRIP_PERIOD.cycles())
.unwrap();
}
extern "C" {
fn COMP();
fn SDMMC1();
}
};
|
table! {
book (id) {
id -> Integer,
title -> Varchar,
author -> Varchar,
is_published -> Bool,
}
}
|
use thiserror::Error;
use solana_program::program_error::ProgramError;
#[derive(Error, Debug, Copy, Clone)]
pub enum StakingError {
#[error("Invalid Instruction")]
InvalidInstruction,
#[error("NotRentExempt")]
NotRentExempt,
#[error("Deserialized account is not an SPL Token mint")]
ExpectedMint,
#[error("The provided token program does not match the token program expected by the program")]
IncorrectTokenProgramId,
#[error("The provided token balance is zero")]
TokenBalanceZero,
#[error("must have a matching TokA deposit for any attempted xTokA mint.")]
NoMatchingDeposit,
#[error("you can not mint more than you have locked in the protocol.")]
MintAmountExceedsLockedValue,
#[error("The provided token account does not match the token account expected by the program")]
NotExpectedTokenAccount
}
impl From<StakingError> for ProgramError {
fn from(e: StakingError) -> Self {
ProgramError::Custom(e as u32)
}
} |
pub(crate) use symtable::make_module;
#[pymodule]
mod symtable {
use crate::{
builtins::PyStrRef, compiler, PyObjectRef, PyPayload, PyRef, PyResult, VirtualMachine,
};
use rustpython_codegen::symboltable::{
Symbol, SymbolFlags, SymbolScope, SymbolTable, SymbolTableType,
};
use std::fmt;
#[pyfunction]
fn symtable(
source: PyStrRef,
filename: PyStrRef,
mode: PyStrRef,
vm: &VirtualMachine,
) -> PyResult<PyRef<PySymbolTable>> {
let mode = mode
.as_str()
.parse::<compiler::Mode>()
.map_err(|err| vm.new_value_error(err.to_string()))?;
let symtable = compiler::compile_symtable(source.as_str(), mode, filename.as_str())
.map_err(|err| vm.new_syntax_error(&err, Some(source.as_str())))?;
let py_symbol_table = to_py_symbol_table(symtable);
Ok(py_symbol_table.into_ref(&vm.ctx))
}
fn to_py_symbol_table(symtable: SymbolTable) -> PySymbolTable {
PySymbolTable { symtable }
}
#[pyattr]
#[pyclass(name = "SymbolTable")]
#[derive(PyPayload)]
struct PySymbolTable {
symtable: SymbolTable,
}
impl fmt::Debug for PySymbolTable {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "SymbolTable()")
}
}
#[pyclass]
impl PySymbolTable {
#[pymethod]
fn get_name(&self) -> String {
self.symtable.name.clone()
}
#[pymethod]
fn get_type(&self) -> String {
self.symtable.typ.to_string()
}
#[pymethod]
fn get_lineno(&self) -> u32 {
self.symtable.line_number
}
#[pymethod]
fn is_nested(&self) -> bool {
self.symtable.is_nested
}
#[pymethod]
fn is_optimized(&self) -> bool {
self.symtable.typ == SymbolTableType::Function
}
#[pymethod]
fn lookup(&self, name: PyStrRef, vm: &VirtualMachine) -> PyResult<PyRef<PySymbol>> {
let name = name.as_str();
if let Some(symbol) = self.symtable.symbols.get(name) {
Ok(PySymbol {
symbol: symbol.clone(),
namespaces: self
.symtable
.sub_tables
.iter()
.filter(|table| table.name == name)
.cloned()
.collect(),
is_top_scope: self.symtable.name == "top",
}
.into_ref(&vm.ctx))
} else {
Err(vm.new_key_error(vm.ctx.new_str(format!("lookup {name} failed")).into()))
}
}
#[pymethod]
fn get_identifiers(&self, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
let symbols = self
.symtable
.symbols
.keys()
.map(|s| vm.ctx.new_str(s.as_str()).into())
.collect();
Ok(symbols)
}
#[pymethod]
fn get_symbols(&self, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
let symbols = self
.symtable
.symbols
.values()
.map(|s| {
(PySymbol {
symbol: s.clone(),
namespaces: self
.symtable
.sub_tables
.iter()
.filter(|&table| table.name == s.name)
.cloned()
.collect(),
is_top_scope: self.symtable.name == "top",
})
.into_ref(&vm.ctx)
.into()
})
.collect();
Ok(symbols)
}
#[pymethod]
fn has_children(&self) -> bool {
!self.symtable.sub_tables.is_empty()
}
#[pymethod]
fn get_children(&self, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
let children = self
.symtable
.sub_tables
.iter()
.map(|t| to_py_symbol_table(t.clone()).into_pyobject(vm))
.collect();
Ok(children)
}
}
#[pyattr]
#[pyclass(name = "Symbol")]
#[derive(PyPayload)]
struct PySymbol {
symbol: Symbol,
namespaces: Vec<SymbolTable>,
is_top_scope: bool,
}
impl fmt::Debug for PySymbol {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Symbol()")
}
}
#[pyclass]
impl PySymbol {
#[pymethod]
fn get_name(&self) -> String {
self.symbol.name.clone()
}
#[pymethod]
fn is_global(&self) -> bool {
self.symbol.is_global() || (self.is_top_scope && self.symbol.is_bound())
}
#[pymethod]
fn is_declared_global(&self) -> bool {
matches!(self.symbol.scope, SymbolScope::GlobalExplicit)
}
#[pymethod]
fn is_local(&self) -> bool {
self.symbol.is_local() || (self.is_top_scope && self.symbol.is_bound())
}
#[pymethod]
fn is_imported(&self) -> bool {
self.symbol.flags.contains(SymbolFlags::IMPORTED)
}
#[pymethod]
fn is_nested(&self) -> bool {
// TODO
false
}
#[pymethod]
fn is_nonlocal(&self) -> bool {
self.symbol.flags.contains(SymbolFlags::NONLOCAL)
}
#[pymethod]
fn is_referenced(&self) -> bool {
self.symbol.flags.contains(SymbolFlags::REFERENCED)
}
#[pymethod]
fn is_assigned(&self) -> bool {
self.symbol.flags.contains(SymbolFlags::ASSIGNED)
}
#[pymethod]
fn is_parameter(&self) -> bool {
self.symbol.flags.contains(SymbolFlags::PARAMETER)
}
#[pymethod]
fn is_free(&self) -> bool {
matches!(self.symbol.scope, SymbolScope::Free)
}
#[pymethod]
fn is_namespace(&self) -> bool {
!self.namespaces.is_empty()
}
#[pymethod]
fn is_annotated(&self) -> bool {
self.symbol.flags.contains(SymbolFlags::ANNOTATED)
}
#[pymethod]
fn get_namespaces(&self, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
let namespaces = self
.namespaces
.iter()
.map(|table| to_py_symbol_table(table.clone()).into_pyobject(vm))
.collect();
Ok(namespaces)
}
#[pymethod]
fn get_namespace(&self, vm: &VirtualMachine) -> PyResult {
if self.namespaces.len() != 1 {
return Err(
vm.new_value_error("namespace is bound to multiple namespaces".to_owned())
);
}
Ok(to_py_symbol_table(self.namespaces.first().unwrap().clone())
.into_ref(&vm.ctx)
.into())
}
}
}
|
pub use counttoken::analysis::usertoken;
pub use std::collections::BTreeMap;
pub use std::collections::HashMap;
fn main() {
let _ = usertoken::statistic_tokens();
}
|
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[cfg(feature = "ApplicationModel_UserActivities_Core")]
pub mod Core;
#[link(name = "windows")]
extern "system" {}
pub type IUserActivityContentInfo = *mut ::core::ffi::c_void;
pub type UserActivity = *mut ::core::ffi::c_void;
pub type UserActivityAttribution = *mut ::core::ffi::c_void;
pub type UserActivityChannel = *mut ::core::ffi::c_void;
pub type UserActivityContentInfo = *mut ::core::ffi::c_void;
pub type UserActivityRequest = *mut ::core::ffi::c_void;
pub type UserActivityRequestManager = *mut ::core::ffi::c_void;
pub type UserActivityRequestedEventArgs = *mut ::core::ffi::c_void;
pub type UserActivitySession = *mut ::core::ffi::c_void;
pub type UserActivitySessionHistoryItem = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct UserActivityState(pub i32);
impl UserActivityState {
pub const New: Self = Self(0i32);
pub const Published: Self = Self(1i32);
}
impl ::core::marker::Copy for UserActivityState {}
impl ::core::clone::Clone for UserActivityState {
fn clone(&self) -> Self {
*self
}
}
pub type UserActivityVisualElements = *mut ::core::ffi::c_void;
|
use self::events as ev;
use crate::twin::Twin;
use crate::twin::{mk_publish_request, tag_with_id};
use actyx_sdk::service::{EventService, PublishResponse};
use actyx_sdk::{tag, Event, Payload, TagSet};
pub mod events;
#[derive(Clone, Debug, PartialEq)]
pub struct LaunchpadTwinState {
pub id: String,
pub current_mission: Option<String>,
pub mission_queue: Vec<String>,
pub attached_drone: Option<String>,
}
impl Default for LaunchpadTwinState {
fn default() -> Self {
Self {
id: Default::default(),
current_mission: None,
mission_queue: Vec::new(),
attached_drone: None,
}
}
}
#[derive(Clone)]
pub struct LaunchpadTwin {
pub id: String,
}
impl LaunchpadTwin {
pub fn new(id: String) -> Self {
Self { id }
}
}
impl Twin for LaunchpadTwin {
type State = LaunchpadTwinState;
fn name(&self) -> String {
"launchpad".to_string()
}
fn id(&self) -> String {
self.id.clone()
}
fn query(&self) -> actyx_sdk::language::Query {
format!("FROM 'launchpad:{}' | 'drone.mission.completed'", self.id)
.parse()
.expect("LaunchpadTwin: AQL query not parse-able")
}
fn reducer(state: Self::State, event: Event<Payload>) -> Self::State {
//println!("{:?}", event.payload.json_value());
if let Ok(ev) = event.extract::<ev::LaunchPadEvent>() {
match ev.payload {
ev::LaunchPadEvent::DroneMounted(e) => Self::State {
id: e.id,
current_mission: state.current_mission,
mission_queue: state.mission_queue,
attached_drone: Some(e.drone),
},
ev::LaunchPadEvent::LaunchPadRegistered(e) => Self::State {
id: e.id,
current_mission: state.current_mission,
mission_queue: state.mission_queue,
attached_drone: state.attached_drone,
},
ev::LaunchPadEvent::MissionActivated(e) => Self::State {
id: state.id,
current_mission: Some(e.mission_id),
mission_queue: state.mission_queue,
attached_drone: state.attached_drone,
},
ev::LaunchPadEvent::DroneMissionCompleted(e) => {
if Some(e.id) == state.attached_drone {
let mission_queue = state
.mission_queue
.iter()
.filter({
let id = e.mission_id.clone();
move |m_id| **m_id != id
})
.map(|s| s.to_owned())
.collect::<Vec<String>>();
Self::State {
id: state.id,
current_mission: None,
mission_queue,
attached_drone: None,
}
} else {
state
}
}
ev::LaunchPadEvent::MissionQueued(e) => {
let mut mission_queue = state.mission_queue.clone();
mission_queue.push(e.mission_id);
Self::State {
id: e.launchpad_id,
current_mission: state.current_mission,
mission_queue,
attached_drone: state.attached_drone,
}
}
}
} else {
state
}
}
}
pub fn tag_launchpad_id<T>(id: &T) -> TagSet
where
T: core::fmt::Display,
{
tag_with_id("launchpad", &id)
}
pub fn tag_launchpad_registered<T>(id: &T) -> TagSet
where
T: core::fmt::Display,
{
tag_launchpad_id(&id) + tag!("launchpad.registered")
}
impl LaunchpadTwin {
#[allow(dead_code)]
pub async fn emit_launchpad_registered(
service: impl EventService,
id: String,
) -> Result<PublishResponse, anyhow::Error> {
service
.publish(mk_publish_request(
tag_launchpad_registered(&id),
&ev::LaunchPadEvent::LaunchPadRegistered(ev::LaunchPadRegisteredEvent { id }),
))
.await
}
#[allow(dead_code)]
pub async fn emit_mission_activated(
service: impl EventService,
launchpad_id: String,
mission_id: String,
) -> Result<PublishResponse, anyhow::Error> {
service
.publish(mk_publish_request(
tag_launchpad_id(&launchpad_id),
&ev::LaunchPadEvent::MissionActivated(ev::MissionActivatedEvent {
launchpad_id,
mission_id,
}),
))
.await
}
}
|
use crate::{runtime::Runtime, ast::nodes::VariableDeclaration};
pub fn parse_variable_declaration(runtime: &mut Runtime, declaration: &VariableDeclaration) {
for variable in declaration.declarations.iter() {
let name = variable.id.name.clone();
let literal = variable.init.clone();
runtime.current_scope().variables.insert(name, literal);
}
} |
use super::*;
use std::cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd};
use std::fmt;
use std::ops::{Add, AddAssign, Div, Mul, Neg, Rem, Sub, SubAssign};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fmx_FixPt {
_address: u8,
}
#[cfg_attr(target_os = "macos", link(kind = "framework", name = "FMWrapper"))]
#[cfg_attr(target_os = "windows", link(kind = "static", name = "FMWrapper"))]
#[cfg_attr(target_os = "linux", link(kind = "dylib", name = "FMWrapper"))]
extern "C" {
fn FM_FixPt_AsLong(_self: *const fmx_FixPt, _x: *mut fmx__fmxcpt) -> i32;
fn FM_FixPt_Delete(_self: *mut fmx_FixPt, _x: *mut fmx__fmxcpt);
fn FM_FixPt_Constructor1(val: i32, precision: i32, _x: *mut fmx__fmxcpt) -> *mut fmx_FixPt;
fn FM_FixPt_Constructor2(
val: i32,
precisionExample: *const fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> *mut fmx_FixPt;
fn FM_FixPt_AssignInt(_self: *mut fmx_FixPt, that: i32, _x: *mut fmx__fmxcpt);
fn FM_FixPt_AssignInt64(_self: *mut fmx_FixPt, that: fmx_int64, _x: *mut fmx__fmxcpt);
fn FM_FixPt_AssignDouble(_self: *mut fmx_FixPt, that: f64, _x: *mut fmx__fmxcpt);
fn FM_FixPt_AssignFixPt(_self: *mut fmx_FixPt, that: *const fmx_FixPt, _x: *mut fmx__fmxcpt);
fn FM_FixPt_operatorEQ(
_self: *const fmx_FixPt,
that: *const fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> bool;
fn FM_FixPt_operatorNE(
_self: *const fmx_FixPt,
that: *const fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> bool;
fn FM_FixPt_operatorLT(
_self: *const fmx_FixPt,
that: *const fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> bool;
fn FM_FixPt_operatorLE(
_self: *const fmx_FixPt,
that: *const fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> bool;
fn FM_FixPt_operatorGT(
_self: *const fmx_FixPt,
that: *const fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> bool;
fn FM_FixPt_operatorGE(
_self: *const fmx_FixPt,
that: *const fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> bool;
fn FM_FixPt_Increment(_self: *mut fmx_FixPt, n: i32, _x: *mut fmx__fmxcpt);
fn FM_FixPt_Increment64(_self: *mut fmx_FixPt, n: fmx_int64, _x: *mut fmx__fmxcpt);
fn FM_FixPt_Decrement(_self: *mut fmx_FixPt, n: i32, _x: *mut fmx__fmxcpt);
fn FM_FixPt_Decrement64(_self: *mut fmx_FixPt, n: fmx_int64, _x: *mut fmx__fmxcpt);
fn FM_FixPt_Negate(_self: *mut fmx_FixPt, _x: *mut fmx__fmxcpt);
fn FM_FixPt_GetPrecision(_self: *const fmx_FixPt, _x: *mut fmx__fmxcpt) -> i32;
fn FM_FixPt_SetPrecision(_self: *mut fmx_FixPt, precision: i32, _x: *mut fmx__fmxcpt);
fn FM_FixPt_Add(
_self: *const fmx_FixPt,
arg: *const fmx_FixPt,
result: *mut fmx_FixPt,
_x: *mut fmx__fmxcpt,
);
fn FM_FixPt_Subtract(
_self: *const fmx_FixPt,
arg: *const fmx_FixPt,
result: *mut fmx_FixPt,
_x: *mut fmx__fmxcpt,
);
fn FM_FixPt_Multiply(
_self: *const fmx_FixPt,
arg: *const fmx_FixPt,
result: *mut fmx_FixPt,
_x: *mut fmx__fmxcpt,
);
fn FM_FixPt_Divide(
_self: *const fmx_FixPt,
arg: *const fmx_FixPt,
result: *mut fmx_FixPt,
_x: *mut fmx__fmxcpt,
) -> FMError;
fn FM_FixPt_AsBool(_self: *const fmx_FixPt, _x: *mut fmx__fmxcpt) -> bool;
fn FM_FixPt_AsLong64(_self: *const fmx_FixPt, _x: *mut fmx__fmxcpt) -> fmx_int64;
fn FM_FixPt_AsFloat(_self: *const fmx_FixPt, _x: *mut fmx__fmxcpt) -> f64;
}
#[derive(Eq)]
pub struct FixPt {
pub(crate) ptr: *mut fmx_FixPt,
drop: bool,
}
impl FixPt {
pub fn new(val: i32, precision: i32) -> FixPt {
let mut _x = fmx__fmxcpt::new();
let ptr = unsafe { FM_FixPt_Constructor1(val, precision, &mut _x) };
_x.check();
Self { ptr, drop: true }
}
pub fn from_ptr(ptr: *const fmx_FixPt) -> FixPt {
Self {
ptr: ptr as *mut fmx_FixPt,
drop: false,
}
}
pub fn clone_precision(&self, val: i32) -> FixPt {
let mut _x = fmx__fmxcpt::new();
let ptr = unsafe { FM_FixPt_Constructor2(val, self.ptr, &mut _x) };
_x.check();
Self { ptr, drop: true }
}
pub fn assign<T: ToFixPt>(&mut self, number: T) {
let mut _x = fmx__fmxcpt::new();
let fixed_point = number.to_fixed_point();
unsafe { FM_FixPt_AssignFixPt(self.ptr, fixed_point.ptr, &mut _x) };
_x.check();
}
pub fn get_precision(&self) -> i32 {
let mut _x = fmx__fmxcpt::new();
let precision = unsafe { FM_FixPt_GetPrecision(self.ptr, &mut _x) };
_x.check();
precision
}
///Valid values between 16 and 400
pub fn set_precision(&mut self, precision: i32) {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_SetPrecision(self.ptr, precision, &mut _x) };
_x.check();
}
}
impl Default for FixPt {
fn default() -> Self {
FixPt::new(0, 16)
}
}
impl Drop for FixPt {
fn drop(&mut self) {
if self.drop {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Delete(self.ptr as *mut fmx_FixPt, &mut _x) };
_x.check();
}
}
}
impl From<FixPt> for i32 {
fn from(fix_pt: FixPt) -> i32 {
let mut _x = fmx__fmxcpt::new();
let num = unsafe { FM_FixPt_AsLong(fix_pt.ptr, &mut _x) };
_x.check();
num
}
}
impl From<FixPt> for u32 {
fn from(fix_pt: FixPt) -> u32 {
let mut _x = fmx__fmxcpt::new();
let num = unsafe { FM_FixPt_AsLong(fix_pt.ptr, &mut _x) };
_x.check();
num as u32
}
}
impl From<&FixPt> for i32 {
fn from(fix_pt: &FixPt) -> i32 {
let mut _x = fmx__fmxcpt::new();
let num = unsafe { FM_FixPt_AsLong(fix_pt.ptr, &mut _x) };
_x.check();
num
}
}
impl From<FixPt> for i64 {
fn from(fix_pt: FixPt) -> i64 {
let mut _x = fmx__fmxcpt::new();
let num = unsafe { FM_FixPt_AsLong64(fix_pt.ptr, &mut _x) };
_x.check();
num as i64
}
}
impl From<&FixPt> for i64 {
fn from(fix_pt: &FixPt) -> i64 {
let mut _x = fmx__fmxcpt::new();
let num = unsafe { FM_FixPt_AsLong64(fix_pt.ptr, &mut _x) };
_x.check();
num as i64
}
}
impl From<FixPt> for bool {
fn from(fix_pt: FixPt) -> bool {
let mut _x = fmx__fmxcpt::new();
let b = unsafe { FM_FixPt_AsBool(fix_pt.ptr, &mut _x) };
_x.check();
b
}
}
impl From<&FixPt> for bool {
fn from(fix_pt: &FixPt) -> bool {
let mut _x = fmx__fmxcpt::new();
let b = unsafe { FM_FixPt_AsBool(fix_pt.ptr, &mut _x) };
_x.check();
b
}
}
impl From<FixPt> for f64 {
fn from(fix_pt: FixPt) -> f64 {
let mut _x = fmx__fmxcpt::new();
let num = unsafe { FM_FixPt_AsFloat(fix_pt.ptr, &mut _x) };
_x.check();
num
}
}
impl From<&FixPt> for f64 {
fn from(fix_pt: &FixPt) -> f64 {
let mut _x = fmx__fmxcpt::new();
let num = unsafe { FM_FixPt_AsFloat(fix_pt.ptr, &mut _x) };
_x.check();
num
}
}
impl From<f64> for FixPt {
fn from(num: f64) -> FixPt {
let fixed_pt = FixPt::default();
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_AssignDouble(fixed_pt.ptr, num, &mut _x) };
_x.check();
fixed_pt
}
}
impl From<i32> for FixPt {
fn from(num: i32) -> FixPt {
let fixed_pt = FixPt::default();
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_AssignInt(fixed_pt.ptr, num, &mut _x) };
_x.check();
fixed_pt
}
}
impl From<u32> for FixPt {
fn from(num: u32) -> FixPt {
let fixed_pt = FixPt::default();
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_AssignInt(fixed_pt.ptr, num as i32, &mut _x) };
_x.check();
fixed_pt
}
}
impl From<i64> for FixPt {
fn from(num: i64) -> FixPt {
let fixed_pt = FixPt::default();
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_AssignInt64(fixed_pt.ptr, num as fmx_int64, &mut _x) };
_x.check();
fixed_pt
}
}
pub trait ToFixPt {
fn to_fixed_point(self) -> FixPt;
}
impl ToFixPt for FixPt {
fn to_fixed_point(self) -> Self {
self
}
}
impl ToFixPt for i32 {
fn to_fixed_point(self) -> FixPt {
FixPt::from(self)
}
}
impl ToFixPt for u32 {
fn to_fixed_point(self) -> FixPt {
FixPt::from(self)
}
}
impl ToFixPt for f64 {
fn to_fixed_point(self) -> FixPt {
FixPt::from(self)
}
}
impl ToFixPt for i64 {
fn to_fixed_point(self) -> FixPt {
FixPt::from(self)
}
}
impl Add for FixPt {
type Output = Self;
fn add(self, other: Self) -> Self {
let mut _x = fmx__fmxcpt::new();
let result = FixPt::default();
unsafe { FM_FixPt_Add(self.ptr, other.ptr, result.ptr, &mut _x) };
_x.check();
result
}
}
impl Add<i32> for FixPt {
type Output = Self;
fn add(self, other: i32) -> Self {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Increment(self.ptr, other, &mut _x) };
_x.check();
self
}
}
impl Add<FixPt> for i32 {
type Output = FixPt;
fn add(self, other: FixPt) -> FixPt {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Increment(other.ptr, self, &mut _x) };
_x.check();
other
}
}
impl Add<i64> for FixPt {
type Output = Self;
fn add(self, other: i64) -> Self {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Increment64(self.ptr, other as fmx_int64, &mut _x) };
_x.check();
self
}
}
impl AddAssign for FixPt {
fn add_assign(&mut self, other: Self) {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Increment(self.ptr, other.into(), &mut _x) };
_x.check();
}
}
impl AddAssign<i32> for FixPt {
fn add_assign(&mut self, other: i32) {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Increment(self.ptr, other, &mut _x) };
_x.check();
}
}
impl AddAssign<i64> for FixPt {
fn add_assign(&mut self, other: i64) {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Increment64(self.ptr, other as fmx_int64, &mut _x) };
_x.check();
}
}
impl SubAssign for FixPt {
fn sub_assign(&mut self, other: Self) {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Decrement(self.ptr, other.into(), &mut _x) };
_x.check();
}
}
impl SubAssign<i32> for FixPt {
fn sub_assign(&mut self, other: i32) {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Decrement(self.ptr, other, &mut _x) };
_x.check();
}
}
impl SubAssign<i64> for FixPt {
fn sub_assign(&mut self, other: i64) {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Decrement64(self.ptr, other as fmx_int64, &mut _x) };
_x.check();
}
}
impl Sub for FixPt {
type Output = Self;
fn sub(self, other: Self) -> Self {
let mut _x = fmx__fmxcpt::new();
let result = FixPt::default();
unsafe { FM_FixPt_Subtract(self.ptr, other.ptr, result.ptr, &mut _x) };
_x.check();
result
}
}
impl Sub<i32> for FixPt {
type Output = FixPt;
fn sub(self, other: i32) -> FixPt {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Decrement(self.ptr, other, &mut _x) };
_x.check();
self
}
}
impl Sub<i64> for FixPt {
type Output = FixPt;
fn sub(self, other: i64) -> FixPt {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Decrement64(self.ptr, other as fmx_int64, &mut _x) };
_x.check();
self
}
}
impl Mul for FixPt {
type Output = Self;
fn mul(self, other: Self) -> Self {
let mut _x = fmx__fmxcpt::new();
let result = FixPt::default();
unsafe { FM_FixPt_Multiply(self.ptr, other.ptr, result.ptr, &mut _x) };
_x.check();
result
}
}
impl Mul<&FixPt> for &FixPt {
type Output = FixPt;
fn mul(self, other: &FixPt) -> FixPt {
let mut _x = fmx__fmxcpt::new();
let result = FixPt::default();
unsafe { FM_FixPt_Multiply(self.ptr, other.ptr, result.ptr, &mut _x) };
_x.check();
result
}
}
impl Div for FixPt {
type Output = Self;
fn div(self, other: Self) -> Self {
let mut _x = fmx__fmxcpt::new();
let result = FixPt::default();
let error = unsafe { FM_FixPt_Divide(self.ptr, other.ptr, result.ptr, &mut _x) };
_x.check();
if error != FMError::NoError {
panic!();
}
result
}
}
impl Div<&FixPt> for &FixPt {
type Output = FixPt;
fn div(self, other: &FixPt) -> FixPt {
let mut _x = fmx__fmxcpt::new();
let result = FixPt::default();
let error = unsafe { FM_FixPt_Divide(self.ptr, other.ptr, result.ptr, &mut _x) };
_x.check();
if error != FMError::NoError {
panic!();
}
result
}
}
impl Rem for FixPt {
type Output = Self;
fn rem(self, other: Self) -> Self {
let mut _x = fmx__fmxcpt::new();
let result = FixPt::default();
let error = unsafe { FM_FixPt_Divide(self.ptr, other.ptr, result.ptr, &mut _x) };
_x.check();
if error != FMError::NoError {
panic!();
}
other - (self * result)
}
}
impl Neg for FixPt {
type Output = Self;
fn neg(self) -> Self {
let mut _x = fmx__fmxcpt::new();
unsafe { FM_FixPt_Negate(self.ptr, &mut _x) };
_x.check();
self
}
}
impl PartialEq for FixPt {
fn eq(&self, other: &FixPt) -> bool {
let mut _x = fmx__fmxcpt::new();
let result = unsafe { FM_FixPt_operatorEQ(self.ptr, other.ptr, &mut _x) };
_x.check();
result
}
#[allow(clippy::partialeq_ne_impl)]
fn ne(&self, other: &FixPt) -> bool {
let mut _x = fmx__fmxcpt::new();
let result = unsafe { FM_FixPt_operatorNE(self.ptr, other.ptr, &mut _x) };
_x.check();
result
}
}
impl PartialEq<i32> for FixPt {
fn eq(&self, other: &i32) -> bool {
i32::from(self) == *other
}
}
impl PartialEq<i64> for FixPt {
fn eq(&self, other: &i64) -> bool {
i64::from(self) == *other
}
}
impl PartialOrd for FixPt {
fn partial_cmp(&self, other: &FixPt) -> Option<Ordering> {
Some(self.cmp(other))
}
fn lt(&self, other: &Self) -> bool {
let mut _x = fmx__fmxcpt::new();
let lt = unsafe { FM_FixPt_operatorLT(self.ptr, other.ptr, &mut _x) };
_x.check();
lt
}
fn le(&self, other: &Self) -> bool {
let mut _x = fmx__fmxcpt::new();
let le = unsafe { FM_FixPt_operatorLE(self.ptr, other.ptr, &mut _x) };
_x.check();
le
}
fn gt(&self, other: &Self) -> bool {
let mut _x = fmx__fmxcpt::new();
let gt = unsafe { FM_FixPt_operatorGT(self.ptr, other.ptr, &mut _x) };
_x.check();
gt
}
fn ge(&self, other: &Self) -> bool {
let mut _x = fmx__fmxcpt::new();
let ge = unsafe { FM_FixPt_operatorGE(self.ptr, other.ptr, &mut _x) };
_x.check();
ge
}
}
impl Ord for FixPt {
fn cmp(&self, other: &Self) -> Ordering {
if self == other {
return Ordering::Equal;
}
match self > other {
true => Ordering::Greater,
false => Ordering::Less,
}
}
}
impl Clone for FixPt {
fn clone(&self) -> Self {
let mut _x = fmx__fmxcpt::new();
let ptr = unsafe { FM_FixPt_Constructor2(self.into(), self.ptr, &mut _x) };
_x.check();
Self { ptr, drop: true }
}
}
impl fmt::Display for FixPt {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let num = i32::from(self);
write!(f, "{}", num)
}
}
|
/// An example of a client/server agnostic WebSocket that takes input from stdin and sends that
/// input to all other peers.
///
/// For example, to create a network like this:
///
/// 3013 ---- 3012 ---- 3014
/// \ |
/// \ |
/// \ |
/// \ |
/// \ |
/// \ |
/// \ |
/// 3015
///
/// Run these commands in separate processes
/// ./peer2peer
/// ./peer2peer --server localhost:3013 ws://localhost:3012
/// ./peer2peer --server localhost:3014 ws://localhost:3012
/// ./peer2peer --server localhost:3015 ws://localhost:3012 ws://localhost:3013
///
/// Stdin on 3012 will be sent to all other peers
/// Stdin on 3013 will be sent to 3012 and 3015
/// Stdin on 3014 will be sent to 3012 only
/// Stdin on 3015 will be sent to 3012 and 2013
extern crate ws;
extern crate url;
extern crate clap;
extern crate env_logger;
extern crate rustc_serialize;
extern crate bincode;
#[macro_use]
extern crate log;
pub mod handler;
pub mod message;
use message::PeerMessage;
use handler::MessageFactory;
use std::collections::hash_map::HashMap;
use std::clone::Clone;
use std::io;
use std::io::prelude::*;
use std::thread;
use std::sync::{Arc, Mutex};
use bincode::rustc_serialize::encode;
use clap::{App, Arg};
fn main() {
// Setup logging
env_logger::init().unwrap();
// Parse command line arguments
let matches = App::new("Simple Peer 2 Peer")
.version("1.0")
.author("Jonathan Almeida <hello@jonalmeida.com>")
.about("Connect to other peers and listen for incoming connections.")
.arg(Arg::with_name("server")
.short("s")
.long("server")
.value_name("SERVER")
.help("Set the address to listen for new connections. (default: \
localhost:3012"))
.arg(Arg::with_name("PEER")
.help("A WebSocket URL to attempt to connect to at start.")
.multiple(true))
.arg(Arg::with_name("demo")
.short("d")
.long("demo")
.value_name("DEMO_SERVER")
.help("Sleeps for 4 seconds before receiving messages from this \
peer."))
.get_matches();
// Get address of this peer
let my_addr = String::from(matches.value_of("server").unwrap_or("localhost:3012"));
let demo_addr = matches.value_of("demo");
let my_addr_clone = my_addr.clone();
let mut clock = HashMap::new();
clock.insert(my_addr.clone(), 0u32);
let clock = Arc::new(Mutex::new(clock));
// Creating a Factory for the WebSocket
let mut factory = MessageFactory::build(clock.clone()).me(my_addr.clone().as_str());
if let Some(demo) = demo_addr {
factory.demo(demo);
}
// Create simple websocket that just prints out messages
let mut me = ws::WebSocket::new(factory).unwrap();
// Get a sender for ALL connections to the websocket
let broacaster = me.broadcaster();
// Setup thread for listening to stdin and sending messages to connections
thread::spawn(move || {
let stdin = io::stdin();
for line in stdin.lock().lines() {
// Incrementing clock before sending
if let Ok(mut clock) = clock.lock() {
if let Some(clock) = clock.get_mut(&my_addr_clone) {
*clock += 1;
}
// Constructing new message
let message = PeerMessage {
sender: my_addr_clone.clone(),
clocks: clock.clone(),
message: line.unwrap_or(String::from("n/a")),
};
// Encoding into bytes
if let Ok(encoded_msg) = encode(&message, bincode::SizeLimit::Infinite) {
// Sending bytes to all connected clients
broacaster.send(&*encoded_msg.into_boxed_slice()).unwrap();
}
}
}
});
// Connect to any existing peers specified on the cli
if let Some(peers) = matches.values_of("PEER") {
for peer in peers {
if let Ok(peer) = url::Url::parse(peer) {
me.connect(peer).unwrap();
}
}
}
// Run the websocket
if let Err(e) = me.listen(my_addr.clone().as_str()) {
panic!("Failed to start WebSocket.\n{}", e);
}
}
|
use crate::ast::Ranged;
use crate::lexer::*;
use crate::parsers::expression::argument::{comma, indexing_argument_list};
use crate::parsers::expression::logical::operator_or_expression;
use crate::parsers::expression::operator_expression;
use crate::parsers::token::literal::string::{double_quoted_string, single_quoted_string};
use crate::parsers::token::literal::symbol::symbol_name;
/// `[` *indexing_argument_list*? `]`
pub(crate) fn array_constructor(i: Input) -> NodeResult {
map(
tuple((char('['), ws0, opt(indexing_argument_list), ws0, char(']'))),
|t| Node::Array(t.2.unwrap_or(vec![])),
)(i)
}
/// `{` ( *association_list* [ no ⏎ ] `,`? )? `}`
pub(crate) fn hash_constructor(i: Input) -> NodeResult {
map(
tuple((
char('{'),
ws0,
opt(map(tuple((association_list, opt(comma), ws0)), |t| t.0)),
ws0,
char('}'),
)),
|t| Node::Hash(t.2.unwrap_or(vec![])),
)(i)
}
/// *association* ( [ no ⏎ ] `,` *association* )*
pub(crate) fn association_list(i: Input) -> NodeListResult {
map(
tuple((
association,
many0(map(tuple((no_lt, char(','), ws0, association)), |t| t.3)),
)),
|(mut first, vec)| {
first.extend(vec.into_iter().flatten().collect::<Vec<Node>>());
first
},
)(i)
}
/// *association_key* [ no ⏎ ] `=>` *association_value* | *symbol_name* `:` *association_value* | *single_quoted_string* `:` *association_value* | *double_quoted_string* `:` *association_value*
pub(crate) fn association(i: Input) -> NodeListResult {
alt((
map(
tuple((association_key, no_lt, tag("=>"), ws0, association_value)),
|t| vec![t.0, t.4],
),
map(
tuple((
alt((map(symbol_name, |s| s.to_string()), single_quoted_string)),
char(':'),
ws0,
association_value,
)),
|t| vec![Node::Literal(Literal::Symbol(t.0)), t.3],
),
map(
tuple((double_quoted_string, char(':'), ws0, association_value)),
|t| {
vec![
match t.0 {
Interpolatable::String(s) => Node::Literal(Literal::Symbol(s)),
Interpolatable::Interpolated(vec) => {
Node::Interpolated(Interpolated::Symbol(vec))
}
},
t.3,
]
},
),
))(i)
}
/// *operator_expression*
pub(crate) fn association_key(i: Input) -> NodeResult {
operator_expression(i)
}
/// *operator_expression*
pub(crate) fn association_value(i: Input) -> NodeResult {
operator_expression(i)
}
/// *operator_or_expression* | *operator_or_expression* [ no ⏎ ] *range_operator* *operator_or_expression*
pub(crate) fn range_constructor(i: Input) -> NodeResult {
let (i, lhs) = operator_or_expression(i)?;
if let Ok((j, t)) = tuple((no_lt, range_operator, ws0, operator_or_expression))(i.clone()) {
Ok((
j,
Node::Ranged(Ranged {
from: Box::new(lhs),
to: Box::new(t.3),
exclusive: *t.1 == "...",
}),
))
} else {
Ok((i, lhs))
}
}
/// `..` | `...`
pub(crate) fn range_operator(i: Input) -> LexResult {
recognize(alt((tag("..."), tag(".."))))(i)
}
#[cfg(test)]
mod tests {
use super::*;
use crate::ast::BinaryOpKind;
#[test]
fn test_hash_constructor() {
use_parser!(hash_constructor);
// Parse errors
assert_err!("{");
assert_err!("{1 => }");
assert_err!("{1: 2}");
assert_err!("{foo : 2}");
assert_err!("{1 \n => 2}");
// Success cases
assert_ok!("{}", Node::Hash(vec![]));
assert_ok!("{1=>2}", Node::Hash(vec![Node::int(1), Node::int(2)]));
assert_ok!(
"{'1': 2}",
Node::Hash(vec![Node::literal_symbol("1"), Node::int(2)])
);
assert_ok!(
"{foo: 2}",
Node::Hash(vec![Node::literal_symbol("foo"), Node::int(2)])
);
assert_ok!(
"{\"foo\": 2}",
Node::Hash(vec![Node::literal_symbol("foo"), Node::int(2)])
);
assert_ok!(
"{1 => 2,\n\n 3=>\n{}}",
Node::Hash(vec![
Node::int(1),
Node::int(2),
Node::int(3),
Node::Hash(vec![])
])
);
assert_ok!(
"{\"foo#{1}\": 2}",
Node::Hash(vec![
Node::Interpolated(Interpolated::Symbol(vec![
Node::Segment(Segment::String("foo".to_owned())),
Node::Block(vec![Node::int(1)])
])),
Node::int(2)
])
);
}
#[test]
fn test_array_constructor() {
use_parser!(array_constructor);
// Parse errors
assert_err!("[(]");
// Success cases
assert_ok!("[ \n]", Node::array(vec![]));
assert_ok!(
"[1, 2 * 3, []]",
Node::array(vec![
Node::int(1),
Node::binary_op(Node::int(2), BinaryOpKind::Multiply, Node::int(3)),
Node::array(vec![])
])
);
}
#[test]
fn test_range_constructor() {
use_parser!(range_constructor);
// Parse errors
assert_err!("");
assert_err!("1 ");
assert_err!("1....5");
// Success cases
assert_ok!("2", Node::int(2));
assert_ok!("2 .. 5", Node::range(Node::int(2), Node::int(5), false));
assert_ok!(
"2.0...4.0",
Node::range(Node::float(2.0), Node::float(4.0), true)
);
}
}
|
use std::{sync::Arc, time::Duration};
use backoff::{Backoff, BackoffConfig};
use data_types::TableId;
use iox_catalog::interface::Catalog;
use super::TableMetadata;
use crate::deferred_load::DeferredLoad;
/// An abstract provider of a [`DeferredLoad`] configured to fetch the
/// catalog [`TableMetadata`] of the specified [`TableId`].
pub(crate) trait TableProvider: Send + Sync + std::fmt::Debug {
fn for_table(&self, id: TableId) -> DeferredLoad<TableMetadata>;
}
#[derive(Debug)]
pub(crate) struct TableResolver {
max_smear: Duration,
catalog: Arc<dyn Catalog>,
backoff_config: BackoffConfig,
metrics: Arc<metric::Registry>,
}
impl TableResolver {
pub(crate) fn new(
max_smear: Duration,
catalog: Arc<dyn Catalog>,
backoff_config: BackoffConfig,
metrics: Arc<metric::Registry>,
) -> Self {
Self {
max_smear,
catalog,
backoff_config,
metrics,
}
}
/// Fetch the [`TableMetadata`] from the [`Catalog`] for specified
/// `table_id`, retrying endlessly when errors occur.
pub(crate) async fn fetch(
table_id: TableId,
catalog: Arc<dyn Catalog>,
backoff_config: BackoffConfig,
) -> TableMetadata {
Backoff::new(&backoff_config)
.retry_all_errors("fetch table", || async {
let table = catalog
.repositories()
.await
.tables()
.get_by_id(table_id)
.await?
.unwrap_or_else(|| {
panic!("resolving table name for non-existent table id {table_id}")
})
.into();
Result::<_, iox_catalog::interface::Error>::Ok(table)
})
.await
.expect("retry forever")
}
}
impl TableProvider for TableResolver {
fn for_table(&self, id: TableId) -> DeferredLoad<TableMetadata> {
DeferredLoad::new(
self.max_smear,
Self::fetch(id, Arc::clone(&self.catalog), self.backoff_config.clone()),
&self.metrics,
)
}
}
#[cfg(test)]
pub(crate) mod mock {
use super::*;
#[derive(Debug)]
pub(crate) struct MockTableProvider {
table: TableMetadata,
}
impl MockTableProvider {
pub(crate) fn new(table: impl Into<TableMetadata>) -> Self {
Self {
table: table.into(),
}
}
}
impl Default for MockTableProvider {
fn default() -> Self {
Self::new(TableMetadata::new_for_testing(
"bananas".into(),
Default::default(),
))
}
}
impl TableProvider for MockTableProvider {
fn for_table(&self, _id: TableId) -> DeferredLoad<TableMetadata> {
let table = self.table.clone();
DeferredLoad::new(
Duration::from_secs(1),
async { table },
&metric::Registry::default(),
)
}
}
}
#[cfg(test)]
mod tests {
use std::sync::Arc;
use test_helpers::timeout::FutureTimeout;
use super::*;
use crate::test_util::populate_catalog;
const TABLE_NAME: &str = "bananas";
const NAMESPACE_NAME: &str = "platanos";
#[tokio::test]
async fn test_fetch() {
let metrics = Arc::new(metric::Registry::default());
let backoff_config = BackoffConfig::default();
let catalog: Arc<dyn Catalog> =
Arc::new(iox_catalog::mem::MemCatalog::new(Arc::clone(&metrics)));
// Populate the catalog with the namespace / table
let (_ns_id, table_id) = populate_catalog(&*catalog, NAMESPACE_NAME, TABLE_NAME).await;
let fetcher = Arc::new(TableResolver::new(
Duration::from_secs(10),
Arc::clone(&catalog),
backoff_config.clone(),
metrics,
));
let got = fetcher
.for_table(table_id)
.get()
.with_timeout_panic(Duration::from_secs(5))
.await;
assert_eq!(got.name(), TABLE_NAME);
}
}
|
pub(crate) use decl::make_module;
#[pymodule(name = "dis")]
mod decl {
use crate::vm::{
builtins::{PyCode, PyDictRef, PyStrRef},
bytecode::CodeFlags,
compiler, PyObjectRef, PyRef, PyResult, TryFromObject, VirtualMachine,
};
#[pyfunction]
fn dis(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
let co = if let Ok(co) = obj.get_attr("__code__", vm) {
// Method or function:
PyRef::try_from_object(vm, co)?
} else if let Ok(co_str) = PyStrRef::try_from_object(vm, obj.clone()) {
// String:
vm.compile(co_str.as_str(), compiler::Mode::Exec, "<dis>".to_owned())
.map_err(|err| vm.new_syntax_error(&err, Some(co_str.as_str())))?
} else {
PyRef::try_from_object(vm, obj)?
};
disassemble(co)
}
#[pyfunction]
fn disassemble(co: PyRef<PyCode>) -> PyResult<()> {
print!("{}", &co.code);
Ok(())
}
#[pyattr(name = "COMPILER_FLAG_NAMES")]
fn compiler_flag_names(vm: &VirtualMachine) -> PyDictRef {
let dict = vm.ctx.new_dict();
for (name, flag) in CodeFlags::NAME_MAPPING {
dict.set_item(
&*vm.new_pyobj(flag.bits()),
vm.ctx.new_str(*name).into(),
vm,
)
.unwrap();
}
dict
}
}
|
// specialised n choose k that tries not to overflow a u64 on larger numbers
pub fn n_choose_k(n: u64, k: u64) -> u64 {
// n!/(k!*(n-k)!)
// we assume n-k > k
let mut n_on_n_sub_k_fact: u64 = 1;
let mut k_fact = Vec::new();
for i in 2..k + 1 {
k_fact.push(i);
}
// calculate n_on_n_sub_k_fact but also
// divide where possible to limit max zise
for i in (n - k) + 1..n + 1 {
n_on_n_sub_k_fact *= i;
for j in 0..k_fact.len() {
if n_on_n_sub_k_fact % k_fact[j] == 0 {
n_on_n_sub_k_fact /= k_fact.remove(j);
break; // we just busted our itorator so bail the loop here
}
}
}
// if there is anything left in the vector divide it out now
let mut divider = 1;
for j in k_fact {
divider *= j;
}
return n_on_n_sub_k_fact / divider;
}
#[cfg(test)]
mod test {
use super::*;
#[test]
fn test_choose() {
assert!(n_choose_k(3, 3) == 1);
assert!(n_choose_k(3, 2) == 3);
assert!(n_choose_k(4, 4) == 1);
assert!(n_choose_k(4, 3) == 4);
assert!(n_choose_k(4, 2) == 6);
}
}
|
use P70::str_to_tree;
use P72::*;
pub fn main() {
let tree = str_to_tree("afg^^c^bd^e^^^");
println!("{:?}", postorder(&tree));
}
|
use actix_web::http;
use actix_web::http::header::{HeaderMap, HeaderName, HeaderValue};
use actix_web::http::{Method, StatusCode};
use actix_web::{client, web, Error, HttpMessage, HttpRequest, HttpResponse};
use std::net::SocketAddr;
use std::time::Duration;
// use std::future::Future;
// use futures_core::stream::Stream;
// use futures_util::StreamExt;
use lazy_static::*;
lazy_static! {
static ref HEADER_X_FORWARDED_FOR: HeaderName =
HeaderName::from_lowercase(b"x-forwarded-for").unwrap();
static ref HOP_BY_HOP_HEADERS: Vec<HeaderName> = vec![
HeaderName::from_lowercase(b"connection").unwrap(),
HeaderName::from_lowercase(b"proxy-connection").unwrap(),
HeaderName::from_lowercase(b"keep-alive").unwrap(),
HeaderName::from_lowercase(b"proxy-authenticate").unwrap(),
HeaderName::from_lowercase(b"proxy-authorization").unwrap(),
HeaderName::from_lowercase(b"te").unwrap(),
HeaderName::from_lowercase(b"trailer").unwrap(),
HeaderName::from_lowercase(b"transfer-encoding").unwrap(),
HeaderName::from_lowercase(b"upgrade").unwrap(),
];
static ref HEADER_TE: HeaderName = HeaderName::from_lowercase(b"te").unwrap();
static ref HEADER_CONNECTION: HeaderName = HeaderName::from_lowercase(b"connection").unwrap();
static ref HEADER_CREDENTIALS: HeaderName =
HeaderName::from_lowercase(b"access-control-allow-credentials").unwrap();
static ref HEADER_ORIGIN: HeaderName =
HeaderName::from_lowercase(b"access-control-allow-origin").unwrap();
static ref HEADER_HEADERS: HeaderName =
HeaderName::from_lowercase(b"access-control-allow-headers").unwrap();
static ref HEADER_METHODS: HeaderName =
HeaderName::from_lowercase(b"access-control-allow-methods").unwrap();
static ref HEADER_TYPE: HeaderName = HeaderName::from_lowercase(b"content-type").unwrap();
static ref HEADER_LENGTH: HeaderName = HeaderName::from_lowercase(b"content-length").unwrap();
static ref HEADER_COOKIE: HeaderName = HeaderName::from_lowercase(b"cookie").unwrap();
static ref HEADER_SET_COOKIE: HeaderName = HeaderName::from_lowercase(b"set-cookie").unwrap();
}
static DEFAULT_TIMEOUT: Duration = Duration::from_secs(60);
pub struct ReverseProxy<'a> {
_req_name: &'a str,
forward_url: &'a str,
timeout: Duration,
method: Method,
header: HeaderMap,
query_body:String,
}
fn _add_client_ip(fwd_header_value: &mut String, client_addr: SocketAddr) {
if !fwd_header_value.is_empty() {
fwd_header_value.push_str(", ");
}
let client_ip_str = &format!("{}", client_addr.ip());
fwd_header_value.push_str(client_ip_str);
}
fn _remove_connection_headers(headers: &mut HeaderMap) {
let mut headers_to_delete: Vec<String> = Vec::new();
let header_connection = &(*HEADER_CONNECTION);
if headers.contains_key(header_connection) {
if let Ok(connection_header_value) = headers.get(header_connection).unwrap().to_str() {
for h in connection_header_value.split(',').map(|s| s.trim()) {
headers_to_delete.push(String::from(h));
}
}
}
for h in headers_to_delete {
headers.remove(h);
}
}
fn _remove_request_hop_by_hop_headers(headers: &mut HeaderMap) {
for h in HOP_BY_HOP_HEADERS.iter() {
if headers.contains_key(h)
&& (headers.get(h).unwrap().to_str().unwrap() == ""
|| (h == *HEADER_TE && headers.get(h).unwrap().to_str().unwrap() == "trailers"))
{
continue;
}
headers.remove(h);
}
}
fn add_custom_headers(headers: &mut HeaderMap, custom_headers: &HeaderMap) {
headers.clear();
for (k, v) in custom_headers {
headers.insert(k.clone(), v.clone());
}
}
fn add_response_preflight_headers(headers: &mut HeaderMap) {
headers.insert(HEADER_CONNECTION.clone(), HeaderValue::from_static("true"));
headers.insert(HEADER_ORIGIN.clone(), HeaderValue::from_static("*"));
headers.insert(
HEADER_HEADERS.clone(),
HeaderValue::from_static("X-Requested-With,Content-Type"),
);
headers.insert(
HEADER_METHODS.clone(),
HeaderValue::from_static("PUT,POST,GET,DELETE,OPTIONS"),
);
headers.insert(
HEADER_TYPE.clone(),
HeaderValue::from_static("application/json;charset=utf-8"),
);
}
impl<'a> ReverseProxy<'a> {
pub fn new(forward_url: &'a str, _req_name: &'a str) -> ReverseProxy<'a> {
ReverseProxy {
forward_url,
_req_name,
timeout: DEFAULT_TIMEOUT,
method: Method::default(),
header: HeaderMap::new(),
query_body: String::new(),
}
}
pub fn timeout(mut self, duration: Duration) -> ReverseProxy<'a> {
self.timeout = duration;
self
}
pub fn method(mut self, method: Method) -> ReverseProxy<'a> {
self.method = method;
self
}
pub fn header(mut self, header: HeaderMap) -> ReverseProxy<'a> {
self.header = header;
self
}
pub fn query_body(mut self, query_body: String) -> ReverseProxy<'a> {
self.query_body = query_body;
self
}
fn _x_forwarded_for_value(&self, req: &HttpRequest) -> String {
let mut result = String::new();
for (key, value) in req.headers() {
if key == *HEADER_X_FORWARDED_FOR {
result.push_str(value.to_str().unwrap());
break;
}
}
if let Some(peer_addr) = req.peer_addr() {
_add_client_ip(&mut result, peer_addr);
}
result
}
fn _forward_uri(&self, req: &HttpRequest) -> String {
let forward_url: &str = self.forward_url;
let forward_uri = match req.uri().query() {
Some(query) => format!("{}&{}", forward_url, query),
None => forward_url.to_string(),
};
forward_uri.to_string()
}
pub async fn forward(
&self,
req: HttpRequest,
_stream: web::Payload,
) -> Result<HttpResponse, Error> {
if req.method() == Method::OPTIONS {
Ok(HttpResponse::build(StatusCode::NO_CONTENT).finish())
} else {
let connector = client::Connector::new().timeout(self.timeout).finish();
let mut forward_req = client::ClientBuilder::new()
.no_default_headers()
.connector(connector)
.timeout(self.timeout)
.finish()
.request_from(self.forward_url, req.head())
.method(self.method.clone());
add_custom_headers(forward_req.headers_mut(), &self.header);
if cfg!(debug_assertions) {
println!("forward_uri is : {}", self.forward_url);
}
if cfg!(debug_assertions) {
println!("\n\r#### REVERSE PROXY REQUEST HEADERS ####");
for (key, value) in forward_req.headers() {
println!("[{:?}] = {:?}", key, value);
}
println!("#### REVERSE PROXY REQUEST HEADERS ####\n\r");
}
// let mut bytes = web::BytesMut::new();
// while let Some(item) = stream.next().await {
// bytes.extend_from_slice(&item?);
// }
// let r = format!("Body {:?}!", bytes);
// println!("body is {}", r);
forward_req
.send_body(self.query_body.clone())
.await
.map_err(|error| {
println!("Error: {}", error);
error.into()
})
.and_then(|mut resp| {
let mut back_rsp = HttpResponse::build(resp.status());
//extract and set cookie
let mut set_cookie = resp
.headers()
.get_all(http::header::SET_COOKIE);
let mut str_cookie = String::new();
while let Some(ck) = set_cookie.next() {
let ck = ck.to_str().unwrap();
let cookie = regex::Regex::new(r"\s*Domain=[^(;|$)]+;*")
.unwrap()
.replace_all(ck, "")
.into_owned();
str_cookie.push_str(&cookie);
};
if !str_cookie.is_empty() {
back_rsp.set_header(http::header::COOKIE, str_cookie);
}
//copy header
// for (key, value) in resp.headers() {
// back_rsp.header(key.clone(), value.clone());
// }
let mut back_rsp = back_rsp.streaming(resp.take_payload());
add_response_preflight_headers(back_rsp.headers_mut());
if cfg!(debug_assertions) {
println!("\n\r#### REVERSE PROXY RESPONSE HEADERS ####");
for (key, value) in back_rsp.headers() {
println!("[{:?}] = {:?}", key, value);
}
println!("#### REVERSE PROXY RESPONSE HEADERS ####\n\r");
}
Ok(back_rsp)
})
}
}
}
|
// resources.rs
//
// Copyright (c) 2019, Univerisity of Minnesota
//
// Author: Bridger Herman (herma582@umn.edu)
//! A collection of functions for asynchrously loading resources (shaders,
//! meshes, materials, textures, etc.) from the server
//!
//! Heavy inspiration from Wasm Bindgen Fetch Example
use js_sys::{ArrayBuffer, Uint8Array};
use wasm_bindgen::prelude::*;
use wasm_bindgen::JsCast;
use wasm_bindgen_futures::JsFuture;
use web_sys::{Request, RequestInit, RequestMode, Response};
/// Load a text resource from the server
/// Used for mesh, material, shader
#[wasm_bindgen]
pub async fn load_text_resource(path: String) -> Result<JsValue, JsValue> {
info!("Loading text resource {}", path);
let mut opts = RequestInit::new();
opts.method("GET");
opts.mode(RequestMode::Cors);
let request = Request::new_with_str_and_init(&path, &opts)?;
let window = web_sys::window().unwrap();
let resp_value =
JsFuture::from(window.fetch_with_request(&request)).await?;
let resp: Response = resp_value.dyn_into().unwrap_or_else(|err| {
error_panic!("Response is not a Response: {:?}", err);
});
// Convert this other `Promise` into a rust `Future`.
let text = JsFuture::from(resp.text()?).await?;
Ok(text)
}
/// Load an image resource from the server
/// Used for texture
#[wasm_bindgen]
pub async fn load_image_resource(path: String) -> Result<Uint8Array, JsValue> {
info!("Loading image resource {}", path);
let mut opts = RequestInit::new();
opts.method("GET");
opts.mode(RequestMode::Cors);
let request = Request::new_with_str_and_init(&path, &opts)?;
let window = web_sys::window().unwrap_or_else(|| {
error_panic!("Unable to get DOM window");
});
let resp_value =
JsFuture::from(window.fetch_with_request(&request)).await?;
let resp: Response = resp_value.dyn_into().unwrap_or_else(|err| {
error_panic!("Response is not a Response: {:?}", err);
});
// Convert this other `Promise` into a rust `Future`.
let js_array = JsFuture::from(resp.array_buffer()?).await?;
let array_buffer: ArrayBuffer = js_array.dyn_into().unwrap_or_else(|err| {
error_panic!("Response is not an ArrayBuffer: {:?}", err);
});
let bytes = Uint8Array::new(&array_buffer);
Ok(bytes)
}
|
pub trait Scalar: PartialEq + Copy + Default {}
impl<T: PartialEq + Copy + Default> Scalar for T {}
|
// Copyright (c) 2017 Martijn Rijkeboer <mrr@sru-systems.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use crate::block::Block;
use std::fmt;
use std::fmt::Debug;
use std::ops::{Index, IndexMut};
/// Structure representing the memory matrix.
pub struct Memory {
/// The number of rows.
rows: usize,
/// The number of columns.
cols: usize,
/// The flat array of blocks representing the memory matrix.
blocks: Box<[Block]>,
}
impl Memory {
/// Creates a new memory matrix.
pub fn new(lanes: u32, lane_length: u32) -> Memory {
let rows = lanes as usize;
let cols = lane_length as usize;
let total = rows * cols;
let blocks = vec![Block::zero(); total].into_boxed_slice();
Memory { rows, cols, blocks }
}
}
impl Debug for Memory {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Memory {{ rows: {}, cols: {} }}", self.rows, self.cols)
}
}
impl Index<u32> for Memory {
type Output = Block;
fn index(&self, index: u32) -> &Block {
&self.blocks[index as usize]
}
}
impl Index<u64> for Memory {
type Output = Block;
fn index(&self, index: u64) -> &Block {
&self.blocks[index as usize]
}
}
impl Index<(u32, u32)> for Memory {
type Output = Block;
fn index(&self, index: (u32, u32)) -> &Block {
let pos = ((index.0 as usize) * self.cols) + (index.1 as usize);
&self.blocks[pos]
}
}
impl IndexMut<u32> for Memory {
fn index_mut(&mut self, index: u32) -> &mut Block {
&mut self.blocks[index as usize]
}
}
impl IndexMut<u64> for Memory {
fn index_mut(&mut self, index: u64) -> &mut Block {
&mut self.blocks[index as usize]
}
}
impl IndexMut<(u32, u32)> for Memory {
fn index_mut(&mut self, index: (u32, u32)) -> &mut Block {
let pos = ((index.0 as usize) * self.cols) + (index.1 as usize);
&mut self.blocks[pos]
}
}
#[cfg(test)]
mod tests {
use crate::memory::Memory;
#[test]
fn new_returns_correct_instance() {
let lanes = 4;
let lane_length = 128;
let memory = Memory::new(lanes, lane_length);
assert_eq!(memory.rows, lanes as usize);
assert_eq!(memory.cols, lane_length as usize);
assert_eq!(memory.blocks.len(), 512);
}
}
|
use crate::operators::Operator;
pub struct Token(pub f64, pub Operator);
pub trait Tokens {
fn eval(&self) -> f64;
fn create(&mut self, num: f64, operator: Operator);
fn create_at(&mut self, i: usize, num: f64, operator: Operator);
}
impl Tokens for Vec<Token> {
fn eval(&self) -> f64 {
let mut result: f64 = 0.0;
let mut i = 0;
while i < self.len() {
let token = &self[i];
match token.1 {
Operator::Addition => {
result += token.0;
},
Operator::Subtraction => {
result -= token.0;
},
Operator::Multiplication => {
result *= token.0;
},
Operator::Division => {
result /= token.0;
},
_ => continue,
}
i += 1;
}
return result;
}
fn create(&mut self, num: f64, operator: Operator) {
self.push(Token(num, operator));
}
fn create_at(&mut self, i: usize, num: f64, operator: Operator) {
self.insert(i, Token(num, operator));
}
}
|
extern crate termion;
use termion::input::TermRead;
use termion::event::Key;
use termion::raw::IntoRawMode;
use std::io;
use std::process;
mod kubectl;
mod state;
use state::{State, Event, Pod, Pods};
use anyhow::Result;
use std::sync::{Arc,Mutex};
use std::sync::mpsc::channel;
fn handle_input(state: Arc<Mutex<State>>, send: std::sync::mpsc::Sender<Event>) -> Result<()> {
let stdin = io::stdin();
let stdin = stdin.lock();
let mut keys = stdin.keys();
while let Ok(key) = keys.next().unwrap() {
match key {
Key::Down | Key::Char('j') => {
let mut state = state.lock().unwrap();
if let Some(pods) = &state.pods {
if !pods.is_empty() {
state.index_highlighted = (pods.len() - 1).min(state.index_highlighted + 1);
}
}
send.send(Event::Render)?;
},
Key::Up | Key::Char('k') => {
let mut state = state.lock().unwrap();
if state.index_highlighted > 0 {
state.index_highlighted -= 1;
}
send.send(Event::Render)?;
},
Key::Char('q') => {
send.send(Event::Quit)?;
break
},
_ => {},
}
}
Ok(())
}
fn get_pods () -> Result<Pods> {
let res = process::Command::new("kubectl")
.env("KUBECONFIG", "/Users/baspar/.kube/config-multipass")
.arg("get").arg("pods")
.arg("-n").arg("mlisa-core")
.arg("-o").arg("json")
.output()?;
let res = res.stdout.as_slice();
let res = std::str::from_utf8(res)?;
let res: kubectl::Response<kubectl::Labels> = serde_json::from_str(res)?;
let pods: Vec<Pod> = res.items
.iter()
.filter_map(|item| {
match &item.metadata.labels {
kubectl::Labels::PodLabels (labels) => {
Some(kubectl::Pod {
status: item.status.clone(),
spec: item.spec.clone(),
metadata: kubectl::MetaData {
labels: labels.clone(),
name: item.metadata.name.clone()
}
})
},
kubectl::Labels::OtherLabels {} => None
}
})
.collect();
Ok(pods)
}
fn handle_pull(state: Arc<Mutex<State>>, send: std::sync::mpsc::Sender<Event>) -> Result<()> {
loop {
let res = get_pods();
if let Ok(mut state) = state.lock() {
match res {
Err(error) => state.error = Some(error),
Ok(pods) => state.set_pods(pods)
}
send.send(Event::Render)?;
}
std::thread::sleep(std::time::Duration::from_millis(2000));
}
}
fn main() -> Result<()> {
let (sender, receiver) = channel();
let state = Arc::new(Mutex::new(State::new()));
let s = state.clone();
let send = sender.clone();
std::thread::spawn(move || {
handle_input(s, send).unwrap();
});
let s = state.clone();
std::thread::spawn(move || {
handle_pull(s, sender).unwrap();
});
let mut stdout = io::stdout().into_raw_mode()?;
state.lock().unwrap().render(&mut stdout);
for event in receiver {
match event {
Event::Quit => {break},
Event::Render => {
state.lock().unwrap().render(&mut stdout);
}
}
}
Ok(())
}
|
#[doc = "Reader of register RPR1"]
pub type R = crate::R<u32, super::RPR1>;
#[doc = "Writer for register RPR1"]
pub type W = crate::W<u32, super::RPR1>;
#[doc = "Register RPR1 `reset()`'s with value 0"]
impl crate::ResetValue for super::RPR1 {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Reader of field `RPIF0`"]
pub type RPIF0_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF0`"]
pub struct RPIF0_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF0_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
#[doc = "Reader of field `RPIF1`"]
pub type RPIF1_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF1`"]
pub struct RPIF1_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF1_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = "Reader of field `RPIF2`"]
pub type RPIF2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF2`"]
pub struct RPIF2_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = "Reader of field `RPIF3`"]
pub type RPIF3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF3`"]
pub struct RPIF3_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
self.w
}
}
#[doc = "Reader of field `RPIF4`"]
pub type RPIF4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF4`"]
pub struct RPIF4_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
self.w
}
}
#[doc = "Reader of field `RPIF5`"]
pub type RPIF5_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF5`"]
pub struct RPIF5_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF5_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
self.w
}
}
#[doc = "Reader of field `RPIF6`"]
pub type RPIF6_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF6`"]
pub struct RPIF6_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF6_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
self.w
}
}
#[doc = "Reader of field `RPIF7`"]
pub type RPIF7_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF7`"]
pub struct RPIF7_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF7_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
self.w
}
}
#[doc = "Reader of field `RPIF8`"]
pub type RPIF8_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF8`"]
pub struct RPIF8_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF8_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Reader of field `RPIF9`"]
pub type RPIF9_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF9`"]
pub struct RPIF9_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF9_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = "Reader of field `RPIF10`"]
pub type RPIF10_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF10`"]
pub struct RPIF10_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF10_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = "Reader of field `RPIF11`"]
pub type RPIF11_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF11`"]
pub struct RPIF11_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF11_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
self.w
}
}
#[doc = "Reader of field `RPIF12`"]
pub type RPIF12_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF12`"]
pub struct RPIF12_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF12_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
self.w
}
}
#[doc = "Reader of field `RPIF13`"]
pub type RPIF13_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF13`"]
pub struct RPIF13_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF13_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 13)) | (((value as u32) & 0x01) << 13);
self.w
}
}
#[doc = "Reader of field `RPIF14`"]
pub type RPIF14_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF14`"]
pub struct RPIF14_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF14_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14);
self.w
}
}
#[doc = "Reader of field `RPIF15`"]
pub type RPIF15_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF15`"]
pub struct RPIF15_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF15_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
self.w
}
}
#[doc = "Reader of field `RPIF16`"]
pub type RPIF16_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF16`"]
pub struct RPIF16_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF16_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
self.w
}
}
#[doc = "Reader of field `RPIF21`"]
pub type RPIF21_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF21`"]
pub struct RPIF21_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF21_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 21)) | (((value as u32) & 0x01) << 21);
self.w
}
}
#[doc = "Reader of field `RPIF22`"]
pub type RPIF22_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `RPIF22`"]
pub struct RPIF22_W<'a> {
w: &'a mut W,
}
impl<'a> RPIF22_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 22)) | (((value as u32) & 0x01) << 22);
self.w
}
}
impl R {
#[doc = "Bit 0 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif0(&self) -> RPIF0_R {
RPIF0_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif1(&self) -> RPIF1_R {
RPIF1_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif2(&self) -> RPIF2_R {
RPIF2_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif3(&self) -> RPIF3_R {
RPIF3_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif4(&self) -> RPIF4_R {
RPIF4_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif5(&self) -> RPIF5_R {
RPIF5_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif6(&self) -> RPIF6_R {
RPIF6_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif7(&self) -> RPIF7_R {
RPIF7_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif8(&self) -> RPIF8_R {
RPIF8_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif9(&self) -> RPIF9_R {
RPIF9_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif10(&self) -> RPIF10_R {
RPIF10_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif11(&self) -> RPIF11_R {
RPIF11_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif12(&self) -> RPIF12_R {
RPIF12_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif13(&self) -> RPIF13_R {
RPIF13_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif14(&self) -> RPIF14_R {
RPIF14_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif15(&self) -> RPIF15_R {
RPIF15_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif16(&self) -> RPIF16_R {
RPIF16_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 21 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif21(&self) -> RPIF21_R {
RPIF21_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif22(&self) -> RPIF22_R {
RPIF22_R::new(((self.bits >> 22) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif0(&mut self) -> RPIF0_W {
RPIF0_W { w: self }
}
#[doc = "Bit 1 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif1(&mut self) -> RPIF1_W {
RPIF1_W { w: self }
}
#[doc = "Bit 2 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif2(&mut self) -> RPIF2_W {
RPIF2_W { w: self }
}
#[doc = "Bit 3 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif3(&mut self) -> RPIF3_W {
RPIF3_W { w: self }
}
#[doc = "Bit 4 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif4(&mut self) -> RPIF4_W {
RPIF4_W { w: self }
}
#[doc = "Bit 5 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif5(&mut self) -> RPIF5_W {
RPIF5_W { w: self }
}
#[doc = "Bit 6 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif6(&mut self) -> RPIF6_W {
RPIF6_W { w: self }
}
#[doc = "Bit 7 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif7(&mut self) -> RPIF7_W {
RPIF7_W { w: self }
}
#[doc = "Bit 8 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif8(&mut self) -> RPIF8_W {
RPIF8_W { w: self }
}
#[doc = "Bit 9 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif9(&mut self) -> RPIF9_W {
RPIF9_W { w: self }
}
#[doc = "Bit 10 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif10(&mut self) -> RPIF10_W {
RPIF10_W { w: self }
}
#[doc = "Bit 11 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif11(&mut self) -> RPIF11_W {
RPIF11_W { w: self }
}
#[doc = "Bit 12 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif12(&mut self) -> RPIF12_W {
RPIF12_W { w: self }
}
#[doc = "Bit 13 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif13(&mut self) -> RPIF13_W {
RPIF13_W { w: self }
}
#[doc = "Bit 14 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif14(&mut self) -> RPIF14_W {
RPIF14_W { w: self }
}
#[doc = "Bit 15 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif15(&mut self) -> RPIF15_W {
RPIF15_W { w: self }
}
#[doc = "Bit 16 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif16(&mut self) -> RPIF16_W {
RPIF16_W { w: self }
}
#[doc = "Bit 21 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif21(&mut self) -> RPIF21_W {
RPIF21_W { w: self }
}
#[doc = "Bit 22 - configurable event inputs x rising edge pending bit"]
#[inline(always)]
pub fn rpif22(&mut self) -> RPIF22_W {
RPIF22_W { w: self }
}
}
|
//! Load animations and sprites from a ron file.
use amethyst::{
assets::{AssetStorage, Loader},
config::Config,
prelude::*,
renderer::{ImageFormat, Sprite, SpriteSheet, /*SpriteSheetHandle,*/ Texture, /*TextureMetadata*/
sprite::SpriteSheetHandle, SpriteRender,
},
};
use regex::Regex;
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
/// Definition of one sprite in the RON file.
#[derive(Debug, Serialize, Deserialize)]
pub struct SpriteDefinition {
pub name: String,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub offset: Option<(f32, f32)>,
}
/// RON file definition.
#[derive(Debug, Serialize, Deserialize)]
pub struct AnimationData {
pub texture_path: String,
pub texture_width: u32,
pub texture_height: u32,
pub sprites: Vec<SpriteDefinition>,
pub animations: BTreeMap<String, Vec<usize>>,
pub images: BTreeMap<String, usize>,
}
impl Default for AnimationData {
fn default() -> Self {
AnimationData {
texture_path: String::new(),
texture_width: 0,
texture_height: 0,
sprites: Vec::new(),
animations: BTreeMap::new(),
images: BTreeMap::new(),
}
}
}
/// Stores all animations and sprites and sprites which can be used
/// ingame.
pub struct SpriteAnimationStore {
pub sprite_sheet_handle: SpriteSheetHandle,
pub animations: BTreeMap<String, Vec<usize>>,
pub images: BTreeMap<String, usize>,
}
impl SpriteAnimationStore {
pub fn get_sprite_render(&self, name: &str) -> Option<SpriteRender> {
self.images.get(name)
.map(|index| SpriteRender {
sprite_sheet: self.sprite_sheet_handle.clone(),
sprite_number: *index
})
}
}
/// Use an AnimationData and create animations and sprite images based on sprite names.
///
/// If a name ends with underscores followed by numbers it is treated as part of an animations.
/// In this case it will add it to the animations, otherwise it will simply store the index in
/// the images tree map under that name.
pub fn manually_assign_animations(animation_data: &mut AnimationData) {
let mut animations: BTreeMap<String, Vec<usize>> = BTreeMap::new();
let mut images: BTreeMap<String, usize> = BTreeMap::new();
let ends_with_number_pattern = Regex::new(r"_\d+$").unwrap();
for (i, sprite) in (0..).zip(&animation_data.sprites) {
if let Some(_) = ends_with_number_pattern.find(&sprite.name) {
let animation_name = ends_with_number_pattern.replace_all(&sprite.name, "");
println!("Animation name: {}", animation_name);
let entry = animations
.entry(animation_name.to_string())
.or_insert_with(|| Vec::new());
entry.push(i);
} else {
images.insert(sprite.name.to_string(), i);
}
}
animation_data.animations = animations;
animation_data.images = images;
}
/// Load animations and images from the given ron file.
///
/// It requires a mutable reference to the world, a directory, where the assets are stored and the filename
/// of the ron file inside the directory. The reference to the image file in the ron file is relative to the
/// directory provides as second argument.
pub fn load_sprites(
world: &mut World,
directory: impl ToString,
filename: impl ToString,
) -> SpriteAnimationStore {
// ---- Loading animations
info!("Loading animations");
let directory = directory.to_string();
let filename = filename.to_string();
let ron_path = format!("{}/{}", directory, filename);
let mut animations = AnimationData::load(ron_path).expect("Animation data should load");
manually_assign_animations(&mut animations);
let texture_path = format!("{}/{}", directory, animations.texture_path);
let texture_handle = {
let loader = world.read_resource::<Loader>();
let texture_storage = world.read_resource::<AssetStorage<Texture>>();
loader.load(
texture_path,
ImageFormat::default(),
(),
&texture_storage,
)
};
let mut sprites = Vec::with_capacity(animations.sprites.len());
for sprite in animations.sprites {
let offset = if let Some((offset_x, offset_y)) = sprite.offset {
[offset_x, offset_y]
} else {
[0.5; 2]
};
sprites.push(Sprite::from_pixel_values(
animations.texture_width,
animations.texture_height,
sprite.width,
sprite.height,
sprite.x,
sprite.y,
offset,
false,
false
));
}
let sprite_sheet = SpriteSheet {
texture: texture_handle,
sprites,
};
let sprite_sheet_handle = {
let loader = world.read_resource::<Loader>();
loader.load_from_data(
sprite_sheet,
(),
&world.read_resource::<AssetStorage<SpriteSheet>>(),
)
};
SpriteAnimationStore {
sprite_sheet_handle,
animations: animations.animations.clone(),
images: animations.images.clone(),
}
}
|
use crate::{
context::RpcContext,
v02::types::{reply::FeeEstimate, request::BroadcastedTransaction},
};
use pathfinder_common::BlockId;
use super::common::prepare_handle_and_block;
#[derive(serde::Deserialize, Debug, PartialEq, Eq)]
pub struct EstimateFeeInput {
request: Vec<BroadcastedTransaction>,
block_id: BlockId,
}
crate::error::generate_rpc_error_subset!(
EstimateFeeError: BlockNotFound,
ContractNotFound,
ContractError
);
impl From<crate::cairo::ext_py::CallFailure> for EstimateFeeError {
fn from(c: crate::cairo::ext_py::CallFailure) -> Self {
use crate::cairo::ext_py::CallFailure::*;
match c {
NoSuchBlock => Self::BlockNotFound,
NoSuchContract => Self::ContractNotFound,
InvalidEntryPoint => {
Self::Internal(anyhow::anyhow!("Internal error: invalid entry point"))
}
ExecutionFailed(e) => Self::Internal(anyhow::anyhow!("Internal error: {e}")),
// Intentionally hide the message under Internal
Internal(_) | Shutdown => Self::Internal(anyhow::anyhow!("Internal error")),
}
}
}
pub async fn estimate_fee(
context: RpcContext,
input: EstimateFeeInput,
) -> Result<Vec<FeeEstimate>, EstimateFeeError> {
let (handle, gas_price, when, pending_timestamp, pending_update) =
prepare_handle_and_block(&context, input.block_id).await?;
let result = handle
.estimate_fee(
input.request,
when,
gas_price,
pending_update,
pending_timestamp,
)
.await?;
Ok(result)
}
#[cfg(test)]
pub(crate) mod tests {
use super::*;
use crate::v02::types::request::BroadcastedInvokeTransaction;
use pathfinder_common::macro_prelude::*;
use pathfinder_common::{Fee, TransactionNonce, TransactionVersion};
mod parsing {
use super::*;
fn test_invoke_txn() -> BroadcastedTransaction {
BroadcastedTransaction::Invoke(BroadcastedInvokeTransaction::V1(
crate::v02::types::request::BroadcastedInvokeTransactionV1 {
version: TransactionVersion::ONE_WITH_QUERY_VERSION,
max_fee: fee!("0x6"),
signature: vec![transaction_signature_elem!("0x7")],
nonce: transaction_nonce!("0x8"),
sender_address: contract_address!("0xaaa"),
calldata: vec![call_param!("0xff")],
},
))
}
#[test]
fn positional_args() {
use jsonrpsee::types::Params;
let positional = r#"[
[
{
"type": "INVOKE",
"version": "0x100000000000000000000000000000001",
"max_fee": "0x6",
"signature": [
"0x7"
],
"nonce": "0x8",
"sender_address": "0xaaa",
"calldata": [
"0xff"
]
}
],
{ "block_hash": "0xabcde" }
]"#;
let positional = Params::new(Some(positional));
let input = positional.parse::<EstimateFeeInput>().unwrap();
let expected = EstimateFeeInput {
request: vec![test_invoke_txn()],
block_id: BlockId::Hash(block_hash!("0xabcde")),
};
assert_eq!(input, expected);
}
#[test]
fn named_args() {
use jsonrpsee::types::Params;
let named_args = r#"{
"request": [
{
"type": "INVOKE",
"version": "0x100000000000000000000000000000001",
"max_fee": "0x6",
"signature": [
"0x7"
],
"nonce": "0x8",
"sender_address": "0xaaa",
"calldata": [
"0xff"
]
}
],
"block_id": { "block_hash": "0xabcde" }
}"#;
let named_args = Params::new(Some(named_args));
let input = named_args.parse::<EstimateFeeInput>().unwrap();
let expected = EstimateFeeInput {
request: vec![test_invoke_txn()],
block_id: BlockId::Hash(block_hash!("0xabcde")),
};
assert_eq!(input, expected);
}
}
// These tests require a Python environment properly set up _and_ a mainnet database with the first six blocks.
pub(crate) mod ext_py {
use super::*;
use crate::v02::types::request::{
BroadcastedDeclareTransaction, BroadcastedDeclareTransactionV0,
BroadcastedDeclareTransactionV1, BroadcastedDeclareTransactionV2,
BroadcastedInvokeTransactionV1,
};
use crate::v02::types::{ContractClass, SierraContractClass};
// These tests require a Python environment properly set up _and_ a mainnet database with the first six blocks.
use std::num::NonZeroU32;
use std::path::PathBuf;
use std::sync::Arc;
use pathfinder_common::{
BlockHash, BlockNumber, Chain, ContractAddress, ContractNonce, ContractRoot, GasPrice,
};
use pathfinder_storage::{JournalMode, Storage};
// Mainnet block number 5
pub(crate) const BLOCK_5: BlockId = BlockId::Hash(block_hash!(
"00dcbd2a4b597d051073f40a0329e585bb94b26d73df69f8d72798924fd097d3"
));
pub(crate) fn valid_invoke_v1(account_address: ContractAddress) -> BroadcastedTransaction {
BroadcastedTransaction::Invoke(BroadcastedInvokeTransaction::V1(
BroadcastedInvokeTransactionV1 {
version: TransactionVersion::ONE_WITH_QUERY_VERSION,
max_fee: Fee(Default::default()),
signature: vec![],
nonce: TransactionNonce(Default::default()),
sender_address: account_address,
calldata: vec![
// Transaction data taken from:
// https://alpha-mainnet.starknet.io/feeder_gateway/get_transaction?transactionHash=0x000c52079f33dcb44a58904fac3803fd908ac28d6632b67179ee06f2daccb4b5
//
// Structure of "outer" calldata (BroadcastedInvokeTransactionV1::calldata) is based on:
//
// https://github.com/OpenZeppelin/cairo-contracts/blob/4dd04250c55ae8a5bbcb72663c989bb204e8d998/src/openzeppelin/account/IAccount.cairo#L30
//
// func __execute__(
// call_array_len: felt, // <-- number of contract calls passed through this account in this transaction (here: 1)
// call_array: AccountCallArray*, // <-- metadata for each passed contract call
// calldata_len: felt, // <-- unused
// calldata: felt* // <-- this entire "outer" vector (BroadcastedInvokeTransactionV1::calldata)
// )
//
// Metadata for each contract call passed through the account
//
// https://github.com/OpenZeppelin/cairo-contracts/blob/4dd04250c55ae8a5bbcb72663c989bb204e8d998/src/openzeppelin/account/library.cairo#L52
//
// struct AccountCallArray {
// to: felt, // The address of the contract that is being called
// selector: felt, // Entry point selector for the contract function called
// data_offset: felt, // Offset in the "outer" calldata (BroadcastedInvokeTransactionV1::calldata) to the next contract's calldata
// data_len: felt, // Size of the calldata for this contract function call
// }
//
// To see how the above structure is translated to a proper calldata for a single call instance see
// a "preset" implementation of IAccount
// https://github.com/OpenZeppelin/cairo-contracts/blob/4dd04250c55ae8a5bbcb72663c989bb204e8d998/src/openzeppelin/account/presets/Account.cairo#L128
// https://github.com/OpenZeppelin/cairo-contracts/blob/main/src/openzeppelin/account/library.cairo#L239
//
// especially
//
// func _from_call_array_to_call{syscall_ptr: felt*}(
// call_array_len: felt, call_array: AccountCallArray*, calldata: felt*, calls: Call*
// )
//
// Called contract address, i.e. AccountCallArray::to
call_param!(
"05a02acdbf218464be3dd787df7a302f71fab586cad5588410ba88b3ed7b3a21"
),
// Entry point selector for the called contract, i.e. AccountCallArray::selector
call_param!(
"03d7905601c217734671143d457f0db37f7f8883112abd34b92c4abfeafde0c3"
),
// Length of the call data for the called contract, i.e. AccountCallArray::data_len
call_param!("2"),
// Proper calldata for this contract
call_param!(
"e150b6c2db6ed644483b01685571de46d2045f267d437632b508c19f3eb877"
),
call_param!(
"0494196e88ce16bff11180d59f3c75e4ba3475d9fba76249ab5f044bcd25add6"
),
],
},
))
}
pub(crate) fn test_storage_with_account(
gas_price: GasPrice,
) -> (
tempfile::TempDir,
Storage,
ContractAddress,
BlockHash,
BlockNumber,
) {
let mut source_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
source_path.push("fixtures/mainnet.sqlite");
let db_dir = tempfile::TempDir::new().unwrap();
let mut db_path = PathBuf::from(db_dir.path());
db_path.push("mainnet.sqlite");
std::fs::copy(&source_path, &db_path).unwrap();
let storage = pathfinder_storage::Storage::migrate(db_path, JournalMode::WAL)
.unwrap()
.create_pool(NonZeroU32::new(1).unwrap())
.unwrap();
let (account_address, latest_block_hash, latest_block_number) =
add_dummy_account(storage.clone(), gas_price);
(
db_dir,
storage,
account_address,
latest_block_hash,
latest_block_number,
)
}
pub(crate) async fn test_context_with_call_handling() -> (
tempfile::TempDir,
RpcContext,
tokio::task::JoinHandle<()>,
ContractAddress,
BlockHash,
) {
use pathfinder_common::ChainId;
let (db_dir, storage, account_address, latest_block_hash, _) =
test_storage_with_account(GasPrice::ZERO);
let sync_state = Arc::new(crate::SyncState::default());
let (call_handle, cairo_handle) = crate::cairo::ext_py::start(
storage.path().into(),
std::num::NonZeroUsize::try_from(2).unwrap(),
futures::future::pending(),
Chain::Mainnet,
)
.await
.unwrap();
let sequencer = starknet_gateway_client::Client::mainnet().disable_retry_for_tests();
let context = RpcContext::new(storage, sync_state, ChainId::MAINNET, sequencer);
(
db_dir,
context.with_call_handling(call_handle),
cairo_handle,
account_address,
latest_block_hash,
)
}
fn add_dummy_account(
storage: pathfinder_storage::Storage,
gas_price: GasPrice,
) -> (ContractAddress, BlockHash, BlockNumber) {
let mut db_conn = storage.connection().unwrap();
let db_txn = db_conn.transaction().unwrap();
//
// "Declare"
//
let class_hash =
starknet_gateway_test_fixtures::class_definitions::DUMMY_ACCOUNT_CLASS_HASH;
let class_definition = starknet_gateway_test_fixtures::class_definitions::DUMMY_ACCOUNT;
db_txn
.insert_cairo_class(class_hash, class_definition)
.unwrap();
//
// "Deploy"
//
let contract_address = contract_address_bytes!(b"account");
let contract_root = ContractRoot::ZERO;
let contract_nonce = ContractNonce::ZERO;
let contract_state_hash =
pathfinder_merkle_tree::contract_state::calculate_contract_state_hash(
class_hash,
contract_root,
contract_nonce,
);
db_txn
.insert_contract_state(
contract_state_hash,
class_hash,
contract_root,
contract_nonce,
)
.unwrap();
let latest_header = db_txn
.block_header(pathfinder_storage::BlockId::Latest)
.unwrap()
.unwrap();
let mut storage_commitment_tree = pathfinder_merkle_tree::StorageCommitmentTree::load(
&db_txn,
latest_header.storage_commitment,
)
.unwrap();
storage_commitment_tree
.set(contract_address, contract_state_hash)
.unwrap();
let (new_storage_commitment, nodes) = storage_commitment_tree.commit().unwrap();
db_txn
.insert_storage_trie(new_storage_commitment, &nodes)
.unwrap();
let new_header = latest_header
.child_builder()
.with_storage_commitment(new_storage_commitment)
.with_gas_price(gas_price)
.with_calculated_state_commitment()
.finalize_with_hash(block_hash_bytes!(b"latest block"));
db_txn.insert_block_header(&new_header).unwrap();
let state_update = new_header
.init_state_update()
.with_deployed_contract(contract_address, class_hash);
db_txn
.insert_state_update(new_header.number, &state_update)
.unwrap();
// Persist
db_txn.commit().unwrap();
(contract_address, new_header.hash, new_header.number)
}
#[tokio::test]
async fn no_such_block() {
let (_db_dir, context, _join_handle, account_address, _) =
test_context_with_call_handling().await;
let input = EstimateFeeInput {
request: vec![valid_invoke_v1(account_address)],
block_id: BlockId::Hash(block_hash_bytes!(b"nonexistent")),
};
let error = estimate_fee(context, input).await;
assert_matches::assert_matches!(error, Err(EstimateFeeError::BlockNotFound));
}
#[tokio::test]
async fn no_such_contract() {
let (_db_dir, context, _join_handle, account_address, _) =
test_context_with_call_handling().await;
let mainnet_invoke = valid_invoke_v1(account_address)
.into_invoke()
.unwrap()
.into_v1()
.unwrap();
let input = EstimateFeeInput {
request: vec![BroadcastedTransaction::Invoke(
BroadcastedInvokeTransaction::V1(BroadcastedInvokeTransactionV1 {
sender_address: contract_address!("0xdeadbeef"),
..mainnet_invoke
}),
)],
block_id: BLOCK_5,
};
let error = estimate_fee(context, input).await;
assert_matches::assert_matches!(error, Err(EstimateFeeError::ContractNotFound));
}
#[tokio::test]
async fn successful_invoke_v1() {
let (_db_dir, context, _join_handle, account_address, latest_block_hash) =
test_context_with_call_handling().await;
let transaction0 = valid_invoke_v1(account_address);
let transaction1 = BroadcastedTransaction::Invoke(BroadcastedInvokeTransaction::V1(
BroadcastedInvokeTransactionV1 {
nonce: transaction_nonce!("0x1"),
..transaction0
.clone()
.into_invoke()
.unwrap()
.into_v1()
.unwrap()
},
));
let input = EstimateFeeInput {
request: vec![transaction0, transaction1],
block_id: BlockId::Hash(latest_block_hash),
};
let result = estimate_fee(context, input).await.unwrap();
assert_eq!(result, vec![FeeEstimate::default(), FeeEstimate::default()]);
}
#[test_log::test(tokio::test)]
async fn successful_declare_v0() {
let (_db_dir, context, _join_handle, _account_address, latest_block_hash) =
test_context_with_call_handling().await;
let contract_class = {
let json = starknet_gateway_test_fixtures::class_definitions::CONTRACT_DEFINITION;
ContractClass::from_definition_bytes(json)
.unwrap()
.as_cairo()
.unwrap()
};
let declare_transaction = BroadcastedTransaction::Declare(
BroadcastedDeclareTransaction::V0(BroadcastedDeclareTransactionV0 {
version: TransactionVersion::ZERO_WITH_QUERY_VERSION,
max_fee: Fee::default(),
signature: vec![],
contract_class,
sender_address: contract_address!("0x1"),
}),
);
let input = EstimateFeeInput {
request: vec![declare_transaction],
block_id: BlockId::Hash(latest_block_hash),
};
let result = estimate_fee(context, input).await.unwrap();
assert_eq!(result, vec![FeeEstimate::default()]);
}
#[test_log::test(tokio::test)]
async fn successful_declare_v1() {
let (_db_dir, context, _join_handle, account_address, latest_block_hash) =
test_context_with_call_handling().await;
let contract_class = {
let json = starknet_gateway_test_fixtures::class_definitions::CONTRACT_DEFINITION;
ContractClass::from_definition_bytes(json)
.unwrap()
.as_cairo()
.unwrap()
};
let declare_transaction = BroadcastedTransaction::Declare(
BroadcastedDeclareTransaction::V1(BroadcastedDeclareTransactionV1 {
version: TransactionVersion::ONE_WITH_QUERY_VERSION,
max_fee: Fee(Default::default()),
signature: vec![],
nonce: TransactionNonce(Default::default()),
contract_class,
sender_address: account_address,
}),
);
let input = EstimateFeeInput {
request: vec![declare_transaction],
block_id: BlockId::Hash(latest_block_hash),
};
let result = estimate_fee(context, input).await.unwrap();
assert_eq!(result, vec![FeeEstimate::default()]);
}
#[test_log::test(tokio::test)]
async fn successful_declare_v2() {
let (_db_dir, context, _join_handle, account_address, latest_block_hash) =
test_context_with_call_handling().await;
let contract_class: SierraContractClass = {
let definition =
starknet_gateway_test_fixtures::class_definitions::CAIRO_1_1_0_RC0_SIERRA;
ContractClass::from_definition_bytes(definition)
.unwrap()
.as_sierra()
.unwrap()
};
let declare_transaction = BroadcastedTransaction::Declare(
BroadcastedDeclareTransaction::V2(BroadcastedDeclareTransactionV2 {
version: TransactionVersion::TWO_WITH_QUERY_VERSION,
max_fee: Fee(Default::default()),
signature: vec![],
nonce: TransactionNonce(Default::default()),
contract_class,
sender_address: account_address,
// Taken from
// https://external.integration.starknet.io/feeder_gateway/get_state_update?blockNumber=289143
compiled_class_hash: casm_hash!(
"0xf2056a217cc9cabef54d4b1bceea5a3e8625457cb393698ba507259ed6f3c"
),
}),
);
let input = EstimateFeeInput {
request: vec![declare_transaction],
block_id: BlockId::Hash(latest_block_hash),
};
let result = estimate_fee(context, input).await.unwrap();
assert_eq!(result, vec![FeeEstimate::default()]);
}
}
}
|
use std::{
fs::File,
io::{BufReader, BufWriter},
path::PathBuf,
};
use chrono::Utc;
use parking_lot::Mutex;
use serde::{Deserialize, Serialize};
use steamworks::PublishedFileId;
#[derive(Serialize, Deserialize)]
struct AddWorkshopEntry {
id: PublishedFileId,
name: Option<String>,
}
#[derive(Serialize, Deserialize)]
struct AddWorkshopManifest {
id: u16,
name: String,
date: chrono::DateTime<Utc>,
collection: Option<PublishedFileId>,
contents: Vec<AddWorkshopEntry>,
}
impl PartialEq for AddWorkshopManifest {
fn eq(&self, other: &Self) -> bool {
self.id == other.id
}
}
impl Eq for AddWorkshopManifest {}
impl PartialOrd for AddWorkshopManifest {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.date.partial_cmp(&other.date)
}
}
impl Ord for AddWorkshopManifest {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.date.cmp(&other.date)
}
}
#[derive(Serialize, Deserialize)]
pub struct ContentGenerator {
saved: Vec<AddWorkshopManifest>,
id: u16,
}
impl ContentGenerator {
pub fn init() -> Self {
let mut saved = Vec::new();
let mut id = 0;
std::fs::create_dir_all(&*manifests_path()).expect("Failed to create content generator manifests directory");
if let Ok(dir) = manifests_path().read_dir() {
for entry in dir {
(|| -> Option<()> {
let entry = entry.ok()?;
let contents: AddWorkshopManifest = bincode::deserialize_from(BufReader::new(File::open(entry.path()).ok()?)).ok()?;
id = id.max(contents.id);
saved.insert(
match saved.binary_search(&contents) {
Ok(pos) => pos,
Err(pos) => pos,
},
contents,
);
Some(())
})();
}
}
Self { saved, id }
}
}
lazy_static! {
pub static ref CONTENT_GENERATOR: Mutex<ContentGenerator> = Mutex::new(ContentGenerator::init());
}
fn manifests_path() -> PathBuf {
app_data!().user_data_dir().join("content_generator")
}
#[tauri::command]
fn get_content_generator_manifests() -> &'static Vec<AddWorkshopManifest> {
unsafe { &*(&CONTENT_GENERATOR.lock().saved as *const _) }
}
#[tauri::command]
fn update_content_generator_manifest(manifest: AddWorkshopManifest) -> bool {
try_block!({
let mut content_generator = CONTENT_GENERATOR.lock();
let f = File::create(manifests_path().join(manifest.id.to_string()))?;
bincode::serialize_into(BufWriter::new(f), &manifest)?;
match content_generator.saved.binary_search(&manifest) {
Ok(pos) => content_generator.saved[pos] = manifest,
Err(pos) => content_generator.saved.insert(pos, manifest),
}
})
.is_ok()
}
|
// Builder for printing Candy values.
use itertools::{EitherOrBoth, Itertools};
use num_bigint::BigInt;
use std::{borrow::Cow, ops::Sub};
pub enum FormatValue<'a, T: Copy> {
Int(Cow<'a, BigInt>),
Tag { symbol: &'a str, value: Option<T> },
Text(&'a str),
List(&'a [T]),
Struct(Cow<'a, Vec<(T, T)>>),
Function,
SendPort,
ReceivePort,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Precedence {
/// No spaces allowed.
High,
/// Spaces allowed.
Low,
}
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub enum MaxLength {
Unlimited,
Limited(usize),
}
impl MaxLength {
fn fits(self, len: usize) -> bool {
match self {
MaxLength::Unlimited => true,
MaxLength::Limited(max) => len <= max,
}
}
}
impl Sub<usize> for MaxLength {
type Output = MaxLength;
fn sub(self, rhs: usize) -> Self::Output {
match self {
MaxLength::Unlimited => MaxLength::Unlimited,
MaxLength::Limited(n) => {
assert!(n >= rhs);
MaxLength::Limited(n - rhs)
}
}
}
}
/// Formats the value, using the visitor to match across possible values.
pub fn format_value<'a, T: 'a + Copy>(
value: T,
precedence: Precedence,
max_length: MaxLength,
visitor: &impl Fn(T) -> Option<FormatValue<'a, T>>,
) -> Option<String> {
// For each case, the different alternatives of printing are listed.
// Depending on the available space, the best is chosen.
Some(match visitor(value)? {
FormatValue::Int(int) => {
// - int
// - `…`
let string = int.to_string();
if max_length.fits(string.len()) {
string
} else {
"…".to_string()
}
}
FormatValue::Tag { symbol, value } => {
// - full: `Tag Value` or `(Tag Value)` or `Tag`
// - only symbol: `Tag …` or `(Tag …)` or `Tag`
// - only structure: `… …` or `(… …)` or `…`
// - `…`
let needs_parentheses = value.is_some() && precedence == Precedence::High;
let length_needed_for_structure = match (needs_parentheses, value.is_some()) {
(false, false) => 1, // `…`
(false, true) => 3, // `… …`
(true, false) => unreachable!(),
(true, true) => 5, // `(… …)`
};
if !max_length.fits(length_needed_for_structure) {
return Some("…".to_string());
}
let mut string = "".to_string();
if needs_parentheses {
string.push('(');
}
let symbol_fits = max_length.fits(length_needed_for_structure - 1 + symbol.len());
if symbol_fits {
string.push_str(symbol);
} else {
string.push('…');
}
if let Some(value) = value {
string.push(' ');
if symbol_fits {
string.push_str(&format_value(
value,
Precedence::High,
max_length - (length_needed_for_structure - 2 + symbol.len()),
visitor,
)?);
} else {
string.push('…');
}
}
if needs_parentheses {
string.push(')');
}
string
}
FormatValue::Text(text) => {
// - full text
// - `…`
if max_length.fits(1 + text.len() + 1) {
format!("\"{text}\"")
} else {
"…".to_string()
}
}
FormatValue::Function => {
// - `{ … }`
// - `…`
if max_length.fits(5) { "{ … }" } else { "…" }.to_string()
}
FormatValue::List(list) => {
// - all items: `(Foo, Bar, Baz)`
// - some items: `(Foo, Bar, + 2 more)`
// - no items shown: `(list of 2 items)`
// - `…`
if !max_length.fits(3) {
return Some("…".to_string());
}
if list.is_empty() {
return Some("(,)".to_string());
}
if !max_length.fits(4) {
return Some("…".to_string());
}
let list_len = list.len();
if list_len == 1 {
let item = list[0];
let item = format_value(item, Precedence::Low, MaxLength::Unlimited, visitor)?;
return if max_length.fits(item.len() + 3) {
Some(format!("({item},)"))
} else {
Some("(…,)".to_string())
};
}
let mut items = Vec::with_capacity(list_len);
let mut total_item_length = 0;
for item in list {
// Would an additional item fit?
// surrounding parentheses, items, and for each item comma + space, new item
if !max_length.fits(2 + total_item_length + items.len() * 2 + 1) {
break;
}
let item = format_value(*item, Precedence::Low, MaxLength::Unlimited, visitor)?;
total_item_length += item.len();
items.push(item);
}
if items.len() == list_len && max_length.fits(total_item_length + items.len() * 2) {
return Some(format!("({})", items.into_iter().join(", ")));
}
// Not all items fit. Try to remove the back ones, showing "+ X more" instead.
while let Some(popped) = items.pop() {
total_item_length -= popped.len();
let extra_text = format!("+ {} more", list_len - items.len());
if max_length.fits(total_item_length + items.len() * 2 + extra_text.len()) {
return Some(format!(
"({}, {})",
items.into_iter().join(", "),
extra_text,
));
}
}
let summary = format!("(list of {} items)", list_len);
if max_length.fits(summary.len()) {
summary
} else {
"…".to_string()
}
}
FormatValue::Struct(entries) => {
// - all entries: `[Foo: Bar, Baz: 2]`
// - all keys, some values: `[Foo: Bar, Baz: …, Quz: …]`
// - some keys: `[Foo: …, Bar: …, + 2 more]`
// - no items shown: `[struct with 2 entries]`
// - `…`
if !max_length.fits(2) {
return Some("…".to_string());
}
if entries.is_empty() {
return Some("[]".to_string());
}
let num_entries = entries.len();
let mut keys = Vec::with_capacity(num_entries);
let mut total_keys_length = 0;
for (key, _) in &*entries {
// surrounding brackets, keys, and for each key colon + space + dots + comma + space
if !max_length.fits(total_keys_length + keys.len() * 5) {
break;
}
let key = format_value(*key, Precedence::Low, MaxLength::Unlimited, visitor)?;
total_keys_length += key.len();
keys.push(key);
}
if keys.len() < num_entries || !max_length.fits(total_keys_length + keys.len() * 5) {
// Not all keys fit. Try to remove the back ones, showing "+ X more" instead.
while let Some(popped) = keys.pop() {
total_keys_length -= popped.len();
let extra_text = format!("+ {} more", num_entries - keys.len());
if max_length.fits(total_keys_length + keys.len() * 5 + extra_text.len()) {
return Some(format!(
"[{}, {}]",
keys.into_iter().map(|key| format!("{key}: …")).join(", "),
extra_text,
));
}
}
let summary = format!("[struct with {} entries]", num_entries);
return Some(if max_length.fits(summary.len()) {
summary
} else {
"…".to_string()
});
}
let mut values = Vec::with_capacity(num_entries);
let mut total_values_length = num_entries; // dots for every value
for (_, value) in &*entries {
let value = format_value(*value, Precedence::Low, MaxLength::Unlimited, visitor)?;
total_values_length += value.len() - 1; // remove the dots, add the value
values.push(value);
if !max_length.fits(total_keys_length + keys.len() * 4 + total_values_length) {
break;
}
}
if values.len() == num_entries
&& max_length.fits(total_keys_length + keys.len() * 4 + total_values_length)
{
// Everything fits!
return Some(format!(
"[{}]",
keys.into_iter()
.zip(values)
.map(|(key, value)| format!("{key}: {value}"))
.join(", "),
));
}
// Not all values fit. Try to remove the back ones.
while let Some(popped) = values.pop() {
total_values_length -= popped.len() - 1; // replace with dots
if max_length.fits(total_keys_length + total_values_length + num_entries * 4) {
break;
}
}
format!(
"[{}]",
keys.into_iter()
.zip_longest(values)
.map(|zipped| match zipped {
EitherOrBoth::Both(key, value) => format!("{key}: {value}"),
EitherOrBoth::Left(key) => format!("{key}: …"),
EitherOrBoth::Right(_) => unreachable!(),
})
.join(", "),
)
}
FormatValue::SendPort => match precedence {
Precedence::High => "(send port)",
Precedence::Low => "send port",
}
.to_string(),
FormatValue::ReceivePort => match precedence {
Precedence::High => "(receive port)",
Precedence::Low => "receive port",
}
.to_string(),
})
}
|
use self::{
close::Close, create::Create, echo::Echo, negotiate::Negotiate, query_info::QueryInfo,
session_setup::SessionSetup, tree_connect::TreeConnect,
};
pub mod close;
pub mod create;
pub mod echo;
pub mod negotiate;
pub mod query_info;
pub mod session_setup;
pub mod tree_connect;
/// The request type determines which message request is sent to the server.
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum RequestType {
Negotiate(Negotiate),
SessionSetupNeg(SessionSetup),
SessionSetupAuth(SessionSetup),
TreeConnect(TreeConnect),
Create(Create),
QueryInfo(QueryInfo),
Close(Close),
Echo(Echo),
}
impl RequestType {
/// Maps a user input flag to the corresponding request type.
pub fn map_string_to_request_type(request_type: &str) -> Self {
match request_type {
"-n" | "--negotiate" | "--Negotiate" => RequestType::Negotiate(Negotiate::default()),
"-sn" | "--session_setup_neg" | "--Session_setup_neg" => {
RequestType::SessionSetupNeg(SessionSetup::default())
}
"-sa" | "--session_setup_auth" | "--Session_setup_auth" => {
RequestType::SessionSetupAuth(SessionSetup::default())
}
"-t" | "--tree_connect" | "--Tree_connect" => {
RequestType::TreeConnect(TreeConnect::default())
}
"-cr" | "--create" | "--Create" => RequestType::Create(Create::default()),
"-q" | "--query_info" | "--Query_info" => RequestType::QueryInfo(QueryInfo::default()),
"-cl" | "--close" | "--Close" => RequestType::Close(Close::default()),
"-e" | "--echo" | "--Echo" => RequestType::Echo(Echo::default()),
_ => panic!("Invalid Request Type."),
}
}
}
|
#[cfg(any(
all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "sha"),
all(target_arch = "aarch64", target_feature = "neon", target_feature = "crypto"),
))]
mod shani;
#[cfg(any(
all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "sha"),
all(target_arch = "aarch64", target_feature = "neon", target_feature = "crypto"),
))]
use self::shani::*;
mod sha256;
mod sha512;
pub use self::sha256::*;
pub use self::sha512::*;
|
// Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// aux-build:macro_crate_test.rs
// ignore-stage1
#![feature(plugin, rustc_attrs)]
#![plugin(macro_crate_test)]
#[macro_use] #[no_link]
extern crate macro_crate_test;
#[derive(PartialEq, Clone, Debug)]
#[rustc_into_multi_foo]
fn foo() -> AnotherFakeTypeThatHadBetterGoAway {}
// Check that the `#[into_multi_foo]`-generated `foo2` is configured away
fn foo2() {}
trait Qux {
#[rustc_into_multi_foo]
fn bar();
}
impl Qux for i32 {
#[rustc_into_multi_foo]
fn bar() {}
}
impl Qux for u8 {}
pub fn main() {
assert_eq!(1, make_a_1!());
assert_eq!(2, exported_macro!());
assert_eq!(Foo2::Bar2, Foo2::Bar2);
test(None::<Foo2>);
let _ = Foo3::Bar;
let x = 10i32;
assert_eq!(x.foo(), 42);
let x = 10u8;
assert_eq!(x.foo(), 0);
}
fn test<T: PartialEq+Clone>(_: Option<T>) {}
|
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
crate::{
action_match::query_action_match,
models::{Action, AddModInfo, Intent, Suggestion},
story_context_store::ContextEntity,
suggestions_manager::SearchSuggestionsProvider,
},
failure::Error,
futures::future::LocalFutureObj,
std::sync::Arc,
};
pub struct ActionSuggestionsProvider {
actions: Arc<Vec<Action>>,
}
impl ActionSuggestionsProvider {
pub fn new(actions: Arc<Vec<Action>>) -> Self {
ActionSuggestionsProvider { actions }
}
/// Generate a suggestion. Return None when there is no
/// display_info for the suggestion.
fn action_to_suggestion(action: &Action) -> Option<Suggestion> {
let mut intent = Intent::new().with_action(&action.name);
if let Some(ref fulfillment) = action.fuchsia_fulfillment {
intent = intent.with_handler(&fulfillment.component_url);
}
action
.action_display
.as_ref()
.and_then(|action_display| action_display.display_info.as_ref())
// requires a display_info and a title
.filter(|display_info| display_info.title.is_some())
.map(|display_info| {
Suggestion::new(AddModInfo::new_intent(intent), display_info.clone())
})
}
}
impl SearchSuggestionsProvider for ActionSuggestionsProvider {
fn request<'a>(
&'a self,
query: &'a str,
_context: &'a Vec<&'a ContextEntity>,
) -> LocalFutureObj<'a, Result<Vec<Suggestion>, Error>> {
LocalFutureObj::new(Box::new(async move {
let result = self
.actions
.iter()
// keep actions that have no parameters
.filter(|action| action.parameters.is_empty())
// keep actions that match the query
.filter(|action| query_action_match(&action, query))
// convert to Option<Suggestion>
.filter_map(|action| ActionSuggestionsProvider::action_to_suggestion(action))
.collect::<Vec<Suggestion>>();
Ok(result)
}))
}
}
#[cfg(test)]
mod tests {
use {super::*, crate::models::DisplayInfo, fuchsia_async as fasync};
fn suggestion(action: &str, handler: &str, icon: &str, title: &str) -> Suggestion {
Suggestion::new(
AddModInfo::new_intent(
Intent::new().with_action(&action.to_string()).with_handler(&handler.to_string()),
),
DisplayInfo::new().with_icon(&icon.to_string()).with_title(&title.to_string()),
)
}
#[fasync::run_singlethreaded(test)]
async fn get_suggestions() -> Result<(), Error> {
let actions = test_actions();
let action_suggestions_provider = ActionSuggestionsProvider::new(actions);
let context = vec![];
let results = action_suggestions_provider.request("n", &context).await?;
let expected_results = vec![suggestion(
"ACTION_MAIN",
"fuchsia-pkg://fuchsia.com/collections#meta/collections.cmx",
"https://example.com/weather-icon",
"Nouns of the world",
)];
// Ensure the suggestion matches.
assert_eq!(results.len(), 1);
assert_eq!(results[0].display_info(), expected_results[0].display_info());
Ok(())
}
fn test_actions() -> Arc<Vec<Action>> {
Arc::new(serde_json::from_str(include_str!("../../test_data/test_actions.json")).unwrap())
}
}
|
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// run-pass
// Test that we are handle to correctly handle a projection type
// that appears in a supertrait bound. Issue #20559.
trait A
{
type TA;
fn dummy(&self) { }
}
trait B<TB>
{
fn foo (&self, t : TB) -> String;
}
trait C<TC : A> : B<<TC as A>::TA> { }
struct X;
impl A for X
{
type TA = i32;
}
struct Y;
impl C<X> for Y { }
// Both of these impls are required for successful compilation
impl B<i32> for Y
{
fn foo (&self, t : i32) -> String
{
format!("First {}", t)
}
}
fn main ()
{
let y = Y;
assert_eq!(y.foo(5), format!("First 5"));
}
|
//! MuSug Process Context
use crate::PublicKey;
use bacteria::Transcript;
use mohan::dalek::scalar::Scalar;
/// The context for signing - can either be a Multikey or Multimessage context.
pub trait MuSigContext {
/// Takes a mutable transcript, and commits the internal context to the transcript.
fn commit(&self, transcript: &mut Transcript);
/// Takes an index of a public key and mutable transcript,
/// and returns the suitable challenge for that public key.
fn challenge(&self, index: usize, transcript: &mut Transcript) -> Scalar;
/// Length of the number of pubkeys in the context
fn len(&self) -> usize;
/// Returns the pubkey for the index i
fn key(&self, index: usize) -> PublicKey;
}
|
use crate::utils::create_return_with_default;
use swc_core::{
common::{Spanned, DUMMY_SP},
ecma::{ast::*, transforms::testing::test, visit::*},
plugin::{plugin_transform, proxies::TransformPluginProgramMetadata},
};
mod utils;
pub struct ReactDemoVisitor;
/**
* implement `VisitMut` trait for transform `export` to `return`, and transform `import` to `await import`
*/
impl VisitMut for ReactDemoVisitor {
fn visit_mut_module_item(&mut self, n: &mut ModuleItem) {
if let ModuleItem::ModuleDecl(module_decl) = n.clone() {
match module_decl {
ModuleDecl::Import(import_decl) => {
// transform import declaration to await import declaration
if !import_decl.type_only {
// skip non-type import
let name: Pat = if let Some(import) =
import_decl.specifiers.iter().find(|s| s.is_namespace())
{
// extract local name from `import * as x from'y'`
Pat::Ident(import.clone().namespace().unwrap().local.into())
} else {
// extract local name from `import x from 'y'` and `import { x } from 'y'`
// and transform to { default: x } or { x: x }
let props: Vec<ObjectPatProp> = import_decl
.specifiers
.iter()
.map::<ObjectPatProp, _>(|s| {
match s {
ImportSpecifier::Default(import_default) => {
// transform default import to { default: x }
ObjectPatProp::KeyValue(KeyValuePatProp {
key: PropName::Ident(Ident::new("default".into(), import_default.span)),
value: import_default.clone().local.into(),
})
}
ImportSpecifier::Named(import_named) => {
// transform non-default import, e.g. { y: x } or { 'y*y': x } or { x: x }
let key: PropName = match &import_named.imported {
Some(ModuleExportName::Ident(ident)) => PropName::Ident(ident.clone()),
Some(ModuleExportName::Str(str)) => PropName::Str(str.clone()),
None => PropName::Ident(import_named.local.clone()),
};
ObjectPatProp::KeyValue(KeyValuePatProp {
key,
value: import_named.clone().local.into(),
})
}
ImportSpecifier::Namespace(_) => unreachable!("already handle in prev if arm"),
}
})
.collect();
Pat::Object(ObjectPat {
span: import_decl.span,
props,
optional: false,
type_ann: None,
})
};
// replace import declaration to variable declaration with await import
*n = ModuleItem::Stmt(Stmt::Decl(Decl::Var(Box::new(VarDecl {
kind: VarDeclKind::Const,
declare: false,
span: n.span(),
decls: vec![VarDeclarator {
// variable name
name,
// await import expression
init: Some(Box::new(Expr::Await(AwaitExpr {
span: DUMMY_SP,
arg: CallExpr {
span: DUMMY_SP,
callee: Callee::Import(Import { span: DUMMY_SP }),
args: vec![ExprOrSpread {
spread: None,
expr: Box::new(Expr::Lit(Lit::Str(*import_decl.src))),
}],
type_args: None,
}
.into(),
}))),
span: DUMMY_SP,
definite: false,
}],
}))));
}
}
ModuleDecl::ExportDefaultExpr(export_expr) => {
// transform export default expression to return statement
*n = ModuleItem::Stmt(create_return_with_default(*export_expr.expr, n.span()));
}
ModuleDecl::ExportDefaultDecl(export_decl) => {
// transform export default declaration to return statement
match export_decl.decl {
DefaultDecl::Class(c) => {
*n = ModuleItem::Stmt(create_return_with_default(Expr::Class(c), n.span()));
}
DefaultDecl::Fn(f) => {
*n = ModuleItem::Stmt(create_return_with_default(Expr::Fn(f), n.span()));
}
DefaultDecl::TsInterfaceDecl(_) => { /* omit interface declaration */ }
}
}
ModuleDecl::ExportNamed(_) => {
unreachable!("export named should be transform to export default")
}
_ => { /* omit other declarations */ }
}
}
}
}
#[plugin_transform]
pub fn process_transform(program: Program, _metadata: TransformPluginProgramMetadata) -> Program {
program.fold_with(&mut as_folder(ReactDemoVisitor))
}
test!(
Default::default(),
|_| as_folder(ReactDemoVisitor),
imports,
// input
r#"import a from 'a';
import { b } from 'b';
import { c1 as c } from 'c';
import * as d from 'd';
import e, { e1, e2 as e3 } from 'e';"#,
// output
r#"const { default: a } = await import('a');
const { b: b } = await import('b');
const { c1: c } = await import('c');
const d = await import('d');
const { default: e , e1: e1 , e2: e3 } = await import('e');"#
);
test!(
Default::default(),
|_| as_folder(ReactDemoVisitor),
exports,
// input
r#"export default a;
export default () => null;
export default class A {}"#,
// output
r#"return {
default: a
};
return {
default: ()=>null
};
return {
default: class A {
}
};"#
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.